/* ═══════════════════════════════════════════
   晋元网络 - 主样式表
   白色正式风格主题
   ═══════════════════════════════════════════ */

/* ── Reset & Base ── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8FAFC;
    --bg-card: #FFFFFF;
    --bg-card-hover: #F1F5F9;
    --accent: #0066CC;
    --accent-light: #0052A3;
    --accent-bg: #EBF5FF;
    --green: #059669;
    --orange: #EA580C;
    --text-primary: #1E293B;
    --text-secondary: #475569;
    --text-muted: #64748B;
    --border: #E2E8F0;
    --shadow: rgba(0, 0, 0, 0.08);
    --shadow-lg: rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-secondary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-light);
}

/* ── 导航栏 ── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(241, 245, 249, 0.8);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    flex-shrink: 0;
    transition: all 0.3s;
}

.nav-brand:hover {
    opacity: 0.8;
}

.nav-menu {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* ── 右侧用户区域 ── */
.nav-user-area {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

/* 语言切换按钮 */
.lang-switch-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.lang-switch-btn:hover {
    background: var(--accent-bg);
    color: var(--accent);
    border-color: var(--accent);
}

.lang-switch-btn svg {
    flex-shrink: 0;
}

.brand-icon {
    color: #6366f1;
    font-size: 28px;
    filter: drop-shadow(0 2px 4px rgba(99, 102, 241, 0.2));
}

.brand-logo {
    height: 40px;
    width: auto;
}

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

.nav-link {
    color: #475569;
    font-size: 16px;
    font-weight: 500;
    position: relative;
    padding: 8px 0;
    text-decoration: none;
    transition: all 0.3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 100%);
    transition: width 0.3s;
    border-radius: 2px;
}

.nav-link:hover {
    color: #6366f1;
}

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

.nav-link.active {
    color: #6366f1;
    font-weight: 600;
}

.nav-cta {
    background: var(--accent);
    color: #FFFFFF !important;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    transition: var(--transition);
}

.nav-cta:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.25);
}

.lang-switcher {
    margin-left: 8px;
}

.lang-btn {
    background: var(--bg-secondary) !important;
    color: var(--text-secondary) !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    border: 1px solid var(--border) !important;
    transition: var(--transition);
}

.lang-btn:hover {
    background: var(--accent) !important;
    color: #fff !important;
    border-color: var(--accent) !important;
}

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

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-user-area .nav-link {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: var(--transition);
}

.nav-user-area .nav-link:hover {
    color: var(--accent);
    background: var(--accent-bg);
}

.nav-user-area .nav-cta {
    padding: 8px 20px;
    font-size: 14px;
}

.nav-user-area .lang-btn {
    padding: 6px 12px !important;
    font-size: 12px !important;
}

/* ── 用户下拉菜单 ── */
.user-dropdown {
    position: relative;
}

.user-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: transparent;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-trigger:hover {
    background: #f6f8fa;
    border-color: #0969da;
}

.user-icon {
    color: #0969da;
    flex-shrink: 0;
}

.user-email {
    font-size: 14px;
    font-weight: 400;
    color: #0969da;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-arrow {
    color: #0969da;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.user-dropdown:hover .user-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 180px;
    background: #fff;
    border: 1px solid #d0d7de;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 100;
    overflow: hidden;
}

.user-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #24292f;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.15s ease;
    border-bottom: 1px solid #f0f0f0;
}

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

.dropdown-item:hover {
    background: #f6f8fa;
    color: #0969da;
}

.dropdown-item svg {
    flex-shrink: 0;
    color: #57606a;
}

.dropdown-item:hover svg {
    color: #0969da;
}

.dropdown-logout:hover {
    background: #fff5f5;
    color: #cf222e;
}

.dropdown-logout:hover svg {
    color: #cf222e;
}

/* ── 移动端响应 ── */
@media (max-width: 768px) {
    .nav-user-area {
        display: none;
    }
    
    .nav-menu.active .nav-user-mobile {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding-top: 16px;
        border-top: 1px solid var(--border);
        margin-top: 16px;
    }
}

/* ── Hero 区域 ── */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 70px;
    background: linear-gradient(135deg, #F8FAFC 0%, #EBF5FF 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(0, 102, 204, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero-badge {
    display: inline-block;
    background: var(--accent-bg);
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 52px;
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--accent), #00A3FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: #FFFFFF;
}

.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.3);
}

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

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

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

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    background: var(--accent-bg);
    color: var(--accent);
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.section-title {
    font-size: 40px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.section-desc {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ── 服务卡片 ── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 32px 24px;
    transition: var(--transition);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px var(--shadow-lg);
    border-color: var(--accent);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: var(--accent-bg);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 18px;
}

.service-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
}

.service-card .learn-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    color: var(--accent);
    font-weight: 600;
    font-size: 14px;
}

.service-card .learn-more:hover {
    gap: 10px;
}

/* ── 数据统计 ── */
.stats-section {
    background: var(--bg-secondary);
    padding: 80px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 48px;
    font-weight: 900;
    color: var(--accent);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 16px;
    color: var(--text-muted);
}

/* ── AI优势 ── */
.ai-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.ai-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 28px;
    border-left: 4px solid var(--accent);
    transition: var(--transition);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
}

.ai-card:hover {
    transform: translateX(6px);
    box-shadow: 0 8px 24px var(--shadow);
}

.ai-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ai-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
}

/* ── 全球覆盖 ── */
.global-section {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

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

.global-card {
    background: var(--bg-card);
    border-radius: 10px;
    padding: 22px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    transition: var(--transition);
    border: 1px solid var(--border);
}

.global-card:hover {
    box-shadow: 0 8px 20px var(--shadow);
    transform: translateY(-4px);
}

.global-icon {
    width: 44px;
    height: 44px;
    background: var(--accent-bg);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.global-card h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.global-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ── 文章列表 ── */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.article-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border);
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px var(--shadow-lg);
}

.article-cover {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, var(--bg-secondary), var(--accent-bg));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--accent);
}

.article-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-body {
    padding: 22px;
}

.article-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.article-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.4;
}

.article-card h3 a {
    color: inherit;
}

.article-card h3 a:hover {
    color: var(--accent);
}

.article-excerpt {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 14px;
}

.article-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    background: var(--accent-bg);
    color: var(--accent);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.tag.active {
    background: var(--accent);
    color: #FFFFFF;
}

/* ── 分页 ── */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 50px;
}

.pagination a, .pagination span {
    padding: 10px 16px;
    border-radius: 6px;
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 14px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.pagination a:hover {
    background: var(--accent);
    color: #FFFFFF;
    border-color: var(--accent);
}

.pagination .active {
    background: var(--accent);
    color: #FFFFFF;
    border-color: var(--accent);
}

/* ── 表单 ── */
.form-group {
    margin-bottom: 24px;
}

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

.form-control {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 15px;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* ── 底部 ── */
.footer {
    background: var(--text-primary);
    padding: 60px 0 30px;
    color: #CBD5E1;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 16px;
}

.footer-desc {
    color: #94A3B8;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 12px;
}

.footer-domain {
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 16px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 20px;
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #94A3B8;
    font-size: 14px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-contact p {
    color: #94A3B8;
    font-size: 14px;
    margin-bottom: 8px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #334155;
    color: #64748B;
    font-size: 13px;
}

/* ── 响应式 ── */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .hero h1 {
        font-size: 42px;
    }
    
    .section {
        padding: 70px 0;
    }
    
    .section-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    /* 导航 */
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 20px;
        gap: 0;
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 10px 30px var(--shadow);
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-link {
        display: block;
        padding: 14px 16px;
        border-radius: 8px;
        font-size: 16px;
    }
    
    .nav-link:hover, .nav-link.active {
        background: var(--bg-secondary);
    }
    
    .nav-link::after {
        display: none;
    }
    
    .nav-cta {
        display: block;
        text-align: center;
        margin-top: 10px;
    }
    
    .lang-switcher {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .lang-btn {
        display: block;
        text-align: center;
        width: 100%;
    }
    
    /* Hero */
    .hero {
        min-height: auto;
        padding: 100px 0 60px;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 15px;
        margin-bottom: 30px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Section */
    .section {
        padding: 50px 0;
    }
    
    .section-header {
        margin-bottom: 30px;
    }
    
    .section-title {
        font-size: 26px;
    }
    
    .section-desc {
        font-size: 15px;
    }
    
    /* 服务卡片 */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .service-card {
        padding: 24px 20px;
    }
    
    /* 统计 */
    .stats-section {
        padding: 50px 0;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .stat-label {
        font-size: 14px;
    }
    
    /* AI优势 */
    .ai-features {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    /* 全球覆盖 */
    .global-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    /* 文章列表 */
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .article-cover {
        height: 160px;
    }
    
    .article-body {
        padding: 18px;
    }
    
    .article-meta {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    /* 分页 */
    .pagination {
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .pagination a, .pagination span {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    /* 表单 */
    .form-group {
        margin-bottom: 18px;
    }
    
    .form-control {
        padding: 12px 14px;
        font-size: 15px;
    }
    
    /* 按钮 */
    .btn {
        padding: 12px 24px;
        font-size: 15px;
        min-height: 44px;
    }
    
    /* Footer */
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .footer-brand {
        text-align: center;
        padding-bottom: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .footer-logo {
        font-size: 20px;
        justify-content: center;
    }
    
    .footer-desc {
        font-size: 13px;
        margin-bottom: 8px;
    }
    
    .footer-domain {
        font-size: 13px;
    }
    
    .footer-links, .footer-contact {
        text-align: center;
    }
    
    .footer-links h4, .footer-contact h4 {
        font-size: 15px;
        margin-bottom: 12px;
    }
    
    .footer-links ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 16px;
    }
    
    .footer-links li {
        margin-bottom: 0;
    }
    
    .footer-links a {
        font-size: 13px;
        padding: 4px 0;
        display: inline-block;
    }
    
    .footer-contact p {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .footer-bottom {
        font-size: 12px;
        padding-top: 20px;
        margin-top: 20px;
    }
    
    /* 文章详情页 */
    .article-section {
        padding-top: 90px;
    }
    
    .article-full {
        padding: 24px 20px;
    }
    
    .article-title {
        font-size: 24px;
    }
    
    .article-content {
        font-size: 15px;
        line-height: 1.8;
    }
    
    .article-content h2 {
        font-size: 20px;
        margin: 24px 0 12px;
    }
    
    .article-content h3 {
        font-size: 18px;
        margin: 20px 0 10px;
    }
    
    .article-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .article-footer-cta {
        width: 100%;
    }
    
    .article-footer-cta .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .hero-badge {
        font-size: 12px;
        padding: 6px 14px;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .stat-item {
        padding: 12px 8px;
    }
    
    .service-card h3 {
        font-size: 16px;
    }
    
    .article-card h3 {
        font-size: 16px;
    }
    
    .pagination a, .pagination span {
        padding: 6px 10px;
        font-size: 12px;
    }
}

/* 触摸友好：确保可点击元素最小44px */
@media (hover: none) and (pointer: coarse) {
    .nav-link,
    .btn,
    .service-card,
    .article-card,
    .pagination a,
    .pagination span {
        min-height: 44px;
    }
    
    .tag {
        padding: 6px 14px;
        font-size: 13px;
    }
}

/* ── 文章详情页 ── */
.article-section {
    padding-top: 120px;
}

.article-container {
    max-width: 800px;
}

.article-back {
    color: var(--accent);
    font-size: 14px;
    display: inline-block;
    margin-bottom: 20px;
}

.article-full {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 50px;
    border: 1px solid var(--border);
}

.article-header {
    margin-bottom: 40px;
}

.article-title {
    font-size: 32px;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 20px;
}

.article-content {
    color: var(--text-secondary);
    line-height: 2;
    font-size: 16px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 16px 0;
}

.article-content h2 {
    font-size: 24px;
    color: var(--text-primary);
    margin: 30px 0 16px;
}

.article-content h3 {
    font-size: 20px;
    color: var(--text-primary);
    margin: 24px 0 12px;
}

.article-content p {
    margin-bottom: 16px;
}

.article-content ul, .article-content ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

.article-content pre {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    overflow-x: auto;
    margin: 16px 0;
    font-size: 14px;
}

.article-content code {
    background: var(--bg-secondary);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 14px;
}

.article-content blockquote {
    border-left: 4px solid var(--accent);
    padding: 12px 20px;
    margin: 16px 0;
    background: var(--bg-secondary);
    border-radius: 0 8px 8px 0;
}

.article-content a {
    color: var(--accent);
    text-decoration: underline;
}

.article-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.article-footer-info p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 4px;
}

.article-footer-info a {
    color: var(--accent);
    word-break: break-all;
}

/* ── 工具类 ── */
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-green { color: var(--green); }
.text-orange { color: var(--orange); }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }

/* ── 右侧悬浮窗 ── */
.floating-contact {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
}

.floating-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 12px;
    background: linear-gradient(135deg, #0969da 0%, #0056b3 100%);
    color: #fff;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(9, 105, 218, 0.3);
    transition: all 0.3s ease;
}

.floating-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 28px rgba(9, 105, 218, 0.4);
}

.floating-text {
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .floating-contact {
        right: 12px;
        top: auto;
        bottom: 20px;
        transform: none;
    }
    
    .floating-btn {
        padding: 12px 10px;
    }
    
    .floating-text {
        font-size: 11px;
    }
}
.mb-40 { margin-bottom: 40px; }
