/* ============================================================
   产品详情页公共样式 - 东莞市创荣织带有限公司
   与首页(index.html)风格保持一致：#c0392b 主色 / #1a1a2e 深色
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
    color: #333;
    line-height: 1.6;
    background: #f7f7f7;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
img { max-width: 100%; display: block; }

/* 顶栏 */
.top-bar {
    background: #1a1a2e;
    color: #ccc;
    font-size: 13px;
    padding: 8px 0;
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar span { margin-right: 20px; }
.top-bar-tel { color: #fff; }

/* 头部 */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}
.logo {
    font-size: 20px;
    font-weight: 700;
    color: #c0392b;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo img { width: 36px; height: 36px; border-radius: 4px; }
.logo-main { display: block; }
.logo-main small { display: block; font-size: 11px; font-weight: 400; color: #999; letter-spacing: 0; }
.header-nav a {
    margin-left: 24px;
    font-size: 15px;
    color: #333;
    transition: color 0.3s;
}
.header-nav a:hover { color: #c0392b; }
.header-nav a.active { color: #c0392b; font-weight: 600; }
@media (max-width: 768px) {
    .header-nav { display: none; }
    .logo-main small { display: none; }
}

/* 面包屑 */
.breadcrumb {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 14px 0;
    font-size: 13px;
    color: #888;
}
.breadcrumb a { color: #c0392b; }
.breadcrumb span.sep { margin: 0 8px; color: #ccc; }
.breadcrumb .cur { color: #555; }

/* 主体布局 */
.main-wrap { padding: 30px 0 60px; }
.product-layout {
    display: grid;
    grid-template-columns: 480px 1fr;
    gap: 40px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    padding: 30px;
    margin-bottom: 30px;
}
@media (max-width: 900px) {
    .product-layout { grid-template-columns: 1fr; }
}

/* 图集 */
.gallery-main {
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
    aspect-ratio: 1 / 1;
    position: relative;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-top: 12px;
}
.gallery-thumbs img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}
.gallery-thumbs img.active { border-color: #c0392b; }

/* 产品信息 */
.product-info h1 {
    font-size: 26px;
    color: #1a1a2e;
    margin-bottom: 6px;
}
.product-info .en-name {
    color: #999;
    font-size: 14px;
    margin-bottom: 16px;
}
.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0 20px;
    font-size: 14px;
}
.spec-table td {
    border: 1px solid #eee;
    padding: 10px 14px;
}
.spec-table td.label {
    width: 110px;
    background: #fafafa;
    color: #666;
    font-weight: 600;
}
.spec-table td.value { color: #333; }

.cta-box {
    background: #fdf3f1;
    border: 1px solid #f3c8c0;
    border-radius: 8px;
    padding: 18px 20px;
    margin-top: 10px;
}
.cta-box p { font-size: 14px; color: #555; margin-bottom: 10px; }
.cta-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: opacity 0.2s;
}
.btn:hover { opacity: 0.88; }
.btn-primary { background: #c0392b; color: #fff; }
.btn-outline { border: 1px solid #c0392b; color: #c0392b; background: #fff; }

/* 产品描述 */
.section-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    padding: 30px;
    margin-bottom: 30px;
}
.section-card h2 {
    font-size: 20px;
    color: #1a1a2e;
    margin-bottom: 16px;
    padding-left: 14px;
    border-left: 4px solid #c0392b;
}
.section-card p { font-size: 15px; color: #555; margin-bottom: 12px; }
.section-card ul { padding-left: 20px; }
.section-card ul li {
    list-style: disc;
    font-size: 15px;
    color: #555;
    margin-bottom: 6px;
}

/* 相关产品 */
.related-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 8px;
}
.related-item { text-align: center; }
.related-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: transform 0.3s;
}
.related-item:hover img { transform: scale(1.03); }
.related-name { font-size: 14px; color: #333; }
@media (max-width: 768px) {
    .related-list { grid-template-columns: repeat(2, 1fr); }
}

/* 页脚 */
.footer {
    background: #1a1a2e;
    color: #bbb;
    padding: 30px 0;
    font-size: 14px;
}
.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.footer a { color: #fff; }
.footer a:hover { color: #c0392b; }