/* ==================== 极简主义风格模板 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #374151;
    --primary-dark: #1f2937;
    --primary-light: #6b7280;
    --accent-color: #111827;
    --text-color: #111827;
    --text-gray: #6b7280;
    --text-light: #9ca3af;
    --bg-color: #ffffff;
    --bg-gray: #f9fafb;
    --bg-light: #f3f4f6;
    --border-color: #e5e7eb;
    --border-light: #f3f4f6;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-sm: 2px;
    --radius-md: 4px;
    --radius-lg: 6px;
    --radius-xl: 8px;
    --transition: all 0.2s ease-in-out;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 400;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ==================== 导航栏 ==================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    font-size: 20px;
    font-weight: 600;
    gap: 8px;
    letter-spacing: -0.5px;
}

.logo-icon {
    font-size: 24px;
    opacity: 0.9;
}

.logo-text {
    color: var(--text-color);
    font-weight: 500;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
}

.nav-menu a {
    display: block;
    padding: 8px 0;
    margin: 0 20px;
    text-decoration: none;
    color: var(--text-gray);
    font-weight: 400;
    transition: var(--transition);
    position: relative;
    font-size: 15px;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--text-color);
    transition: width 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--text-color);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 8px;
}

.nav-toggle span {
    width: 22px;
    height: 1.5px;
    background: var(--text-color);
    transition: var(--transition);
}

/* ==================== Hero Banner ==================== */
.hero {
    padding: 140px 0 120px;
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-light);
}

.hero-content {
    text-align: left;
    max-width: 700px;
}

.hero-title {
    font-size: 52px;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--text-color);
    letter-spacing: -1.5px;
}

.hero-title strong {
    font-weight: 600;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 40px;
    line-height: 1.8;
    max-width: 520px;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ==================== 按钮 ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: var(--text-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--text-color);
    border-color: var(--border-color);
}

.btn-outline:hover {
    border-color: var(--text-color);
    background: var(--bg-gray);
}

.btn-large {
    padding: 14px 36px;
    font-size: 16px;
}

.btn-white {
    background: white;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-white:hover {
    background: var(--bg-gray);
}

/* ==================== 通用区块 ==================== */
.section {
    padding: 100px 0;
}

.section-gray {
    background: var(--bg-gray);
}

.section-header {
    text-align: left;
    margin-bottom: 60px;
    max-width: 600px;
}

.section-title {
    font-size: 32px;
    font-weight: 300;
    margin-bottom: 16px;
    color: var(--text-color);
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.8;
    font-weight: 300;
}

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

/* ==================== 特色服务 ==================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.feature-card {
    background: white;
    padding: 48px 32px;
    text-align: left;
    transition: var(--transition);
    border-right: 1px solid var(--border-color);
}

.feature-card:first-child {
    border-left: 1px solid var(--border-color);
}

.feature-card:hover {
    background: var(--bg-gray);
}

.feature-icon {
    font-size: 32px;
    margin-bottom: 20px;
    display: inline-block;
    opacity: 0.8;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 12px;
    color: var(--text-color);
    letter-spacing: -0.3px;
}

.feature-card p {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.7;
    font-weight: 300;
}

/* ==================== 文章卡片 ==================== */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid var(--border-color);
}

.article-card {
    background: white;
    transition: var(--transition);
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.article-card:nth-child(3n) {
    border-right: none;
}

.article-card:hover {
    background: var(--bg-gray);
}

.article-icon {
    font-size: 36px;
    padding: 40px 32px 20px;
    opacity: 0.6;
}

.article-content {
    padding: 0 32px 32px;
}

.article-title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 12px;
    line-height: 1.5;
    letter-spacing: -0.3px;
}

.article-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.article-title a:hover {
    color: var(--primary-light);
}

.article-meta {
    display: flex;
    gap: 20px;
    color: var(--text-light);
    font-size: 13px;
    margin-bottom: 12px;
    font-weight: 300;
}

.article-summary {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 300;
}

.loading {
    text-align: center;
    padding: 60px;
    color: var(--text-light);
    grid-column: 1 / -1;
    font-weight: 300;
}

/* ==================== 数据统计 ==================== */
.stats-section {
    padding: 80px 0;
    background: var(--text-color);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    text-align: center;
}

.stat-item {
    padding: 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item:last-child {
    border-right: none;
}

.stat-number {
    font-size: 42px;
    font-weight: 300;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.7;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==================== CTA ==================== */
.cta-section {
    padding: 100px 0;
    background: var(--bg-gray);
    text-align: left;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.cta-content {
    max-width: 600px;
}

.cta-content h2 {
    font-size: 32px;
    font-weight: 300;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.cta-content p {
    font-size: 16px;
    margin-bottom: 32px;
    color: var(--text-gray);
    font-weight: 300;
    line-height: 1.8;
}

/* ==================== 页脚 ==================== */
.footer {
    background: var(--bg-color);
    color: var(--text-gray);
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 50px;
}

.footer-col h4 {
    color: var(--text-color);
    font-size: 14px;
    margin-bottom: 20px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col p {
    line-height: 1.8;
    font-size: 14px;
    font-weight: 300;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
    font-size: 14px;
}

.footer-col a {
    color: var(--text-gray);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 300;
}

.footer-col a:hover {
    color: var(--text-color);
}

.friend-links {
    padding-top: 30px;
    border-top: 1px solid var(--border-light);
    margin-bottom: 30px;
}

.friend-links h4 {
    color: var(--text-color);
    font-size: 13px;
    margin-bottom: 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.friend-links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.friend-links-list a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 13px;
    transition: var(--transition);
    font-weight: 300;
}

.friend-links-list a:hover {
    color: var(--text-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-light);
    font-size: 13px;
    color: var(--text-light);
    font-weight: 300;
}

/* ==================== 返回顶部 ==================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--text-color);
    color: white;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ==================== 响应式 ==================== */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .feature-card {
        border-right: 1px solid var(--border-color);
        border-bottom: 1px solid var(--border-color);
    }
    
    .feature-card:nth-child(odd) {
        border-left: 1px solid var(--border-color);
    }
    
    .feature-card:nth-child(3),
    .feature-card:nth-child(4) {
        border-bottom: 1px solid var(--border-color);
    }
    
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .article-card:nth-child(3n) {
        border-right: 1px solid var(--border-color);
    }
    
    .article-card:nth-child(2n) {
        border-right: none;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
    }
    
    .stat-item:nth-child(2) {
        border-right: none;
    }
    
    .stat-item:nth-child(3) {
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .stat-item:nth-child(4) {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 16px 0;
        border-bottom: 1px solid var(--border-color);
        gap: 0;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu a {
        padding: 12px 24px;
        margin: 0;
    }
    
    .nav-menu a::after {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero {
        padding: 80px 0 60px;
    }
    
    .hero-title {
        font-size: 36px;
        letter-spacing: -1px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 26px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card {
        border-right: 1px solid var(--border-color);
        border-left: 1px solid var(--border-color);
        border-bottom: 1px solid var(--border-color);
    }
    
    .feature-card:last-child {
        border-bottom: 1px solid var(--border-color);
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .article-card {
        border-right: 1px solid var(--border-color);
        border-left: 1px solid var(--border-color);
    }
    
    .article-card:nth-child(2n) {
        border-right: 1px solid var(--border-color);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
    }
    
    .stat-number {
        font-size: 32px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .cta-content h2 {
        font-size: 26px;
    }
}

/* ==================== 内页样式 ==================== */
.page-header {
    padding: 80px 0 60px;
    background: var(--bg-color);
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.page-header h1 {
    font-size: 40px;
    font-weight: 300;
    margin-bottom: 12px;
    color: var(--text-color);
    letter-spacing: -1px;
}

.page-header p {
    font-size: 16px;
    color: var(--text-gray);
    font-weight: 300;
}

.breadcrumb {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-light);
    font-weight: 300;
}

.breadcrumb a {
    color: var(--text-gray);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--text-color);
}

/* 文章列表页 */
.articles-list-section {
    padding: 60px 0;
}

.articles-filters {
    display: flex;
    gap: 0;
    margin-bottom: 40px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border-color);
}

.filter-btn {
    padding: 12px 0;
    margin-right: 32px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-gray);
    transition: var(--transition);
    font-family: inherit;
    font-weight: 400;
    position: relative;
}

.filter-btn::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--text-color);
    transition: width 0.2s ease;
}

.filter-btn:hover,
.filter-btn.active {
    color: var(--text-color);
}

.filter-btn:hover::after,
.filter-btn.active::after {
    width: 100%;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-top: 50px;
}

.page-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    background: white;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-gray);
    transition: var(--transition);
    text-decoration: none;
    margin-right: -1px;
    font-weight: 300;
}

.page-btn:hover,
.page-btn.active {
    background: var(--text-color);
    color: white;
    border-color: var(--text-color);
    z-index: 1;
}

/* 文章详情页 */
.article-detail-section {
    padding: 60px 0;
}

.article-detail {
    max-width: 720px;
    margin: 0 auto;
}

.article-detail-header {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.article-detail-title {
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 20px;
    line-height: 1.4;
    letter-spacing: -0.5px;
}

.article-detail-meta {
    display: flex;
    gap: 24px;
    color: var(--text-light);
    font-size: 14px;
    font-weight: 300;
}

.article-detail-content {
    font-size: 16px;
    line-height: 2;
    color: var(--text-color);
    font-weight: 400;
}

.article-detail-content h2 {
    font-size: 24px;
    font-weight: 500;
    margin: 40px 0 20px;
    color: var(--text-color);
    letter-spacing: -0.3px;
}

.article-detail-content h3 {
    font-size: 20px;
    font-weight: 500;
    margin: 32px 0 16px;
}

.article-detail-content p {
    margin-bottom: 20px;
    color: var(--text-gray);
}

.article-detail-content img {
    max-width: 100%;
    border-radius: var(--radius-sm);
    margin: 24px 0;
}

/* 关于我们页 */
.about-section {
    padding: 80px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.about-text h2 {
    font-size: 28px;
    font-weight: 300;
    margin-bottom: 24px;
    color: var(--text-color);
    letter-spacing: -0.5px;
}

.about-text p {
    color: var(--text-gray);
    line-height: 2;
    margin-bottom: 20px;
    font-weight: 300;
    font-size: 15px;
}

.about-image {
    height: 400px;
    background: var(--bg-gray);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    opacity: 0.5;
}

.mission-vision {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid var(--border-color);
}

.mission-card,
.vision-card {
    padding: 0;
    background: transparent;
}

.mission-card h3,
.vision-card h3 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 16px;
    color: var(--text-color);
    letter-spacing: -0.3px;
}

.mission-card p,
.vision-card p {
    color: var(--text-gray);
    line-height: 2;
    font-weight: 300;
    font-size: 15px;
}

/* 联系我们页 */
.contact-section {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
}

.contact-info h2 {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 30px;
    color: var(--text-color);
    letter-spacing: -0.3px;
}

.contact-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    align-items: flex-start;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-light);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item-icon {
    font-size: 20px;
    width: 40px;
    height: 40px;
    background: var(--bg-gray);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 0.7;
}

.contact-item-content h4 {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 4px;
    color: var(--text-color);
}

.contact-item-content p {
    color: var(--text-gray);
    font-size: 14px;
    font-weight: 300;
}

.contact-form {
    background: white;
    padding: 0;
}

.form-group {
    margin-bottom: 28px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 400;
    color: var(--text-color);
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 0;
    border: none;
    border-bottom: 1px solid var(--border-color);
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition);
    background: transparent;
    color: var(--text-color);
    font-weight: 300;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: var(--text-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .mission-vision {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-top: 60px;
        padding-top: 40px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .article-detail-title {
        font-size: 24px;
    }
    
    .about-image {
        height: 300px;
    }
    
    .page-header h1 {
        font-size: 32px;
    }
}


/* ==================== 修复：面包屑样式 ==================== */
.breadcrumb {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-light);
    position: relative;
    z-index: 1;
}

.breadcrumb ol {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb li::after {
    content: '/';
    color: var(--text-light);
    margin-left: 8px;
}

.breadcrumb li:last-child::after {
    display: none;
}

.breadcrumb a {
    color: var(--text-gray);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

/* ==================== 修复：筛选按钮样式 ==================== */
.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    gap: 20px;
    flex-wrap: wrap;
}

.category-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.category-tabs .tab {
    padding: 8px 20px;
    border: 1px solid var(--border-color);
    background: var(--bg-white, white);
    border-radius: var(--radius-md, 8px);
    cursor: pointer;
    font-size: 14px;
    color: var(--text-gray);
    transition: var(--transition, all 0.3s ease);
    font-family: inherit;
}

.category-tabs .tab:hover,
.category-tabs .tab.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.search-box {
    display: flex;
    gap: 8px;
}

.search-box input {
    padding: 8px 14px;
    border: 1px solid var(--border-color);
    background: var(--bg-white, white);
    border-radius: var(--radius-md, 8px);
    font-size: 14px;
    color: var(--text-color);
    font-family: inherit;
    outline: none;
    transition: var(--transition, all 0.3s ease);
}

.search-box input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.search-box button {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    background: var(--bg-white, white);
    border-radius: var(--radius-md, 8px);
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition, all 0.3s ease);
}

.search-box button:hover {
    border-color: var(--primary-color);
    background: rgba(139, 92, 246, 0.1);
}
