/* ============ 组件.css · Shared component styles ============
   产品卡片s, tab 筛选s, and page-首屏 are shared across 页面. */

/* ----- 页面顶部区域 (gradient version, used by about/contact) ----- */
.page-hero {
    background:
        radial-gradient(620px 320px at 92% -30%, rgba(var(--coral-rgb), 0.35), transparent 64%),
        radial-gradient(rgba(255,255,255,0.10) 1px, transparent 1.4px) 0 0 / 22px 22px,
        linear-gradient(120deg, #00727d 0%, #00a4b3 52%, #00c2d1 100%);
    color: #fff;
    padding: 12px 0 14px;
}
.page-hero .section-eyebrow {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(6px);
}
.page-hero .section-eyebrow::before { background: var(--lemon); box-shadow: 0 0 0 3px rgba(255, 216, 77, 0.22); }
.page-hero h1 { font-size: 42px; font-weight: 800; letter-spacing: -0.8px; margin-bottom: 14px; }
.page-hero-sub { font-size: 15px; opacity: 0.92; margin: 0; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 20px; opacity: 0.85; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .current { color: rgba(255,255,255,0.7); }
.section-soft { background: var(--bg-soft); }

/* 页面顶部区域 响应式 */
@media (max-width: 1199px) { .page-hero h1 { font-size: 34px; } }
@media (max-width: 991px) { .page-hero h1 { font-size: 30px; } }
@media (max-width: 767px) { .page-hero { padding: 10px 0 12px; } .page-hero h1 { font-size: 22px; } }

/* ----- 模块标题 with split layout (title left + button right) ----- */
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; text-align: left; margin-bottom: 48px; gap: 24px; }
.section-head-row .section-head-text { text-align: left; }
.section-head-row .section-sub { margin: 0; }
@media (max-width: 1199px) { .section-head-row { margin-bottom: 36px; } }
@media (max-width: 767px) { .section-head-row { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 28px; } }

/* ----- Tab 筛选 ----- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab { padding: 10px 20px; border-radius: 999px; font-size: 14px; color: var(--text-soft); background: var(--bg-soft); cursor: pointer; transition: all 0.25s; border: 1.5px solid transparent; white-space: nowrap; font-family: inherit; font-weight: 600; }
.tab:hover { color: var(--coral-dark); border-color: rgba(var(--coral-rgb), 0.25); background: #fff4f0; }
.tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tab.active { background: linear-gradient(120deg, #00c2d1, #008d9a); color: #fff; border-color: transparent; box-shadow: 0 8px 18px rgba(var(--accent-rgb), 0.3); }

/* ----- 产品网格 ----- */
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.products-empty { grid-column: 1 / -1; text-align: center; color: var(--text-soft); padding: 40px 0; }

/* ----- 产品卡片 ----- */
.product { background: var(--bg); border-radius: 22px; overflow: hidden; border: 1px solid var(--line); transition: all 0.3s cubic-bezier(0.4,0,0.2,1); cursor: pointer; display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.product:hover, .product:focus-visible { transform: translateY(-6px); box-shadow: 0 24px 48px rgba(var(--shadow-rgb), 0.14), 0 0 0 1px rgba(var(--accent-rgb), 0.16); border-color: transparent; outline: none; }
.product:focus-visible { box-shadow: 0 0 0 3px var(--accent); }

.product-img { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--bg-soft); }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(0.4,0,0.2,1); }
.product:hover .product-img img { transform: scale(1.1); }

.tag { position: absolute; top: 14px; left: 14px; background: linear-gradient(135deg, var(--lemon), #ffb648); color: #5b3b00; font-size: 11px; padding: 6px 13px; border-radius: 999px; font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase; z-index: 2; transform: rotate(-4deg); box-shadow: 0 6px 14px rgba(0, 40, 50, 0.18); }
.tag.new { background: linear-gradient(135deg, #00d4e0, #009ba8); color: #fff; }
.tag.hot { background: linear-gradient(135deg, var(--coral), var(--coral-dark)); color: #fff; }

.product-body { padding: 18px 18px 20px; flex: 1; display: flex; flex-direction: column; }
.product-brand { font-size: 11px; color: var(--accent); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 6px; font-weight: 600; }
.product-name { font-size: 15px; font-weight: 700; margin-bottom: 10px; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color 0.2s; letter-spacing: -0.01em; line-height: 1.35; min-height: calc(15px * 1.35 * 2); }
.product:hover .product-name { color: var(--accent-dark); }
.product-rating { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-soft); margin-bottom: 14px; }
.stars { display: inline-flex; align-items: center; gap: 2px; color: var(--gold); }
.stars .star { width: 13px; height: 13px; fill: currentColor; }
.stars .star.off { opacity: 0.28; }
.product-price { display: flex; align-items: baseline; justify-content: space-between; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.price-now { font-size: 22px; font-weight: 800; color: var(--accent-dark); letter-spacing: -0.02em; }
.price-now small { font-size: 13px; font-weight: 700; }
.product-price:has(.price-old) .price-now { color: var(--coral-dark); }
.price-old { font-size: 13px; color: var(--text-soft); text-decoration: line-through; margin-left: 8px; }

/* ----- 响应式: 平板端 ----- */
@media (max-width: 1199px) {
    .products { grid-template-columns: repeat(3, 1fr); gap: 18px; }
    .product-body { padding: 14px 14px 16px; }
    .product-name { font-size: 14px; }
    .price-now { font-size: 19px; }
    .tab { padding: 8px 18px; font-size: 13px; }
}

/* ----- 响应式: 移动端 ----- */
@media (max-width: 767px) {
    .products { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .product-body { padding: 12px 12px 14px; }
    .product-brand { font-size: 10px; margin-bottom: 4px; }
    .product-name { font-size: 13px; margin-bottom: 8px; }
    .product-rating { font-size: 11px; margin-bottom: 10px; gap: 4px; }
    .price-now { font-size: 17px; }
    .price-now small { font-size: 11px; }
    .price-old { font-size: 11px; margin-left: 6px; }
    .tag { font-size: 10px; padding: 3px 9px; top: 8px; left: 8px; }
    .tabs { gap: 6px; }
    .tab { padding: 7px 14px; font-size: 12px; }
    .product-price { padding-top: 10px; }
}
