/* ============================================================
   SilverStyle Wholesale — 前台样式 (时尚潮流风)
   米白 #FAF7F2 + 暖橙 #E8734A / 玫瑰金 #B76E79
   ============================================================ */
:root {
    --bg: #FAF7F2;
    --surface: #FFFFFF;
    --ink: #2B2622;
    --muted: #8A8078;
    --line: #ECE4DA;
    --primary: #E8734A;
    --primary-dark: #D15E36;
    --rose: #B76E79;
    --radius: 10px;
    --shadow: 0 6px 24px rgba(43, 38, 34, 0.08);
    --shadow-lift: 0 14px 36px rgba(43, 38, 34, 0.14);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.65;
    font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: 'Playfair Display', Georgia, serif; font-weight: 600; line-height: 1.2; color: var(--ink); }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.15rem; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 820px; }
.muted { color: var(--muted); font-size: .85em; }
.muted { font-weight: 400; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--primary); color: #fff; padding: 8px 16px; z-index: 999; }
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block; padding: 12px 26px; border-radius: 999px;
    font-weight: 600; font-size: .95rem; border: 2px solid transparent;
    cursor: pointer; transition: all .2s ease; text-align: center; font-family: inherit;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { transform: translateY(-2px); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-outline-light:hover { background: #fff; color: var(--primary); }
.btn-block { display: block; width: 100%; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(250, 247, 242, .95); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.2rem;
}
.brand-text { font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 700; }
.brand-text span { color: var(--primary); }
.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav a { font-size: .92rem; font-weight: 500; color: var(--ink); }
.main-nav a:hover, .main-nav a.active { color: var(--primary); }
.nav-cta { padding: 9px 20px; font-size: .88rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 30px; height: 24px; position: relative; }
.nav-toggle span { position: absolute; left: 0; width: 100%; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }
.nav-toggle span:nth-child(1) { top: 2px; }
.nav-toggle span:nth-child(2) { top: 11px; }
.nav-toggle span:nth-child(3) { top: 20px; }

/* ---------- Hero ---------- */
.hero { padding: 60px 0; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.eyebrow {
    display: inline-block; color: var(--primary); font-weight: 600;
    font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px;
}
.hero h1 { margin-bottom: 18px; }
.hero-sub { color: var(--muted); font-size: 1.08rem; margin-bottom: 28px; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-media img { border-radius: 16px; box-shadow: var(--shadow); width: 100%; height: 440px; object-fit: cover; }

/* ---------- Stats ---------- */
.stats-band { background: var(--ink); color: #fff; padding: 36px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; text-align: center; }
.stats-grid-4 { grid-template-columns: repeat(4, 1fr); }
.stat strong { display: block; font-family: 'Playfair Display', serif; font-size: 1.8rem; color: var(--primary); }
.stat span { font-size: .85rem; opacity: .8; }

/* ---------- Sections ---------- */
.section { padding: 70px 0; }
.section-tint { background: #F3EDE4; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head p { color: var(--muted); margin-top: 10px; }
.section-more { display: inline-block; margin-top: 14px; color: var(--primary); font-weight: 600; }

/* ---------- Categories ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 18px; }
.cat-card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 26px 18px; text-align: center; transition: all .2s;
}
.cat-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-4px); border-color: var(--primary); }
.cat-icon { display: inline-flex; color: var(--primary); margin-bottom: 12px; }
.cat-card h3 { font-size: 1rem; font-family: 'Inter', sans-serif; font-weight: 600; }

/* ---------- Product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
.product-card {
    background: var(--surface); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); transition: all .25s; display: block;
}
.product-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-6px); }
.product-media { aspect-ratio: 1/1; overflow: hidden; background: #f0e9df; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product-card:hover .product-media img { transform: scale(1.05); }
.product-body { padding: 16px 18px 18px; }
.product-cat { font-size: .75rem; color: var(--rose); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.product-body h3 { font-family: 'Inter', sans-serif; font-size: .98rem; font-weight: 600; margin: 6px 0 10px; }
.product-meta { display: flex; justify-content: space-between; align-items: center; }
.moq { font-size: .8rem; color: var(--muted); }
.price { color: var(--primary); font-weight: 700; font-size: .95rem; }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split-media img { border-radius: 16px; box-shadow: var(--shadow); width: 100%; height: 380px; object-fit: cover; }
.split-content h2 { margin-bottom: 16px; }
.split-content p { color: var(--muted); margin-bottom: 14px; }
.check-list { list-style: none; margin: 18px 0 26px; }
.check-list li { padding-left: 28px; position: relative; margin-bottom: 10px; }
.check-list li::before {
    content: ""; position: absolute; left: 0; top: 6px;
    width: 16px; height: 16px; border-radius: 50%;
    background: var(--primary);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.check-list-lg li { font-size: 1.05rem; margin-bottom: 14px; }

/* ---------- Testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.testi-card {
    background: var(--surface); border-radius: var(--radius); padding: 26px;
    box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.stars { color: #D9C9B8; letter-spacing: 2px; margin-bottom: 12px; }
.stars .on { color: var(--primary); }
.testi-card blockquote { font-size: .95rem; color: var(--ink); flex: 1; margin-bottom: 18px; }
.testi-card figcaption strong { display: block; }
.testi-card figcaption span { font-size: .82rem; color: var(--muted); }

/* ---------- Certifications ---------- */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px; }
.cert-card { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.cert-card img { height: 160px; width: 100%; object-fit: cover; }
.cert-card h3 { font-family: 'Inter', sans-serif; font-size: .95rem; padding: 16px 16px 0; }
.cert-card p { font-size: .84rem; color: var(--muted); padding: 8px 16px 18px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--primary); color: #fff; padding: 60px 0; }
.cta-inner { text-align: center; }
.cta-inner h2 { color: #fff; margin-bottom: 12px; }
.cta-inner p { opacity: .92; margin-bottom: 24px; }

/* ---------- Page hero ---------- */
.page-hero { background: var(--ink); color: #fff; padding: 56px 0; text-align: center; }
.page-hero h1 { color: #fff; margin-bottom: 10px; }
.page-hero p { opacity: .85; }

/* ---------- Catalog ---------- */
.catalog-bar { margin-bottom: 32px; }
.search-form { display: flex; gap: 10px; margin-bottom: 20px; max-width: 520px; margin-left: auto; margin-right: auto; }
.search-form input {
    flex: 1; padding: 12px 18px; border-radius: 999px; border: 1px solid var(--line);
    background: var(--surface); font-family: inherit; font-size: .95rem;
}
.cat-filter { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.cat-filter a {
    padding: 7px 16px; border-radius: 999px; background: var(--surface);
    border: 1px solid var(--line); font-size: .86rem; font-weight: 500;
}
.cat-filter a.active, .cat-filter a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.empty-state { text-align: center; color: var(--muted); padding: 40px 0; }

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; flex-wrap: wrap; }
.pagination a {
    padding: 8px 14px; border-radius: 8px; background: var(--surface);
    border: 1px solid var(--line); font-size: .9rem;
}
.pagination a.active, .pagination a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------- Breadcrumb ---------- */
.breadcrumb { padding: 22px 0 0; font-size: .88rem; color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--ink); }

/* ---------- Product detail ---------- */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.gallery-main { border-radius: 14px; overflow: hidden; background: #f0e9df; }
.gallery-main img { width: 100%; height: 460px; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.gallery-thumb {
    width: 80px; height: 80px; border-radius: 8px; overflow: hidden;
    border: 2px solid transparent; cursor: pointer; padding: 0; background: #f0e9df;
}
.gallery-thumb.active { border-color: var(--primary); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.detail-info h1 { font-size: 1.9rem; margin: 8px 0 14px; }
.detail-price { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.detail-price .price { font-size: 1.5rem; }
.moq-badge { background: #F3EDE4; color: var(--rose); padding: 5px 12px; border-radius: 999px; font-size: .82rem; font-weight: 600; }
.detail-desc { color: var(--muted); margin-bottom: 20px; }
.spec-table { width: 100%; border-collapse: collapse; margin-bottom: 22px; }
.spec-table th, .spec-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: .92rem; }
.spec-table th { color: var(--muted); font-weight: 500; width: 40%; }
.tier-box { background: #F3EDE4; border-radius: var(--radius); padding: 20px; margin-bottom: 24px; }
.tier-box h3 { font-family: 'Inter', sans-serif; font-size: 1rem; margin-bottom: 10px; }
.tier-box ul { list-style: none; }
.tier-box li { padding: 5px 0; font-size: .92rem; color: var(--ink); }
.detail-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Photo grid ---------- */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.photo-grid figure { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--surface); }
.photo-grid img { height: 220px; width: 100%; object-fit: cover; }
.photo-grid figcaption { padding: 12px 16px; font-weight: 600; font-size: .9rem; }

/* ---------- Info row ---------- */
.info-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.info-row-vert { text-align: left; }
.info-row strong { display: block; font-family: 'Playfair Display', serif; font-size: 1.6rem; color: var(--primary); }
.info-row span { font-size: .85rem; color: var(--muted); }

/* ---------- Price table ---------- */
.price-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.price-table th, .price-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: .94rem; }
.price-table th { background: var(--ink); color: #fff; font-weight: 600; }

/* ---------- Policy / Process ---------- */
.policy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.policy-card { background: var(--surface); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.policy-num {
    display: inline-flex; width: 44px; height: 44px; border-radius: 50%;
    background: #F3EDE4; color: var(--primary); font-weight: 700;
    align-items: center; justify-content: center; margin-bottom: 14px; font-size: .95rem;
}
.policy-card h3 { font-family: 'Inter', sans-serif; font-size: 1.05rem; margin-bottom: 10px; }
.policy-card p { color: var(--muted); font-size: .92rem; }
.policy-card strong { color: var(--ink); }

.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; counter-reset: step; }
.process-step { background: var(--surface); border-radius: var(--radius); padding: 28px 22px; box-shadow: var(--shadow); text-align: center; }
.step-num {
    display: inline-flex; width: 46px; height: 46px; border-radius: 50%;
    background: var(--primary); color: #fff; font-weight: 700;
    align-items: center; justify-content: center; margin-bottom: 14px; font-size: 1.1rem;
}
.process-step h3 { font-family: 'Inter', sans-serif; font-size: 1rem; margin-bottom: 8px; }
.process-step p { color: var(--muted); font-size: .9rem; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { background: var(--surface); border-radius: var(--radius); margin-bottom: 12px; box-shadow: var(--shadow); overflow: hidden; }
.faq-item summary { padding: 18px 22px; cursor: pointer; font-weight: 600; list-style: none; position: relative; padding-right: 40px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--primary); }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { padding: 0 22px 18px; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.alert { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px; font-size: .92rem; }
.alert-success { background: #E8F3E4; color: #2E6B2E; }
.alert-error { background: #FBE4DC; color: #A33B1E; }
.contact-form, .contact-info { background: var(--surface); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: .86rem; font-weight: 600; margin-bottom: 6px; }
.form-field input, .form-field textarea, .form-field select {
    width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 8px;
    font-family: inherit; font-size: .95rem; background: var(--bg);
}
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--primary); }
.check-line { display: flex; align-items: center; gap: 8px; font-size: .92rem; margin: 10px 0 18px; }
.contact-info h3 { margin-bottom: 18px; }
.info-list { list-style: none; margin-bottom: 22px; }
.info-list li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.info-list strong { display: inline-block; min-width: 90px; color: var(--muted); }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.blog-card { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: all .25s; }
.blog-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-4px); }
.blog-media { aspect-ratio: 16/10; overflow: hidden; }
.blog-media img { width: 100%; height: 100%; object-fit: cover; }
.blog-body { padding: 20px; }
.blog-cat { font-size: .75rem; color: var(--rose); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.blog-body h3 { font-family: 'Inter', sans-serif; font-size: 1.05rem; margin: 8px 0 10px; }
.blog-body p { color: var(--muted); font-size: .9rem; margin-bottom: 12px; }
.blog-date { font-size: .82rem; color: var(--muted); }
.blog-filter { margin-bottom: 32px; }
.article .blog-cat { display: block; margin-bottom: 8px; }
.article h1 { margin-bottom: 10px; }
.article-meta { color: var(--muted); font-size: .88rem; margin-bottom: 24px; }
.article-cover { border-radius: 14px; margin-bottom: 28px; box-shadow: var(--shadow); width: 100%; max-height: 420px; object-fit: cover; }
.article-content p, .article-content h2 { margin-bottom: 16px; }
.article-content h2 { font-size: 1.4rem; margin-top: 24px; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 60px 0; }
.notfound h1 { margin: 10px 0; }
.notfound p { color: var(--muted); margin-bottom: 24px; }
.notfound .hero-actions { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #C9C0B6; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 36px; padding: 56px 0 36px; }
.footer-brand { margin-bottom: 14px; }
.footer-brand .brand-text { color: #fff; }
.footer-about { font-size: .9rem; line-height: 1.7; }
.footer-col h4 { color: #fff; font-family: 'Inter', sans-serif; font-size: .95rem; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 9px; font-size: .9rem; }
.footer-col ul li a:hover { color: var(--primary); }
.footer-contact li { line-height: 1.6; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; font-size: .84rem; }
.footer-bottom-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .hero-inner, .split, .detail-grid, .contact-grid { grid-template-columns: 1fr; }
    .hero-media { order: -1; }
    .hero-media img { height: 300px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .info-row { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .main-nav {
        position: fixed; inset: 72px 0 auto 0; background: var(--bg);
        flex-direction: column; padding: 20px; gap: 16px; border-bottom: 1px solid var(--line);
        display: none;
    }
    .main-nav.open { display: flex; }
    .nav-toggle { display: block; }
}
