/* ============================================
   Permagen Labware 中文推广站 - 样式表
   配色：深蓝 #1a5276 / 科技绿 #27ae60 / 浅灰白 #f8f9fa
   ============================================ */

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: #333;
    background: #f8f9fa;
    line-height: 1.6;
    font-size: 15px;
}

a { color: #1a5276; text-decoration: none; }
a:hover { color: #27ae60; }

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: #1a5276;
    color: #fff;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

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

.site-header .logo {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
}

.site-header nav a {
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background 0.2s;
}

.site-header nav a:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

/* Page Hero */
.page-hero {
    text-align: center;
    padding: 48px 0 32px;
}

.page-hero h1 {
    font-size: 28px;
    color: #1a5276;
    margin-bottom: 8px;
}

.page-hero p {
    color: #666;
    font-size: 15px;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding-bottom: 48px;
}

.product-card {
    display: block;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    color: #333;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    color: #333;
}

.product-card-img {
    background: #fff;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 220px;
}

.product-card-img img {
    max-height: 100%;
    object-fit: contain;
}

.product-card-info {
    padding: 16px;
    border-top: 1px solid #f0f0f0;
}

.product-card-info .name-cn {
    font-size: 15px;
    font-weight: 600;
    color: #1a5276;
    margin-bottom: 4px;
    line-height: 1.4;
}

.product-card-info .name-en {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-card-info .sku {
    font-size: 12px;
    color: #888;
    margin-bottom: 6px;
}

.product-card-info .price {
    font-size: 18px;
    font-weight: 700;
    color: #c0392b;
}

/* Product Detail */
.product-detail {
    padding: 32px 0 48px;
}

.product-detail-top {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

.product-detail-img {
    flex: 0 0 45%;
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.product-detail-info {
    flex: 1;
}

.product-detail-info .name-cn {
    font-size: 24px;
    color: #1a5276;
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-detail-info .name-en {
    font-size: 14px;
    color: #888;
    margin-bottom: 16px;
}

.product-detail-info .sku {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.product-detail-info .price {
    font-size: 28px;
    font-weight: 700;
    color: #c0392b;
    margin-top: 8px;
}

/* Variations Table */
.variations-table {
    margin-top: 16px;
}

.variations-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.variations-table th,
.variations-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.variations-table th {
    background: #f8f9fa;
    color: #555;
    font-weight: 600;
}

.variations-table td.price {
    font-weight: 700;
    color: #c0392b;
    font-size: 16px;
}

/* Tabs */
.product-tabs {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    overflow: hidden;
    margin-bottom: 24px;
}

.tab-nav {
    display: flex;
    border-bottom: 2px solid #f0f0f0;
}

.tab-btn {
    padding: 14px 28px;
    border: none;
    background: none;
    font-size: 15px;
    color: #666;
    cursor: pointer;
    font-family: inherit;
    position: relative;
    transition: color 0.2s;
}

.tab-btn:hover { color: #1a5276; }

.tab-btn.active {
    color: #1a5276;
    font-weight: 600;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #27ae60;
}

.tab-content {
    display: none;
    padding: 24px;
    font-size: 14px;
    line-height: 1.8;
    color: #555;
}

.tab-content.active { display: block; }

.tab-content .desc-en {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
    color: #999;
    font-size: 13px;
}

/* Spec Table */
.spec-table {
    width: 100%;
    border-collapse: collapse;
}

.spec-table th,
.spec-table td {
    padding: 10px 16px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.spec-table th {
    width: 140px;
    text-align: left;
    color: #555;
    font-weight: 600;
    background: #fafafa;
}

.spec-table td { color: #333; }

/* Back Link */
.back-link {
    padding-top: 8px;
}

.back-link a {
    font-size: 14px;
    color: #1a5276;
}

.back-link a:hover { color: #27ae60; }

/* 404 */
.not-found {
    text-align: center;
    padding: 80px 0;
}

.not-found h1 {
    font-size: 64px;
    color: #ddd;
}

.not-found p {
    color: #999;
    margin: 16px 0;
}

/* Footer */
.site-footer {
    background: #1a5276;
    color: rgba(255,255,255,0.7);
    text-align: center;
    padding: 24px 0;
    font-size: 13px;
}

.site-footer .price-note {
    margin-top: 4px;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}

/* Sort Bar */
.sort-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.sort-bar a {
    padding: 6px 16px;
    border-radius: 4px;
    color: #666;
    background: #fff;
    border: 1px solid #ddd;
    transition: all 0.2s;
}

.sort-bar a:hover { border-color: #1a5276; color: #1a5276; }

.sort-bar a.active {
    background: #1a5276;
    color: #fff;
    border-color: #1a5276;
}

/* Hot Tag */
.product-card {
    position: relative;
}

.tag-hot {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #e74c3c;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 3px;
    z-index: 2;
    letter-spacing: 1px;
}

/* Click Count */
.click-count {
    font-size: 12px;
    color: #aaa;
    margin-top: 4px;
}

/* Responsive */
@media (max-width: 992px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .product-detail-top {
        flex-direction: column;
        gap: 24px;
    }
    .product-detail-img { flex: none; }
    .product-detail-info .name-cn { font-size: 20px; }
    .product-detail-info .price { font-size: 22px; }
}

@media (max-width: 576px) {
    .product-grid { grid-template-columns: 1fr; }
    .page-hero h1 { font-size: 22px; }
    .tab-btn { padding: 12px 16px; font-size: 14px; }
}
