/* ==========================================================
   基础重置与变量
   ========================================================== */
* {
    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;
    --dark: #1a1a1a;
}

/* ========== 顶部导航 ========== */
.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);
}

/* ========== 页面Banner（高度再缩小） ========== */
.page-banner {
    margin-top: 80px;
    height: 200px;
    background: linear-gradient(135deg, #5a0818 0%, #8b0f24 50%, #c8102e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}
.page-banner h1 {
    font-size: 34px;
    letter-spacing: 5px;
    margin-bottom: 8px;
}
.page-banner p {
    font-size: 13px;
    color: var(--gold);
    letter-spacing: 3px;
}

/* ========== 通用板块 ========== */
.section {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.section-tag {
    font-size: 14px;
    color: var(--primary);
    letter-spacing: 4px;
    margin-bottom: 12px;
    text-align: center;
}
.section-title {
    font-size: 36px;
    font-weight: bold;
    color: var(--dark);
    margin-bottom: 20px;
    text-align: center;
}
.section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin: 16px auto 0;
}

/* ========== 公司简介 ========== */
.about-intro p {
    font-size: 16px;
    color: #666;
    line-height: 2.2;
    max-width: 900px;
    margin: 40px auto 0;
    text-indent: 2em;
}
.about-intro .stats-bar {
    margin-top: 60px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.stat-item {
    padding: 30px 20px;
    border-right: 1px solid #eee;
    text-align: center;
}
.stat-item:last-child {
    border-right: none;
}
.stat-num {
    font-size: 42px;
    font-weight: bold;
    color: var(--primary);
    line-height: 1;
}
.stat-num span {
    font-size: 18px;
}
.stat-label {
    font-size: 14px;
    color: #888;
    margin-top: 8px;
}

/* ========== 发展历程时间轴 ========== */
.history {
    background: #fafafa;
    max-width: 100%;
    padding: 100px 20px;
}
.history-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.timeline {
    margin-top: 60px;
    position: relative;
    padding-left: 40px;
}
.timeline::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary);
}
.timeline-item {
    position: relative;
    padding-bottom: 40px;
}
.timeline-item::before {
    content: "";
    position: absolute;
    left: -38px;
    top: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--primary);
}
.timeline-year {
    font-size: 22px;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 8px;
}
.timeline-text {
    font-size: 15px;
    color: #666;
    line-height: 1.8;
}

/* ========== 企业文化 ========== */
.culture-values {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 60px;
}
.value-card {
    text-align: center;
    padding: 40px 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}
.value-card:hover {
    transform: translateY(-8px);
}
.value-icon {
    font-size: 48px;
    margin-bottom: 20px;
}
.value-card h3 {
    font-size: 20px;
    color: var(--dark);
    margin-bottom: 12px;
}
.value-card p {
    font-size: 14px;
    color: #888;
    line-height: 1.8;
}

/* ========== 酿造工艺 深色板块 ========== */
.craft {
    background: var(--dark);
    color: #fff;
    max-width: 100%;
    padding: 100px 20px;
}
.craft-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.craft .section-title {
    color: #fff;
}
.craft .section-tag {
    color: var(--gold);
}
.craft-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}
.craft-card {
    background: rgba(255,255,255,0.06);
    border-radius: 8px;
    padding: 40px 30px;
}
.craft-num {
    font-size: 36px;
    font-weight: bold;
    color: var(--gold);
    margin-bottom: 16px;
}
.craft-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}
.craft-card p {
    font-size: 14px;
    color: #aaa;
    line-height: 1.8;
}
.craft-sauce {
    margin-top: 0;
    border-top: 1px solid rgba(255,255,255,0.08);
}

/* ========== 页脚 ========== */
footer {
    background: var(--dark);
    color: #999;
    padding: 60px 20px;
    text-align: center;
}
.footer-copy {
    font-size: 13px;
    color: #666;
}

/* ==========================================================
   响应式
   ========================================================== */
@media (min-width: 1920px) {
    .site-header { padding: 0 120px; }
    .header-logo-img { height: 56px; }
    .section { padding-left: 120px; padding-right: 120px; }
}
@media (min-width: 1366px) and (max-width: 1919px) {
    .site-header { padding: 0 80px; }
    .section { padding-left: 80px; padding-right: 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; }
    .section { padding: 80px 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; }
    .page-banner {
        margin-top: 70px;
        height: 170px;
    }
    .page-banner h1 { font-size: 28px; letter-spacing: 4px; }
    .page-banner p { font-size: 12px; }
    .section { padding: 60px 20px; }
    .stats-bar { grid-template-columns: repeat(2, 1fr); }
    .stat-item {
        border-right: none;
        border-bottom: 1px solid #eee;
    }
    .culture-values { grid-template-columns: repeat(2, 1fr); }
    .craft-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;
    }

    .page-banner {
        margin-top: 64px;
        height: 130px;
    }
    .page-banner h1 { font-size: 21px; letter-spacing: 2px; }
    .page-banner p { font-size: 11px; letter-spacing: 1.5px; }
    .section-title { font-size: 26px; }
    .section { padding: 50px 16px; }
    .stats-bar { grid-template-columns: repeat(2, 1fr); }
    .stat-item {
        border-right: none;
        border-bottom: 1px solid #eee;
    }
    .culture-values { grid-template-columns: 1fr; }
    .craft-grid { grid-template-columns: 1fr; }
}