/* ========================================
   GoCMS - 主样式表（现代企业管理风格）
   ======================================== */

/* --- 基础重置 --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --blue-500: #3b82f6;
    --primary: #667eea;
    --primary-light: #764ba2;
    --primary-dark: #5a67d8;
    --primary-bg: #f7fafc;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow: 0 4px 6px rgba(0,0,0,.05), 0 2px 4px rgba(0,0,0,.04);
    --shadow-md: 0 10px 25px rgba(102,126,234,.15);
    --shadow-lg: 0 20px 40px rgba(102,126,234,.2);
    --shadow-xl: 0 25px 50px rgba(0,0,0,.15);
    --transition: all .3s cubic-bezier(.4,0,.2,1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--gray-800);
    background: var(--gray-50);
    font-size: 18px;
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color-scheme: light;
}
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }

/* --- 布局 --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* --- 导航栏 --- */
.header {
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 2px 10px rgba(0,0,0,.04);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(102,126,234,.08);
}
.header .container {
    display: flex;
    align-items: center;
    height: 68px;
    gap: 12px;
}
.logo {
    font-size: 26px;
    font-weight: 900;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
    letter-spacing: -.5px;
    flex-shrink: 0;
}
.logo:hover { opacity: .85; }

.nav {
    display: flex;
    gap: 4px;
    flex: 1;
    margin-left: 32px;
}
.nav a {
    color: var(--gray-600);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
    position: relative;
}
.nav a:hover {
    color: var(--primary);
    background: rgba(102,126,234,.08);
}
.nav a.active {
    color: var(--primary);
    background: rgba(102,126,234,.12);
    font-weight: 600;
}
.nav a.active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.search-form {
    display: flex;
    gap: 6px;
    align-items: center;
}
.search-form input {
    border: 1.5px solid var(--gray-200);
    border-radius: 8px;
    padding: 7px 14px;
    font-size: 15px;
    outline: none;
    width: 180px;
    transition: var(--transition);
    background: var(--gray-50);
    font-family: inherit;
}
.search-form input:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37,99,235,.1);
    width: 220px;
}
.search-form button {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 7px 16px;
    font-size: 15px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    font-family: inherit;
}
.search-form button:hover { background: var(--primary-dark); }

/* --- 汉堡菜单 --- */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    color: var(--gray-600);
    padding: 6px 8px;
    border-radius: 8px;
    line-height: 1;
    transition: var(--transition);
}
.menu-toggle:hover { color: var(--primary); background: var(--primary-bg); }

/* --- Hero --- */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    color: #fff;
    text-align: center;
    padding: 120px 24px 100px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(255,255,255,.15) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 50%, rgba(255,255,255,.1) 0%, transparent 50%);
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, #fff, transparent);
    pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 {
    font-size: 56px;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -.5px;
    text-shadow: 0 2px 10px rgba(0,0,0,.1);
}
.hero p {
    font-size: 22px;
    opacity: .95;
    margin-bottom: 36px;
    font-weight: 400;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-white {
    background: #fff;
    color: #764ba2;
    border: 2px solid #fff;
    padding: 14px 36px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,.1);
}
.btn-white:hover { background: rgba(255,255,255,.95); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,.15); }
.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,.5);
    padding: 14px 36px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.1); transform: translateY(-2px); }

/* --- 页面顶部 Banner (page-hero) --- */
.page-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    text-align: center;
    padding: 80px 24px 60px;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(255,255,255,.1) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 50%, rgba(255,255,255,.05) 0%, transparent 50%);
    pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.3;
    letter-spacing: -.3px;
}
.page-hero p {
    font-size: 18px;
    opacity: .9;
    margin-bottom: 24px;
    font-weight: 400;
}
/* 子栏目链接 */
.subcategory-links {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}
.subcategory-link {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255,255,255,.15);
    color: #fff;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,.2);
}
.subcategory-link:hover {
    background: rgba(255,255,255,.25);
    color: #fff;
    transform: translateY(-2px);
    border-color: rgba(255,255,255,.4);
}
.subcategory-link.active {
    background: #fff;
    color: #764ba2;
    border-color: #fff;
    font-weight: 600;
}

/* --- 内容区 --- */
.main { flex: 1; padding: 40px 0; }

.section { margin-bottom: 56px; }
.section-title {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--gray-900);
    letter-spacing: -.3px;
}
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}
.section-header .section-title { margin-bottom: 0; }
.section-more {
    font-size: 16px;
    color: var(--primary);
    font-weight: 500;
    white-space: nowrap;
    transition: var(--transition);
}
.section-more:hover { color: var(--primary-dark); gap: 4px; }

/* --- 文章网格 --- */
.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.article-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.article-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(102,126,234,.1);
    display: flex;
    flex-direction: column;
    position: relative;
}
.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}
.article-card:hover::before { opacity: 1; }
.article-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}
.card-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.article-card:hover .card-image img {
    transform: scale(1.05);
}
.card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.card-body h3 { font-size: 20px; margin-bottom: 8px; line-height: 1.5; }
.card-body h3 a { color: var(--gray-900); }
.card-body h3 a:hover { color: var(--primary); }
.card-body h4 { font-size: 17px; margin-bottom: 6px; line-height: 1.5; }
.card-body h4 a { color: var(--gray-800); }
.card-body h4 a:hover { color: var(--primary); }
.card-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 14px;
    color: var(--gray-400);
    margin-bottom: 10px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 12px;
}
.card-summary {
    font-size: 16px;
    color: var(--gray-500);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-tag {
    background: var(--primary-bg);
    color: var(--primary);
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

/* --- 文章列表项 --- */
.article-list { display: flex; flex-direction: column; gap: 20px; }
.article-item {
    display: flex;
    gap: 24px;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 24px;
    transition: var(--transition);
    border: 1px solid var(--gray-100);
    align-items: center;
}
.article-item:hover { box-shadow: var(--shadow-md); border-color: var(--gray-200); }
.item-image {
    width: 240px;
    min-width: 240px;
    height: 160px;
    border-radius: 10px;
    overflow: hidden;
}
.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.article-item:hover .item-image img { transform: scale(1.05); }
.item-body { flex: 1; min-width: 0; }
.item-body h3 { font-size: 22px; margin-bottom: 8px; line-height: 1.4; }
.item-body h3 a { color: var(--gray-900); }
.item-body h3 a:hover { color: var(--primary); }
.item-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 14px;
    color: var(--gray-400);
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.item-summary {
    font-size: 16px;
    color: var(--gray-500);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- 文章详情 --- */
.article-detail { max-width: 800px; margin: 0 auto; }
.article-header { margin-bottom: 36px; }
.article-header h1 {
    font-size: 36px;
    line-height: 1.35;
    margin-bottom: 14px;
    color: var(--gray-900);
    font-weight: 800;
    letter-spacing: -.3px;
}
.article-meta {
    display: flex;
    gap: 14px;
    align-items: center;
    font-size: 15px;
    color: var(--gray-500);
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.article-meta time { font-weight: 500; }
.article-cover {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-top: 16px;
}
.article-cover img { width: 100%; border-radius: var(--radius-lg); }

.article-content {
    font-size: 18px;
    line-height: 1.85;
    color: var(--gray-700);
}
.article-content p { margin-bottom: 18px; }
.article-content h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 40px 0 16px;
    color: var(--gray-900);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gray-100);
    letter-spacing: -.2px;
}
.article-content h3 { font-size: 24px; font-weight: 700; margin: 32px 0 14px; color: var(--gray-800); }
.article-content ul, .article-content ol { margin-bottom: 18px; padding-left: 24px; }
.article-content li { margin-bottom: 8px; }
.article-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 14px 22px;
    margin: 20px 0;
    background: var(--primary-bg);
    border-radius: 0 var(--radius) var(--radius) 0;
    color: var(--gray-600);
    font-style: italic;
}
.article-content code {
    background: var(--gray-100);
    padding: 3px 7px;
    border-radius: 5px;
    font-size: 16px;
    color: var(--primary-dark);
}
.article-content pre {
    background: var(--gray-900);
    color: #e5e7eb;
    padding: 20px;
    border-radius: var(--radius);
    overflow-x: auto;
    margin-bottom: 18px;
}
.article-content pre code { background: none; color: inherit; padding: 0; font-size: 15px; }
.article-content img { border-radius: var(--radius); margin: 16px 0; max-width: 100%; }
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 18px;
    font-size: 16px;
}
.article-content th, .article-content td {
    border: 1px solid var(--gray-200);
    padding: 10px 14px;
    text-align: left;
}
.article-content th { background: var(--gray-50); font-weight: 600; color: var(--gray-800); }

.article-footer { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--gray-200); }
.article-nav {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}
.related-section { max-width: 800px; margin: 48px auto 0; }

/* --- 按钮 --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border: 2px solid transparent;
    border-radius: 50px;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
    font-weight: 600;
    font-family: inherit;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-color: transparent;
}
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(102,126,234,.35); }
.btn-default { background: #fff; color: var(--gray-700); border-color: var(--gray-300); }
.btn-default:hover { background: var(--gray-50); color: var(--gray-900); border-color: var(--gray-400); transform: translateY(-1px); }
.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger:hover { background: #dc2626; transform: translateY(-1px); }
.btn-sm { padding: 8px 20px; font-size: 14px; border-radius: 50px; }
.btn-block { width: 100%; justify-content: center; }
.btn-xs { padding: 5px 14px; font-size: 13px; border-radius: 50px; }

/* --- 徽章 --- */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}
.badge-success { background: #d1fae5; color: #065f46; }
.badge-default { background: var(--gray-100); color: var(--gray-600); }
.badge-top { background: #fef3c7; color: #92400e; }

/* --- 分页 --- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 36px;
    color: var(--gray-500);
    font-size: 16px;
}

/* --- 页脚 --- */
.footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: var(--gray-400);
    padding: 0;
    font-size: 16px;
    margin-top: auto;
    position: relative;
    overflow: hidden;
}
.footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(102,126,234,.08) 0%, transparent 50%);
    pointer-events: none;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    padding: 64px 0 40px;
    text-align: left;
    position: relative;
    z-index: 1;
}
.footer-about h4, .footer-links h4, .footer-contact h4 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
    padding-bottom: 12px;
}
.footer-about h4::after, .footer-links h4::after, .footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}
.footer-about p { font-size: 16px; line-height: 1.8; color: var(--gray-400); }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: var(--gray-400); font-size: 16px; transition: var(--transition); }
.footer-links a:hover { color: #fff; transform: translateX(5px); display: inline-block; }
.footer-contact p { font-size: 16px; margin-bottom: 8px; color: var(--gray-400); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 20px 0;
    text-align: center;
    font-size: 15px;
    color: var(--gray-500);
    position: relative;
    z-index: 1;
}

/* --- 页面头 --- */
.page-header {
    margin-bottom: 32px;
    padding-bottom: 18px;
    border-bottom: 2px solid var(--gray-100);
}
.page-header h1 { font-size: 32px; margin-bottom: 4px; color: var(--gray-900); font-weight: 800; }
.page-header p { color: var(--gray-500); font-size: 17px; }

/* --- 空状态 --- */
.empty-state {
    text-align: center;
    padding: 72px 24px;
    color: var(--gray-500);
}
.empty-state h3 { font-size: 22px; margin-bottom: 8px; color: var(--gray-600); }

/* --- 面包屑 --- */
.breadcrumb {
    font-size: 15px;
    color: var(--gray-400);
    margin-bottom: 20px;
    padding: 10px 0;
}
.breadcrumb a { color: var(--gray-500); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--gray-700); font-weight: 500; }

/* --- 企业栏目：服务优势 --- */
.features-section {
    padding: 80px 0 60px;
    text-align: center;
    background: linear-gradient(180deg, #fff 0%, var(--gray-50) 100%);
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}
.feature-card {
    padding: 40px 28px;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid rgba(102,126,234,.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: var(--transition);
}
.feature-card:hover::before { opacity: 1; }
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(102,126,234,.1) 0%, rgba(118,75,162,.1) 100%);
    border-radius: 50%;
    transition: var(--transition);
}
.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scale(1.05);
}
.feature-card h3 { font-size: 22px; margin-bottom: 12px; color: var(--gray-900); font-weight: 700; }
.feature-card p { font-size: 16px; color: var(--gray-500); line-height: 1.7; }

/* --- 新闻列表 --- */
.news-list { display: flex; flex-direction: column; gap: 14px; }
.news-item {
    display: flex;
    gap: 18px;
    padding: 14px 0;
    border-bottom: 1px solid var(--gray-100);
    align-items: flex-start;
}
.news-item time {
    font-size: 15px;
    color: var(--gray-400);
    white-space: nowrap;
    padding-top: 3px;
    font-weight: 500;
    min-width: 50px;
}
.news-item a { font-weight: 600; color: var(--gray-800); font-size: 17px; }
.news-item a:hover { color: var(--primary); }
.news-item p {
    font-size: 15px;
    color: var(--gray-500);
    margin-top: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- CTA --- */
.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    color: #fff;
    text-align: center;
    padding: 80px 24px;
    margin-top: 40px;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(255,255,255,.1) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 50%, rgba(255,255,255,.08) 0%, transparent 50%);
    pointer-events: none;
}
.cta-section .container { position: relative; z-index: 1; }
.cta-section h2 { font-size: 40px; margin-bottom: 16px; font-weight: 900; text-shadow: 0 2px 10px rgba(0,0,0,.1); }
.cta-section p { font-size: 22px; opacity: .95; margin-bottom: 32px; line-height: 1.6; }

/* --- 首页统计数字 --- */
.stats-section {
    padding: 0 0 40px;
    margin-top: -60px;
    position: relative;
    z-index: 2;
}
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.stat-item {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(102,126,234,.1);
    position: relative;
    overflow: hidden;
}
.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}
.stat-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}
.stat-icon {
    font-size: 36px;
    margin-bottom: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(102,126,234,.1) 0%, rgba(118,75,162,.1) 100%);
    border-radius: 50%;
}
.stat-num {
    font-size: 42px;
    font-weight: 900;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    margin-bottom: 8px;
}
.stat-label {
    font-size: 16px;
    color: var(--gray-500);
    font-weight: 500;
}

/* --- 单页内容 --- */
.page-content { max-width: 800px; margin: 0 auto; }
.page-desc { color: var(--gray-500); font-size: 18px; margin-top: 4px; }

/* --- 联系我们 --- */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}
.contact-info h2 { font-size: 26px; margin-bottom: 20px; color: var(--gray-900); font-weight: 700; }
.contact-item {
    display: flex;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-100);
    align-items: center;
}
.contact-icon { font-size: 22px; flex-shrink: 0; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: var(--primary-bg); border-radius: 10px; }
.contact-item strong { display: block; font-size: 16px; margin-bottom: 2px; color: var(--gray-800); }
.contact-item p { font-size: 15px; color: var(--gray-500); }
.contact-form-wrapper {
    padding: 32px;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-100);
}

/* --- 进度条 --- */
.progress-bar-bg { background: var(--gray-200); border-radius: 4px; overflow: hidden; }
#gen-bar {
    width: 0%;
    height: 100%;
    background: var(--primary);
    border-radius: 4px;
    transition: width .5s ease;
}

/* ========================================
   后台管理样式
   ======================================== */

.admin-page {
    background: var(--gray-50);
    color-scheme: light;
}

.admin-layout { display: flex; min-height: 100vh; }

/* --- 侧边栏 --- */
.sidebar {
    width: 240px;
    min-width: 240px;
    background: var(--gray-900);
    color: #fff;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 200;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.2) transparent;
}
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.2); border-radius: 3px; }
.sidebar-brand { padding: 20px; border-bottom: 1px solid rgba(255,255,255,.1); }
.sidebar-brand a {
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: -.3px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    padding: 0;
    flex: 1;
}
.sidebar-nav a {
    color: var(--gray-400);
    padding: 10px 20px;
    font-size: 14px;
    text-decoration: none;
    transition: all .15s;
    font-weight: 500;
}
.sidebar-nav a:hover { color: #fff; background: rgba(255,255,255,.06); }
.sidebar-nav a.active {
    color: #fff;
    background: rgba(255,255,255,.1);
    border-right: 3px solid var(--primary);
    font-weight: 600;
}

/* --- 侧边栏分组 --- */
.sidebar-group {
    border-top: 1px solid rgba(255,255,255,.08);
}
.sidebar-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    font-size: 12px;
    font-weight: 700;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    user-select: none;
    transition: all .15s;
}
.sidebar-group-header:hover { color: var(--gray-300); }
.sidebar-group-header .arrow {
    font-size: 10px;
    transition: transform .2s;
}
.sidebar-group.collapsed .arrow { transform: rotate(-90deg); }
.sidebar-group.collapsed .sidebar-group-body { display: none; }
.sidebar-group-body { display: flex; flex-direction: column; padding-bottom: 6px; }
.sidebar-group-body a {
    padding-left: 36px;
    font-size: 13px;
    color: var(--gray-500);
}
.sidebar-group-body a:hover { color: #fff; }
.sidebar-group-body a.active {
    color: #fff;
    background: rgba(102,126,234,.2);
    border-right: 3px solid var(--primary);
}

/* --- 分隔线 --- */
.sidebar-divider {
    height: 1px;
    background: rgba(255,255,255,.08);
    margin: 4px 0;
}

/* --- 底栏链接 --- */
.sidebar-nav .bottom-link {
    margin-top: auto;
    border-top: 1px solid rgba(255,255,255,.1);
    color: var(--gray-500);
}
.sidebar-nav .bottom-link:hover { color: var(--danger); }

/* --- 管理主区域 --- */
.admin-main {
    flex: 1;
    margin-left: 240px;
    min-width: 0;
}
.admin-header {
    background: #fff;
    padding: 14px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 50;
}
.admin-header h2 { font-size: 18px; color: var(--gray-800); }
.admin-content { padding: 28px; }

/* --- 卡片 --- */
.card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid var(--gray-100);
}
.card h3 {
    font-size: 16px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-200);
    color: var(--gray-700);
    font-weight: 700;
}

/* --- 统计卡片 --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}
.stat-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    text-align: center;
    border: 1px solid var(--gray-100);
    transition: var(--transition);
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-card .stat-number { font-size: 36px; font-weight: 800; color: var(--primary); }
.stat-card .stat-label { font-size: 14px; color: var(--gray-500); margin-top: 4px; }

/* --- 筛选栏 --- */
.filter-bar {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px 24px;
    margin-bottom: 24px;
    border: 1px solid var(--gray-100);
}
.filter-form {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

/* --- 表单 --- */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; color: var(--gray-700); }
.form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--gray-300);
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    transition: var(--transition);
    font-family: inherit;
    background: #fff;
}
.form-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.form-row { display: flex; gap: 18px; }
.form-row .form-group { flex: 1; }
.checkbox-label { display: flex; align-items: center; gap: 6px; cursor: pointer; font-size: 14px; }
.required { color: var(--danger); }
.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
}
.inline-form {
    display: flex;
    gap: 8px;
    align-items: center;
}
.inline-form .form-input { width: auto; flex: 1; }
.editor {
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 13px;
    line-height: 1.6;
}

/* --- 数据表 --- */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-100);
}
.data-table th {
    background: var(--gray-50);
    padding: 12px 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 700;
    color: var(--gray-600);
    border-bottom: 2px solid var(--gray-200);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: .3px;
}
.data-table td {
    padding: 14px 16px;
    font-size: 14px;
    border-bottom: 1px solid var(--gray-100);
    vertical-align: middle;
}
.data-table tr:hover td { background: var(--gray-50); }
.data-table .actions { white-space: nowrap; }

/* --- 提示 --- */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 18px;
    font-size: 14px;
    font-weight: 500;
}
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: #065f46; border: 1px solid #a7f3d0; }

/* --- 信息表 --- */
.info-table { width: 100%; }
.info-table td { padding: 8px 0; font-size: 14px; border-bottom: 1px solid var(--gray-100); }
.info-table code {
    background: var(--gray-100);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
}

/* --- 登录页 --- */
.login-page {
    background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}
.login-box {
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    padding: 48px 40px;
    width: 400px;
    max-width: 92vw;
}
.login-title {
    text-align: center;
    font-size: 24px;
    margin-bottom: 28px;
    color: var(--gray-800);
    font-weight: 800;
}

/* --- 文章表单 --- */
.article-form {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px;
    border: 1px solid var(--gray-100);
}

/* --- 上传区域 --- */
.upload-zone {
    border: 2px dashed var(--gray-300);
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    background: var(--gray-50);
    transition: var(--transition);
    cursor: pointer;
}
.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--primary);
    background: rgba(37,99,235,.03);
}
.upload-zone-inner p { margin: 6px 0 0; font-size: 14px; color: var(--gray-600); }
.upload-icon { font-size: 36px; margin-bottom: 8px; }
.upload-hint { font-size: 12px !important; color: var(--gray-400) !important; margin-top: 8px !important; }

/* 进度条 */
.upload-progress { margin-top: 12px; }
.progress-bar {
    width: 100%; height: 6px;
    background: var(--gray-200);
    border-radius: 3px;
    overflow: hidden;
}
.progress-fill {
    height: 100%; width: 0%;
    background: var(--primary);
    border-radius: 3px;
    transition: width .2s;
}
.progress-text {
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 4px;
    display: block;
}

/* 预览网格 */
.upload-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}
.upload-card {
    width: 160px;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    overflow: hidden;
    font-size: 12px;
}
.upload-thumb {
    width: 100%; height: 100px;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.upload-thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-thumb { position: relative; }
.video-thumb video { width: 100%; height: 100%; object-fit: cover; }
.play-icon {
    position: absolute;
    font-size: 24px;
    color: rgba(255,255,255,.9);
    pointer-events: none;
}
.upload-filename {
    display: block;
    padding: 4px 8px;
    color: var(--gray-600);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.upload-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 6px 8px;
    border-top: 1px solid var(--gray-100);
}

/* 表单提示 */
.form-hint {
    display: block;
    font-size: 12px;
    color: var(--gray-400);
    margin-top: 4px;
}

/* 开关切换按钮 */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    vertical-align: middle;
}
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--gray-300);
    transition: .3s;
    border-radius: 26px;
}
.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: #fff;
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,.15);
}
.toggle-switch input:checked + .toggle-slider {
    background-color: var(--blue-500);
}
.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(22px);
}

/* 标签 */
.tag {
    display: inline-block;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 6px;
}
.tag-gray {
    background: var(--gray-100);
    color: var(--gray-500);
}

/* --- 封面图片上传 --- */
.cover-upload-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.cover-preview {
    width: 240px;
    height: 150px;
    border: 2px dashed var(--gray-300);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}
.cover-preview:hover,
.cover-preview.dragover {
    border-color: var(--primary);
}
.cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.cover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .2s;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}
.cover-preview:hover .cover-overlay { opacity: 1; }
.cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    background: var(--gray-50);
}
.cover-placeholder span { font-size: 32px; margin-bottom: 6px; }
.cover-placeholder p { font-size: 13px; margin: 0; color: var(--gray-500); }
.cover-url-row { width: 240px; }
.form-input-sm { font-size: 13px; padding: 6px 10px; }

/* ========================================
   响应式系统
   ======================================== */

@media (max-width: 1200px) {
    .container { padding: 0 20px; }
}

@media (max-width: 1024px) {
    .container { padding: 0 20px; }

    .article-grid { grid-template-columns: repeat(2, 1fr); }
    .article-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }

    .stats-row { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .stat-num { font-size: 30px; }

    .hero { padding: 80px 24px 64px; }
    .hero h1 { font-size: 42px; }
    .hero p { font-size: 20px; }

    .item-image { width: 200px; min-width: 200px; height: 140px; }

    .card-body h3 { font-size: 18px; }
    .article-header h1 { font-size: 30px; }
    .article-content { font-size: 17px; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .menu-toggle { display: block; }

    .header .container {
        flex-wrap: wrap;
        height: auto;
        padding: 10px 16px;
        gap: 0;
    }
    .header .container .logo { order: 1; flex: 1; }
    .header .container .menu-toggle { order: 2; }
    .header .container .nav { order: 3; }
    .header .container .search-form { order: 4; }

    .nav {
        display: none;
        width: 100%;
        flex-direction: column;
        padding: 10px 0;
        gap: 2px;
        margin-left: 0;
    }
    .nav.open { display: flex; }
    .nav a {
        padding: 10px 14px;
        font-size: 16px;
        border-radius: 8px;
    }

    .search-form {
        display: none;
        width: 100%;
        padding: 10px 0 14px;
    }
    .search-form.open { display: flex; }
    .search-form input { flex: 1; width: auto; font-size: 16px; }
    .search-form button { font-size: 16px; }

    .article-grid { grid-template-columns: 1fr; }
    .article-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .contact-layout { grid-template-columns: 1fr; }

    .article-item { flex-direction: column; padding: 18px; }
    .item-image { width: 100%; min-width: 100%; height: 180px; }

    .hero { padding: 60px 20px 48px; }
    .hero h1 { font-size: 34px; }
    .hero p { font-size: 18px; }
    .btn-white, .btn-outline { font-size: 16px; padding: 10px 24px; }

    .article-header h1 { font-size: 28px; }
    .article-content { font-size: 17px; }
    .article-content h2 { font-size: 24px; }
    .article-content h3 { font-size: 20px; }

    .page-header h1 { font-size: 26px; }
    .section-title { font-size: 26px; }

    .cta-section { padding: 48px 20px; }
    .cta-section h2 { font-size: 28px; }
    .cta-section p { font-size: 18px; }

    .stats-section { margin-top: -24px; }
    .stats-row { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .stat-num { font-size: 26px; }
    .stat-icon { font-size: 28px; }

    .sidebar { display: none; }
    .admin-main { margin-left: 0; }
    .filter-form { flex-wrap: wrap; }
    .form-row { flex-direction: column; gap: 0; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }

    .article-nav { flex-direction: column; gap: 8px; }
    .article-nav .btn { text-align: center; justify-content: center; }
}

@media (max-width: 480px) {
    body { font-size: 16px; line-height: 1.65; }
    .container { padding: 0 14px; }

    .logo { font-size: 22px; }
    .nav a { font-size: 15px; padding: 10px 12px; }

    .search-form input { font-size: 15px; padding: 8px 12px; }
    .search-form button { font-size: 15px; padding: 8px 14px; }

    .article-grid.cols-4 { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }

    .card-image { height: 180px; }
    .card-body { padding: 16px; }
    .card-body h3 { font-size: 18px; }
    .card-body h4 { font-size: 16px; }

    .article-item { padding: 14px; gap: 14px; }
    .item-image { height: 160px; }
    .item-body h3 { font-size: 18px; }

    .hero { padding: 48px 16px 36px; }
    .hero h1 { font-size: 28px; }
    .hero p { font-size: 16px; }
    .hero-btns { gap: 10px; }
    .btn-white, .btn-outline { font-size: 15px; padding: 10px 20px; }

    .section-title { font-size: 22px; }
    .section-header { flex-direction: column; align-items: flex-start; gap: 6px; }

    .article-header h1 { font-size: 24px; }
    .article-content { font-size: 16px; line-height: 1.75; }
    .article-content h2 { font-size: 22px; margin: 24px 0 12px; }
    .article-content h3 { font-size: 18px; margin: 20px 0 10px; }

    .page-header h1 { font-size: 24px; }
    .page-header p { font-size: 15px; }
    .page-desc { font-size: 16px; }

    .breadcrumb { font-size: 14px; }

    .pagination { font-size: 15px; gap: 10px; flex-wrap: wrap; }

    .news-item { flex-direction: column; gap: 4px; padding: 10px 0; }
    .news-item time { font-size: 14px; }

    .cta-section { padding: 36px 16px; }
    .cta-section h2 { font-size: 24px; }
    .cta-section p { font-size: 16px; }

    .footer-about h4, .footer-links h4, .footer-contact h4 { font-size: 17px; margin-bottom: 12px; }
    .footer-about p, .footer-links a, .footer-contact p { font-size: 14px; }
    .footer-bottom { font-size: 13px; padding: 14px 0; }

    .contact-layout { gap: 20px; }
    .contact-form-wrapper { padding: 20px; }
    .contact-item { padding: 12px 0; }

    .main .btn { font-size: 15px; padding: 8px 16px; }
    .main .badge { font-size: 13px; }

    .empty-state { padding: 48px 16px; }
    .empty-state h3 { font-size: 20px; }
}

@media (min-width: 1400px) {
    .container { max-width: 1320px; }
}
