/* ==========================================================
   青芸佳商城 - 全站样式（专业蓝色调 / PC + H5 自适应）
   ========================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --blue-900: #0f2a5c;
    --blue-800: #153a7e;
    --blue-700: #1d4ed8;
    --blue-600: #2563eb;
    --blue-500: #3b82f6;
    --blue-100: #dbeafe;
    --blue-50:  #eff6ff;
    --ink:   #1e293b;
    --muted: #64748b;
    --line:  #e2e8f0;
    --bg:    #f5f7fa;
    --ok:    #16a34a;
    --warn:  #d97706;
}

body {
    font-family: "Microsoft YaHei", "微软雅黑", "PingFang SC", Arial, sans-serif;
    background-color: var(--bg);
    color: var(--ink);
    line-height: 1.6;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- 顶部信息条 ---------- */
.topbar {
    background: var(--blue-900);
    color: #cbd5e1;
    font-size: 13px;
    padding: 8px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; }
.topbar .topbar-right { display: flex; gap: 18px; align-items: center; }
.topbar .topbar-link { color: #cbd5e1; }
.topbar .topbar-link:hover { color: #fff; }

/* ---------- 主导航（白色商务风） ---------- */
.header {
    background: #fff;
    box-shadow: 0 2px 12px rgba(15, 42, 92, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header .container { display: flex; justify-content: space-between; align-items: center; height: 68px; }
.logo {
    font-size: 24px; font-weight: bold; letter-spacing: 1px;
    color: var(--blue-800); text-decoration: none; display: flex; align-items: center; gap: 10px;
}
.logo-mark {
    width: 36px; height: 36px; border-radius: 8px;
    background: linear-gradient(135deg, var(--blue-600), var(--blue-800));
    color: #fff; font-size: 18px; display: flex; align-items: center; justify-content: center;
}
.nav ul { list-style: none; display: flex; gap: 8px; }
.nav ul li a {
    color: #334155; text-decoration: none; font-size: 15px;
    padding: 8px 16px; border-radius: 6px; transition: all 0.25s;
    position: relative;
}
.nav ul li a:hover { color: var(--blue-600); background: var(--blue-50); }
.nav ul li a.active { color: var(--blue-600); font-weight: 600; }
.nav ul li a.active::after {
    content: ''; position: absolute; left: 16px; right: 16px; bottom: 2px;
    height: 2px; background: var(--blue-600); border-radius: 2px;
}
.nav-cta {
    background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
    color: #fff !important; padding: 9px 20px !important; border-radius: 6px !important;
    margin-left: 8px;
}
.nav-cta:hover { background: var(--blue-700) !important; color: #fff !important; }
.nav-toggle { display: none; background: none; border: none; font-size: 24px; color: var(--blue-800); cursor: pointer; padding: 6px 10px; }

/* ---------- Hero 横幅 ---------- */
.hero {
    background:
        linear-gradient(135deg, rgba(15,42,92,0.92), rgba(29,78,216,0.85)),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.12) 0, transparent 40%);
    color: #fff;
    padding: 90px 0;
    text-align: center;
}
.hero h1 { font-size: 40px; letter-spacing: 2px; margin-bottom: 16px; }
.hero p { font-size: 18px; color: rgba(255,255,255,0.85); margin-bottom: 34px; max-width: 640px; margin-left: auto; margin-right: auto; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-hero {
    display: inline-block; text-decoration: none; padding: 14px 36px;
    border-radius: 6px; font-size: 16px; transition: all 0.25s;
}
.btn-hero.primary { background: #fff; color: var(--blue-700); font-weight: 600; }
.btn-hero.primary:hover { background: var(--blue-50); transform: translateY(-2px); }
.btn-hero.ghost { border: 1px solid rgba(255,255,255,0.6); color: #fff; }
.btn-hero.ghost:hover { background: rgba(255,255,255,0.12); }

/* 数据统计条 */
.stats-bar { background: #fff; box-shadow: 0 4px 16px rgba(15,42,92,0.06); }
.stats-bar .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 22px 20px; }
.stat-item { text-align: center; }
.stat-item strong { display: block; font-size: 24px; color: var(--blue-700); font-weight: 700; }
.stat-item span { font-size: 13px; color: var(--muted); }

/* ---------- 通用区块 ---------- */
.section { padding: 64px 0; }
.section.alt { background: #fff; }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head .eyebrow {
    display: inline-block; font-size: 13px; color: var(--blue-600);
    background: var(--blue-50); border: 1px solid var(--blue-100);
    padding: 4px 14px; border-radius: 999px; margin-bottom: 12px; letter-spacing: 2px;
}
.section-title { font-size: 30px; color: var(--ink); }
.section-sub { color: var(--muted); margin-top: 8px; font-size: 15px; }

/* 平台保障 */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature-card {
    background: #fff; border: 1px solid var(--line); border-radius: 10px;
    padding: 26px 20px; text-align: center; transition: all 0.25s;
}
.feature-card:hover { border-color: var(--blue-100); box-shadow: 0 10px 24px rgba(29,78,216,0.1); transform: translateY(-4px); }
.feature-icon {
    width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 12px;
    background: var(--blue-50); color: var(--blue-600); font-size: 24px;
    display: flex; align-items: center; justify-content: center;
}
.feature-card h4 { font-size: 16px; margin-bottom: 6px; color: var(--ink); }
.feature-card p { font-size: 13px; color: var(--muted); }

/* ---------- 产品区 ---------- */
.products-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 26px;
}
.product-card {
    background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer; text-decoration: none; color: inherit; display: block;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(29,78,216,0.14);
    border-color: var(--blue-100);
}
.product-image { width: 100%; height: 250px; overflow: hidden; background: var(--blue-50); }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.product-card:hover .product-image img { transform: scale(1.06); }
.product-info { padding: 16px 18px 18px; }
.product-info h3 { font-size: 16px; color: var(--ink); margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-info .desc { font-size: 13px; color: var(--muted); margin-bottom: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.price-row { display: flex; justify-content: space-between; align-items: center; }
.price { color: var(--blue-600); font-size: 21px; font-weight: bold; }
.price::before { content: '¥'; font-size: 13px; }
.original-price { color: #bbb; text-decoration: line-through; font-size: 13px; margin-left: 8px; }
.buy-btn {
    background: var(--blue-50); color: var(--blue-600); border: 1px solid var(--blue-100);
    padding: 7px 18px; border-radius: 6px; cursor: pointer; font-size: 13px; transition: all 0.25s;
}
.buy-btn:hover { background: var(--blue-600); color: #fff; border-color: var(--blue-600); }

/* ---------- 商家入驻区块 ---------- */
.join-wrap {
    display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center;
}
.join-text h3 { font-size: 26px; color: var(--ink); margin-bottom: 14px; }
.join-text p { color: var(--muted); margin-bottom: 18px; }
.join-points { list-style: none; margin-bottom: 26px; }
.join-points li { padding: 8px 0; color: #334155; font-size: 15px; }
.join-points li::before { content: '✔'; color: var(--ok); margin-right: 10px; font-weight: bold; }
.join-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.join-step {
    background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: 10px;
    padding: 18px 14px; text-align: center;
}
.join-step .num {
    width: 34px; height: 34px; margin: 0 auto 10px; border-radius: 50%;
    background: var(--blue-600); color: #fff; font-weight: bold;
    display: flex; align-items: center; justify-content: center;
}
.join-step h5 { font-size: 14px; color: var(--ink); }
.join-step p { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ---------- 关于我们 ---------- */
.about-box { max-width: 820px; margin: 0 auto; text-align: center; color: var(--muted); line-height: 2; }
.about-box strong { color: var(--blue-700); }
.about-tags { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.about-tag {
    background: var(--blue-50); border: 1px solid var(--blue-100); color: var(--blue-700);
    font-size: 13px; padding: 6px 16px; border-radius: 999px;
}

/* ---------- 详情页 ---------- */
.detail-section { padding: 40px 0 60px; }
.detail-wrapper {
    display: grid; grid-template-columns: 1fr 1fr; gap: 44px;
    background: #fff; padding: 36px; border-radius: 12px;
    border: 1px solid var(--line); box-shadow: 0 6px 24px rgba(15,42,92,0.06);
}
.detail-image { border-radius: 8px; overflow: hidden; background: var(--blue-50); }
.detail-image img { width: 100%; height: auto; }
.detail-info h2 { font-size: 26px; color: var(--ink); margin-bottom: 10px; }
.detail-info .price { font-size: 30px; margin: 14px 0; }
.detail-info .desc { color: var(--muted); font-size: 15px; margin-bottom: 18px; line-height: 1.8; }
.detail-specs { margin: 18px 0; background: var(--bg); border-radius: 8px; padding: 16px 18px; }
.detail-specs h4 { color: var(--blue-700); margin-bottom: 8px; }
.detail-specs ul { list-style: none; }
.detail-specs ul li { padding: 5px 0; color: #475569; font-size: 14px; }
.detail-specs ul li::before { content: '✓ '; color: var(--blue-600); font-weight: bold; }
.detail-actions { margin-top: 26px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary {
    background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
    color: #fff; border: none; padding: 13px 38px; font-size: 16px;
    border-radius: 6px; cursor: pointer; transition: all 0.25s;
    text-decoration: none; display: inline-block;
}
.btn-primary:hover { opacity: 0.92; transform: translateY(-1px); }
.btn-secondary {
    background: #fff; color: var(--blue-700); border: 1px solid var(--blue-100);
    padding: 13px 38px; font-size: 16px; border-radius: 6px; cursor: pointer;
    text-decoration: none; display: inline-block; transition: all 0.25s;
}
.btn-secondary:hover { border-color: var(--blue-600); background: var(--blue-50); }

/* ---------- 下单页 ---------- */
.order-section { padding: 40px 0 60px; }
.order-wrapper {
    max-width: 720px; margin: 0 auto; background: #fff; padding: 36px;
    border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 6px 24px rgba(15,42,92,0.06);
}
.order-wrapper h2 { text-align: center; color: var(--blue-800); margin-bottom: 24px; font-size: 24px; }
.order-product { display: flex; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.order-product img { width: 110px; height: 110px; border-radius: 8px; object-fit: cover; }
.order-product-info h3 { font-size: 17px; margin-bottom: 6px; }
.order-product-info .price { font-size: 23px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 7px; font-weight: 500; color: #334155; font-size: 14px; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 11px 14px; border: 1px solid #d7dde8; border-radius: 6px;
    font-size: 15px; transition: border-color 0.25s, box-shadow 0.25s; background: #fff;
    font-family: inherit;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 3px var(--blue-100);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.order-total { padding: 18px 20px; background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: 8px; margin: 22px 0; }
.order-total .row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 14px; color: #334155; }
.order-total .total {
    font-size: 19px; font-weight: bold; color: var(--blue-700); border-top: 1px solid var(--blue-100);
    padding-top: 10px; margin-top: 6px;
}
.submit-order-btn {
    width: 100%; padding: 15px;
    background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
    color: #fff; border: none; border-radius: 8px; font-size: 17px; cursor: pointer; transition: opacity 0.25s;
}
.submit-order-btn:hover { opacity: 0.92; }
.secure-tip { text-align: center; color: var(--muted); font-size: 12px; margin-top: 12px; }

/* ---------- 商家入驻页 ---------- */
.merchant-hero {
    background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
    color: #fff; padding: 46px 0; text-align: center;
}
.merchant-hero h1 { font-size: 30px; margin-bottom: 10px; }
.merchant-hero p { color: rgba(255,255,255,0.85); font-size: 15px; }

.steps-bar { background: #fff; border-bottom: 1px solid var(--line); }
.steps-bar .container { display: flex; justify-content: center; gap: 0; padding: 0 20px; overflow-x: auto; }
.step-item {
    display: flex; align-items: center; gap: 10px; padding: 16px 22px;
    color: var(--muted); font-size: 14px; white-space: nowrap; position: relative;
}
.step-item .dot {
    width: 28px; height: 28px; border-radius: 50%; border: 2px solid #cbd5e1;
    display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600;
    transition: all 0.25s; flex-shrink: 0;
}
.step-item.active { color: var(--blue-700); font-weight: 600; }
.step-item.active .dot { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.step-item.done .dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.step-item:not(:last-child)::after {
    content: '—'; color: #cbd5e1; margin-left: 18px;
}

.merchant-panel {
    max-width: 760px; margin: 36px auto 60px; background: #fff;
    border: 1px solid var(--line); border-radius: 12px; padding: 34px;
    box-shadow: 0 6px 24px rgba(15,42,92,0.06);
}
.panel-title { font-size: 20px; color: var(--blue-800); margin-bottom: 6px; }
.panel-desc { color: var(--muted); font-size: 14px; margin-bottom: 24px; }

.type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.type-card {
    border: 2px solid var(--line); border-radius: 10px; padding: 22px 16px;
    text-align: center; cursor: pointer; transition: all 0.25s; background: #fff;
}
.type-card .icon { font-size: 30px; margin-bottom: 8px; }
.type-card h4 { font-size: 16px; color: var(--ink); margin-bottom: 4px; }
.type-card p { font-size: 12px; color: var(--muted); }
.type-card.selected { border-color: var(--blue-600); background: var(--blue-50); box-shadow: 0 0 0 3px var(--blue-100); }
.type-card.selected h4 { color: var(--blue-700); }

.merchant-nav { display: flex; justify-content: space-between; gap: 14px; margin-top: 28px; }

/* AI 审核面板 */
.review-panel { display: none; }
.review-list { list-style: none; }
.review-item {
    display: flex; align-items: center; gap: 14px; padding: 16px 14px;
    border-bottom: 1px dashed var(--line);
}
.review-item:last-child { border-bottom: none; }
.review-status { margin-left: auto; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.review-status.pass { color: var(--ok); font-weight: 600; }
.review-status.fail { color: #dc2626; font-weight: 600; }
.spinner {
    width: 16px; height: 16px; border: 2px solid var(--blue-100); border-top-color: var(--blue-600);
    border-radius: 50%; animation: spin 0.8s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }
.review-item.running .review-name { color: var(--blue-700); font-weight: 600; }

.ai-banner {
    display: flex; align-items: center; gap: 12px; background: var(--blue-50);
    border: 1px solid var(--blue-100); border-radius: 8px; padding: 12px 16px; margin-bottom: 18px;
    font-size: 13px; color: var(--blue-800);
}
.progress-track { height: 8px; background: var(--blue-100); border-radius: 999px; overflow: hidden; margin-bottom: 22px; }
.progress-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--blue-500), var(--blue-700)); border-radius: 999px; transition: width 0.5s; }

.result-panel { display: none; text-align: center; padding: 16px 0 4px; }
.result-icon {
    width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%;
    background: #dcfce7; color: var(--ok); font-size: 36px;
    display: flex; align-items: center; justify-content: center;
}
.result-panel h3 { font-size: 22px; color: var(--ink); margin-bottom: 8px; }
.result-panel .sub { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.result-card {
    max-width: 420px; margin: 0 auto 24px; background: var(--bg); border: 1px solid var(--line);
    border-radius: 10px; padding: 18px 22px; text-align: left;
}
.result-card .row { display: flex; justify-content: space-between; padding: 7px 0; font-size: 14px; }
.result-card .row span:first-child { color: var(--muted); }
.result-card .row span:last-child { color: var(--ink); font-weight: 500; }
.result-card .row span.ok { color: var(--ok); font-weight: 600; }

/* 进件记录表 */
.record-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.record-table th, .record-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.record-table th { background: var(--blue-50); color: var(--blue-800); font-weight: 600; }
.record-badge {
    display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 12px;
    background: #dcfce7; color: var(--ok); font-weight: 600;
}
.record-empty { text-align: center; color: var(--muted); padding: 30px 0; font-size: 14px; }

/* ---------- 面包屑 ---------- */
.breadcrumb { padding: 18px 0 0; color: var(--muted); font-size: 14px; }
.breadcrumb a { color: var(--blue-600); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 8px; }
.back-btn { display: inline-block; margin: 14px 0 0; color: var(--blue-600); text-decoration: none; font-size: 14px; }
.back-btn:hover { text-decoration: underline; }

/* ---------- 页脚 ---------- */
.footer { background: var(--blue-900); color: #cbd5e1; padding: 48px 0 20px; margin-top: 0; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; margin-bottom: 28px; }
.footer-section h4 { font-size: 16px; margin-bottom: 14px; color: #fff; }
.footer-section p { color: #94a3b8; margin-bottom: 8px; font-size: 13px; line-height: 1.8; }
.footer-section a { color: #cbd5e1; text-decoration: none; transition: color 0.25s; }
.footer-section a:hover { color: #fff; }
.footer-bottom {
    text-align: center; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.12);
    color: #64748b; font-size: 13px;
}

/* ---------- 协议 / 政策页 ---------- */
.legal-section { padding: 44px 0 60px; }
.legal-body {
    max-width: 860px; margin: 0 auto; background: #fff; border: 1px solid var(--line);
    border-radius: 12px; padding: 40px 44px; box-shadow: 0 6px 24px rgba(15,42,92,0.06);
}
.legal-body h3 {
    font-size: 18px; color: var(--blue-800); margin: 26px 0 10px;
    padding-left: 10px; border-left: 3px solid var(--blue-600);
}
.legal-body h3:first-of-type { margin-top: 18px; }
.legal-body p, .legal-body li { font-size: 15px; color: #475569; line-height: 1.9; margin-bottom: 8px; }
.legal-body ul { padding-left: 22px; }
.legal-meta { color: var(--muted); font-size: 13px; border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 6px; }
@media (max-width: 768px) {
    .legal-body { padding: 24px 18px; }
}

/* ---------- 响应式（H5 自适应） ---------- */
@media (max-width: 900px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .join-wrap { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .topbar .topbar-right { display: none; }
    .nav-toggle { display: block; }
    .nav {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        background: #fff; box-shadow: 0 8px 20px rgba(15,42,92,0.12);
        border-top: 1px solid var(--line);
    }
    .nav.open { display: block; }
    .nav ul { flex-direction: column; gap: 0; padding: 8px 0; }
    .nav ul li a { display: block; padding: 13px 22px; border-radius: 0; }
    .nav ul li a.active::after { display: none; }
    .nav ul li a.active { background: var(--blue-50); }
    .header .container { position: relative; height: 58px; }
    .logo { font-size: 20px; }
    .hero { padding: 56px 0; }
    .hero h1 { font-size: 27px; }
    .hero p { font-size: 15px; }
    .btn-hero { padding: 12px 28px; width: 100%; max-width: 320px; text-align: center; }
    .stats-bar .container { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .section { padding: 44px 0; }
    .section-title { font-size: 23px; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .product-image { height: 170px; }
    .product-info { padding: 12px; }
    .product-info h3 { font-size: 14px; }
    .product-info .desc { display: none; }
    .price { font-size: 17px; }
    .buy-btn { padding: 6px 12px; font-size: 12px; }
    .join-steps { grid-template-columns: 1fr; }
    .type-grid { grid-template-columns: 1fr; }
    .detail-wrapper { grid-template-columns: 1fr; padding: 20px; gap: 24px; }
    .order-wrapper, .merchant-panel { padding: 22px 18px; margin: 24px auto 44px; }
    .form-row { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .merchant-nav { flex-direction: column; }
    .merchant-nav .btn-primary, .merchant-nav .btn-secondary { text-align: center; }
    .step-item { padding: 12px 14px; font-size: 13px; }
    .step-item:not(:last-child)::after { margin-left: 10px; }
}
@media (max-width: 420px) {
    .products-grid { grid-template-columns: 1fr; }
    .product-image { height: 220px; }
}
