/* ==================== css/style.css ==================== */
:root {
    --brand-red: #B2222F;
    --dark-red: #8B1A1A;
    --gold: #C9A96E;
    --cream: #FDFAF6;
    --text-dark: #333;
    --text-muted: #777;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    color: var(--text-dark);
    background-color: #fff;
    padding-top: 0; /* navbar fixed-top 需要手动留白 */
}
.serif-font { font-family: 'Noto Serif SC', serif; }
.bg-red { background-color: var(--brand-red) !important; }
.bg-dark-red { background-color: var(--dark-red) !important; }
.bg-light-cream { background-color: var(--cream); }
.text-red { color: var(--brand-red) !important; }
.text-gold { color: var(--gold) !important; }
.border-red { border-color: var(--brand-red) !important; }

/* 导航栏 */
#mainNav {
    background-color: transparent;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    z-index: 1030;
}
#mainNav .navbar-brand {
    font-family: 'Noto Serif SC', serif;
    font-weight: 700;
    color: #fff;
    font-size: 1.8rem;
}
#mainNav .nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    position: relative;
}
#mainNav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--gold);
}
#mainNav.scrolled {
    background-color: #fff !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
#mainNav.scrolled .navbar-brand { color: var(--brand-red); }
#mainNav.scrolled .nav-link { color: var(--text-dark) !important; }
#mainNav.scrolled .nav-link.active { color: var(--brand-red) !important; }
#mainNav.scrolled .btn-outline-light {
    border-color: var(--brand-red);
    color: var(--brand-red);
}
#mainNav.scrolled .btn-outline-light:hover {
    background-color: var(--brand-red);
    color: #fff;
}
.navbar-toggler { border-color: rgba(255,255,255,0.5); }
.navbar-toggler-icon { background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='rgba(255,255,255,0.8)' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"); }
#mainNav.scrolled .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='rgba(0,0,0,0.5)' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* 按钮样式 */
.btn-red {
    background-color: var(--brand-red);
    border-color: var(--brand-red);
    color: #fff;
}
.btn-red:hover { background-color: var(--dark-red); border-color: var(--dark-red); color: #fff; }
.btn-outline-red {
    border: 2px solid var(--brand-red);
    color: var(--brand-red);
    background: transparent;
}
.btn-outline-red:hover { background-color: var(--brand-red); color: #fff; }
.btn-gold { background-color: var(--gold); color: #fff; border: none; }

/* 轮播遮罩 */
.carousel-item img { filter: brightness(0.6); }
.carousel-caption { text-shadow: 1px 1px 3px rgba(0,0,0,0.5); }
.carousel-caption h1 { font-size: 3.5rem; }
@media (max-width: 768px) {
    .carousel-caption h1 { font-size: 2rem; }
}

/* 图标圆圈 */
.icon-circle {
    width: 70px; height: 70px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 2rem;
}

/* 分隔线 */
.gold-divider {
    width: 60px; height: 3px; background-color: var(--gold);
}

/* 区块标题 */
.section-title {
    font-family: 'Noto Serif SC', serif;
    color: var(--brand-red);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* 产品卡片 */
.product-card {
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border: 1px solid var(--gold);
}

/* 品牌故事背景 */
.story-section {
    background: linear-gradient(rgba(178,34,47,0.7), rgba(178,34,47,0.8)), url('data:image/svg+xml,...可替换真实图片');
    background-size: cover;
    background-position: center;
}

/* 评价 */
.blockquote-red {
    background: #fff;
    border-left: 4px solid var(--brand-red);
    border-radius: 8px;
}

/* 时间轴 (about页) */
.timeline {
    position: relative;
    padding-left: 2rem;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 15px; top: 0; bottom: 0;
    width: 3px; background: var(--gold);
}
.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 2rem;
}
.timeline-dot {
    width: 20px; height: 20px;
    background: var(--brand-red);
    border: 3px solid var(--gold);
    border-radius: 50%;
    position: absolute;
    left: -6px; top: 5px;
}
@media (min-width: 768px) {
    .timeline { padding-left: 0; }
    .timeline::before { left: 50%; }
    .timeline-item { width: 50%; padding: 0 2rem; margin-bottom: 2.5rem; }
    .timeline-item:nth-child(odd) { text-align: right; margin-left: auto; }
    .timeline-dot { left: auto; right: -12px; }
    .timeline-item:nth-child(odd) .timeline-dot { left: -12px; right: auto; }
}

/* 返回顶部按钮 */
#backToTop {
    position: fixed;
    bottom: 30px; right: 30px;
    width: 45px; height: 45px;
    display: none;
    align-items: center; justify-content: center;
    font-size: 1.2rem;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* 页面头部 */
.page-header {
    background-color: var(--brand-red);
    margin-top: 0;
}

/* 表单聚焦光晕 */
.form-control:focus, .form-select:focus {
    border-color: var(--brand-red);
    box-shadow: 0 0 0 0.2rem rgba(178,34,47,0.25);
}

/* 其他辅助 */
.icon-outline-red {
    width: 60px; height: 60px;
    border: 2px solid var(--brand-red);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--brand-red);
    font-size: 1.8rem;
}