/* ========== 全局变量 - 严格遵循设计规范配色 ========== */
:root {
    /* 主背景色 */
    --bg-white: #FFFFFF;
    --bg-light: #F8F9FA;

    /* 文字色 */
    --text-primary: #2D3436;
    --text-secondary: #636E72;

    /* 边框与分割线 */
    --border-color: #DFE6E9;

    /* 品牌重点色 */
    --brand-red: rgb(200, 23, 30);

    /* 点缀色 */
    --accent-orange: rgb(235, 97, 0);

    /* 圆角与阴影 */
    --radius-sm: 8px;
    --radius-md: 12px;
    /* --shadow-card: 0 1px 6px rgba(0, 0, 0, 0.3); */
    --shadow-card: 0 9px 28px 0 rgba(0, 0, 0, 0.05);
}

/* ========== 全局重置 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
        Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 36px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 48px;
}

.section-title.center {
    text-align: center;
}

/* ========== 顶部导航 ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    color: white;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
    /* border: 2px solid var(--brand-red); */
    /* border-radius: 10px; */
    /* 消除文字默认行高的偏移 */

}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    height: 100%;

}

/* 单个菜单项：文字垂直居中，点击区域撑满导航高度 */
.nav-item {
    display: flex;
    align-items: center;
    height: 100%;
    font-size: 20px;
    position: relative;
    transition: opacity 0.2s;
    font-weight: 600;
}

.nav-item:hover {
    opacity: 0.8;
}


.nav-item.active::after {
    content: "";
    position: absolute;
    bottom: 0px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--brand-red);
}

/* ========== 首屏 Banner ========== */
.banner {
    width: 100%;
    height: 1080px;
    max-height: 1080px;
}

.banner-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.banner-mask {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
}

.banner-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.banner-title {
    font-size: 80px;
    font-weight: 600;
    letter-spacing: 2px;
    font-family: 'zihunhaimatiziti-VF', 'SourceHanSansCN-Bold', sans-serif;
    font-style: normal;
    line-height: 1.6;
    text-shadow: 0px 2px 2px #f53f3f;
    margin-top: 500px;
}

/* =========== 品牌介绍 ========== */
.brand-section {
    background-color: var(--bg-light);
}

.brand-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.brand-desc {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* ========== 核心优势 ========== */
.advantage-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
}

.advantage-item {
    text-align: center;
}

.advantage-title {
    font-size: 48px;
    font-weight: 600;
    color: var(--brand-red);
    margin-bottom: 16px;
}

.advantage-desc {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

/* ========== 商品区域 ========== */
.product-section {
    background-color: var(--bg-light);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.product-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.product-img-wrap {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    background-color: var(--accent-orange);
    color: white;
    font-size: 12px;
    border-radius: 4px;
    z-index: 2;
}

.product-info {
    padding: 20px;
}

.product-name {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.current-price {
    font-size: 20px;
    font-weight: 600;
    color: var(--brand-red);
}

.original-price {
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: line-through;
}

/* ========== 用户评价 ========== */
.comment-scroll {
    overflow-x: auto;
    padding-bottom: 16px;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

.comment-scroll::-webkit-scrollbar {
    height: 6px;
}

.comment-scroll::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 3px;
}

.comment-list {
    display: flex;
    gap: 20px;
    width: max-content;
}

.comment-card {
    width: 320px;
    flex-shrink: 0;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 24px;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-user {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.comment-name {
    font-size: 14px;
    font-weight: 500;
}

.comment-date {
    font-size: 12px;
    color: var(--text-secondary);
}

.comment-content {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========== 页脚 ========== */
.footer {
    background-color: var(--bg-light);
    padding: 48px 0;
    border-top: 1px solid var(--border-color);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* 核心：上下居中 */
}

.footer-info p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.footer-info .tip {
    margin-top: 12px;
    /* color: var(--brand-red); */
}

.footer-qrcode {
    display: flex;
    gap: 32px;
}

.qrcode-item {
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
}

.qrcode-box {
    width: 80px;
    height: 80px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    /* border-radius: 20px; */
    margin-bottom: 8px;
}


/* 提示框容器样式 */
.toast-box {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

/* 单个提示 */
.toast-item {
    min-width: 260px;
    padding: 14px 20px;
    margin-bottom: 12px;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    animation: toastIn 0.3s ease forwards;
}

/* 三种类型颜色 */
.toast-success {
    background-color: #00b42a;
}

.toast-warning {
    background-color: #ff7d00;
}

.toast-error {
    background-color: #f53f3f;
}

/* 弹出动画 */
@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 消失动画 */
@keyframes toastOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* ========== 响应式适配 ========== */
@media (max-width: 960px) {
    .nav-item-wrapper {
        color: #2D3436;
    }

    .section {
        padding: 48px 0;
    }

    .banner-title {
        font-size: 36px;
    }

    .section-title {
        font-size: 28px;
        margin-bottom: 32px;
    }

    .advantage-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-container {
        flex-direction: column;
        gap: 32px;
    }

    .nav-menu {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .nav-item {
        height: 40px;
    }
}