/* 
 * 前台样式表
 * Frontend CSS
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

.site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-content {
    flex: 1;
}

.site-header {
    background: #fff;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    width: 100%;
}

.site-nav {
    width: 100%;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .nav-container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .nav-container {
        padding: 0 2rem;
    }
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
}

.site-logo:hover {
    text-decoration: none;
}

.logo-icon {
    width: 2rem;
    height: 2rem;
    background: #2563eb;
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-letter {
    color: #fff;
    font-weight: bold;
    font-size: 1.125rem;
    line-height: 1;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
}

.site-logo .custom-logo-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-logo .custom-logo-link img,
.site-logo img.custom-logo {
    max-height: 2rem;
    max-width: 200px;
    height: auto;
    width: auto;
    object-fit: contain;
    display: block;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-logo .custom-logo-link + .logo-text {
    margin-left: 0;
}

.nav-menu-wrapper {
    display: none;
}

@media (min-width: 768px) {
    .nav-menu-wrapper {
        display: block;
    }
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-menu li {
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color 0.2s ease;
    display: block;
    padding: 0.5rem 0;
}

.nav-menu a:hover,
.nav-menu a:focus,
.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a {
    color: #2563eb;
    text-decoration: none;
}

.mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: #374151;
    line-height: 1;
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
    color: #2563eb;
    outline: none;
}

.mobile-menu-toggle svg {
    display: block;
    width: 1.5rem;
    height: 1.5rem;
}

.mobile-menu-toggle.active .menu-icon {
    display: none;
}

.mobile-menu-toggle.active .close-icon {
    display: block !important;
}

@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }
}

@media (max-width: 767px) {
    .nav-menu-wrapper.mobile-active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
        padding: 1rem;
    }

    .nav-menu-wrapper.mobile-active .nav-menu {
        flex-direction: column;
        gap: 0;
        align-items: stretch;
    }

    .nav-menu-wrapper.mobile-active .nav-menu li {
        border-bottom: 1px solid #e5e7eb;
    }

    .nav-menu-wrapper.mobile-active .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-menu-wrapper.mobile-active .nav-menu a {
        padding: 0.75rem 0;
        display: block;
    }
}

.header-spacer {
    height: 4rem;
}

.skip-link {
    position: absolute;
    left: -9999px;
    z-index: 999999;
}

.skip-link:focus {
    left: 6px;
    top: 7px;
    background: #000;
    color: #fff;
    padding: 8px 16px;
    text-decoration: none;
}

.site-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.homepage-main {
    min-height: calc(100vh - 4rem);
    padding-top: 0;
}

.entry-header {
    margin-bottom: 1rem;
}

.entry-title {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.entry-content {
    margin-bottom: 1.5rem;
}

.entry-footer {
    color: #666;
    font-size: 0.9rem;
    border-top: 1px solid #e0e0e0;
    padding-top: 1rem;
    margin-top: 1rem;
}

.widget-area {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 4px;
}

.widget {
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #0073aa;
}

.site-footer {
    background: #111827;
    color: #d1d5db;
    margin-top: 2rem;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 3rem 1rem;
}

@media (min-width: 640px) {
    .footer-container {
        padding: 3rem 1.5rem;
    }
}

@media (min-width: 1024px) {
    .footer-container {
        padding: 3rem 2rem;
    }
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-column {
    display: flex;
    flex-direction: column;
}

/* Logo区域 */
.footer-logo {
    margin-bottom: 1rem;
}

.footer-logo-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
}

.footer-logo-link:hover {
    text-decoration: none;
}

.footer-logo-icon {
    width: 2rem;
    height: 2rem;
    background: #2563eb;
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.footer-logo-letter {
    color: #fff;
    font-weight: bold;
    font-size: 1.125rem;
    line-height: 1;
}

.footer-logo-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
}

.footer-logo-link .custom-logo-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-logo-link .custom-logo-link img,
.footer-logo-link img.custom-logo {
    max-height: 2rem;
    max-width: 200px;
    height: auto;
    width: auto;
    object-fit: contain;
    display: block;
}

.footer-description {
    font-size: 0.875rem;
    color: #9ca3af;
    line-height: 1.5;
    margin: 0;
}

/* 页脚标题 */
.footer-title {
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem;
    margin-top: 0;
}

/* 页脚链接列表 */
.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links li {
    margin: 0;
    padding: 0;
}

.footer-links a {
    color: #d1d5db;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
    display: block;
}

.footer-links a:hover {
    color: #fff;
}

/* 社交媒体 */
.footer-social {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-social-link {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-social-link:hover {
    color: #fff;
}

.footer-social-link svg {
    display: block;
    width: 20px;
    height: 20px;
}

/* 版权信息 */
.footer-copyright {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    text-align: center;
    font-size: 0.875rem;
    color: #9ca3af;
}

.footer-copyright p {
    margin: 0;
}

/* ============================================
   首页样式
   ============================================ */

/* 容器 */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* Hero区域 */
.hero-section {
    background: linear-gradient(to bottom right, #eff6ff, #ffffff);
    padding: 5rem 0;
    display: flex;
    align-items: center;
}

.hero-content {
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    color: #111827;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

.hero-description {
    font-size: 1.25rem;
    color: #4b5563;
    margin-bottom: 2rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .hero-description {
        font-size: 1.5rem;
    }
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #2563eb;
    color: #fff;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.btn svg {
    margin-left: 0.5rem;
}

/* 功能区域 */
.features-section {
    padding: 4rem 0;
    background: #fff;
}

.section-title {
    font-size: 1.875rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 3rem;
    color: #111827;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.feature-card {
    text-align: center;
    padding: 1.5rem;
    border-radius: 0.5rem;
    transition: box-shadow 0.3s;
}

.feature-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.feature-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.feature-icon-blue {
    background: #dbeafe;
    color: #2563eb;
}

.feature-icon-green {
    background: #dcfce7;
    color: #16a34a;
}

.feature-icon-orange {
    background: #fed7aa;
    color: #ea580c;
}

.feature-icon-sky {
    background: #e0f2fe;
    color: #0284c7;
}

.feature-icon-purple {
    background: #f3e8ff;
    color: #9333ea;
}

.feature-icon-red {
    background: #fee2e2;
    color: #dc2626;
}

.feature-icon-yellow {
    background: #fef9c3;
    color: #ca8a04;
}

.feature-icon-teal {
    background: #ccfbf1;
    color: #0d9488;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #111827;
}

.feature-description {
    color: #4b5563;
    font-size: 0.9375rem;
}

.features-detail-section {
    padding: 4rem 0;
    background: #fff;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title-large {
    font-size: 2.25rem;
    font-weight: bold;
    color: #111827;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .section-title-large {
        font-size: 3rem;
    }
}

.section-description {
    font-size: 1.25rem;
    color: #4b5563;
    max-width: 48rem;
    margin: 0 auto;
}

.features-detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .features-detail-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features-detail-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-detail-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s;
}

.feature-detail-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.feature-detail-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.feature-detail-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #111827;
}

.feature-detail-description {
    color: #4b5563;
    line-height: 1.6;
    font-size: 0.9375rem;
}

.stats-section {
    margin-top: 4rem;
    background: linear-gradient(to bottom right, #eff6ff, #ffffff);
    padding: 2rem;
    border-radius: 0.5rem;
}

@media (min-width: 768px) {
    .stats-section {
        padding: 3rem;
    }
}

.stats-content {
    max-width: 48rem;
    margin: 0 auto;
    text-align: center;
}

.stats-title {
    font-size: 1.875rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #111827;
}

.stats-description {
    font-size: 1.125rem;
    color: #4b5563;
    margin-bottom: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.25rem;
    font-weight: bold;
    color: #2563eb;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #4b5563;
    font-size: 0.9375rem;
}

.news-section {
    padding: 4rem 0;
    background: #f9fafb;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
    flex-wrap: nowrap;
}

.news-header .section-title {
    flex: 1;
    margin: 0;
    min-width: 0;
    text-align: left;
}

.news-more-link {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.news-more-link:hover {
    color: #1d4ed8;
}

.news-more-link svg {
    margin-left: 0.25rem;
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.news-card {
    background: #fff;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s;
    text-decoration: none;
    display: block;
    color: inherit;
}

.news-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.news-image-wrapper {
    aspect-ratio: 16 / 9;
    background: #e5e7eb;
    position: relative;
    overflow: hidden;
}

.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content {
    padding: 1.5rem;
    padding-bottom: 2rem;
    min-height: 10rem; 
    display: flex;
    flex-direction: column;
}

.news-meta {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
    flex-shrink: 0; 
}

.news-meta-separator {
    margin: 0 0.5rem;
}

.news-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
    color: #111827;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
    flex-shrink: 0; 
}

.news-excerpt {
    color: #4b5563;
    font-size: 0.875rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
    flex: 1; 
}

.no-posts {
    text-align: center;
    color: #6b7280;
    padding: 2rem;
}



.download-page-main {
    padding: 4rem 0;
    background: #fff;
}

.download-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .download-container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .download-container {
        padding: 0 2rem;
    }
}

.download-header {
    text-align: center;
    margin-bottom: 3rem;
}

.download-title {
    font-size: 2.25rem;
    font-weight: bold;
    color: #111827;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .download-title {
        font-size: 3rem;
    }
}

.download-subtitle {
    font-size: 1.25rem;
    color: #4b5563;
    max-width: 48rem;
    margin: 0 auto;
}

.platform-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.platform-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    border: 2px solid #e5e7eb;
    background: #fff;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.platform-btn:hover {
    border-color: #d1d5db;
}

.platform-btn.active {
    border-color: #2563eb;
    background: #eff6ff;
    color: #2563eb;
}

.platform-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.platform-icon svg {
    width: 48px;
    height: 48px;
}

.platform-info {
    display: flex;
    flex-direction: column;
}

.platform-name {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.platform-desc {
    font-size: 0.875rem;
    opacity: 0.75;
}

.download-card-wrapper {
    margin-bottom: 4rem;
}

.download-card {
    background: #fff;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    max-width: 42rem;
    margin: 0 auto;
    text-align: center;
}

.download-card-icon {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    color: #2563eb;
}

.download-card-icon svg {
    width: 48px;
    height: 48px;
}

.download-card-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #111827;
    margin-bottom: 0.5rem;
}

.download-card-desc {
    color: #4b5563;
    margin-bottom: 1.5rem;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    background: #2563eb;
    color: #fff;
    font-weight: 600;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: background-color 0.2s;
}

.download-btn:hover {
    background: #1d4ed8;
    color: #fff;
    text-decoration: none;
}

.download-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 4rem;
}

@media (min-width: 768px) {
    .download-features {
        grid-template-columns: repeat(3, 1fr);
    }
}

.download-feature-item {
    text-align: center;
    padding: 1.5rem;
}

.download-feature-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.download-feature-icon-blue {
    background: #dbeafe;
    color: #2563eb;
}

.download-feature-icon-green {
    background: #dcfce7;
    color: #16a34a;
}

.download-feature-icon-orange {
    background: #fed7aa;
    color: #ea580c;
}

.download-feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

.download-feature-desc {
    color: #4b5563;
    font-size: 0.9375rem;
}

/* ============================================
   ============================================ */

.about-page-main {
    padding: 4rem 0;
    background: #fff;
}

.about-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .about-container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .about-container {
        padding: 0 2rem;
    }
}

.about-header {
    text-align: center;
    margin-bottom: 4rem;
}

.about-title {
    font-size: 2.25rem;
    font-weight: bold;
    color: #111827;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .about-title {
        font-size: 3rem;
    }
}

.about-subtitle {
    font-size: 1.25rem;
    color: #4b5563;
    max-width: 48rem;
    margin: 0 auto;
}

.about-story-section {
    margin-bottom: 4rem;
}

.about-story-card {
    background: linear-gradient(to bottom right, #eff6ff, #ffffff);
    padding: 2rem;
    border-radius: 0.5rem;
}

@media (min-width: 768px) {
    .about-story-card {
        padding: 3rem;
    }
}

.about-story-title {
    font-size: 1.875rem;
    font-weight: bold;
    color: #111827;
    margin-bottom: 1.5rem;
}

.about-story-content {
    color: #4b5563;
    font-size: 1.125rem;
    line-height: 1.8;
    max-width: none;
}

.about-story-content p {
    margin-bottom: 1rem;
}

.about-story-content p:last-child {
    margin-bottom: 0;
}

.about-story-content .mt-4 {
    margin-top: 1rem;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .about-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .about-features {
        grid-template-columns: repeat(4, 1fr);
    }
}

.about-feature-item {
    text-align: center;
    padding: 1.5rem;
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.about-feature-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.about-feature-icon-blue {
    background: #dbeafe;
    color: #2563eb;
}

.about-feature-icon-green {
    background: #dcfce7;
    color: #16a34a;
}

.about-feature-icon-orange {
    background: #fed7aa;
    color: #ea580c;
}

.about-feature-icon-purple {
    background: #f3e8ff;
    color: #9333ea;
}

.about-feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

.about-feature-desc {
    color: #4b5563;
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* CTA区域 */
.about-cta {
    background: linear-gradient(to right, #2563eb, #1d4ed8);
    color: #fff;
    padding: 2rem;
    border-radius: 0.5rem;
    text-align: center;
}

@media (min-width: 768px) {
    .about-cta {
        padding: 3rem;
    }
}

.about-cta-title {
    font-size: 1.875rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #fff;
}

.about-cta-desc {
    font-size: 1.125rem;
    opacity: 0.9;
    margin: 0;
}

/* ============================================
   联系我们页面样式
   ============================================ */

.contact-page-main {
    padding: 4rem 0;
    background: #fff;
}

.contact-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .contact-container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .contact-container {
        padding: 0 2rem;
    }
}

/* 页面头部 */
.contact-header {
    text-align: center;
    margin-bottom: 4rem;
}

.contact-title {
    font-size: 2.25rem;
    font-weight: bold;
    color: #111827;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .contact-title {
        font-size: 3rem;
    }
}

.contact-subtitle {
    font-size: 1.25rem;
    color: #4b5563;
    max-width: 48rem;
    margin: 0 auto;
}

/* 联系信息网格 */
.contact-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .contact-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.contact-info-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s;
}

.contact-info-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.contact-info-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.contact-info-icon-blue {
    background: #dbeafe;
    color: #2563eb;
}

.contact-info-icon-green {
    background: #dcfce7;
    color: #16a34a;
}

.contact-info-icon-orange {
    background: #fed7aa;
    color: #ea580c;
}

.contact-info-icon-purple {
    background: #f3e8ff;
    color: #9333ea;
}

.contact-info-icon svg {
    width: 28px;
    height: 28px;
}

.contact-info-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

.contact-info-main {
    font-size: 1.125rem;
    color: #111827;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.contact-info-desc {
    font-size: 0.875rem;
    color: #4b5563;
    margin: 0;
}

/* 常见问题区域 */
.contact-faq-section {
    background: linear-gradient(to bottom right, #eff6ff, #ffffff);
    padding: 2rem;
    border-radius: 0.5rem;
}

@media (min-width: 768px) {
    .contact-faq-section {
        padding: 3rem;
    }
}

.contact-faq-wrapper {
    max-width: 48rem;
    margin: 0 auto;
}

.contact-faq-title {
    font-size: 1.875rem;
    font-weight: bold;
    color: #111827;
    margin-bottom: 1rem;
    text-align: center;
}

.contact-faq-subtitle {
    text-align: center;
    color: #4b5563;
    margin-bottom: 2rem;
}

.contact-faq-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-faq-item {
    background: #fff;
    padding: 1.5rem;
    border-radius: 0.5rem;
}

.contact-faq-question {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

.contact-faq-answer {
    color: #4b5563;
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   新闻列表页面样式
   ============================================ */

.news-archive-main {
    padding: 4rem 0;
    background: #fff;
}

.news-archive-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .news-archive-container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .news-archive-container {
        padding: 0 2rem;
    }
}

/* 页面头部 */
.news-archive-header {
    text-align: center;
    margin-bottom: 3rem;
}

.news-archive-title {
    font-size: 2.25rem;
    font-weight: bold;
    color: #111827;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .news-archive-title {
        font-size: 3rem;
    }
}

.news-archive-subtitle {
    font-size: 1.25rem;
    color: #4b5563;
    margin: 0;
}

/* 文章列表 */
.news-archive-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.news-archive-item {
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.news-archive-item:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.news-archive-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

@media (min-width: 768px) {
    .news-archive-link {
        flex-direction: row;
    }
}

.news-archive-link:hover {
    text-decoration: none;
    color: inherit;
}

/* 文章缩略图 */
.news-archive-image-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #e5e7eb;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .news-archive-image-wrapper {
        width: 33.333333%;
        aspect-ratio: auto;
        min-height: 200px;
    }
}

.news-archive-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    top: 0;
    left: 0;
}

/* 文章内容 */
.news-archive-content {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    min-width: 0; /* 确保flex子元素可以正确截断 */
    width: 100%; /* 确保有宽度 */
    overflow: hidden; /* 防止内容溢出 */
}

/* 文章元信息 */
.news-archive-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.75rem;
}

.news-archive-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.news-archive-meta-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.news-archive-category {
    padding: 0.25rem 0.75rem;
    background: #dbeafe;
    color: #2563eb;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* 文章标题 */
.news-archive-item-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #111827;
    margin-bottom: 0.5rem;
    transition: color 0.2s;
}

.news-archive-link:hover .news-archive-item-title {
    color: #2563eb;
}

/* 文章摘要 */
.news-archive-excerpt {
    color: #4b5563;
    margin: 0 0 0.75rem 0;
    padding: 0;
    font-size: 0.9375rem;
    line-height: 1.6;
    /* 多行截断样式 - 关键属性，必须按顺序且不能有其他display覆盖 */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    word-wrap: break-word;
    /* 确保2行显示 - 使用精确的高度限制 */
    /* 计算：font-size 0.9375rem (15px) * line-height 1.6 * 2行 = 48px = 3rem */
    max-height: 3rem;
    /* 确保样式生效 */
    box-sizing: border-box;
    /* 确保在flex容器中正确显示 */
    flex-shrink: 0;
    /* 确保文字正确换行 */
    white-space: normal;
    /* 确保有宽度 */
    width: 100%;
}

/* 文章标签 */
.news-archive-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.news-archive-tag {
    font-size: 0.75rem;
    color: #6b7280;
    border: 1px solid #d1d5db;
    border-radius: 0.25rem;
    padding: 0.25rem 0.5rem;
}

/* 分页导航 */
.news-archive-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 3rem;
}

.news-archive-pagination ul.page-numbers {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.news-archive-pagination ul.page-numbers li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.news-archive-pagination ul.page-numbers a,
.news-archive-pagination ul.page-numbers span {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #d1d5db;
    text-decoration: none;
    color: #374151;
    transition: all 0.2s;
    min-width: 2.5rem;
    font-size: 0.875rem;
}

.news-archive-pagination ul.page-numbers a:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    color: #111827;
}

.news-archive-pagination ul.page-numbers span.current {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

.news-archive-pagination ul.page-numbers a.prev,
.news-archive-pagination ul.page-numbers a.next {
    padding: 0.5rem 0.75rem;
}

.news-archive-pagination ul.page-numbers svg {
    width: 20px;
    height: 20px;
    display: block;
}

.news-archive-pagination .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.news-archive-empty {
    text-align: center;
    color: #6b7280;
    padding: 3rem;
    font-size: 1.125rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .site-title {
        font-size: 1.5rem;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.125rem;
    }
    
    .news-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0.75rem;
    }
    
    .news-header .section-title {
        font-size: 1.5rem;
        margin: 0;
        flex: 1;
        min-width: 0;
        text-align: left;
    }
    
    .news-more-link {
        font-size: 0.875rem;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .news-more-link svg {
        width: 16px;
        height: 16px;
    }
}



.single-post-main {
    padding: 4rem 0;
    background-color: #ffffff;
}

.single-post-container {
    max-width: 56rem; /* max-w-4xl */
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .single-post-container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .single-post-container {
        padding: 0 2rem;
    }
}


.single-post-nav {
    margin-bottom: 2rem;
}

.single-post-back-link {
    display: inline-flex;
    align-items: center;
    color: #2563eb;
    font-weight: 500;
    transition: color 0.2s;
    text-decoration: none;
    cursor: pointer;
}

.single-post-back-link:hover {
    color: #1d4ed8;
}

.single-post-back-link .lucide-arrow-left {
    margin-right: 0.5rem;
    width: 20px;
    height: 20px;
}


.single-post-header {
    margin-bottom: 2rem;
}

.single-post-category {
    margin-bottom: 1rem;
}

.single-post-category-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: #dbeafe;
    color: #2563eb;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.single-post-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .single-post-title {
        font-size: 3rem;
    }
}

.single-post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    color: #4b5563;
    font-size: 0.9375rem;
}

.single-post-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.single-post-meta-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.single-post-meta-item time {
    color: inherit;
}


.single-post-featured-image {
    margin-bottom: 2rem;
    border-radius: 0.5rem;
    overflow: hidden;
}

.single-post-image {
    width: 100%;
    height: auto;
    display: block;
}


.single-post-content.prose {
    margin-bottom: 2rem;
    max-width: none;
    color: #374151;
    line-height: 1.75;
    font-size: 1.125rem;
}

.single-post-content.prose h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.single-post-content.prose h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.single-post-content.prose p {
    margin-bottom: 1rem;
    color: #374151;
    line-height: 1.75;
}

.single-post-content.prose ul,
.single-post-content.prose ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    color: #374151;
    line-height: 1.75;
}

.single-post-content.prose ul {
    list-style-type: disc;
}

.single-post-content.prose ol {
    list-style-type: decimal;
}

.single-post-content.prose li {
    margin-bottom: 0.5rem;
}

.single-post-content.prose code {
    background-color: #f3f4f6;
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
    font-size: 0.875em;
    color: #111827;
}

.single-post-content.prose pre {
    background-color: #f3f4f6;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin-bottom: 1rem;
}

.single-post-content.prose pre code {
    background-color: transparent;
    padding: 0;
    font-size: 0.875rem;
}

.single-post-content.prose blockquote {
    border-left: 4px solid #3b82f6;
    padding-left: 1rem;
    margin: 1rem 0;
    color: #4b5563;
    font-style: italic;
}

.single-post-content.prose table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    border: 1px solid #d1d5db;
}

.single-post-content.prose table thead {
    background-color: #f3f4f6;
}

.single-post-content.prose table th,
.single-post-content.prose table td {
    border: 1px solid #d1d5db;
    padding: 0.5rem;
    text-align: left;
    color: #374151;
    line-height: 1.75;
}

.single-post-content.prose table th {
    font-weight: 600;
    color: #111827;
}

.single-post-content.prose a {
    color: #2563eb;
    text-decoration: underline;
    transition: color 0.2s;
}

.single-post-content.prose a:hover {
    color: #1d4ed8;
}

.single-post-content.prose img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

.single-post-content.prose dl {
    margin-bottom: 1rem;
    color: #374151;
    line-height: 1.75;
}

.single-post-content.prose dt {
    font-weight: 600;
    color: #111827;
    margin-top: 0.75rem;
}

.single-post-content.prose dt:first-child {
    margin-top: 0;
}

.single-post-content.prose dd {
    margin-left: 1.5rem;
    margin-bottom: 0.5rem;
}


.single-post-content.prose div[class*="bg-blue-50"],
.single-post-content.prose div[class*="bg-yellow-50"] {
    padding: 1rem;
    margin: 1rem 0;
    border-left: 4px solid;
    border-radius: 0.25rem;
}

.single-post-content.prose div[class*="bg-blue-50"] {
    background-color: #eff6ff;
    border-left-color: #3b82f6;
}

.single-post-content.prose div[class*="bg-yellow-50"] {
    background-color: #fefce8;
    border-left-color: #eab308;
}

.single-post-content.prose div[class*="bg-blue-50"] strong,
.single-post-content.prose div[class*="bg-yellow-50"] strong {
    display: block;
    margin-bottom: 0.5rem;
    color: #111827;
}


.single-post-tags {
    border-top: 1px solid #e5e7eb;
    padding-top: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.single-post-tags-icon {
    color: #9ca3af;
    margin-top: 0.25rem;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.single-post-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.single-post-tag-item {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: #f3f4f6;
    color: #374151;
    border-radius: 9999px;
    font-size: 0.875rem;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}

.single-post-tag-item:hover {
    background-color: #e5e7eb;
    color: #111827;
}


@media (max-width: 768px) {
    .single-post-main {
        padding: 2rem 0;
    }
    
    .single-post-title {
        font-size: 2rem;
    }
    
    .single-post-content.prose {
        font-size: 1rem;
    }
    
    .single-post-content.prose h2 {
        font-size: 1.25rem;
    }
    
    .single-post-content.prose h3 {
        font-size: 1.125rem;
    }
    
    .single-post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}


.tag-archive-header {
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 1rem;
    color: #fff;
}

.tag-header-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.tag-icon-wrapper {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.tag-icon {
    width: 32px;
    height: 32px;
    color: #fff;
}

.tag-header-text {
    flex: 1;
}

.tag-title {
    color: #fff;
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.tag-description {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
}


.tag-related-posts {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid #e5e7eb;
}

.related-posts-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1.5rem;
    text-align: left;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.related-post-item {
    background: #fff;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.related-post-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.related-post-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.related-post-image-wrapper {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #f3f4f6;
}

.related-post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.related-post-item:hover .related-post-image {
    transform: scale(1.05);
}

.related-post-content {
    padding: 1rem;
}

.related-post-title {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.related-post-meta {
    font-size: 0.875rem;
    color: #6b7280;
}

.related-post-meta time {
    color: inherit;
}


@media (max-width: 768px) {
    .tag-archive-header {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .tag-header-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .tag-icon-wrapper {
        width: 56px;
        height: 56px;
    }
    
    .tag-icon {
        width: 28px;
        height: 28px;
    }
    
    .tag-title {
        font-size: 1.5rem;
    }
    
    .tag-description {
        font-size: 0.9375rem;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .related-posts-title {
        font-size: 1.25rem;
    }
}
