:root {
    --primary-color: #10B981;
    --primary-light: #34D399;
    --primary-dark: #059669;
    --secondary-color: #0891B2;
    --secondary-light: #22D3EE;
    --background-white: #FFFFFF;
    --background-light: #F0FDF4;
    --text-dark: #064E3B;
    --text-medium: #065F46;
    --text-light: #6B7280;
    --border-color: #D1FAE5;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --transition-base: all 0.3s ease;
    /* 主色的 RGB 分量。header.php 会按后台设置的颜色覆盖，
       供 rgba() 阴影/光晕使用——直接写死颜色会导致改色后阴影不跟着变。 */
    --primary-rgb: 16, 185, 129;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Source Sans 3', sans-serif;
    background-color: var(--background-white);
    color: var(--text-dark);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Lexend', sans-serif;
    font-weight: 600;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: linear-gradient(135deg, var(--background-white) 0%, var(--background-light) 100%);
    box-shadow: var(--shadow-sm);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: var(--transition-base);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.logo {
    font-family: 'Lexend', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.logo-img {
    height: 40px;
    width: auto;
    margin-right: 0.75rem;
}

.logo-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-medium);
    font-weight: 500;
    transition: var(--transition-base);
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition-base);
}

.nav-links a:hover::after {
    width: 100%;
}

.cta-button {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    text-decoration: none;
    display: inline-block;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.hero {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, var(--background-light) 0%, var(--background-white) 100%);
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.hero-text h1 span {
    color: var(--primary-color);
}

.hero-text p {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.secondary-button {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    text-decoration: none;
    display: inline-block;
}

.secondary-button:hover {
    background: var(--primary-color);
    color: white;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Lexend', sans-serif;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.services {
    padding: 5rem 0;
    background: var(--background-white);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.services-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 992px) {
    .services-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .services-grid-3 {
        grid-template-columns: 1fr;
    }
}

.service-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon svg {
    width: 32px;
    height: 32px;
    color: white;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-light);
    line-height: 1.6;
}

.article-card {
    padding: 0;
    overflow: hidden;
    cursor: default;
}

.article-card:hover {
    transform: translateY(-10px);
}

.article-cover {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.article-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .article-cover img {
    transform: scale(1.05);
}

.article-content {
    padding: 1.5rem;
}

.article-content h3 {
    margin-bottom: 0.75rem;
}

.article-content h3 a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-content h3 a:hover {
    color: var(--primary-color);
}

.article-excerpt {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.read-more {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: var(--primary-dark);
}

.services-more {
    text-align: center;
    margin-top: 3rem;
}

.view-more-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 1rem 3rem;
    border-radius: 50px;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-base);
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
}

.view-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.4);
}

.article-list-page {
    background: var(--background-light);
    min-height: 100vh;
    padding-top: 100px;
    padding-bottom: 4rem;
}

.list-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.list-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.list-header h1 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.list-header p {
    color: var(--text-light);
    font-size: 1.125rem;
}

.article-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.list-item {
    display: flex;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

.list-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.list-item-cover {
    width: 280px;
    min-height: 200px;
    flex-shrink: 0;
    overflow: hidden;
}

.list-item-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.list-item:hover .list-item-cover img {
    transform: scale(1.05);
}

.list-item-cover.no-cover {
    background: linear-gradient(135deg, var(--background-light), var(--border-color));
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-cover-placeholder {
    color: var(--text-light);
}

.no-cover-placeholder svg {
    width: 60px;
    height: 60px;
}

.list-item-content {
    flex: 1;
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.list-item-title {
    font-size: 1.375rem;
    margin-bottom: 0.75rem;
}

.list-item-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.list-item-title a:hover {
    color: var(--primary-color);
}

.list-item-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.list-item-meta span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.list-item-meta svg {
    color: var(--primary-color);
}

.list-item-excerpt {
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}

.list-item-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color 0.3s ease;
}

.list-item-link:hover {
    color: var(--primary-dark);
}

.pagination {
    margin-top: 3rem;
    text-align: center;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-medium);
    background: white;
    border: 1px solid var(--border-color);
    transition: var(--transition-base);
}

.pagination a:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination .current {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.no-articles {
    text-align: center;
    padding: 4rem 0;
    color: var(--text-light);
}

@media (max-width: 768px) {
    .list-item {
        flex-direction: column;
    }

    .list-item-cover {
        width: 100%;
        min-height: 180px;
    }

    .list-item-content {
        padding: 1.25rem;
    }

    .list-header h1 {
        font-size: 2rem;
    }

    .list-item-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

.about {
    padding: 5rem 0;
    background: var(--background-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.features-list {
    list-style: none;
    margin-top: 2rem;
}

.features-list li {
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-medium);
}

.features-list li::before {
    content: '';
    width: 24px;
    height: 24px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='3' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m4.5 12.75 6 6 9-13.5'/%3E%3C/svg%3E");
    background-size: 16px 16px;
    background-position: center;
    background-repeat: no-repeat;
}

.testimonials {
    padding: 5rem 0;
    background: var(--background-white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.testimonial-content {
    font-style: italic;
    color: var(--text-medium);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.author-info h4 {
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.author-info p {
    color: var(--text-light);
    font-size: 0.875rem;
}

.contact {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.contact-info p {
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.8;
}

.contact-details {
    list-style: none;
}

.contact-details li {
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-details svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    font-size: 1.125rem;
    margin-bottom: 1.25rem;
    color: white;
    font-weight: 600;
}

.footer-section p {
    opacity: 0.75;
    line-height: 1.8;
    font-size: 0.9375rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.625rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.75;
    transition: var(--transition-base);
    font-size: 0.9375rem;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary-light);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    opacity: 0.75;
    font-size: 0.9375rem;
}

.contact-info svg {
    flex-shrink: 0;
    color: var(--primary-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    opacity: 0.7;
    font-size: 0.875rem;
}

.footer-beian {
    margin-top: 0.75rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-beian .icp-item,
.footer-beian .gongan-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.beian-icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
}

.footer-beian a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition-base);
    font-size: 0.8125rem;
}

.footer-beian a:hover {
    opacity: 1;
    color: var(--primary-light);
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .footer-beian {
        flex-direction: column;
        gap: 0.5rem;
    }
}

.article-page-wrapper {
    background: var(--background-light);
    min-height: 100vh;
    padding-top: 100px;
    padding-bottom: 4rem;
}

.article-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.article-box {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow-md);
}

.article-cover-wrap {
    margin-bottom: 2rem;
    border-radius: 15px;
    overflow: hidden;
}

.article-cover-wrap img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    display: block;
}

.article-info {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.article-title {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.article-meta-info {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    color: var(--text-light);
    font-size: 0.875rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meta-item svg {
    color: var(--primary-color);
}

.article-text {
    line-height: 1.8;
    color: var(--text-medium);
    font-size: 1rem;
}

.article-text h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-size: 1.5rem;
}

.article-text h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    font-size: 1.25rem;
}

.article-text p {
    margin-bottom: 1rem;
}

.article-text img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 1.5rem 0;
}

.article-text a {
    color: var(--primary-color);
    text-decoration: none;
}

.article-text a:hover {
    text-decoration: underline;
}

.article-text code {
    background: var(--background-light);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.article-text pre {
    background: var(--text-dark);
    color: white;
    padding: 1.5rem;
    border-radius: 10px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.article-text pre code {
    background: none;
    padding: 0;
}

.article-text blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    color: var(--text-light);
    font-style: italic;
}

.article-text ul,
.article-text ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.article-text li {
    margin-bottom: 0.5rem;
}

.article-tag-list {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.tag-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-right: 0.5rem;
}

.article-tag-list a {
    display: inline-block;
    background: var(--primary-light);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.875rem;
    text-decoration: none;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    transition: var(--transition-base);
}

.article-tag-list a:hover {
    background: var(--primary-color);
}

.article-nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.nav-link {
    padding: 1.5rem;
    background: var(--background-light);
    border-radius: 10px;
    text-decoration: none;
    transition: var(--transition-base);
}

.nav-link:hover {
    background: var(--primary-light);
    color: white;
}

.nav-link.prev {
    text-align: left;
}

.nav-link.next {
    text-align: right;
}

.nav-link.empty {
    background: transparent;
}

.nav-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.nav-link:hover .nav-label {
    color: rgba(255, 255, 255, 0.8);
}

.nav-title {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
}

.nav-link:hover .nav-title {
    color: white;
}

.page-detail {
    background: var(--background-light);
    min-height: 100vh;
    padding-top: 100px;
    padding-bottom: 4rem;
}

.page-content {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow-md);
    max-width: 900px;
    margin: 0 auto;
}

.page-header {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--text-dark);
}

.page-body {
    line-height: 1.8;
    color: var(--text-medium);
}

.error-page {
    background: var(--background-light);
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
}

.error-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.error-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-icon svg {
    width: 60px;
    height: 60px;
    color: white;
}

.error-content h1 {
    font-size: 6rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.error-content h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.error-content p {
    color: var(--text-light);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.secondary-button {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    text-decoration: none;
    display: inline-block;
}

.secondary-button:hover {
    background: var(--primary-color);
    color: white;
}

@media (max-width: 768px) {
    .hero-content,
    .about-content {
        grid-template-columns: 1fr;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .article-title {
        font-size: 1.75rem;
    }

    .article-nav-links {
        grid-template-columns: 1fr;
    }

    .error-content h1 {
        font-size: 4rem;
    }

    .article-box {
        padding: 1.5rem;
        border-radius: 15px;
    }

    .article-cover-wrap img {
        max-height: 250px;
    }

    .article-meta-info {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* ---------- 滚动状态（原先由 JS 写内联样式，改为类名驱动） ---------- */

header.is-scrolled {
    box-shadow: var(--shadow-md);
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
    z-index: 999;
    box-shadow: var(--shadow-md);
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.lst-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.lst-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 尊重系统的“减少动态效果”设置 */
@media (prefers-reduced-motion: reduce) {
    .lst-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ---------- 移动端导航 ---------- */

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 0;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
}

.nav-toggle-bar {
    display: block;
    width: 20px;
    height: 2px;
    margin: 0 auto;
    background: var(--primary-color);
    border-radius: 2px;
}

@media (max-width: 768px) {
    nav {
        flex-wrap: wrap;
    }

    .nav-toggle {
        display: flex;
        order: 2;
    }

    /* 只缩小导航栏里的按钮。不能直接写 .cta-button——
       首页 hero、404、评论、密码页都在复用这个类。 */
    nav > .cta-button,
    nav .cta-button {
        order: 3;
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    /* 默认收起；展开后占满整行竖排 */
    .nav-links {
        display: none;
        order: 4;
        flex-direction: column;
        gap: 0;
        width: 100%;
        margin-top: 0.75rem;
        border-top: 1px solid var(--border-color);
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-links li {
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links a::after {
        display: none;
    }
}

/* ---------- 文章作者链接 ---------- */

.article-meta-info a {
    color: inherit;
    text-decoration: none;
}

.article-meta-info a:hover {
    color: var(--primary-color);
}

/* ---------- 评论 ---------- */

.article-comments {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.comment-section-title {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 1.25rem;
}

.comment-login-tip {
    color: var(--text-light);
}

.comment-login-tip a {
    color: var(--primary-color);
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.comment-field {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    flex: 1;
}

.comment-field-label {
    font-size: 0.875rem;
    color: var(--text-medium);
    font-weight: 500;
}

.comment-field-label em {
    color: #DC2626;
    font-style: normal;
}

.comment-field-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"] {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: inherit;
    font-size: 0.9375rem;
    color: var(--text-dark);
    background: var(--background-white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: var(--transition-base);
}

.comment-form textarea:focus,
.comment-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}

.comment-form textarea {
    resize: vertical;
    min-height: 110px;
}

.comment-captcha {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.comment-captcha .captcha {
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.comment-captcha .captcha_input {
    width: 120px;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
}

.comment-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.comment-actions button {
    font-family: inherit;
    font-size: 0.9375rem;
}

.comment-list-wrap {
    margin-top: 2.5rem;
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.comment-item {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--background-light);
    border-radius: 12px;
}

.comment-item.comment-child {
    margin-left: 2.5rem;
    background: var(--background-white);
    border: 1px solid var(--border-color);
}

.comment-avatar img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.comment-body {
    flex: 1;
    min-width: 0;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.comment-author {
    color: var(--text-dark);
    font-size: 0.9375rem;
}

.comment-date {
    color: var(--text-light);
    font-size: 0.8125rem;
}

.comment-content {
    color: var(--text-medium);
    line-height: 1.7;
    font-size: 0.9375rem;
    word-wrap: break-word;
}

.comment-content img {
    max-width: 100%;
    height: auto;
}

.comment-reply-btn {
    margin-top: 0.5rem;
    padding: 0;
    background: none;
    border: none;
    color: var(--primary-color);
    font-family: inherit;
    font-size: 0.875rem;
    cursor: pointer;
}

.comment-reply-btn:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .comment-item.comment-child {
        margin-left: 1rem;
    }

    .comment-field-row {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ---------- 加密文章密码页 ---------- */

.pw-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--background-light);
    padding: 2rem 0;
}

.pw-card {
    max-width: 460px;
    margin: 0 auto;
    padding: 2.5rem;
    background: var(--background-white);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    text-align: center;
}

.pw-card h1 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.pw-card p {
    color: var(--text-light);
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
}

.pw-field {
    display: flex;
    gap: 0.75rem;
}

.pw-field input {
    flex: 1;
    min-width: 0;
    padding: 0.75rem 1rem;
    font-family: inherit;
    font-size: 0.9375rem;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    transition: var(--transition-base);
}

.pw-field input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}

.pw-field button {
    font-family: inherit;
    white-space: nowrap;
}

.pw-back {
    display: inline-block;
    margin-top: 1.5rem;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.875rem;
}

.pw-back:hover {
    color: var(--primary-color);
}

/* 独立 404 页不含固定头部，无需为其留出顶部空间 */
.error-page.error-page-standalone {
    min-height: 100vh;
    padding-top: 0;
}

/* ---------- 首页分类区块 ---------- */

.sorts {
    padding: 5rem 0;
    background: var(--background-light);
}

.sorts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.sort-card {
    display: block;
    padding: 1.75rem;
    background: var(--background-white);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    transition: var(--transition-base);
}

.sort-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}

.sort-card h3 {
    font-size: 1.125rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.sort-card:hover h3 {
    color: var(--primary-color);
}

.sort-card-desc {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.sort-card-count {
    display: inline-block;
    font-size: 0.8125rem;
    color: var(--primary-color);
    font-weight: 500;
}

/* ---------- 站内搜索 ---------- */

.search-form {
    margin-bottom: 1.5rem;
}

/* 标签仅供读屏器识别，视觉上隐藏但不能用 display:none */
.search-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.search-field {
    display: flex;
    gap: 0.75rem;
}

.search-field input {
    flex: 1;
    min-width: 0;
    padding: 0.75rem 1.25rem;
    font-family: inherit;
    font-size: 0.9375rem;
    color: var(--text-dark);
    background: var(--background-white);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    transition: var(--transition-base);
}

.search-field input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}

.search-field button {
    font-family: inherit;
    white-space: nowrap;
    border: none;
    cursor: pointer;
}

/* ---------- 归档页分类切换条 ---------- */

.sort-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    margin-bottom: 2.5rem;
}

.sort-nav-item {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    background: var(--background-white);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-medium);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: var(--transition-base);
}

.sort-nav-item:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.sort-nav-item.is-active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.sort-nav-count {
    font-size: 0.75rem;
    opacity: 0.7;
}
