/**
 * ============================================================
 * 官网首页样式（index.php 专用）
 * 引入：index.php 通过 css_url('index.css') 外链
 * 说明：首页不引入任何前端框架，样式全部自写，设计令牌集中在下方的 :root 变量；
 *       配色为浅灰底 + 品牌蓝的常规企业官网风格；无 JS 兜底见 index-noscript.css
 * ============================================================
 */

/* ===================== 基础与配色 ===================== */
:root{
    --brand:#17529e;
    --brand-dark:#12417f;
    --brand-light:#eaf1fb;
    --text:#1f2733;
    --text-2:#5a6474;
    --text-3:#8a93a1;
    --line:#e3e6ea;
    --line-2:#d3d8de;
    --bg:#f4f6f8;
    --white:#fff;
    --radius:4px;
    --max:1200px;
    --font:"Microsoft YaHei","PingFang SC","Hiragino Sans GB","Helvetica Neue",Arial,sans-serif;
}
*,*::before,*::after{box-sizing:border-box;}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;}
body{
    margin:0;background:var(--white);color:var(--text);
    font-family:var(--font);font-size:14px;line-height:1.75;
    -webkit-font-smoothing:antialiased;
}
a{color:inherit;text-decoration:none;}
img{max-width:100%;display:block;}
h1,h2,h3,h4{margin:0;font-weight:600;line-height:1.4;}
p{margin:0;}
ul{margin:0;padding:0;list-style:none;}
.ico{flex:0 0 auto;vertical-align:-3px;}
.wrap{max-width:var(--max);margin:0 auto;padding:0 20px;}

/* ===================== 按钮 ===================== */
.btn{
    display:inline-flex;align-items:center;justify-content:center;gap:6px;
    padding:8px 18px;border-radius:var(--radius);border:1px solid transparent;
    font-family:inherit;font-size:14px;font-weight:500;cursor:pointer;white-space:nowrap;
    transition:background-color .2s,border-color .2s,color .2s;
}
.btn-primary{background:var(--brand);color:#fff;}
.btn-primary:hover{background:var(--brand-dark);}
.btn-outline{border-color:var(--line-2);color:#38414f;background:var(--white);}
.btn-outline:hover{border-color:var(--brand);color:var(--brand);}
.btn-white{background:#fff;color:var(--brand);}
.btn-white:hover{background:#eef4fd;}
.btn-line{border-color:rgba(255,255,255,.6);color:#fff;background:transparent;}
.btn-line:hover{background:rgba(255,255,255,.12);border-color:#fff;}
.btn-lg{padding:11px 26px;font-size:15px;}
.btn-block{width:100%;}

/* ===================== 公告条 ===================== */
.topbar{background:var(--brand-dark);color:#cfe0f5;font-size:13px;line-height:32px;}
.topbar .wrap{display:flex;align-items:center;gap:8px;}
.topbar .sep{color:rgba(255,255,255,.3);}
.topbar a{margin-left:auto;color:#fff;}
.topbar a:hover{text-decoration:underline;}

/* ===================== 顶部导航 ===================== */
.site-header{position:sticky;top:0;z-index:50;background:var(--white);border-bottom:1px solid var(--line);}
.header-inner{display:flex;align-items:center;gap:26px;height:64px;}
.logo{display:flex;align-items:center;gap:9px;font-size:17px;font-weight:600;color:var(--text);}
.logo-mark{
    width:32px;height:32px;border-radius:5px;display:grid;place-items:center;
    background:var(--brand);color:#fff;
}
.main-nav{display:flex;align-items:center;gap:2px;}
.main-nav a{padding:6px 14px;border-radius:var(--radius);color:#38414f;font-size:14px;transition:color .2s,background-color .2s;}
.main-nav a:hover{color:var(--brand);background:var(--brand-light);}
.header-actions{margin-left:auto;display:flex;align-items:center;gap:10px;}

/* 账号下拉 */
.account{position:relative;}
.account-btn{max-width:180px;}
.account-btn .name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.account-menu{
    position:absolute;right:0;top:calc(100% + 8px);min-width:170px;padding:6px;
    background:#fff;border:1px solid var(--line);border-radius:var(--radius);
    box-shadow:0 6px 20px rgba(31,39,51,.12);display:none;
}
.account.is-open .account-menu{display:block;}
.account-menu a,.account-menu button{
    display:flex;align-items:center;gap:8px;width:100%;padding:8px 10px;
    border:0;border-radius:var(--radius);background:none;color:#38414f;
    font-family:inherit;font-size:13px;text-align:left;cursor:pointer;
}
.account-menu a:hover,.account-menu button:hover{background:var(--brand-light);color:var(--brand);}
.account-menu form{margin:0;}
.account-menu .sep{height:1px;background:var(--line);margin:5px 4px;}
.account-menu .danger:hover{color:#c0392b;background:#fdf0ee;}

/* 移动端导航 */
.nav-toggle{display:none;width:38px;height:38px;border:1px solid var(--line-2);border-radius:var(--radius);
    background:#fff;color:#38414f;cursor:pointer;place-items:center;margin-left:auto;}
.mobile-panel{display:none;border-top:1px solid var(--line);background:#fff;padding:8px 20px 18px;}
.mobile-panel.is-open{display:block;}
.mobile-panel a.m-link{display:block;padding:11px 2px;color:#38414f;border-bottom:1px solid var(--line);}
.mobile-panel .m-actions{display:flex;flex-direction:column;gap:9px;margin-top:16px;}

/* ===================== 轮播横幅 ===================== */
.banner{position:relative;background:linear-gradient(180deg,#1a5cab,#14477f);overflow:hidden;
    cursor:grab;touch-action:pan-y;}
.banner.is-dragging{cursor:grabbing;user-select:none;-webkit-user-select:none;}
.banner-track{display:flex;transition:transform .55s cubic-bezier(.4,0,.2,1);will-change:transform;}
.banner-slide{min-width:100%;padding:62px 0;}
.banner-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:48px;align-items:center;}
.banner-tag{
    display:inline-flex;align-items:center;gap:6px;padding:4px 11px;border-radius:2px;
    background:rgba(255,255,255,.14);color:#dbe8f8;font-size:12px;
}
.banner h1{margin:18px 0 16px;font-size:34px;color:#fff;letter-spacing:.5px;}
.banner-desc{color:#c6d8ee;font-size:15px;max-width:560px;}
.banner-btns{display:flex;flex-wrap:wrap;gap:12px;margin-top:28px;}

/* 横幅右侧信息卡（模拟后台界面） */
.info-card{background:#fff;border-radius:6px;box-shadow:0 12px 32px rgba(8,26,48,.28);overflow:hidden;}
.info-card-head{display:flex;align-items:center;gap:8px;padding:13px 18px;border-bottom:1px solid var(--line);font-size:14px;font-weight:600;}
.info-card-head .dot{width:8px;height:8px;border-radius:50%;background:#2e9e5b;}
.info-card-body{padding:8px 18px 16px;}
.info-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:11px 0;border-bottom:1px dashed var(--line);font-size:13px;}
.info-row:last-child{border-bottom:0;}
.info-row .k{color:var(--text-3);}
.info-row .v{color:var(--text);font-weight:500;}
.info-row .v.ok{color:#2e9e5b;}

/* 轮播指示点 */
.banner-dots{position:absolute;left:0;right:0;bottom:20px;display:flex;justify-content:center;gap:9px;}
.banner-dots button{
    width:9px;height:9px;padding:0;border:0;border-radius:50%;cursor:pointer;
    background:rgba(255,255,255,.42);transition:background-color .2s,width .2s;
}
.banner-dots button.is-active{background:#fff;width:22px;border-radius:5px;}

/* ===================== 数据条 ===================== */
.stat-bar{background:var(--white);border-bottom:1px solid var(--line);}
.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);}
.stat-item{padding:26px 20px;text-align:center;border-right:1px solid var(--line);}
.stat-item:last-child{border-right:0;}
.stat-item .num{font-size:22px;font-weight:600;color:var(--brand);}
.stat-item .lbl{color:var(--text-2);font-size:13px;margin-top:4px;}

/* ===================== 通用区块 ===================== */
.section{padding:64px 0;}
.section-gray{background:var(--bg);}
.section-head{text-align:center;margin-bottom:42px;}
.section-head h2{font-size:26px;color:var(--text);}
.section-head h2::after{
    content:"";display:block;width:34px;height:3px;margin:14px auto 0;
    background:var(--brand);border-radius:2px;
}
.section-head p{margin-top:14px;color:var(--text-2);font-size:14px;}

/* ===================== 核心特性 ===================== */
.feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;}
.feature-item{
    background:#fff;border:1px solid var(--line);border-radius:6px;padding:26px 24px;
    transition:box-shadow .2s,border-color .2s;
}
.feature-item:hover{border-color:#c3d4ea;box-shadow:0 4px 16px rgba(23,82,158,.08);}
.feature-icon{
    width:42px;height:42px;border-radius:6px;display:grid;place-items:center;
    background:var(--brand-light);color:var(--brand);margin-bottom:16px;
}
.feature-item h3{font-size:16px;margin-bottom:9px;}
.feature-item p{color:var(--text-2);font-size:13px;}

/* ===================== 产品中心 ===================== */
.group-title{
    display:flex;align-items:center;gap:9px;font-size:15px;color:var(--text);
    margin:0 0 16px;padding-left:10px;border-left:3px solid var(--brand);
}
.group-title .count{color:var(--text-3);font-size:13px;font-weight:400;}
.product-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-bottom:34px;}
.product-card{
    display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);
    border-radius:6px;padding:24px;transition:box-shadow .2s,border-color .2s;
}
.product-card:hover{border-color:#c3d4ea;box-shadow:0 4px 16px rgba(23,82,158,.08);}
.product-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;}
.product-card h3{font-size:16px;}
.price{
    padding:3px 10px;border-radius:2px;font-size:13px;font-weight:600;white-space:nowrap;
    background:var(--brand-light);color:var(--brand);
}
.price.free{background:#eaf7ef;color:#2e9e5b;}
.product-card .remark{color:var(--text-2);font-size:13px;margin:12px 0 22px;flex:1;}
.empty-box{
    text-align:center;padding:52px 20px;background:#fff;
    border:1px solid var(--line);border-radius:6px;color:var(--text-2);
}
.empty-box .ico{color:var(--text-3);margin-bottom:10px;}

/* ===================== 购买流程 ===================== */
.flow{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;}
.flow-item{background:#fff;border:1px solid var(--line);border-radius:6px;padding:24px 22px;}
.flow-num{
    width:30px;height:30px;border-radius:50%;display:grid;place-items:center;
    background:var(--brand);color:#fff;font-size:14px;font-weight:600;margin-bottom:14px;
}
.flow-item h3{font-size:15px;margin-bottom:7px;}
.flow-item p{color:var(--text-2);font-size:13px;}

/* ===================== 常见问题 ===================== */
.faq{max-width:880px;margin:0 auto;border:1px solid var(--line);border-radius:6px;overflow:hidden;background:#fff;}
.faq details{border-bottom:1px solid var(--line);}
.faq details:last-child{border-bottom:0;}
.faq summary{
    display:flex;align-items:center;gap:10px;padding:16px 20px;cursor:pointer;
    list-style:none;font-size:15px;font-weight:500;
}
.faq summary::-webkit-details-marker{display:none;}
.faq summary:hover{background:#fafbfc;}
.faq summary .ico:first-child{color:var(--brand);}
.faq summary .ico:last-child{margin-left:auto;color:var(--text-3);transition:transform .2s;}
.faq details[open] summary .ico:last-child{transform:rotate(180deg);}
.faq .answer{padding:0 20px 18px 46px;color:var(--text-2);font-size:13px;}

/* ===================== 购买引导 ===================== */
.guide{background:var(--brand);}
.guide .wrap{display:flex;align-items:center;gap:24px;flex-wrap:wrap;padding-top:34px;padding-bottom:34px;}
.guide-text h2{font-size:20px;color:#fff;}
.guide-text p{color:#c6d8ee;font-size:13px;margin-top:6px;}
.guide-btns{margin-left:auto;display:flex;flex-wrap:wrap;gap:12px;}

/* ===================== 页脚 ===================== */
.site-footer{background:#2b3441;color:#9aa5b4;font-size:13px;}
.footer-main{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:30px;padding:44px 0 34px;}
.footer-brand .logo{color:#fff;margin-bottom:14px;}
.footer-brand .logo-mark{background:#3a4759;}
.footer-brand p{color:#8c97a6;line-height:1.9;}
.footer-col h4{color:#fff;font-size:14px;margin-bottom:14px;font-weight:600;}
.footer-col li{margin-bottom:9px;}
.footer-col a:hover{color:#fff;}
.footer-bottom{border-top:1px solid #3a4453;padding:16px 0;display:flex;flex-wrap:wrap;gap:10px;justify-content:space-between;color:#7f8b9b;}

/* ===================== 提示条 ===================== */
.tip{
    display:flex;align-items:center;gap:8px;margin:18px 0 0;padding:11px 16px;
    border:1px solid #f0d9a8;background:#fdf8ec;color:#8a6a1f;font-size:13px;border-radius:var(--radius);
}

/* ===================== 响应式 ===================== */
@media (max-width:1000px){
    .banner-grid{grid-template-columns:1fr;gap:34px;}
    .banner h1{font-size:28px;}
    .feature-grid,.product-grid{grid-template-columns:repeat(2,1fr);}
    .flow{grid-template-columns:repeat(2,1fr);}
    .stat-grid{grid-template-columns:repeat(2,1fr);}
    .stat-item:nth-child(2){border-right:0;}
    .stat-item:nth-child(1),.stat-item:nth-child(2){border-bottom:1px solid var(--line);}
    .footer-main{grid-template-columns:1fr 1fr;gap:26px;}
}
@media (max-width:760px){
    .main-nav,.header-actions{display:none;}
    .nav-toggle{display:grid;}
    .topbar{font-size:12px;}
    .topbar .hide-sm{display:none;}
    .banner-slide{padding:42px 0 54px;}
    .banner h1{font-size:23px;}
    .banner-desc{font-size:14px;}
    .section{padding:44px 0;}
    .section-head h2{font-size:21px;}
    .feature-grid,.product-grid,.flow{grid-template-columns:1fr;}
    .guide .wrap{flex-direction:column;align-items:flex-start;}
    .guide-btns{margin-left:0;}
    .footer-main{grid-template-columns:1fr;gap:24px;padding:32px 0 24px;}
}
