/* ========== 全局重置 ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial,
                 "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: #333;
    background: #f5f7fa;
    line-height: 1.7;
    font-size: 15px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
a { color: #0f6fa1; text-decoration: none; transition: color .2s; }
a:hover { color: #0c527a; text-decoration: underline; }
img { max-width: 100%; vertical-align: middle; }
ul, ol { list-style: none; }

/* ========== 配色变量 ========== */
:root {
    --primary: #0f6fa1;
    --primary-dark: #0c527a;
    --primary-light: #e8f1f7;
    --accent: #e67e22;
    --text: #333;
    --text-light: #666;
    --text-muted: #999;
    --border: #e6e9ed;
    --bg: #f5f7fa;
    --bg-white: #fff;
    --shadow: 0 2px 12px rgba(0,0,0,.06);
    --shadow-hover: 0 4px 20px rgba(0,0,0,.1);
    --radius: 6px;
}

/* ========== 容器 ========== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; width: 100%; }

/* ========== 顶部条 ========== */
.topbar {
    background: #2c3e50;
    color: #ccc;
    font-size: 13px;
    padding: 8px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; }
.topbar a { color: #ccc; }
.topbar a:hover { color: #fff; }
.topbar .topbar-info span { margin-right: 16px; }
.topbar .topbar-info i { color: var(--primary); margin-right: 4px; }

/* ========== 头部 ========== */
.header { background: #fff; box-shadow: var(--shadow); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-mark {
    width: 48px; height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 26px;
    box-shadow: 0 2px 6px rgba(15,111,161,.3);
}
.logo-text { display: flex; flex-direction: column; }
.logo-text strong { color: var(--primary); font-size: 19px; letter-spacing: 1px; }
.logo-text span { color: var(--text-muted); font-size: 12px; }
.header-phone { color: var(--text-light); font-size: 13px; }
.header-phone strong { display: block; color: var(--accent); font-size: 22px; letter-spacing: 1px; }

/* ========== 导航 ========== */
.nav { background: var(--primary); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 4px rgba(0,0,0,.1); }
.nav-inner { display: flex; align-items: center; }
.nav a.nav-link {
    color: rgba(255,255,255,.92);
    padding: 0 22px;
    line-height: 50px;
    font-size: 15px;
    text-decoration: none;
    transition: background .2s;
    position: relative;
}
.nav a.nav-link:hover, .nav a.nav-link.active {
    background: var(--primary-dark);
    color: #fff;
}
.nav a.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 0; height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid var(--bg);
}

/* ========== 主区 ========== */
.main { flex: 1; padding: 30px 0; }

/* ========== 横幅 ========== */
.banner {
    background: #07222e url(../img/banner.jpg) center top / cover no-repeat;
    color: #fff;
    border-radius: var(--radius);
    padding: 72px 50px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    display: flex; align-items: center; gap: 28px;
}
.banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(4,26,38,.88) 0%, rgba(6,42,56,.55) 42%, rgba(7,60,70,.08) 100%);
    pointer-events: none;
}
.banner::after {
    content: '';
    position: absolute;
    right: -120px; top: -180px;
    width: 620px; height: 620px;
    background: radial-gradient(circle, rgba(22,192,172,.35) 0%, rgba(22,192,172,0) 70%);
}
.banner-text { position: relative; z-index: 2; max-width: 660px; }
.banner { box-shadow: 0 12px 32px rgba(7, 42, 56, .28); }
.banner-cta { margin-top: 22px; }
.banner-visual { flex: 1; display: flex; gap: 14px; justify-content: flex-end; position: relative; z-index: 2; }
.banner-visual .bv-card:nth-child(1) { transform: rotate(-7deg) translateY(14px); }
.banner-visual .bv-card:nth-child(2) { transform: rotate(3deg) translateY(-10px); }
.banner-visual .bv-card:nth-child(3) { transform: rotate(-4deg) translateY(16px); }
.banner-visual .bv-card:nth-child(4) { transform: rotate(7deg) translateY(-6px); }
.banner-visual:hover .bv-card { transform: rotate(0) translateY(0); }
.bv-card { width: 132px; height: 168px; border-radius: 14px; background-size: cover; background-position: center; box-shadow: 0 14px 30px rgba(0,0,0,.38); border: 2px solid rgba(255,255,255,.28); transition: transform .3s; }
a.btn-hero { background: linear-gradient(135deg, #16c0ac, #2aabd2); color: #fff; box-shadow: 0 8px 20px rgba(22,192,172,.35); }
.btn-hero:hover { transform: translateY(-2px); }
.btn-hero.ghost { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.45); color: #fff; box-shadow: none; }
.btn-hero.ghost:hover { background: rgba(255,255,255,.24); }
.btn-hero { display: inline-block; padding: 11px 26px; margin-right: 12px; border-radius: 30px; font-size: 15px; font-weight: 600; transition: all .25s; }
.banner h1 { font-size: 44px; margin-bottom: 16px; letter-spacing: 2px; position: relative; text-shadow: 0 2px 14px rgba(0,0,0,.45); }
.banner p { font-size: 16px; opacity: .92; max-width: 700px; line-height: 1.8; position: relative; }
.banner .banner-tags { margin-top: 20px; position: relative; }
.banner .banner-tags span {
    display: inline-block;
    background: rgba(255,255,255,.18);
    padding: 4px 14px;
    border-radius: 16px;
    margin: 4px 6px 0 0;
    font-size: 13px;
}

/* ========== 区块 ========== */
.section { background: #fff; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); margin-bottom: 24px; }
.section-title {
    display: flex; align-items: center; justify-content: space-between;
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 14px; margin-bottom: 22px;
}
.section-title h2 {
    font-size: 20px; color: var(--primary);
    border-left: 4px solid var(--primary);
    padding-left: 12px;
}
.section-title .more { font-size: 13px; color: var(--text-muted); }
.section-title .more:hover { color: var(--primary); }

/* ========== 分类网格（首页产品中心） ========== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
.product-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 18px;
    text-align: center;
    transition: all .25s;
    text-decoration: none;
    color: var(--text);
    position: relative;
    overflow: hidden;
}
.product-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 0; height: 3px;
    background: var(--primary);
    transition: width .3s;
}
.product-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
    color: var(--primary);
    text-decoration: none;
}
.product-card:hover::before { width: 100%; }
.product-card .pc-icon {
    width: 56px; height: 56px;
    margin: 0 auto 12px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
    transition: all .25s;
}
.product-card:hover .pc-icon {
    background: var(--primary);
    color: #fff;
    transform: rotate(8deg) scale(1.05);
}
.product-card .pc-name { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.product-card .pc-desc {
    font-size: 12px; color: var(--text-muted);
    line-height: 1.5;
    height: 36px;
    overflow: hidden;
}

/* ========== 文章列表 ========== */
.article-list { display: flex; flex-direction: column; gap: 0; }
.article-item {
    display: flex;
    padding: 16px 0;
    border-bottom: 1px dashed var(--border);
    align-items: flex-start;
}
.article-item:last-child { border-bottom: none; }
.article-item .ai-icon {
    width: 80px; height: 80px;
    flex-shrink: 0;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-size: 32px;
    margin-right: 16px;
}
.article-item .ai-content { flex: 1; min-width: 0; }
.article-item .ai-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
    transition: color .2s;
}
.article-item .ai-title:hover { color: var(--primary); }
.article-item .ai-summary {
    color: var(--text-light);
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-item .ai-meta { color: var(--text-muted); font-size: 12px; }
.article-item .ai-meta span { margin-right: 14px; }
.article-item .ai-meta i { margin-right: 4px; }

/* ========== 卡片网格（首页文章 3列） ========== */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}
.article-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all .25s;
}
.article-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.article-card .ac-cover {
    height: 150px;
    background: linear-gradient(135deg, var(--primary-light), #cfe6f3);
    background-size: cover;
    background-position: center;
    color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 50px;
    transition: transform .25s;
}
.article-card:hover .ac-cover { transform: scale(1.04); }
.article-card .ac-cover.c-1 { background: linear-gradient(135deg, #e8f1f7, #cfe6f3); color: #0f6fa1; }
.article-card .ac-cover.c-2 { background: linear-gradient(135deg, #fef5e7, #fad7a0); color: #d35400; }
.article-card .ac-cover.c-3 { background: linear-gradient(135deg, #eafaf1, #aed6c2); color: #229954; }
.article-card .ac-cover.c-4 { background: linear-gradient(135deg, #fdecea, #f5b7b1); color: #c0392b; }
.article-card .ac-cover.c-5 { background: linear-gradient(135deg, #f4ecf7, #d2b4de); color: #7d3c98; }
.article-card .ac-cover.c-6 { background: linear-gradient(135deg, #eaf2f8, #a9cce3); color: #21618c; }
.article-card .ac-cover.c-7 { background: linear-gradient(135deg, #fef9e7, #f9e79f); color: #b7950b; }
.article-card .ac-cover.c-8 { background: linear-gradient(135deg, #fdedec, #f1948a); color: #a93226; }
.article-card .ac-body { padding: 14px 16px; }
.article-card .ac-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
    line-height: 1.5;
    height: 44px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.article-card .ac-title:hover { color: var(--primary); }
.article-card .ac-meta { color: var(--text-muted); font-size: 12px; }

/* ========== 产品知识推荐（缩略图列表） ========== */
.rec-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.rec-item { display: flex; gap: 16px; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; transition: all .25s; }
.rec-item:hover { border-color: var(--primary); box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.rec-thumb { width: 168px; height: 112px; flex-shrink: 0; border-radius: calc(var(--radius) - 4px); background: var(--primary-light); background-size: cover; background-position: center; color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 38px; }
.rec-body { flex: 1; min-width: 0; }
.rec-title { font-size: 16px; font-weight: 600; line-height: 1.5; }
.rec-item:hover .rec-title { color: var(--primary); }
.rec-summary { margin: 8px 0 auto; color: var(--text-light); font-size: 13px; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.latest-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.latest-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    background: #fff;
    transition: all .25s;
}
.latest-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}
.latest-item .li-cover {
    width: 100%; height: 150px;
    flex-shrink: 0;
    border-radius: calc(var(--radius) - 4px);
    background: var(--primary-light);
    background-size: cover;
    background-position: center;
    color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 40px;
}
.latest-item .li-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.latest-item .li-title {
    font-size: 15px; font-weight: 600; line-height: 1.5; margin-bottom: 6px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.latest-item:hover .li-title { color: var(--primary); }
.latest-item .li-summary { color: var(--text-light); font-size: 12.5px; line-height: 1.6; }
.latest-item .li-meta { margin-top: auto; padding-top: 8px; color: var(--text-muted); font-size: 12px; }
.home-news { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 30px; }
.news-block .news-head {
    display: flex; align-items: center; justify-content: space-between;
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 10px; margin-bottom: 6px;
}
.news-block .news-head h3 { font-size: 16px; color: var(--primary); }
.news-block .news-head h3 i { margin-right: 6px; }
.news-block .news-head a { font-size: 12px; color: var(--text-muted); }
.news-block .news-head a:hover { color: var(--primary); }
.news-list li {
    display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
    padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: 14px;
}
.news-list li:last-child { border-bottom: none; }
.news-list li a {
    color: var(--text); flex: 1; min-width: 0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.news-list li a:hover { color: var(--primary); }
.news-list li a::before {
    content: '\f0da';
    font-family: FontAwesome;
    color: var(--primary);
    margin-right: 6px;
    font-size: 11px;
}
.news-list li .date { color: var(--text-muted); font-size: 12px; flex-shrink: 0; }

/* ========== 两列布局（列表页/详情页） ========== */
.two-col { display: grid; grid-template-columns: 1fr 280px; gap: 24px; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

.sidebar { display: flex; flex-direction: column; gap: 20px; }
.widget { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.widget-title {
    font-size: 16px; color: var(--primary);
    border-left: 4px solid var(--primary);
    padding-left: 10px;
    margin-bottom: 14px;
}
.widget ul li {
    padding: 8px 0;
    border-bottom: 1px dashed var(--border);
    display: flex; justify-content: space-between; align-items: center;
    font-size: 13px;
}
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { color: var(--text); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.widget ul li a:hover { color: var(--primary); }
.widget ul li .date { color: var(--text-muted); font-size: 12px; margin-left: 8px; flex-shrink: 0; }
.widget .hot-num {
    display: inline-block;
    width: 20px; height: 20px;
    background: var(--text-muted);
    color: #fff;
    text-align: center; line-height: 20px;
    border-radius: 3px;
    margin-right: 8px;
    font-size: 11px;
    flex-shrink: 0;
}
.widget .hot-num.n1 { background: #c0392b; }
.widget .hot-num.n2 { background: #e67e22; }
.widget .hot-num.n3 { background: #f39c12; }

.cat-tree li { padding: 0; border-bottom: 1px solid var(--border); }
.cat-tree li a {
    display: block;
    padding: 10px 8px;
    color: var(--text);
    transition: all .2s;
}
.cat-tree li a:hover, .cat-tree li a.active {
    background: var(--primary-light);
    color: var(--primary);
    text-decoration: none;
    padding-left: 16px;
}
.cat-tree li a i { margin-right: 6px; color: var(--text-muted); width: 18px; }
.cat-tree li a:hover i, .cat-tree li a.active i { color: var(--primary); }

/* ========== 文章详情 ========== */
.article-detail { background: #fff; border-radius: var(--radius); padding: 36px 40px; box-shadow: var(--shadow); }
.article-detail .ad-title { font-size: 26px; line-height: 1.4; margin-bottom: 12px; color: var(--text); }
.article-detail .ad-meta {
    color: var(--text-muted);
    font-size: 13px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 14px;
    margin-bottom: 24px;
}
.article-detail .ad-meta span { margin-right: 16px; }
.article-detail .ad-meta i { margin-right: 4px; }
.article-detail .ad-content {
    font-size: 16px;
    line-height: 1.9;
    color: var(--text);
}
.article-detail .ad-content h1,
.article-detail .ad-content h2,
.article-detail .ad-content h3,
.article-detail .ad-content h4,
.article-detail .ad-content h5,
.article-detail .ad-content h6 {
    margin: 26px 0 14px;
    font-weight: 600;
    color: var(--text);
}
.article-detail .ad-content h1 { font-size: 26px; }
.article-detail .ad-content h2 { font-size: 22px; border-left: 4px solid var(--primary); padding-left: 12px; }
.article-detail .ad-content h3 { font-size: 19px; }
.article-detail .ad-content h4 { font-size: 17px; }
.article-detail .ad-content p { margin-bottom: 14px; }
.article-detail .ad-content ul,
.article-detail .ad-content ol { padding-left: 28px; margin-bottom: 14px; list-style: revert; }
.article-detail .ad-content ul li,
.article-detail .ad-content ol li { margin-bottom: 6px; }
.article-detail .ad-content blockquote {
    background: var(--primary-light);
    border-left: 4px solid var(--primary);
    padding: 12px 16px;
    margin: 16px 0;
    color: var(--text-light);
    border-radius: 0 4px 4px 0;
}
.article-detail .ad-content strong { color: var(--primary-dark); }
.article-detail .ad-content code {
    background: #f4f6f8;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 14px;
    color: #c0392b;
}
.article-detail .ad-content pre {
    background: #2c3e50;
    color: #e8e8e8;
    padding: 14px 16px;
    border-radius: 4px;
    overflow-x: auto;
    margin: 14px 0;
}
.article-detail .ad-content pre code { background: none; color: inherit; padding: 0; }
.article-detail .ad-content table {
    border-collapse: collapse;
    width: 100%;
    margin: 16px 0;
}
.article-detail .ad-content table th,
.article-detail .ad-content table td {
    border: 1px solid var(--border);
    padding: 8px 12px;
    text-align: left;
}
.article-detail .ad-content table th { background: var(--primary-light); color: var(--primary-dark); }

.article-detail .ad-tags { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border); }
.article-detail .ad-tags .tag {
    display: inline-block;
    padding: 4px 10px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 3px;
    font-size: 12px;
    margin-right: 6px;
}

.article-detail .ad-nav { display: flex; justify-content: space-between; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 14px; }
.article-detail .ad-nav a { color: var(--text); max-width: 48%; }
.article-detail .ad-nav a:hover { color: var(--primary); }

/* ========== 分页 ========== */
.pager {
    display: flex; justify-content: center;
    margin: 24px 0 0; flex-wrap: wrap; gap: 4px;
}
.pager .pager-item {
    padding: 6px 12px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    border-radius: 4px;
    font-size: 13px;
    min-width: 34px; text-align: center;
}
.pager .pager-item:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.pager .pager-item.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.pager .pager-item.disabled { color: var(--text-muted); background: #f5f5f5; cursor: not-allowed; }

/* ========== 面包屑 ========== */
.breadcrumb {
    background: #fff;
    border-radius: var(--radius);
    padding: 12px 18px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    color: var(--text-muted);
    font-size: 13px;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb i { margin: 0 6px; font-size: 12px; }
.breadcrumb .sep { margin: 0 6px; color: var(--text-muted); }

/* ========== 列表筛选条 ========== */
.list-head { background: #fff; border-radius: var(--radius); padding: 20px 24px; margin-bottom: 20px; box-shadow: var(--shadow); }
.list-head h1 { font-size: 22px; color: var(--primary); margin-bottom: 6px; }
.list-head p { color: var(--text-muted); font-size: 13px; }

/* ========== 关于/联系 页面 ========== */
.about-page, .contact-page { background: #fff; border-radius: var(--radius); padding: 36px 40px; box-shadow: var(--shadow); }
.about-page h1, .contact-page h1 { font-size: 24px; color: var(--primary); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--primary-light); }
.about-page p, .contact-page p { margin-bottom: 14px; line-height: 1.9; }

/* ========== 服务支持页 ========== */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 16px;
    margin-top: 24px;
}
.service-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 18px;
    transition: all .25s;
}
.service-card:hover { border-color: var(--primary); box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.service-card .sc-icon {
    width: 52px; height: 52px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    margin-bottom: 12px;
}
.service-card h3 { font-size: 16px; color: var(--text); margin-bottom: 8px; }
.service-card p { font-size: 13px; color: var(--text-light); line-height: 1.8; margin-bottom: 0; }
.service-list li {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.9;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border);
}
.service-list li:last-child { border-bottom: none; }
.service-list li i { color: var(--primary); margin-right: 8px; }
.service-list li strong { color: var(--text); }

.contact-form { margin-top: 24px; }
.contact-form .form-row { display: flex; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.contact-form .form-row > * { flex: 1; min-width: 200px; }
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color .2s;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}
.contact-form textarea { min-height: 100px; resize: vertical; }
.contact-form button {
    padding: 10px 24px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background .2s;
}
.contact-form button:hover { background: var(--primary-dark); }
.contact-form .msg { padding: 10px 14px; border-radius: 4px; margin-bottom: 12px; font-size: 14px; }
.contact-form .msg.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.contact-form .msg.error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* ========== 搜索 ========== */
.search-form { display: flex; gap: 0; }
.search-form input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 4px 0 0 4px;
    font-size: 14px;
    font-family: inherit;
}
.search-form input:focus { outline: none; border-color: var(--primary); }
.search-form button {
    padding: 8px 16px;
    background: var(--primary);
    color: #fff;
    border: 1px solid var(--primary);
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 14px;
}
.search-form button:hover { background: var(--primary-dark); border-color: var(--primary-dark); }

/* ========== 页脚 ========== */
.footer {
    background: #2c3e50;
    color: #b8c5d3;
    padding: 40px 0 0;
    margin-top: 30px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 30px;
    padding-bottom: 30px;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h3 { color: #fff; font-size: 15px; margin-bottom: 14px; position: relative; padding-bottom: 8px; }
.footer h3::after { content: ''; position: absolute; bottom: 0; left: 0; width: 24px; height: 2px; background: var(--primary); }
.footer p, .footer li { font-size: 13px; line-height: 1.9; }
.footer ul li a { color: #b8c5d3; }
.footer ul li a:hover { color: #fff; }
.footer .footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer .footer-logo .logo-mark { width: 36px; height: 36px; font-size: 18px; }
.footer .footer-logo strong { color: #fff; font-size: 16px; }
.footer .footer-contact p i { width: 18px; color: var(--primary); margin-right: 6px; }

.footer-tags {
    background: #243342;
    padding: 20px 0;
    border-top: 1px solid #34495e;
}
.footer-tags h4 { color: #fff; font-size: 14px; margin-bottom: 10px; }
.footer-tags .tag-list a {
    display: inline-block;
    background: rgba(255,255,255,.05);
    color: #b8c5d3;
    padding: 4px 10px;
    margin: 2px 4px 2px 0;
    border-radius: 3px;
    font-size: 12px;
    transition: all .2s;
}
.footer-tags .tag-list a:hover { background: var(--primary); color: #fff; text-decoration: none; }

.copyright {
    background: #1c2733;
    color: #7f8c8d;
    text-align: center;
    padding: 14px 0;
    font-size: 12px;
}
.copyright a { color: #b8c5d3; margin: 0 6px; }
.copyright a:hover { color: #fff; }

/* ========== 404 ========== */
.error-page {
    background: #fff; border-radius: var(--radius); padding: 80px 20px;
    text-align: center; box-shadow: var(--shadow);
}
.error-page .code { font-size: 80px; color: var(--primary); font-weight: 700; margin-bottom: 8px; }
.error-page h2 { color: var(--text); margin-bottom: 12px; }
.error-page p { color: var(--text-muted); margin-bottom: 20px; }
.error-page .btn { display: inline-block; padding: 10px 24px; background: var(--primary); color: #fff; border-radius: 4px; }
.error-page .btn:hover { background: var(--primary-dark); color: #fff; text-decoration: none; }

/* ========== 浮动工具栏 ========== */
.floating-tools {
    position: fixed;
    right: 20px;
    bottom: 80px;
    z-index: 99;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.floating-tools a {
    width: 44px; height: 44px;
    background: #fff;
    border-radius: 50%;
    box-shadow: var(--shadow);
    display: flex; align-items: center; justify-content: center;
    color: var(--primary);
    text-decoration: none;
    transition: all .25s;
}
.floating-tools a:hover { background: var(--primary); color: #fff; transform: scale(1.1); }

/* ========== 通用 ========== */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mb-0 { margin-bottom: 0; }
.mt-20 { margin-top: 20px; }

/* ========== 后台 ========== */
.admin-body { background: #f0f2f5; min-height: 100vh; display: flex; }
.admin-sidebar {
    width: 220px;
    background: #2c3e50;
    color: #ecf0f1;
    flex-shrink: 0;
}
.admin-sidebar .admin-brand {
    padding: 18px 20px;
    border-bottom: 1px solid #34495e;
    color: #fff;
    font-size: 15px;
}
.admin-sidebar .admin-brand i { margin-right: 6px; color: var(--primary); }
.admin-sidebar ul li a {
    display: block;
    padding: 12px 20px;
    color: #b8c5d3;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all .2s;
    font-size: 14px;
}
.admin-sidebar ul li a i { width: 20px; margin-right: 6px; }
.admin-sidebar ul li a:hover, .admin-sidebar ul li a.active {
    background: #34495e;
    color: #fff;
    border-left-color: var(--primary);
}
.admin-main { flex: 1; padding: 20px; overflow-x: auto; }
.admin-header {
    background: #fff;
    padding: 12px 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 16px;
    display: flex; justify-content: space-between; align-items: center;
}
.admin-header h1 { font-size: 18px; color: var(--text); }
.admin-header .user { color: var(--text-light); font-size: 14px; }
.admin-header .user a { margin-left: 12px; color: var(--accent); }

.admin-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 16px;
}
.admin-card .ac-head {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.admin-card .ac-head h2 { font-size: 16px; color: var(--text); }

.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    font-size: 14px;
}
.admin-table th { background: #f8f9fa; color: var(--text); font-weight: 600; }
.admin-table tr:hover td { background: #fafbfc; }
.admin-table .actions a {
    color: var(--primary);
    margin-right: 8px;
    font-size: 13px;
}
.admin-table .actions a.danger { color: #c0392b; }
.admin-table .badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
}
.admin-table .badge.green { background: #d4edda; color: #155724; }
.admin-table .badge.red { background: #f8d7da; color: #721c24; }
.admin-table .badge.gray { background: #e9ecef; color: #495057; }

.admin-form .form-group { margin-bottom: 14px; }
.admin-form label { display: block; margin-bottom: 6px; color: var(--text); font-size: 14px; }
.admin-form label .req { color: #c0392b; }
.admin-form input[type=text], .admin-form input[type=password], .admin-form textarea, .admin-form select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}
.admin-form textarea { min-height: 260px; resize: vertical; }
.admin-form input:focus, .admin-form textarea:focus, .admin-form select:focus { outline: none; border-color: var(--primary); }
.admin-form .form-row { display: flex; gap: 12px; flex-wrap: wrap; }
.admin-form .form-row > .form-group { flex: 1; min-width: 200px; }
.admin-form .help { color: var(--text-muted); font-size: 12px; margin-top: 4px; }

.admin-btn {
    display: inline-block;
    padding: 8px 18px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    transition: background .2s;
}
.admin-btn:hover { background: var(--primary-dark); color: #fff; text-decoration: none; }
.admin-btn.danger { background: #c0392b; }
.admin-btn.danger:hover { background: #a93226; }
.admin-btn.gray { background: #95a5a6; }
.admin-btn.gray:hover { background: #7f8c8d; }
.admin-btn.small { padding: 4px 10px; font-size: 12px; }

.alert {
    padding: 10px 14px;
    border-radius: 4px;
    margin-bottom: 14px;
    font-size: 14px;
}
.alert.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert.error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert.info { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }

/* 登录页 */
.login-page {
    min-height: 100vh;
    background: linear-gradient(120deg, var(--primary), var(--primary-dark));
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.login-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,.2);
    padding: 40px;
    width: 100%;
    max-width: 380px;
}
.login-card h1 {
    text-align: center;
    color: var(--primary);
    margin-bottom: 24px;
    font-size: 20px;
}
.login-card .form-group { margin-bottom: 14px; }
.login-card input { width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: 4px; font-size: 14px; }
.login-card input:focus { outline: none; border-color: var(--primary); }
.login-card button {
    width: 100%;
    padding: 10px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 15px;
    margin-top: 8px;
}
.login-card button:hover { background: var(--primary-dark); }
.login-card .login-tip { color: var(--text-muted); font-size: 12px; text-align: center; margin-top: 12px; }

/* 统计卡片 */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}
.stat-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary);
}
.stat-card .stat-num { font-size: 28px; color: var(--primary); font-weight: 700; }
.stat-card .stat-label { color: var(--text-muted); font-size: 13px; margin-top: 4px; }
.stat-card.c-2 { border-left-color: var(--accent); }
.stat-card.c-2 .stat-num { color: var(--accent); }
.stat-card.c-3 { border-left-color: #27ae60; }
.stat-card.c-3 .stat-num { color: #27ae60; }
.stat-card.c-4 { border-left-color: #9b59b6; }
.stat-card.c-4 .stat-num { color: #9b59b6; }

/* 移动端适配 */
@media (max-width: 1100px) {
    .latest-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .banner .banner-visual { display: none; }
}
@media (max-width: 768px) {
    .topbar { display: none; }
    .header-inner { flex-direction: column; gap: 10px; text-align: center; }
    .nav-inner { overflow-x: auto; white-space: nowrap; }
    .nav a.nav-link { padding: 0 14px; font-size: 14px; line-height: 44px; }
    .banner { padding: 30px 20px; }
    .banner h1 { font-size: 24px; }
    .banner p { font-size: 14px; }
    .article-detail, .about-page, .contact-page { padding: 20px; }
    .article-detail .ad-title { font-size: 20px; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .product-card { padding: 14px 8px; }
    .article-item .ai-icon { width: 60px; height: 60px; font-size: 24px; }
    .floating-tools { right: 10px; bottom: 60px; }
    .floating-tools a { width: 38px; height: 38px; }
    .home-news { grid-template-columns: 1fr; gap: 22px; }
    .news-list li a { white-space: normal; }
    .service-grid { grid-template-columns: 1fr; }
    .service-card { padding: 18px 16px; }
    .rec-list { grid-template-columns: 1fr; }
    .latest-list { grid-template-columns: 1fr; }
}
