/* ====== 基础样式 ====== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1a1a1a;
    background: #ffffff;
    line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ====== 顶部导航 ====== */
.topbar {
    border-bottom: 1px solid #ececec;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
}
.topbar-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.main-nav a {
    margin-left: 28px;
    font-size: 14px;
    color: #555;
}
.main-nav a:hover { color: #000; }

@media (max-width: 600px) {
    .main-nav a { margin-left: 14px; font-size: 13px; }
}

/* ====== 通用容器 ====== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 32px 24px;
}
.section-title {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin: 28px 0 22px;
    letter-spacing: 0.5px;
}
.section-sub {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-bottom: 28px;
}

/* ====== 首页 Hero ====== */
.hero {
    width: 100%;
    background: linear-gradient(135deg, #0e1f3a 0%, #1f3a6e 100%);
    color: #fff;
    padding: 64px 24px;
    text-align: center;
}
.hero h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 14px;
}
.hero p {
    font-size: 16px;
    opacity: 0.9;
    max-width: 760px;
    margin: 0 auto 24px;
}
.hero .cta {
    display: inline-block;
    padding: 12px 28px;
    background: #fff;
    color: #0e1f3a;
    font-weight: 600;
    border-radius: 4px;
    transition: transform .15s ease;
}
.hero .cta:hover { transform: translateY(-2px); }

/* ====== 产品网格 ====== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
@media (max-width: 960px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .product-grid { grid-template-columns: 1fr; }
}
.product-card {
    border: 1px solid #ececec;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow .2s ease, transform .2s ease;
}
.product-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}
.product-card .thumb {
    aspect-ratio: 1 / 1;
    background: #f5f5f5;
    overflow: hidden;
}
.product-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-card .info {
    padding: 14px 16px;
}
.product-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}
.product-card .price-line {
    font-size: 14px;
    color: #666;
}
.product-card .sale {
    color: #c1121f;
    font-weight: 600;
}

.view-all-row {
    text-align: center;
    margin-top: 28px;
}
.view-all-row a {
    display: inline-block;
    padding: 10px 22px;
    border: 1px solid #1a1a1a;
    border-radius: 4px;
    font-size: 14px;
}
.view-all-row a:hover {
    background: #1a1a1a;
    color: #fff;
}

/* ====== COA 图集 ====== */
.coa-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
@media (max-width: 960px) {
    .coa-grid { grid-template-columns: repeat(2, 1fr); }
}
.coa-grid .coa-item {
    aspect-ratio: 1 / 1.2;
    background: #f5f5f5;
    overflow: hidden;
    border-radius: 4px;
}
.coa-grid .coa-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ====== 大幅 Banner / 轮播伪装 ====== */
.banner-strip {
    width: 100%;
    overflow: hidden;
    border-radius: 6px;
    margin: 18px 0;
    background: #f5f5f5;
}
.banner-strip img {
    width: 100%;
    height: auto;
    display: block;
}

/* ====== Tips（科普卡片） ====== */
.tips-block {
    background: #fafafa;
    padding: 40px 0;
}
.tips-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}
@media (max-width: 960px) {
    .tips-grid { grid-template-columns: 1fr; }
}
.tip-card {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.tip-card .tip-img {
    aspect-ratio: 16 / 10;
    background: #f5f5f5;
    overflow: hidden;
}
.tip-card .tip-img img {
    width: 100%; height: 100%; object-fit: cover;
}
.tip-card .tip-body {
    padding: 16px 18px;
}
.tip-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}
.tip-card p {
    font-size: 14px;
    color: #555;
}

/* ====== 联系卡 ====== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
@media (max-width: 960px) {
    .contact-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .contact-grid { grid-template-columns: 1fr; }
}
.contact-card {
    border: 1px solid #ececec;
    border-radius: 6px;
    padding: 18px;
    text-align: center;
    background: #fff;
}
.contact-card .avatar {
    width: 88px; height: 88px;
    border-radius: 50%;
    background: #eef1f6;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1f3a6e;
    font-size: 30px;
    font-weight: 700;
}
.contact-card h4 {
    font-size: 16px;
    margin-bottom: 6px;
}
.contact-card p {
    font-size: 13px;
    color: #555;
    margin-bottom: 10px;
}
.contact-card a.wa-btn {
    display: inline-block;
    padding: 8px 16px;
    background: #25D366;
    color: #fff;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
}

/* ====== FAQ ====== */
.faq-list {
    max-width: 880px;
    margin: 0 auto;
}
.faq-item {
    border-bottom: 1px solid #ececec;
    padding: 18px 4px;
}
.faq-item h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #1a1a1a;
}
.faq-item p {
    font-size: 14px;
    color: #555;
}

/* ====== 商品详情页 ====== */
.product-section {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 48px;
}
@media (max-width: 960px) {
    .product-section { grid-template-columns: 1fr; gap: 24px; }
}
.gallery .main-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f5f5f5;
    overflow: hidden;
    border-radius: 6px;
}
.gallery .main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: zoom-in;
}
.thumb-list {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 8px;
}
@media (max-width: 600px) {
    .thumb-list { grid-template-columns: repeat(5, 1fr); }
}
.thumb-list .thumb {
    aspect-ratio: 1 / 1;
    background: #f5f5f5;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid transparent;
    transition: border-color .15s ease;
}
.thumb-list .thumb img {
    width: 100%; height: 100%; object-fit: cover;
}
.thumb-list .thumb:hover,
.thumb-list .thumb.active { border-color: #1a1a1a; }

.product-info h1 {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 12px;
}
.price-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 20px;
}
.price { font-size: 22px; font-weight: 600; }
.regular-price { color: #999; text-decoration: line-through; font-size: 15px; }
.badge {
    display: inline-block;
    padding: 2px 8px;
    background: #ffecec;
    color: #c1121f;
    border-radius: 3px;
    font-size: 12px;
    margin-left: 6px;
}

.spec-row { margin: 18px 0 10px; font-size: 14px; color: #444; }
.spec-row .label { color: #888; margin-right: 8px; }
.spec-pill {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid #1a1a1a;
    border-radius: 999px;
    font-size: 13px;
    margin-right: 8px;
}

.qty-row { display: flex; align-items: center; gap: 10px; margin: 22px 0; }
.qty-box {
    display: inline-flex;
    align-items: center;
    border: 1px solid #d4d4d4;
    border-radius: 4px;
    overflow: hidden;
}
.qty-box button {
    width: 36px; height: 36px;
    border: none;
    background: #fff;
    font-size: 18px;
    cursor: pointer;
}
.qty-box input {
    width: 44px; height: 36px;
    border: none;
    border-left: 1px solid #ececec;
    border-right: 1px solid #ececec;
    text-align: center;
    font-size: 14px;
}
.btn-add-cart {
    flex: 1;
    padding: 12px 24px;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: background .15s ease;
}
.btn-add-cart:hover { background: #333; }

.description {
    margin: 18px 0 22px;
    padding: 14px 16px;
    background: #fafafa;
    border-left: 3px solid #1a1a1a;
    font-size: 14px;
    color: #444;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
    font-size: 14px;
}
.spec-table td {
    padding: 10px 14px;
    border: 1px solid #ececec;
}
.spec-table td:first-child {
    background: #fafafa;
    color: #555;
    width: 38%;
    font-weight: 500;
}

.details { margin-top: 64px; }
.details h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    letter-spacing: 1px;
}
.details .promo-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.details .promo-list img {
    width: 100%;
    max-width: 1024px;
    border-radius: 4px;
}

/* ====== 页脚 ====== */
.site-footer {
    background: #0e1f3a;
    color: #d8dde6;
    margin-top: 64px;
}
.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 24px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 32px;
}
@media (max-width: 760px) {
    .footer-inner { grid-template-columns: 1fr; }
}
.footer-col h4 {
    color: #fff;
    font-size: 15px;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}
.footer-col p, .footer-col li { font-size: 13px; margin-bottom: 6px; }
.footer-col a { color: #d8dde6; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    padding: 16px 24px;
    font-size: 12px;
    color: #aab1be;
}

/* ====== 关于/联系简单页 ====== */
.simple-page h1 {
    font-size: 30px;
    margin-bottom: 18px;
}
.simple-page p {
    font-size: 15px;
    color: #444;
    margin-bottom: 12px;
}
