/* ============================================
   智培中采·采无忧 主样式
   配色：藏青 #1B3A5C / 青瓷绿 #4FB3A9 / 浅蓝白 #F0F4F8
   ============================================ */
:root {
    --primary: #1B3A5C;
    --primary-dark: #142C47;
    --primary-light: #2A527E;
    --accent: #4FB3A9;
    --accent-dark: #3A948B;
    --bg: #F0F4F8;
    --white: #ffffff;
    --text: #2c3e50;
    --text-light: #6b7c93;
    --border: #e3e9f0;
    --radius: 12px;
    --shadow: 0 4px 20px rgba(27, 58, 92, 0.08);
    --shadow-hover: 0 8px 30px rgba(27, 58, 92, 0.14);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Source Han Sans CN", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    font-size: 15px;
}
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-dark); }
img { max-width: 100%; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== 顶部细条 ===== */
.topbar {
    background: var(--primary-dark);
    color: rgba(255,255,255,.85);
    font-size: 13px;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 38px; }
.topbar a { color: rgba(255,255,255,.85); margin-left: 18px; }
.topbar a:hover { color: var(--accent); }
.topbar .phone { color: var(--accent); font-weight: 600; }

/* ===== 主导航 ===== */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(27,58,92,.05);
    position: sticky; top: 0; z-index: 100;
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
    width: 42px; height: 42px; border-radius: 10px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 18px;
}
.logo-text .name { font-size: 20px; font-weight: 700; color: var(--primary); letter-spacing: 1px; }
.logo-text .sub { font-size: 12px; color: var(--text-light); letter-spacing: 2px; }
.nav-menu { display: flex; gap: 4px; list-style: none; }
.nav-menu a {
    display: block; padding: 8px 14px; color: var(--text); font-size: 15px;
    border-radius: 8px; transition: all .2s;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--primary); background: var(--bg); }
.nav-menu a.active { font-weight: 600; }
.btn {
    display: inline-block; padding: 10px 22px; border-radius: 8px; font-size: 14px;
    font-weight: 600; cursor: pointer; border: none; transition: all .2s; text-align: center;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-light); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.6); }
.btn-outline:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-lg { padding: 14px 32px; font-size: 16px; }

/* ===== Banner ===== */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, var(--primary-light) 100%);
    color: #fff; padding: 70px 0 80px; position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; right: -100px; top: -100px; width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(79,179,169,.25) 0%, transparent 70%);
    border-radius: 50%;
}
.hero .container { display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; align-items: center; position: relative; z-index: 1; }
.hero h1 { font-size: 42px; line-height: 1.25; margin-bottom: 18px; font-weight: 700; }
.hero .tags { color: var(--accent); font-size: 16px; font-weight: 600; margin-bottom: 18px; letter-spacing: 1px; }
.hero p.desc { color: rgba(255,255,255,.82); font-size: 16px; margin-bottom: 30px; }
.hero .cta { display: flex; gap: 14px; }
.hero-visual {
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
    border-radius: var(--radius); padding: 28px; backdrop-filter: blur(10px);
}
.hero-visual .cert-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hero-visual .cert {
    background: rgba(255,255,255,.95); border-radius: 10px; padding: 16px;
    color: var(--primary); text-align: center;
}
.hero-visual .cert .t { font-weight: 700; font-size: 18px; }
.hero-visual .cert .d { font-size: 12px; color: var(--text-light); margin-top: 4px; }

/* ===== 通用 section ===== */
.section { padding: 70px 0; }
.section-title { text-align: center; margin-bottom: 45px; }
.section-title h2 { font-size: 32px; color: var(--primary); font-weight: 700; }
.section-title .bar { width: 50px; height: 4px; background: var(--accent); border-radius: 2px; margin: 14px auto 0; }
.section-title p { color: var(--text-light); margin-top: 12px; }

/* ===== 项目卡片 ===== */
.cards-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 16px; }
.project-card {
    background: var(--white); border-radius: var(--radius); padding: 28px 16px;
    text-align: center; box-shadow: var(--shadow); transition: all .25s;
    border-top: 3px solid transparent;
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-top-color: var(--accent); }
.project-card .icon {
    width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700;
}
.project-card h3 { font-size: 17px; color: var(--primary); margin-bottom: 8px; }
.project-card p { font-size: 13px; color: var(--text-light); margin-bottom: 12px; line-height: 1.5; }
.project-card .more { font-size: 13px; color: var(--accent-dark); font-weight: 600; }

/* ===== 数据条 ===== */
.stats { background: var(--primary); color: #fff; padding: 45px 0; }
.stats .container { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; text-align: center; }
.stats .num { font-size: 36px; font-weight: 700; color: var(--accent); }
.stats .label { font-size: 14px; color: rgba(255,255,255,.8); margin-top: 6px; }

/* ===== 通用两栏 / 内容块 ===== */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.card {
    background: var(--white); border-radius: var(--radius); padding: 28px;
    box-shadow: var(--shadow);
}
.card h3 { color: var(--primary); margin-bottom: 12px; font-size: 19px; }
.card p { color: var(--text-light); }

/* ===== 留言表 ===== */
.contact-card {
    background: var(--white); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 14px; color: var(--text); margin-bottom: 6px; font-weight: 600; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 8px;
    font-size: 14px; font-family: inherit; background: #fafbfc; transition: border .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: var(--accent); background: #fff;
}
.form-group textarea { min-height: 110px; resize: vertical; }
.form-tip { font-size: 12px; color: var(--text-light); margin-top: 8px; }
.form-msg { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }
.form-msg.ok { background: #e8f5e9; color: #2e7d32; }
.form-msg.err { background: #fdecea; color: #c62828; }

/* ===== CTA 条 ===== */
.cta-band { padding: 50px 0; }
.cta-card {
    background: var(--white); border-radius: var(--radius); padding: 40px;
    box-shadow: var(--shadow); display: flex; justify-content: space-between; align-items: center; gap: 30px;
}
.cta-card h3 { color: var(--primary); font-size: 24px; margin-bottom: 6px; }
.cta-card p { color: var(--text-light); }
.cta-card .phone { font-size: 30px; font-weight: 700; color: var(--primary); }

/* ===== 页脚 ===== */
.footer { background: var(--primary-dark); color: rgba(255,255,255,.75); padding: 60px 0 0; font-size: 14px; }
.footer .grid-4 { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 18px; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 10px; }
.footer a { color: rgba(255,255,255,.75); }
.footer a:hover { color: var(--accent); }
.footer .brand-name { font-size: 20px; color: #fff; font-weight: 700; margin-bottom: 12px; }
.footer .copy {
    border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; text-align: center;
    font-size: 13px; color: rgba(255,255,255,.55);
}

/* ===== 文章页 ===== */
.article-layout { display: grid; grid-template-columns: 1fr 300px; gap: 30px; }
.article-main { background: var(--white); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); }
.article-main h1 { color: var(--primary); font-size: 28px; line-height: 1.4; margin-bottom: 16px; }
.article-meta { font-size: 13px; color: var(--text-light); padding-bottom: 18px; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.article-meta span { margin-right: 18px; }
.article-content h2 { color: var(--primary); font-size: 22px; margin: 28px 0 14px; padding-left: 12px; border-left: 4px solid var(--accent); }
.article-content h3 { color: var(--primary); font-size: 18px; margin: 22px 0 10px; }
.article-content p { margin-bottom: 14px; color: var(--text); }
.article-content ul, .article-content ol { margin: 0 0 14px 22px; }
.article-content li { margin-bottom: 6px; }
.sidebar-card { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); margin-bottom: 20px; }
.sidebar-card h4 { color: var(--primary); margin-bottom: 14px; font-size: 17px; border-bottom: 2px solid var(--accent); padding-bottom: 8px; }
.sidebar-card ul { list-style: none; }
.sidebar-card li { padding: 8px 0; border-bottom: 1px dashed var(--border); }
.sidebar-card li:last-child { border-bottom: none; }
.sidebar-card a { color: var(--text); font-size: 14px; }
.sidebar-card a:hover { color: var(--accent-dark); }

.article-list .item {
    background: var(--white); border-radius: var(--radius); padding: 24px 28px; margin-bottom: 18px;
    box-shadow: var(--shadow); transition: all .2s;
}
.article-list .item:hover { box-shadow: var(--shadow-hover); }
.article-list .item h3 { font-size: 19px; margin-bottom: 8px; }
.article-list .item h3 a { color: var(--primary); }
.article-list .item .meta { font-size: 13px; color: var(--text-light); margin-bottom: 8px; }
.article-list .item .summary { color: var(--text-light); font-size: 14px; }

/* ===== 面包屑 ===== */
.breadcrumb { font-size: 13px; color: var(--text-light); padding: 18px 0; }
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--accent-dark); }

/* ===== FAQ ===== */
.faq-item { background: var(--white); border-radius: var(--radius); margin-bottom: 14px; box-shadow: var(--shadow); overflow: hidden; }
.faq-item summary {
    padding: 18px 24px; cursor: pointer; font-weight: 600; color: var(--primary);
    list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 22px; color: var(--accent); font-weight: 400; }
.faq-item[open] summary::after { content: '−'; }
.faq-item .answer { padding: 0 24px 18px; color: var(--text-light); }

/* ===== 后台 ===== */
.admin-body { background: var(--bg); }
.admin-wrap { max-width: 1200px; margin: 0 auto; padding: 30px 20px; }
.admin-table { width: 100%; background: var(--white); border-radius: var(--radius); border-collapse: collapse; box-shadow: var(--shadow); }
.admin-table th, .admin-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14px; }
.admin-table th { background: var(--primary); color: #fff; font-weight: 600; }
.admin-table tr:hover td { background: #f8fafc; }
.admin-actions { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.admin-login { max-width: 400px; margin: 80px auto; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 10px; font-size: 12px; }
.badge.new { background: #fff3e0; color: #e65100; }
.badge.read { background: #e8f5e9; color: #2e7d32; }

/* ===== 响应式 ===== */
@media (max-width: 992px) {
    .hero .container { grid-template-columns: 1fr; }
    .cards-grid { grid-template-columns: repeat(3,1fr); }
    .article-layout { grid-template-columns: 1fr; }
    .footer .grid-4 { grid-template-columns: 1fr 1fr; }
    .nav-menu { display: none; }
}
@media (max-width: 600px) {
    .hero h1 { font-size: 30px; }
    .cards-grid { grid-template-columns: repeat(2,1fr); }
    .grid-2, .grid-3, .form-row { grid-template-columns: 1fr; }
    .stats .container { grid-template-columns: repeat(2,1fr); }
    .cta-card { flex-direction: column; text-align: center; }
    .footer .grid-4 { grid-template-columns: 1fr; }
}
