.forest-article-main {
    background: linear-gradient(135deg, var(--forest-bg-light) 0%, #f0f8f0 100%);
    min-height: calc(100vh - 75px);
    padding: 30px 0;
    position: relative;
    overflow-x: visible;
}

.forest-article-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" fill="%23e8f5e8" opacity="0.2"><circle cx="20" cy="20" r="1.5"/><circle cx="80" cy="40" r="1"/><circle cx="40" cy="80" r="1.2"/><circle cx="70" cy="10" r="0.8"/><circle cx="10" cy="60" r="1.3"/></svg>') repeat;
    background-size: 100px 100px;
    opacity: 0.3;
}

.forest-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.forest-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 30px;
    padding: 15px 25px;
    background: var(--forest-bg);
    border-radius: 25px;
    box-shadow: 0 2px 15px var(--forest-shadow);
    font-size: 14px;
    flex-wrap: wrap;
}

.forest-breadcrumb-item {
    color: var(--forest-text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 12px;
}

.forest-breadcrumb-item:hover {
    color: var(--forest-primary);
    background: var(--forest-bg-light);
}

.forest-breadcrumb-divider {
    color: var(--forest-text-lighter);
    font-weight: 300;
}

.forest-breadcrumb-current {
    color: var(--forest-primary);
    font-weight: 500;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.forest-article-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    align-items: start;
    min-height: 100vh;
    position: relative;
}

.forest-article-content {
    background: var(--forest-bg);
    border-radius: 20px;
    box-shadow: 0 4px 25px var(--forest-shadow);
    overflow: hidden;
    transition: all 0.3s ease;
}

.forest-article-content:hover {
    box-shadow: 0 6px 35px var(--forest-shadow-dark);
}

.forest-article-header {
    padding: 40px;
    background: linear-gradient(135deg, var(--forest-primary) 0%, var(--forest-primary-light) 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.forest-article-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: forestHeaderGlow 8s ease-in-out infinite;
}

@keyframes forestHeaderGlow {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.2) rotate(180deg);
        opacity: 0.6;
    }
}

.forest-article-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 25px 0;
    color: #fff;
    position: relative;
    z-index: 1;
}

.forest-article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.forest-meta-group {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

.forest-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
}

.forest-meta-item i {
    font-size: 16px;
    color: var(--forest-accent);
}

.forest-category-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.forest-category-tag:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.forest-category-tag i {
    font-size: 16px;
    color: var(--forest-accent);
}

.forest-article-body {
    padding: 40px;
    line-height: 1.8;
    color: var(--forest-text);
    font-size: 16px;
    position: relative;
}

.forest-article-body h1,
.forest-article-body h2,
.forest-article-body h3,
.forest-article-body h4,
.forest-article-body h5,
.forest-article-body h6 {
    font-weight: 600;
    color: var(--forest-text);
    margin: 35px 0 20px 0;
    position: relative;
    padding-left: 20px;
}

.forest-article-body h1::before,
.forest-article-body h2::before,
.forest-article-body h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: linear-gradient(135deg, var(--forest-primary) 0%, var(--forest-secondary) 100%);
    border-radius: 2px;
}

.forest-article-body h1 {
    font-size: 28px;
    color: var(--forest-primary);
}

.forest-article-body h2 {
    font-size: 24px;
    color: var(--forest-primary-light);
}

.forest-article-body h3 {
    font-size: 20px;
    color: var(--forest-secondary);
}

.forest-article-body p {
    margin-bottom: 20px;
    text-align: justify;
    text-justify: inter-ideograph;
}

.forest-article-body ul,
.forest-article-body ol {
    margin: 20px 0;
    padding-left: 30px;
}

.forest-article-body li {
    margin-bottom: 8px;
    position: relative;
}

.forest-article-body ul li::marker {
    color: var(--forest-primary);
}

.forest-article-body ol li::marker {
    color: var(--forest-secondary);
    font-weight: 600;
}

.forest-article-body blockquote {
    background: linear-gradient(135deg, var(--forest-bg-light) 0%, #f0f8f0 100%);
    border-left: 4px solid var(--forest-primary);
    padding: 25px 30px;
    margin: 30px 0;
    border-radius: 0 15px 15px 0;
    font-style: italic;
    color: var(--forest-text-light);
    position: relative;
    box-shadow: 0 2px 15px var(--forest-shadow);
}

.forest-article-body blockquote::before {
    content: '"';
    font-size: 60px;
    color: var(--forest-primary);
    position: absolute;
    top: 10px;
    left: 20px;
    font-family: serif;
    opacity: 0.3;
}

.forest-article-body blockquote p {
    margin: 0;
    padding-left: 40px;
}

.forest-article-body pre {
    background: var(--forest-bg-light);
    border: 1px solid var(--forest-border);
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
    overflow-x: auto;
    font-size: 14px;
    line-height: 1.6;
    position: relative;
    box-shadow: 0 2px 15px var(--forest-shadow);
}

.forest-article-body code {
    background: var(--forest-bg-light);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 13px;
    color: var(--forest-primary);
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    border: 1px solid var(--forest-border);
}

.forest-article-body pre code {
    background: none;
    padding: 0;
    color: var(--forest-text);
    border: none;
}

.forest-article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 25px 0;
    box-shadow: 0 4px 20px var(--forest-shadow);
    transition: all 0.3s ease;
    cursor: pointer;
}

.forest-article-body img:hover,
.forest-article-img:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 30px var(--forest-shadow-dark);
}

.forest-article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    background: var(--forest-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--forest-shadow);
}

.forest-article-body th,
.forest-article-body td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid var(--forest-border);
}

.forest-article-body th {
    background: linear-gradient(135deg, var(--forest-primary) 0%, var(--forest-primary-light) 100%);
    color: #fff;
    font-weight: 600;
}

.forest-article-body tr:hover {
    background: var(--forest-bg-light);
}

.forest-article-body a {
    color: var(--forest-primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.forest-article-body a:hover {
    color: var(--forest-secondary);
    border-bottom-color: var(--forest-secondary);
}

.forest-external-link::after {
    content: '↗';
    font-size: 12px;
    margin-left: 4px;
    opacity: 0.7;
}

.forest-table-wrapper {
    overflow-x: auto;
    margin: 25px 0;
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--forest-shadow);
}

.forest-code-copy {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--forest-primary);
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.forest-code-copy:hover {
    background: var(--forest-secondary);
    opacity: 1;
}

.forest-article-actions {
    padding: 30px 40px;
    border-top: 1px solid var(--forest-border);
    background: linear-gradient(135deg, var(--forest-bg-light) 0%, #f0f8f0 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.forest-action-buttons {
    display: flex;
    gap: 15px;
}

.forest-action-btn {
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: 2px solid var(--forest-border);
    border-radius: 25px;
    background: var(--forest-bg);
    color: var(--forest-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    min-width: 90px;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.forest-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(45, 90, 39, 0.1), transparent);
    transition: left 0.5s ease;
}

.forest-action-btn:hover::before {
    left: 100%;
}

.forest-action-btn:hover {
    background: var(--forest-primary);
    color: #fff;
    border-color: var(--forest-primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--forest-shadow-dark);
}

.forest-like-btn.forest-liked {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: #fff;
    border-color: #ff6b6b;
}

.forest-like-btn.forest-like-animation {
    animation: forestLikeAnimation 0.6s ease;
}

@keyframes forestLikeAnimation {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

.forest-btn-count {
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.forest-btn-text {
    position: relative;
    z-index: 1;
}

.forest-article-info {
    color: var(--forest-text-light);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.forest-update-time i {
    color: var(--forest-primary);
}

.forest-article-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 40px 0;
    padding: 30px 0 0;
    border-top: 1px solid var(--forest-border);
}

.forest-nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--forest-bg-light);
    border: 2px solid var(--forest-border);
    border-radius: 15px;
    text-decoration: none;
    color: var(--forest-text);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.forest-nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(45, 90, 39, 0.05), transparent);
    transition: left 0.4s ease;
}

.forest-nav-item:hover::before {
    left: 100%;
}

.forest-nav-item:hover {
    background: var(--forest-bg);
    border-color: var(--forest-primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--forest-shadow);
}

.forest-nav-prev {
    text-align: left;
}

.forest-nav-next {
    text-align: right;
    flex-direction: row-reverse;
}

.forest-nav-arrow {
    width: 40px;
    height: 40px;
    background: var(--forest-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.forest-nav-item:hover .forest-nav-arrow {
    background: var(--forest-secondary);
    transform: scale(1.1);
}

.forest-nav-arrow i {
    font-size: 16px;
}

.forest-nav-content {
    flex: 1;
    min-width: 0;
}

.forest-nav-label {
    font-size: 12px;
    color: var(--forest-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    display: block;
}

.forest-nav-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--forest-text);
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.forest-related-section {
    margin: 30px 40px 0;
    padding: 30px 0 0;
    border-top: 1px solid var(--forest-border);
}

.forest-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 600;
    color: var(--forest-text);
    margin-bottom: 25px;
}

.forest-section-title i {
    font-size: 22px;
    color: var(--forest-primary);
}

.forest-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.forest-related-card {
    background: var(--forest-bg-light);
    border: 2px solid var(--forest-border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.forest-related-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(45, 90, 39, 0.05), transparent);
    transition: left 0.4s ease;
}

.forest-related-card:hover::before {
    left: 100%;
}

.forest-related-card:hover,
.forest-related-card.forest-card-hover {
    background: var(--forest-bg);
    border-color: var(--forest-primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--forest-shadow);
}

.forest-related-link {
    display: block;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    position: relative;
    z-index: 1;
}

.forest-related-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--forest-text);
    line-height: 1.4;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.forest-related-meta {
    display: flex;
    justify-content: space-between;
    color: var(--forest-text-light);
    font-size: 13px;
}

.forest-article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
    position: sticky;
    top: 100px;
    align-self: start;
}

.forest-sidebar-card {
    background: var(--forest-bg);
    border-radius: 20px;
    box-shadow: 0 4px 20px var(--forest-shadow);
    overflow: hidden;
    transition: all 0.3s ease;
}

.forest-sidebar-card:hover {
    box-shadow: 0 6px 30px var(--forest-shadow-dark);
    transform: translateY(-2px);
}

.forest-card-header {
    padding: 25px 30px;
    background: linear-gradient(135deg, var(--forest-primary) 0%, var(--forest-primary-light) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
}

.forest-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.forest-card-title i {
    font-size: 20px;
    color: var(--forest-accent);
}

.forest-card-content {
    padding: 30px;
}

.forest-author-profile {
    display: flex;
    align-items: center;
    gap: 20px;
}

.forest-author-avatar {
    position: relative;
    flex-shrink: 0;
}

.forest-author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--forest-primary);
    object-fit: cover;
    transition: transform 0.3s ease;
}

.forest-author-avatar:hover img {
    transform: scale(1.05);
}

.forest-author-info {
    flex: 1;
}

.forest-author-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--forest-text);
    margin: 0 0 8px 0;
}

.forest-author-bio {
    font-size: 14px;
    color: var(--forest-text-light);
    line-height: 1.5;
    margin: 0;
}

.forest-daily-quote {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--forest-bg-light) 0%, #f0f8f0 100%);
    border-radius: 15px;
    border-left: 4px solid var(--forest-primary);
    position: relative;
}

.forest-daily-quote::before {
    content: '"';
    font-size: 40px;
    color: var(--forest-primary);
    position: absolute;
    top: 10px;
    left: 20px;
    font-family: serif;
    opacity: 0.3;
}

.forest-daily-quote p {
    font-size: 16px;
    font-style: italic;
    color: var(--forest-text-light);
    line-height: 1.6;
    margin: 0;
    padding-left: 30px;
}

.forest-recent-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
}

.forest-recent-list::-webkit-scrollbar {
    width: 6px;
}

.forest-recent-list::-webkit-scrollbar-track {
    background: var(--forest-bg-light);
    border-radius: 3px;
}

.forest-recent-list::-webkit-scrollbar-thumb {
    background: var(--forest-primary);
    border-radius: 3px;
}

.forest-recent-item {
    display: block;
    padding: 15px;
    background: var(--forest-bg-light);
    border: 1px solid var(--forest-border);
    border-radius: 10px;
    text-decoration: none;
    color: var(--forest-text);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.forest-recent-item::before {
    content: '';
    position: absolute;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(45, 90, 39, 0.1), transparent);
    transition: left 0.4s ease;
}

.forest-recent-item:hover::before {
    left: 100%;
}

.forest-recent-item:hover,
.forest-recent-item.forest-item-hover {
    background: var(--forest-bg);
    border-color: var(--forest-primary);
    transform: translateX(5px);
}

.forest-recent-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--forest-text);
    line-height: 1.4;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    position: relative;
    z-index: 1;
}

.forest-recent-meta {
    display: flex;
    justify-content: space-between;
    color: var(--forest-text-light);
    font-size: 12px;
    position: relative;
    z-index: 1;
}

.forest-category-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.forest-category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: var(--forest-bg-light);
    border: 1px solid var(--forest-border);
    border-radius: 10px;
    text-decoration: none;
    color: var(--forest-text);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.forest-category-item::before {
    content: '';
    position: absolute;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(45, 90, 39, 0.1), transparent);
    transition: left 0.4s ease;
}

.forest-category-item:hover::before {
    left: 100%;
}

.forest-category-item:hover,
.forest-category-item.forest-item-hover {
    background: var(--forest-bg);
    border-color: var(--forest-primary);
    color: var(--forest-primary);
    transform: translateX(5px);
}

.forest-category-name {
    font-size: 14px;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.forest-category-count {
    font-size: 12px;
    color: var(--forest-text-light);
    background: var(--forest-bg);
    padding: 4px 8px;
    border-radius: 12px;
    position: relative;
    z-index: 1;
}

.forest-share-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.forest-share-modal.forest-modal-show {
    opacity: 1;
    visibility: visible;
}

.forest-share-content {
    background: var(--forest-bg);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: all 0.3s ease;
}

.forest-share-modal.forest-modal-show .forest-share-content {
    transform: scale(1);
}

.forest-share-header {
    padding: 25px 30px;
    background: linear-gradient(135deg, var(--forest-primary) 0%, var(--forest-primary-light) 100%);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 20px 20px 0 0;
}

.forest-share-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.forest-share-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.forest-share-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.forest-share-buttons {
    padding: 30px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.forest-share-btn {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: var(--forest-bg-light);
    border: 2px solid var(--forest-border);
    border-radius: 15px;
    color: var(--forest-text);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.forest-share-btn:hover {
    background: var(--forest-primary);
    color: #fff;
    border-color: var(--forest-primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--forest-shadow);
}

.forest-share-btn i {
    font-size: 24px;
}

.forest-share-url {
    padding: 0 30px 30px;
    display: flex;
    gap: 10px;
}

.forest-share-url input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid var(--forest-border);
    border-radius: 10px;
    background: var(--forest-bg-light);
    color: var(--forest-text);
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.forest-share-url input:focus {
    border-color: var(--forest-primary);
    background: var(--forest-bg);
}

.forest-copy-btn {
    padding: 12px 20px;
    background: var(--forest-primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.forest-copy-btn:hover {
    background: var(--forest-secondary);
    transform: translateY(-2px);
}

.forest-copy-btn.forest-copied {
    background: var(--forest-secondary);
}

.forest-image-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.forest-image-modal.forest-modal-show {
    opacity: 1;
    visibility: visible;
}

.forest-image-container {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.forest-image-container img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: all 0.3s ease;
}

.forest-image-modal.forest-modal-show .forest-image-container img {
    transform: scale(1);
}

.forest-image-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 40px;
    height: 40px;
    background: var(--forest-primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.forest-image-close:hover {
    background: var(--forest-secondary);
    transform: scale(1.1);
}

.forest-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    z-index: 10000;
    transform: translateX(100%);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    max-width: 300px;
    word-wrap: break-word;
}

.forest-toast.forest-toast-show {
    transform: translateX(0);
}

.forest-toast-success {
    background: linear-gradient(135deg, var(--forest-secondary) 0%, var(--forest-primary) 100%);
}

.forest-toast-error {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
}

.forest-toast-info {
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
}

.forest-toast-warning {
    background: linear-gradient(135deg, #fdcb6e 0%, #e17055 100%);
}

.forest-reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(45, 90, 39, 0.1);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.forest-reading-progress.forest-progress-show {
    opacity: 1;
    visibility: visible;
}

.forest-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--forest-primary) 0%, var(--forest-secondary) 100%);
    width: 0%;
    transition: width 0.1s ease;
    border-radius: 0 2px 2px 0;
}

.forest-img-error {
    background: var(--forest-bg-light);
    border: 2px dashed var(--forest-border);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    color: var(--forest-text-light);
    font-size: 14px;
}

.forest-img-error::after {
    content: '图片加载失败';
}

@media (max-width: 1024px) {
    .forest-article-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .forest-article-sidebar {
        order: 1;
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 20px;
    }

    .forest-breadcrumb {
        padding: 12px 20px;
        font-size: 13px;
    }

    .forest-breadcrumb-current {
        max-width: 150px;
    }

    .forest-article-header {
        padding: 30px;
    }

    .forest-article-title {
        font-size: 28px;
    }

    .forest-article-meta {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .forest-meta-group {
        justify-content: center;
        gap: 20px;
    }

    .forest-category-tag {
        align-self: center;
    }

    .forest-article-body {
        padding: 30px;
    }

    .forest-article-actions {
        padding: 25px 30px;
        flex-direction: column;
        gap: 15px;
    }

    .forest-article-navigation {
        margin: 25px 30px 0;
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .forest-nav-next {
        flex-direction: row;
    }

    .forest-related-section {
        margin: 25px 30px 0;
    }

    .forest-related-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .forest-container {
        padding: 0 15px;
    }

    .forest-article-main {
        padding: 20px 0;
    }

    .forest-breadcrumb {
        padding: 10px 15px;
        margin-bottom: 20px;
        font-size: 12px;
    }

    .forest-breadcrumb-current {
        max-width: 120px;
    }

    .forest-article-header {
        padding: 25px 20px;
    }

    .forest-article-title {
        font-size: 24px;
        line-height: 1.4;
    }

    .forest-meta-group {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .forest-meta-item {
        font-size: 13px;
    }

    .forest-category-tag {
        padding: 6px 12px;
        font-size: 13px;
    }

    .forest-article-body {
        padding: 20px;
        font-size: 15px;
        line-height: 1.7;
    }

    .forest-article-body h1 {
        font-size: 24px;
    }

    .forest-article-body h2 {
        font-size: 20px;
    }

    .forest-article-body h3 {
        font-size: 18px;
    }

    .forest-article-body blockquote {
        padding: 20px 25px;
        margin: 20px 0;
    }

    .forest-article-body blockquote::before {
        font-size: 50px;
        top: 5px;
        left: 15px;
    }

    .forest-article-body blockquote p {
        padding-left: 30px;
    }

    .forest-article-body pre {
        padding: 20px;
        font-size: 13px;
    }

    .forest-article-body table {
        font-size: 14px;
    }

    .forest-article-body th,
    .forest-article-body td {
        padding: 12px 15px;
    }

    .forest-article-actions {
        padding: 20px;
    }

    .forest-action-btn {
        padding: 10px 16px;
        font-size: 13px;
        min-width: 80px;
    }

    .forest-article-navigation {
        margin: 20px 20px 0;
    }

    .forest-nav-item {
        padding: 15px;
    }

    .forest-nav-arrow {
        width: 35px;
        height: 35px;
    }

    .forest-nav-arrow i {
        font-size: 14px;
    }

    .forest-nav-title {
        font-size: 13px;
    }

    .forest-related-section {
        margin: 20px 20px 0;
    }

    .forest-section-title {
        font-size: 18px;
    }

    .forest-related-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .forest-related-card {
        margin-bottom: 0;
    }

    .forest-related-link {
        padding: 15px;
    }

    .forest-related-title {
        font-size: 15px;
    }

    .forest-card-header {
        padding: 20px;
    }

    .forest-card-title {
        font-size: 16px;
    }

    .forest-card-content {
        padding: 20px;
    }

    .forest-author-profile {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .forest-author-avatar img {
        width: 70px;
        height: 70px;
    }

    .forest-author-name {
        font-size: 18px;
    }

    .forest-daily-quote {
        padding: 15px;
    }

    .forest-daily-quote::before {
        font-size: 35px;
        top: 5px;
        left: 15px;
    }

    .forest-daily-quote p {
        font-size: 14px;
        padding-left: 25px;
    }

    .forest-recent-item {
        padding: 12px;
    }

    .forest-recent-title {
        font-size: 13px;
    }

    .forest-recent-meta {
        font-size: 11px;
    }

    .forest-category-item {
        padding: 10px 12px;
    }

    .forest-category-name {
        font-size: 13px;
    }

    .forest-category-count {
        font-size: 11px;
        padding: 3px 6px;
    }

    .forest-share-content {
        width: 95%;
        margin: 20px;
    }

    .forest-share-header {
        padding: 20px;
    }

    .forest-share-header h3 {
        font-size: 18px;
    }

    .forest-share-buttons {
        padding: 20px;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .forest-share-btn {
        padding: 15px;
        font-size: 13px;
    }

    .forest-share-btn i {
        font-size: 20px;
    }

    .forest-share-url {
        padding: 0 20px 20px;
        flex-direction: column;
        gap: 10px;
    }

    .forest-copy-btn {
        width: 100%;
    }

    .forest-toast {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100%);
    }

    .forest-toast.forest-toast-show {
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .forest-container {
        padding: 0 10px;
    }

    .forest-article-main {
        padding: 15px 0;
    }

    .forest-breadcrumb {
        padding: 8px 12px;
        margin-bottom: 15px;
        /*
        flex-direction: column;
        align-items: flex-start;
        */
        gap: 5px;
    }

    .forest-breadcrumb-current {
        max-width: none;
    }

    .forest-article-header {
        padding: 20px 15px;
    }

    .forest-article-title {
        font-size: 20px;
    }

    .forest-article-body {
        padding: 15px;
        font-size: 14px;
    }

    .forest-article-body h1 {
        font-size: 20px;
    }

    .forest-article-body h2 {
        font-size: 18px;
    }

    .forest-article-body h3 {
        font-size: 16px;
    }

    .forest-article-actions {
        padding: 15px;
    }

    .forest-action-buttons {
        width: 100%;
        justify-content: center;
    }

    .forest-action-btn {
        flex: 1;
        max-width: 120px;
    }

    .forest-article-navigation {
        margin: 15px 15px 0;
    }

    .forest-related-section {
        margin: 15px 15px 0;
    }

    .forest-section-title {
        font-size: 16px;
    }

    .forest-card-header {
        padding: 15px;
    }

    .forest-card-content {
        padding: 15px;
    }

    .forest-share-buttons {
        grid-template-columns: 1fr;
    }
}

@media print {
    .forest-article-main {
        background: #fff !important;
        color: #000 !important;
    }

    .forest-article-header {
        background: #f0f0f0 !important;
        color: #000 !important;
        border: 2px solid #000;
    }

    .forest-article-title {
        color: #000 !important;
    }

    .forest-article-sidebar,
    .forest-article-actions,
    .forest-article-navigation,
    .forest-related-section,
    .forest-breadcrumb {
        display: none !important;
    }

    .forest-article-layout {
        grid-template-columns: 1fr !important;
    }

    .forest-article-body {
        padding: 20px !important;
    }

    .forest-article-body a {
        color: #000 !important;
        text-decoration: underline !important;
    }

    .forest-article-body img {
        max-width: 100% !important;
        box-shadow: none !important;
    }
}

.forest-article-content:focus-within {
    outline: 2px solid var(--forest-accent);
    outline-offset: 2px;
}

.forest-action-btn:focus,
.forest-nav-item:focus,
.forest-related-link:focus,
.forest-recent-item:focus,
.forest-category-item:focus {
    outline: 2px solid var(--forest-accent);
    outline-offset: 2px;
}

@media (prefers-contrast: high) {
    .forest-article-body {
        color: #000;
    }

    .forest-article-body h1,
    .forest-article-body h2,
    .forest-article-body h3 {
        color: #000;
    }

    .forest-action-btn,
    .forest-nav-item,
    .forest-related-card,
    .forest-recent-item,
    .forest-category-item {
        border-width: 2px;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .forest-article-main::before {
        display: none;
    }

    .forest-article-header::before {
        display: none;
    }
}

.forest-article-main ::selection {
    background: var(--forest-secondary);
    color: #fff;
}

.forest-article-main ::-moz-selection {
    background: var(--forest-secondary);
    color: #fff;
}

.forest-article-main * {
    box-sizing: border-box;
}

.forest-article-content,
.forest-sidebar-card,
.forest-related-card,
.forest-nav-item,
.forest-action-btn {
    will-change: transform;
    backface-visibility: hidden;
}