/* ==========================================================
   基础重置与变量
   ========================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
    font-family: "Microsoft YaHei", "PingFang SC", -apple-system, sans-serif;
    color: #333; background: #fff; line-height: 1.6;
    user-select: none; /* 禁止全站选中 */
    -webkit-user-select: none;
}
a { color: inherit; text-decoration: none; }
:root {
    --primary: #c8102e;
    --primary-dark: #9a0c23;
    --gold: #d5b064;
    --gold-light: #e8d5a8;
    --dark: #1a1a1a;
    --cream: #f7f3ee;
}

/* ========== 顶部导航 ========== */
.site-header {
    position: fixed; top: 0; left: 0; width: 100%; height: 80px;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(10px);
    z-index: 999; display: flex; align-items: center;
    padding: 0 60px; box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.header-logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.header-logo-img { height: 50px; width: auto; display: block; pointer-events: none; /* 穿透鼠标 */ }
.main-nav { flex: 1; text-align: center; }
.main-nav ul { display: flex; gap: 36px; list-style: none; justify-content: center; }
.main-nav a {
    font-size: 15px;
    color: #333;
    position: relative;
    padding: 6px 0;
    white-space: nowrap;
    transition: color 0.28s ease;
}

/* 悬停下划线：从中间向两侧展开 */
.main-nav a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transform: translateX(-50%);
    transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

/* 悬停：文字变红 + 下划线展开 */
.main-nav a:hover {
    color: var(--primary);
}
.main-nav a:hover::after {
    width: 100%;
}

/* 当前页：下划线常驻、文字常红 */
.main-nav a.active {
    color: var(--primary);
}
.main-nav a.active::after {
    width: 100%;
}

/* 键盘可访问性：聚焦时也有同样效果 */
.main-nav a:focus-visible {
    color: var(--primary);
    outline: none;
}
.main-nav a:focus-visible::after {
    width: 100%;
}

/* ========== 汉堡按钮（桌面端隐藏） ========== */
.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-left: auto;
    padding: 0;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #333;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ========== Hero ========== */
.hero {
    margin-top: 80px;
    background:
        radial-gradient(circle at 20% 50%, rgba(200,16,46,0.25), transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(213,176,100,0.12), transparent 50%),
        linear-gradient(135deg, #1a1a1a 0%, #2a1015 50%, #1a1a1a 100%);
    color: #fff; padding: 80px 60px;
    position: relative; overflow: hidden;
}
.hero::before {
    content: ""; position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 15% 30%, rgba(213,176,100,0.08) 0%, transparent 30%),
        radial-gradient(circle at 85% 70%, rgba(200,16,46,0.1) 0%, transparent 30%);
    pointer-events: none;
}
.hero-inner {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: center;
    position: relative; z-index: 2;
}
.hero-img-wrap {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(213,176,100,0.25);
    border-radius: 12px; aspect-ratio: 1/1;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
/* Hero 背景图样式 */
.hero-img-bg { width: 100%; height: 100%; background-size: cover; background-position: center; }

.hero-info .en {
    font-size: 13px; color: var(--gold); letter-spacing: 4px;
    text-transform: uppercase; margin-bottom: 14px;
}
.hero-info h1 { font-size: 42px; font-weight: bold; letter-spacing: 4px; margin-bottom: 8px; }
.hero-info .gold-line { width: 60px; height: 2px; background: var(--gold); margin: 18px 0 24px; }
.hero-info .cn-sub { font-size: 15px; color: rgba(255,255,255,0.7); margin-bottom: 28px; }
.hero-spec {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
    background: rgba(213,176,100,0.2);
    border: 1px solid rgba(213,176,100,0.2);
    border-radius: 8px; overflow: hidden; margin-bottom: 28px;
}
.hero-spec .cell { background: rgba(26,26,26,0.85); padding: 18px 12px; text-align: center; }
.hero-spec .cell .v { font-size: 18px; color: var(--gold); font-weight: bold; }
.hero-spec .cell .k { font-size: 12px; color: rgba(255,255,255,0.55); margin-top: 4px; }
.hero-desc { font-size: 15px; line-height: 2; color: rgba(255,255,255,0.75); margin-bottom: 32px; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-gold {
    padding: 13px 38px; background: var(--gold); color: var(--dark);
    border-radius: 2px; font-size: 15px; font-weight: 500; transition: background 0.2s;
}
.btn-gold:hover { background: var(--gold-light); }
.btn-ghost {
    padding: 13px 38px; border: 1px solid rgba(255,255,255,0.4); color: #fff;
    border-radius: 2px; font-size: 15px; transition: all 0.2s;
}
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

/* ========== 通用板块 ========== */
.section { padding: 90px 20px; max-width: 1200px; margin: 0 auto; }
.section-tag { font-size: 13px; color: var(--primary); letter-spacing: 4px; text-align: center; margin-bottom: 10px; }
.section-title { font-size: 32px; font-weight: bold; color: var(--dark); text-align: center; margin-bottom: 50px; }
.section-title::after {
    content: ""; display: block; width: 60px; height: 3px;
    background: var(--primary); margin: 14px auto 0;
}

/* ========== 品鉴四宫格 ========== */
.taste-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.taste-card {
    background: var(--cream); padding: 44px 28px; border-radius: 8px;
    text-align: center; transition: all 0.3s; border-top: 3px solid transparent;
}
.taste-card:hover {
    transform: translateY(-8px); border-top-color: var(--gold);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}
.taste-card .icon { font-size: 42px; margin-bottom: 18px; }
.taste-card h3 { font-size: 19px; color: var(--dark); margin-bottom: 12px; letter-spacing: 2px; }
.taste-card p { font-size: 14px; color: #777; line-height: 1.9; }

/* ========== 产品详情双栏 ========== */
.detail { background: var(--cream); max-width: 100%; }
.detail-inner {
    max-width: 1200px; margin: 0 auto; padding: 90px 20px;
    display: grid; 
    grid-template-columns: 1.2fr 1fr; /* 左侧稍微宽一点 */
    gap: 60px;
    align-items: stretch; /* 核心：让左右两列自动等高 */
}

/* 修改左侧布局 */
.detail-left { 
    display: flex; 
    flex-direction: column; 
    height: 100%; /* 继承父级高度 */
}
.detail-title {
    font-size: 24px; color: var(--dark); margin-bottom: 24px;
    padding-left: 16px; border-left: 4px solid var(--primary);
    line-height: 1.2; display: flex; align-items: center;
}

/* 核心：图片框绝对占满剩余空间 */
.detail-img { 
    flex: 1; /* 撑满剩余空间 */
    width: 100%; 
    min-height: 400px;
    border-radius: 8px; 
    margin-bottom: 24px; 
    position: relative;
    background: #f7f3ee;
}
.detail-img-bg { 
    position: absolute;
    inset: 0;
    width: 100%; 
    height: 100%; 
    background-size: contain; /* 完整显示图片 */
    background-position: center; 
    background-repeat: no-repeat;
}

/* 如果你想让右侧参数高度自动适应左侧，就把右侧的样式稍微改一下 */
.detail-right { 
    display: flex; 
    flex-direction: column; 
    height: 100%;
}
.detail-right .detail-title {
    border-left: none;
    padding-left: 0;
    margin-bottom: 24px;
}
.detail-card {
    background: #fff; border-radius: 10px; padding: 32px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    flex: 1; /* 让参数卡片撑满高度 */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.detail-right .row {
    display: flex; justify-content: space-between;
    padding: 13px 0; border-bottom: 1px dashed #eee; font-size: 14px;
}
.detail-right .row:last-child { border-bottom: none; }
.detail-right .k { color: #999; }
.detail-right .v { color: var(--dark); font-weight: 500; }

/* ========== 酿造工艺 ========== */
.craft {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a1015 100%);
    color: #fff; padding: 90px 20px;
}
.craft .section-tag { color: var(--gold); }
.craft .section-title { color: #fff; }
.craft .section-title::after { background: var(--gold); }
.craft-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 20px; }
.craft-card {
    background: rgba(255,255,255,0.04); border: 1px solid rgba(213,176,100,0.2);
    border-radius: 10px; padding: 36px 28px; transition: all 0.3s;
}
.craft-card:hover {
    background: rgba(255,255,255,0.07);
    border-color: var(--gold); transform: translateY(-4px);
}
.craft-card .num {
    font-size: 36px; font-weight: bold; color: var(--gold);
    font-family: Georgia, serif; margin-bottom: 14px;
}
.craft-card h3 { font-size: 19px; margin-bottom: 12px; }
.craft-card p { font-size: 14px; color: rgba(255,255,255,0.65); line-height: 1.9; }

/* ========== 相关推荐 ========== */
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 20px; }
.rel-card {
    background: #fff; border-radius: 10px; overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06); transition: all 0.3s;
}
.rel-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 14px 36px rgba(200,16,46,0.15);
}
.rel-card .img {
    height: 220px; background: var(--cream);
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.rel-img-bg { width: 100%; height: 100%; background-size: cover; background-position: center; transition: transform 0.6s cubic-bezier(0.22,1,0.36,1); }
.rel-card:hover .rel-img-bg { transform: scale(1.06); }

.rel-card .body { padding: 22px; }
.rel-card .tag {
    font-size: 12px; color: var(--primary); border: 1px solid var(--primary);
    padding: 2px 10px; border-radius: 2px; display: inline-block; margin-bottom: 12px;
}
.rel-card h3 { font-size: 18px; color: var(--dark); margin-bottom: 6px; }
.rel-card .spec { font-size: 13px; color: #999; }

/* ========== 页脚 ========== */
footer { background: var(--dark); color: #999; padding: 60px 20px; text-align: center; border-top: 1px solid #2a2a2a; }
.footer-logo { font-size: 24px; font-weight: bold; color: var(--primary); margin-bottom: 20px; letter-spacing: 4px; }
.footer-links { display: flex; justify-content: center; gap: 30px; margin-bottom: 24px; flex-wrap: wrap; }
.footer-links a { font-size: 14px; color: #999; }
.footer-links a:hover { color: var(--primary); }
.footer-copy { font-size: 13px; color: #666; border-top: 1px solid #333; padding-top: 24px; margin-top: 24px; }

/* ==========================================================
   响应式
   ========================================================== */
@media (min-width: 1920px) {
    .site-header { padding: 0 120px; }
    .header-logo-img { height: 56px; }
    .hero { padding: 80px 120px; }
}
@media (min-width: 1366px) and (max-width: 1919px) {
    .site-header { padding: 0 80px; }
    .hero { padding: 80px; }
}
@media (min-width: 1024px) and (max-width: 1365px) {
    .site-header { padding: 0 30px; }
    .main-nav ul { gap: 20px; }
    .main-nav a { font-size: 14px; }
    .hero { padding: 60px 30px; }
}
@media (min-width: 768px) and (max-width: 1023px) {
    .site-header { padding: 0 20px; height: 70px; }
    .header-logo-img { height: 44px; }
    .main-nav ul { gap: 12px; }
    .main-nav a { font-size: 13px; }
    .hero { padding: 50px 20px; }
    .hero-inner { grid-template-columns: 1fr; gap: 30px; }
    .hero-info h1 { font-size: 30px; }
    .hero-spec { grid-template-columns: repeat(2, 1fr); }
    .taste-grid { grid-template-columns: repeat(2, 1fr); }
    .detail-inner { grid-template-columns: 1fr; gap: 40px; }
    .detail-right .detail-title { margin-top: 20px; }
    .detail-img { min-height: 300px; }
    .craft-grid { grid-template-columns: repeat(2, 1fr); }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
    .site-header { padding: 0 16px; height: 64px; }
    .header-logo-img { height: 40px; }

    .nav-toggle { display: flex; }

    .main-nav {
        position: fixed;
        top: 64px;
        left: 0;
        width: 100%;
        background: #fff;
        box-shadow: 0 8px 24px rgba(0,0,0,0.1);
        transform: translateY(-120%);
        transition: transform 0.3s ease;
        z-index: 998;
        display: block;
        text-align: left;
    }
    .main-nav.open {
        transform: translateY(0);
    }
    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 8px 0;
    }
    .main-nav li {
        border-bottom: 1px solid #f0f0f0;
    }
    .main-nav a {
        display: block;
        padding: 14px 24px;
        font-size: 15px;
    }
    .main-nav a::after,
    .main-nav a.active::after,
    .main-nav a:hover::after {
        display: none;
    }

    .hero { margin-top: 64px; padding: 40px 16px; }
    .hero-inner { grid-template-columns: 1fr; gap: 24px; }
    .hero-info h1 { font-size: 26px; }
    .hero-spec { grid-template-columns: repeat(2, 1fr); }
    .section { padding: 60px 16px; }
    .section-title { font-size: 26px; }
    .taste-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .taste-card { padding: 28px 16px; }
    .detail-inner { grid-template-columns: 1fr; padding: 60px 16px; gap: 30px; }
    .detail-right .detail-title { margin-top: 20px; }
    .detail-img { min-height: 250px; }
    .craft { padding: 60px 16px; }
    .craft-grid { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: 1fr; }
    .btn-gold, .btn-ghost { flex: 1; text-align: center; }
}