/* ==========================================================================
   重庆斯亚柴油发动机配件网站 - 主样式表
   配色：海水蓝 + 白色
   说明：所有代码原创，无第三方依赖，遵循安全编码规范
   ========================================================================== */

/* ---------- 1. 基础重置 ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #1e88e5;        /* 经典中蓝 主色（参照工业站习惯） */
    --color-primary-dark: #1565c0;   /* 深中蓝（悬停用） */
    --color-primary-light: #64b5f6;  /* 浅中蓝 */
    --color-accent: #e3f2fd;         /* 极浅蓝白 */
    --color-white: #ffffff;
    --color-text: #1a2a3a;           /* 正文深色 */
    --color-text-muted: #5a6c7a;     /* 次要文字 */
    --color-border: #d6e4ea;
    --shadow-sm: 0 2px 8px rgba(14, 107, 138, 0.08);
    --shadow-md: 0 6px 20px rgba(14, 107, 138, 0.12);
    --shadow-lg: 0 12px 40px rgba(14, 107, 138, 0.18);
    --radius: 8px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
    --max-width: 1200px;
    --header-h: 72px;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    color: var(--color-text);
    background: var(--color-white);
    line-height: 1.65;
    font-size: 16px;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-primary-dark);
}

ul {
    list-style: none;
}

/* ---------- 2. 通用容器 ---------- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 70px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 12px;
    font-size: 30px;
    font-weight: 700;
    color: var(--color-primary-dark);
}

.section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: var(--color-primary-light);
    margin: 12px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-muted);
    margin-bottom: 45px;
    font-size: 15px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
}

.btn-outline:hover {
    background: var(--color-white);
    color: var(--color-primary);
}

/* ---------- 3. 顶部公告条 ---------- */
.topbar {
    background: #1565c0;
    color: var(--color-white);
    font-size: 13px;
    padding: 8px 0;
}

.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.topbar a {
    color: var(--color-white);
}

.topbar-info span {
    margin-right: 20px;
}

.topbar-social a {
    margin-left: 12px;
}

/* ---------- 4. 头部导航 ---------- */
.header {
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-h);
    display: flex;
    align-items: center;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 700;
    color: var(--color-primary-dark);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 20px;
}

.logo-text small {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: var(--color-text-muted);
    letter-spacing: 1px;
}

.nav-list {
    display: flex;
    gap: 6px;
}

.nav-list a {
    display: block;
    padding: 10px 18px;
    color: var(--color-text);
    font-weight: 500;
    border-radius: var(--radius);
    transition: var(--transition);
}

.nav-list a:hover,
.nav-list a.active {
    background: var(--color-accent);
    color: var(--color-primary-dark);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.nav-toggle span {
    width: 26px;
    height: 3px;
    background: var(--color-primary-dark);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ---------- 5. 首页横幅 Hero ---------- */
.hero {
    position: relative;
    background: linear-gradient(135deg, #0d47a1 0%, #1565c0 50%, #1e88e5 100%);
    color: var(--color-white);
    overflow: hidden;
    padding: 100px 0 110px;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.1) 0%, transparent 40%);
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--color-white);
    clip-path: polygon(0 100%, 100% 100%, 100% 40%, 0 100%);
}

.hero .container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero h1 {
    font-size: 42px;
    line-height: 1.25;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero h1 .highlight {
    color: #b8e3f5;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
    max-width: 540px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-lg);
    padding: 30px;
    width: 100%;
    max-width: 360px;
}

.hero-card h3 {
    font-size: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding-bottom: 10px;
}

.hero-card ul li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
}

.hero-card ul li::before {
    content: "✓";
    background: rgba(255,255,255,0.25);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}

/* ---------- 6. 产品区块 ---------- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 26px;
}

.product-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary-light);
}

.product-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, var(--color-accent), #d4e8f0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary-dark);
    font-size: 48px;
    position: relative;
    overflow: hidden;
}

.product-thumb::after {
    content: "产品图片占位";
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: var(--color-text-muted);
    background: rgba(255,255,255,0.8);
    padding: 2px 10px;
    border-radius: 10px;
}

.product-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-body h3 {
    font-size: 17px;
    color: var(--color-primary-dark);
    margin-bottom: 8px;
}

.product-body p {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 14px;
    flex: 1;
}

.product-tag {
    display: inline-block;
    background: var(--color-accent);
    color: var(--color-primary-dark);
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 10px;
    align-self: flex-start;
}

/* ---------- 7. 优势区块 ---------- */
.advantages {
    background: var(--color-accent);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 26px;
}

.advantage-item {
    background: var(--color-white);
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
    border-top: 4px solid var(--color-primary-light);
}

.advantage-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.advantage-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 28px;
}

.advantage-item h3 {
    font-size: 18px;
    color: var(--color-primary-dark);
    margin-bottom: 10px;
}

.advantage-item p {
    font-size: 14px;
    color: var(--color-text-muted);
}

/* ---------- 8. 关于简介 ---------- */
.about-brief {
    display: block;
    max-width: 900px;
    margin: 0 auto;
}

.about-brief-text h2 {
    font-size: 30px;
    color: var(--color-primary-dark);
    margin-bottom: 18px;
}

.about-brief-text p {
    color: var(--color-text-muted);
    margin-bottom: 16px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 24px;
}

.about-stat {
    text-align: center;
    padding: 18px;
    background: var(--color-accent);
    border-radius: var(--radius);
}

.about-stat .num {
    font-size: 30px;
    font-weight: 700;
    color: var(--color-primary);
    display: block;
}

.about-stat .label {
    font-size: 13px;
    color: var(--color-text-muted);
}

/* ---------- 9. 联系 CTA ---------- */
.cta {
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    color: var(--color-white);
    text-align: center;
    padding: 60px 0;
}

.cta h2 {
    font-size: 28px;
    margin-bottom: 14px;
}

.cta p {
    margin-bottom: 26px;
    opacity: 0.95;
}

/* ---------- 10. 页脚 ---------- */
.footer {
    background: #0d3a72;
    color: #c8d8e0;
    padding: 56px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 36px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-col h4 {
    color: var(--color-white);
    font-size: 16px;
    margin-bottom: 18px;
}

.footer-col p,
.footer-col li {
    font-size: 14px;
    margin-bottom: 10px;
    line-height: 1.8;
}

.footer-col a {
    color: #b8c8d0;
}

.footer-col a:hover {
    color: var(--color-primary-light);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 20px;
    font-weight: 700;
    color: var(--color-white);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    font-size: 13px;
    color: #9bb5d6;
}

.footer-bottom a {
    color: #9bb5d6;
    margin: 0 6px;
}

/* ---------- 11. 面包屑 ---------- */
.page-banner {
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    color: var(--color-white);
    padding: 50px 0;
    text-align: center;
}

.page-banner h1 {
    font-size: 32px;
    margin-bottom: 8px;
}

.breadcrumb {
    font-size: 14px;
    opacity: 0.9;
}

.breadcrumb a {
    color: var(--color-white);
}

/* ---------- 12. 联系表单 ---------- */
.contact-wrap {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
}

.contact-info-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    background: var(--color-accent);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.contact-info-item h4 {
    font-size: 16px;
    color: var(--color-primary-dark);
    margin-bottom: 4px;
}

.contact-info-item p {
    font-size: 14px;
    color: var(--color-text-muted);
}

.contact-form {
    background: var(--color-accent);
    padding: 32px;
    border-radius: var(--radius-lg);
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: var(--color-primary-dark);
    margin-bottom: 6px;
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 15px;
    font-family: inherit;
    background: var(--color-white);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(14, 107, 138, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-error {
    color: #c0392b;
    font-size: 13px;
    margin-top: 4px;
    display: none;
}

.form-group.invalid input,
.form-group.invalid textarea {
    border-color: #c0392b;
}

.form-group.invalid .form-error {
    display: block;
}

.form-success {
    background: #e8f6ec;
    color: #2d7a3f;
    padding: 14px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    display: none;
    border-left: 4px solid #2d7a3f;
}

.form-error-msg {
    background: #fdecea;
    color: #c62828;
    padding: 14px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    display: none;
    border-left: 4px solid #c62828;
}

/* ---------- 13. 产品分类筛选 ---------- */
.product-filter {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.filter-btn {
    padding: 8px 20px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    color: var(--color-text);
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

/* 搜索框 */
.search-box {
    display: flex;
    gap: 10px;
}
.search-box input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}
.search-box input:focus { border-color: var(--color-primary); }
.search-box .btn { flex-shrink: 0; }

/* 结果信息 */
.result-info {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 14px;
    margin: 6px 0 24px;
}
.result-info b { color: var(--color-primary-dark); }

/* ---------- 14. 关于我们页 ---------- */
.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
}

.about-section:nth-child(even) .about-section-text {
    order: 2;
}

.about-section-text h2 {
    color: var(--color-primary-dark);
    font-size: 26px;
    margin-bottom: 16px;
}

.about-section-text p {
    color: var(--color-text-muted);
    margin-bottom: 12px;
}

.about-section-img {
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, var(--color-accent), var(--color-primary-light));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary-dark);
    font-size: 16px;
}

/* ---------- 15. 返回顶部 ---------- */
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 48px;
    height: 48px;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 22px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--color-primary-dark);
    transform: translateY(-3px);
}

/* ==========================================================================
   16. 响应式 - 平板
   ========================================================================== */
@media (max-width: 992px) {
    .hero .container,
    .about-brief,
    .contact-wrap,
    .about-section {
        grid-template-columns: 1fr;
    }

    .about-section:nth-child(even) .about-section-text {
        order: 0;
    }

    .hero h1 {
        font-size: 34px;
    }

    .hero-visual {
        order: -1;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .section-title {
        font-size: 26px;
    }
}

/* ==========================================================================
   17. 响应式 - 手机
   ========================================================================== */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-list {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: var(--color-white);
        flex-direction: column;
        gap: 0;
        padding: 10px 0;
        box-shadow: var(--shadow-md);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
    }

    .nav-list.open {
        max-height: 400px;
    }

    .nav-list a {
        padding: 14px 24px;
        border-radius: 0;
    }

    .topbar {
        display: none;
    }

    .hero {
        padding: 60px 0 80px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 16px;
    }

    .section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 24px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 18px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .about-stats {
        grid-template-columns: 1fr 1fr;
    }

    .contact-form {
        padding: 22px;
    }

    .page-banner h1 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-filter {
        overflow-x: auto;
        justify-content: flex-start;
    }
}

/* ==========================================================================
   动态渲染所需补充样式
   ========================================================================== */
.product-thumb-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary-dark);
    font-size: 48px;
    text-decoration: none;
}

.product-thumb-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-thumb-link img {
    transform: scale(1.05);
}

/* 徽标 */
.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 12px;
    color: #fff;
    padding: 2px 10px;
    border-radius: 10px;
    z-index: 2;
}
.product-badge.top { background: #e53935; }
.product-badge.hot  { background: #fb8c00; }
.product-badge.rec  { background: #43a047; }

/* 标题作为链接 */
.product-title {
    font-size: 17px;
    color: var(--color-primary-dark);
    margin-bottom: 8px;
    font-weight: 600;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-title:hover { color: var(--color-primary); }

.product-desc {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 14px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-more {
    font-size: 13px;
    color: var(--color-primary);
    text-decoration: none;
    flex-shrink: 0;
}
.product-more:hover { color: var(--color-primary-dark); }

/* 空状态 */
.empty-tip {
    text-align: center;
    padding: 60px 20px;
    color: var(--color-text-muted);
    font-size: 16px;
}
.empty-tip .big {
    font-size: 42px;
    display: block;
    margin-bottom: 10px;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 40px;
}
.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
    background: var(--color-white);
}
.page-btn.active {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}
.page-btn.disabled {
    opacity: 0.4;
    pointer-events: none;
}
.page-btn:not(.active):hover { border-color: var(--color-primary); color: var(--color-primary); }

/* 详情页 */
.detail-wrap {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 40px;
    align-items: start;
}
.detail-gallery { position: sticky; top: 20px; }
.detail-main-img {
    width: 100%;
    aspect-ratio: 1/1;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-accent), #d4e8f0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 72px;
    color: var(--color-primary-dark);
}
.detail-main-img img { width: 100%; height: 100%; object-fit: cover; }

/* 图片缺失占位(产品正文内嵌图加载失败时) */
.img-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    min-height: 60px;
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--color-accent), #d4e8f0);
    border-radius: 8px;
    color: var(--color-text-muted);
    font-size: 13px;
}

.detail-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}
.detail-thumb {
    width: 70px;
    height: 70px;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
    background: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: var(--color-primary-dark);
}
.detail-thumb.active { border-color: var(--color-primary); }
.detail-thumb img { width: 100%; height: 100%; object-fit: cover; }

.detail-info h1 { font-size: 26px; color: var(--color-text); margin-bottom: 14px; }
.detail-meta {
    font-size: 15px;
    color: var(--color-text);
    margin-bottom: 12px;
}
.detail-meta span { color: var(--color-text-muted); }
.detail-meta .val { color: var(--color-text); font-weight: 600; }
.price-line {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
}
.price-now { font-size: 26px; color: #e53935; font-weight: 700; }
.price-label { color: var(--color-text-muted); font-size: 14px; }
.price-old { color: var(--color-text-muted); text-decoration: line-through; font-size: 16px; }
.detail-actions { display: flex; gap: 14px; margin-top: 20px; flex-wrap: wrap; }
.detail-summary {
    background: var(--color-accent);
    border-radius: var(--radius);
    padding: 14px 18px;
    margin: 16px 0;
    color: var(--color-text);
    font-size: 15px;
    line-height: 1.7;
}

.detail-content { margin-top: 40px; }
.detail-content h2 {
    font-size: 20px;
    color: var(--color-primary-dark);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-primary-light);
    margin-bottom: 16px;
}
.detail-content-body { line-height: 1.9; color: var(--color-text); }
.detail-content-body img { max-width: 100%; border-radius: 8px; }
.detail-content-body p { margin-bottom: 10px; }
.detail-content-body table { border-collapse: collapse; width: 100%; margin: 12px 0; }
.detail-content-body td, .detail-content-body th {
    border: 1px solid var(--color-border);
    padding: 8px 12px;
    font-size: 14px;
}
.detail-content-body th { background: var(--color-accent); }

.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 26px; }

@media (max-width: 900px) {
    .detail-wrap { grid-template-columns: 1fr; }
    .detail-gallery { position: static; }
}
@media (max-width: 480px) {
    .detail-main-img { font-size: 52px; }
}
