/* ═══════════════════════════════════════════
   AIWriter CorpSite — Warm Minimal Theme
   暖灰简洁风格，灵感来自 Coze
   ═══════════════════════════════════════════ */

:root {
    /* 主色调 - 棕色/深橙 */
    --primary: #7D4929;
    --primary-dark: #5C3520;
    --primary-light: #A06B4A;
    
    /* 辅助色 */
    --accent: #7D4929;
    --accent-light: #A06B4A;
    
    /* 暖灰背景系 */
    --bg-warm: #F4F4EF;
    --bg-warm-2: #F0EFE7;
    --bg-warm-3: #E0DFD6;
    --bg-warm-4: #D5D4CB;
    
    /* 浅色背景系 */
    --bg-light: #F4F4EF;
    --bg-light-2: #ffffff;
    --bg-light-3: #F0EFE7;
    
    /* 文字颜色 */
    --text-primary: #1B1B1B;
    --text-secondary: #7F7F7F;
    --text-muted: #A0A0A0;
    --text-dark: #1B1B1B;
    --text-dark-secondary: #555555;
    
      /* 边框 */
      --border-light: rgba(0, 0, 0, 0.08);
      --border-dark: rgba(0, 0, 0, 0.15);
      --border-hover: rgba(0, 0, 0, 0.2);
    
    /* 字体 */
    --font-main: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    
    /* 圆角 */
    --radius: 16px;
    --radius-lg: 24px;
    --radius-xl: 28px;
    
    /* 阴影 */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.1);
    
    /* 过渡 */
    --transition-fast: all 0.2s ease;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ═══ Global ═══ */
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    padding-top: 0;
    color: var(--text-dark);
    background: var(--bg-warm);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { 
    text-decoration: none; 
    color: inherit; 
}

/* 选中文本颜色 */
::selection {
    background: var(--primary);
    color: white;
}

/* ═══ Navigation ═══ */
#mainNav {
    padding: 1rem 0;
    transition: var(--transition);
    background: var(--bg-warm);
    z-index: 1000;
    border-bottom: 1px solid var(--border-light);
}

#mainNav.nav-scrolled {
    background: rgba(244, 244, 239, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.8rem 0;
    box-shadow: 0 1px 0 var(--border-light);
}

#mainNav .navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    font-size: 1.35rem;
}

.brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 1rem;
    overflow: hidden;
}

.brand-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.brand-text { 
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

#mainNav .nav-link {
    font-weight: 400;
    font-size: 0.9rem;
    padding: 0.5rem 1rem !important;
    color: var(--text-secondary) !important;
    transition: var(--transition-fast);
    position: relative;
}

#mainNav .nav-link:hover,
#mainNav .nav-link.active,
#mainNav .nav-link:focus { 
    color: var(--text-primary) !important; 
    font-weight: 500;
}

/* 强制覆盖 Bootstrap 默认样式 */
.navbar-light .navbar-nav .nav-link,
.navbar-light .navbar-nav .show > .nav-link,
.navbar-light .navbar-nav .nav-link.active,
.navbar-light .navbar-nav .nav-link.show {
    color: var(--text-secondary) !important;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active:hover,
.navbar-light .navbar-nav .show > .nav-link:hover {
    color: var(--text-primary) !important;
}

.btn-nav-cta {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 1.4rem;
    background: var(--text-primary);
    color: #fff !important;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.875rem;
    transition: var(--transition);
}

.btn-nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: #fff !important;
}

/* Mobile menu */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-light .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.6%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ═══ Hero Section ═══ */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--bg-warm);
    overflow: hidden;
}

.hero-bg {
    display: none;
}

/* 网格背景 */
.hero-section::before {
    display: none;
}

.hero-content { 
    position: relative; 
    z-index: 1; 
}

.min-vh-80 { min-height: 80vh; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-warm-3);
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.hero-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease 0.1s forwards;
    opacity: 0;
}

.hero-title span {
    color: var(--primary);
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 480px;
    animation: fadeInUp 0.6s ease 0.2s forwards;
    opacity: 0;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease 0.3s forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    background: var(--text-primary);
    color: #fff;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.btn-hero-primary:hover {
    background: #333;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
    border-radius: 50px;
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
}

.btn-hero-secondary:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
    background: var(--bg-warm-2);
    transform: translateY(-2px);
}

/* Hero Screen Mockup */
.hero-visual { 
    position: relative; 
    z-index: 1; 
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

.hero-screen {
    background: var(--bg-warm-2);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(0.5deg); }
}

.screen-header {
    display: flex;
    gap: 8px;
    padding: 14px 18px;
    background: var(--bg-warm-3);
    border-bottom: 1px solid var(--border-light);
}

.screen-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff5f57;
    opacity: 0.9;
}

.screen-dot:nth-child(2) { background: #febc2e; }
.screen-dot:nth-child(3) { background: #28c840; }

.screen-body { 
    display: flex; 
    min-height: 300px; 
}

.screen-sidebar {
    width: 65px;
    background: var(--bg-warm-3);
    border-right: 1px solid var(--border-light);
    padding: 16px 10px;
}

.screen-item {
    height: 10px;
    background: var(--bg-warm-4);
    border-radius: 5px;
    margin-bottom: 14px;
    transition: var(--transition);
}

.screen-item.active { 
    background: var(--primary);
}

.screen-main { 
    padding: 24px; 
    flex: 1; 
}

.screen-line {
    height: 10px;
    background: var(--bg-warm-3);
    border-radius: 5px;
    margin-bottom: 12px;
}

.screen-line.w-80 { width: 80%; }
.screen-line.w-60 { width: 60%; }
.screen-line.w-90 { width: 90%; }
.screen-line.w-40 { width: 40%; }
.screen-line.w-70 { width: 70%; }
.screen-line.w-85 { width: 85%; }
.screen-line.w-50 { width: 50%; }
.screen-gap { height: 24px; }

.hero-scroll-hint {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-muted);
    font-size: 1.3rem;
    animation: bounce 2s infinite;
    z-index: 1;
    opacity: 0.5;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ═══ Stats Bar ═══ */
.stats-bar {
    background: var(--bg-warm-2);
    padding: 4rem 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    position: relative;
}

.stat-number {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -1px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    font-weight: 400;
}

/* ═══ Section Styles ═══ */
.section-dark {
    background: var(--bg-warm);
    padding: 7rem 0;
    color: var(--text-primary);
    position: relative;
}

.section-light {
    background: var(--bg-warm-2);
    padding: 7rem 0;
}

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

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 1rem;
    background: var(--bg-warm-3);
    color: var(--text-secondary);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ═══ Product Card - 浅色风格 ═══ */
.product-card {
    background: var(--bg-light-2);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg);
}

.product-cover {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.product-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.05));
}

.product-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.product-card:hover .product-cover img { 
    transform: scale(1.05); 
}

.product-cover-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-warm-3);
    font-size: 4rem;
    color: var(--text-muted);
    opacity: 0.5;
}

.product-body {
    padding: 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.product-version {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-warm-3);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
}

.product-price {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
}

.product-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
}

.product-tagline {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 0.6rem;
}

.product-summary {
    font-size: 0.925rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
    flex: 1;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: var(--bg-warm-3);
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
}

.feature-tag i { 
    color: var(--primary); 
    font-size: 0.7rem; 
}

.product-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-product-detail {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.btn-product-detail:hover { 
    color: var(--text-primary); 
    gap: 0.5rem;
}

.btn-product-download {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    background: var(--text-primary);
    color: #fff;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}

.btn-product-download:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ═══ Service Cards - 浅色风格 ═══ */
.service-card-new {
    background: var(--bg-light-2);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 2.5rem 2rem;
    height: 100%;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

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

.service-card-new.featured {
    background: var(--text-primary);
    color: #fff;
    border-color: transparent;
}

.service-card-new.featured:hover {
    transform: translateY(-6px);
}

.service-card-new.featured .service-icon { 
    background: rgba(255, 255, 255, 0.15); 
    color: #fff; 
}

.service-card-new.featured h3 { color: #fff; }
.service-card-new.featured p { color: rgba(255, 255, 255, 0.8); }
.service-card-new.featured .service-list li { color: rgba(255, 255, 255, 0.9); }
.service-card-new.featured .service-list li i { color: #fff; }
.service-card-new.featured .service-link { color: #fff; }

.service-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-warm-3);
    color: var(--primary);
    border-radius: 16px;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.service-card-new h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.85rem;
}

.service-card-new p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    flex: 1;
}

.service-list li {
    padding: 0.4rem 0;
    font-size: 0.925rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.service-list li i { 
    color: var(--primary); 
    font-size: 0.85rem; 
}

.service-link {
    font-size: 0.925rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.service-link:hover { 
    color: var(--text-primary);
    gap: 0.5rem; 
}

/* ═══ Case Study Card ═══ */
.case-card {
    background: var(--bg-light-2);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.case-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg);
}

.case-cover {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.case-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.case-card:hover .case-cover img { 
    transform: scale(1.05); 
}

.case-cover-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-warm-3);
    font-size: 3rem;
    color: var(--text-muted);
    opacity: 0.5;
}

.case-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.case-type {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-warm-3);
    padding: 0.25rem 0.7rem;
    border-radius: 6px;
    align-self: flex-start;
    margin-bottom: 0.85rem;
}

.case-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
}

.case-summary {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 1rem;
    flex: 1;
}

.case-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.tech-tag {
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--text-secondary);
    background: var(--bg-warm-3);
    padding: 0.25rem 0.55rem;
    border-radius: 5px;
}

.case-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.case-link:hover { 
    color: var(--text-primary);
    gap: 0.5rem;
}

/* ═══ Article Card ═══ */
.article-card-new {
    background: var(--bg-light-2);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.article-card-new:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-hover);
}

.article-cover {
    height: 180px;
    overflow: hidden;
}

.article-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.article-card-new:hover .article-cover img { 
    transform: scale(1.05); 
}

.article-cover-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-warm-3);
    font-size: 3rem;
    color: var(--text-muted);
    opacity: 0.5;
}

.article-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-category {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-warm-3);
    padding: 0.25rem 0.7rem;
    border-radius: 6px;
    align-self: flex-start;
    margin-bottom: 0.85rem;
}

.article-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.6rem;
    line-height: 1.45;
}

.article-summary {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 1rem;
    flex: 1;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.article-read {
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.article-read:hover { 
    color: var(--text-primary);
    gap: 0.5rem;
}

/* ═══ CTA Section ═══ */
.cta-section {
    background: var(--text-primary);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.cta-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
    position: relative;
}

.cta-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.7;
    position: relative;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    background: #fff;
    color: var(--text-primary);
    border-radius: 50px;
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
    box-shadow: var(--shadow-md);
}

.btn-cta:hover {
    background: var(--bg-warm);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ═══ Outline Buttons ═══ */
.btn-outline-light {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 1.75rem;
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    background: transparent;
}

.btn-outline-light:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
    background: var(--bg-warm-2);
    transform: translateY(-2px);
}

/* ═══ Footer ═══ */
.site-footer {
    background: var(--bg-warm-2);
    padding: 5rem 0 2rem;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-light);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
}

.footer-brand .brand-text {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.footer-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    max-width: 300px;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--bg-warm-3);
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--text-primary);
    color: #fff;
    transform: translateY(-2px);
}

.footer-heading {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    padding: 0.35rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer-links a {
    color: var(--text-secondary);
    transition: var(--transition);
}

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

.footer-divider {
    border-color: var(--border-light);
    margin: 3rem 0 1.5rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-beian {
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.footer-beian i {
    font-size: 0.9rem;
}

.footer-beian:hover {
    color: var(--text-primary);
}

.footer-beian-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-beian-divider {
    color: var(--text-muted);
    opacity: 0.5;
}

.footer-admin {
    color: var(--text-muted);
    font-size: 0.8rem;
    transition: var(--transition);
    opacity: 0.6;
}

.footer-admin:hover { 
    color: var(--text-primary);
    opacity: 1;
}

/* ═══ Article Detail ═══ */
.article-content {
    line-height: 1.85;
    font-size: 1.1rem;
}

.article-content h1, .article-content h2, .article-content h3,
.article-content h4, .article-content h5, .article-content h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.article-content p { margin-bottom: 1.25rem; }

.article-content pre {
    background: var(--bg-warm-3);
    padding: 1.25rem;
    border-radius: 12px;
    overflow-x: auto;
    border: 1px solid var(--border-light);
}

.article-content code {
    background: var(--bg-warm-3);
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.9em;
}

.article-content img {
    max-width: 100%;
    border-radius: 12px;
    margin: 1.5rem 0;
}

  .article-content blockquote {
      border-left: 4px solid var(--primary);
      padding-left: 1.5rem;
      margin: 1.5rem 0;
      color: var(--text-secondary);
      font-style: italic;
  }

  .article-content table {
      width: 100%;
      border-collapse: collapse;
      margin: 1.5rem 0;
  }

  .article-content table th,
  .article-content table td {
      border: 1px solid var(--border-dark);
      padding: 0.75rem 1rem;
      text-align: left;
  }

  .article-content table th {
      background: var(--bg-warm-3);
      font-weight: 600;
      color: var(--text-primary);
  }

  .article-content table tr:hover {
      background: rgba(255, 255, 255, 0.02);
  }

/* ═══ Scroll Animations ═══ */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation for grid items */
.animate-stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-stagger.animated > *:nth-child(1) { transition-delay: 0s; }
.animate-stagger.animated > *:nth-child(2) { transition-delay: 0.1s; }
.animate-stagger.animated > *:nth-child(3) { transition-delay: 0.2s; }
.animate-stagger.animated > *:nth-child(4) { transition-delay: 0.3s; }
.animate-stagger.animated > *:nth-child(5) { transition-delay: 0.4s; }
.animate-stagger.animated > *:nth-child(6) { transition-delay: 0.5s; }

.animate-stagger.animated > * {
    opacity: 1;
    transform: translateY(0);
}

/* ═══ Responsive ═══ */
@media (max-width: 992px) {
    .hero-title { letter-spacing: -0.5px; }
    .section-dark, .section-light { padding: 5rem 0; }
    .stats-bar { padding: 3rem 0; }
}

@media (max-width: 768px) {
    .hero-section { 
        min-height: auto; 
        padding: 140px 0 80px; 
    }
    
    .section-dark, .section-light { padding: 4rem 0; }
    
    .cta-section { padding: 4rem 0; }
    
    .footer-bottom { 
        flex-direction: column; 
        gap: 0.75rem;
        text-align: center; 
    }
    
    .footer-beian-group {
        order: 3;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .navbar-collapse {
        background: var(--bg-warm-2);
        border-radius: 16px;
        padding: 1rem;
        margin-top: 1rem;
        border: 1px solid var(--border-light);
        box-shadow: var(--shadow-md);
    }
}

/* ═══ Utility ═══ */
.text-gradient {
    color: var(--primary);
}

.glass {
    background: var(--bg-warm-2);
    border: 1px solid var(--border-light);
}