/* ========================
   全局基础色控制
======================== */
body {
    background-color: #ffffff;   /* 主背景：暖米灰 */
    color: #534c46;              /* 正文深灰 */
}

/* ========================
   Header 顶部导航
======================== */
.header {
    background-color: rgba(230, 226, 218, 0.3);
    border-bottom: 1px solid #d4c9b8; /* 浅灰分隔线 */
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.logo img {
    height: 72px;
}

/* ========================
   导航样式
======================== */
.nav a {
    margin-left: 48px;
    font-size: 20px;
    color: #3f332c;              /* 深可可棕 */
    position: relative;
    padding-bottom: 6px;
    transition: color 0.3s ease;
}

/* hover / active 颜色 */
.nav a:hover,
.nav a.active {
    color: #977e2e;              /* 哑光古金 */
}

/* 下划线动画（统一风格） */
.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: #977e2e;
    transition: width 0.3s ease;
}

.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}

/* ========================
   Banner 区域
======================== */
.banner {
    height: 800px;
    background: url("../images/banner/banner.webp") center/cover no-repeat;
    position: relative;
}

/* 暖灰遮罩（年轻感关键） */
.banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(231, 227, 218, 0.01); /* 暖灰半透明 */
}

/* Banner 内容 */
.banner-content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.banner-content h1 {
    font-size: 52px;
    letter-spacing: 6px;
    font-weight: 500;
    color: #3f332c;
}

.banner-content p {
    margin-top: 18px;
    font-size: 18px;
    color: #977e2e;
}

/* ========================
   品牌介绍
======================== */
.intro {
    padding: 90px 0 80px;
    text-align: center;
}

.intro h2 {
    font-size: 32px;
    margin-bottom: 26px;
    color: #3f332c;
}

.intro p {
    max-width: 860px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.9;
    color: #534c46;
}

/* ========================
   品牌优势模块
======================== */
.feature {
    display: flex;
    justify-content: space-between;
    padding-bottom: 100px;
}

.feature-item {
    width: 30%;
    text-align: center;
}

.feature-item h3 {
    font-size: 20px;
    margin-bottom: 14px;
    color: #3f332c;
}

.feature-item p {
    font-size: 15px;
    color: #534c46;
}

/* ========================
   Footer 页脚
======================== */
.footer {
    background-color: #ffffff;
    border-top: 1px solid #a79988;
    text-align: center;
    padding: 36px 0;
    
    font-size: 14px;
    color: #534c46;
}

.footer a {
    position: relative; /* 关键：为伪元素提供定位基准 */
    display: inline-block; /* 确保下划线宽度正确 */
    color: #534c46;
    text-decoration: none; /* 移除默认下划线 */
    padding-bottom: 2px; /* 为下划线预留空间 */
}

.footer a:hover {
    color: #3f0fff; /* 蓝色 */
}
.footer a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 1px; /* 细线更精致 */
    background-color: #3f0fff;
}
.footer a:hover::after {
    width: 100%;
}


/* ========================
   About Page 专用样式
======================== */

/* 页面Banner */
.page-banner {
    background: linear-gradient(135deg, #f5f2eb 0%, #e8e4dc 100%);
    padding: 80px 0;
    text-align: center;
    border-bottom: 1px solid #d4c9b8;
}

.page-banner h1 {
    font-size: 42px;
    color: #3f332c;
    margin-bottom: 16px;
    font-weight: 500;
}

.page-banner p {
    font-size: 18px;
    color: #977e2e;
}

/* 品牌故事图文交错 */
.brand-story {
    padding: 100px 0;
}

.story-item {
    display: flex;
    align-items: center;
    margin-bottom: 120px;
    gap: 60px;
}

.story-item:last-child {
    margin-bottom: 0;
}

.story-left {
    flex-direction: row;
}

.story-right {
    flex-direction: row-reverse;
}

.story-content {
    flex: 1;
}

.story-content h2 {
    font-size: 32px;
    color: #3f332c;
    margin-bottom: 24px;
    font-weight: 500;
}

.story-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #534c46;
    margin-bottom: 16px;
}

.story-image {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(63, 51, 44, 0.1);
}

.story-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.story-image:hover img {
    transform: scale(1.05);
}

/* 时间轴 */
.timeline-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f9f7f3 0%, #f1ede6 100%);
}

.section-title {
    text-align: center;
    font-size: 36px;
    color: #3f332c;
    margin-bottom: 60px;
    font-weight: 500;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #977e2e, #d4c9b8);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 60px;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
    text-align: right;
}

.timeline-year {
    flex: 0 0 120px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    color: #977e2e;
    background: #f9f7f3;
    padding: 12px;
    border: 2px solid #977e2e;
    border-radius: 8px;
    z-index: 2;
}

.timeline-content {
    flex: 1;
    padding: 0 40px;
}

.timeline-content h3 {
    font-size: 20px;
    color: #3f332c;
    margin-bottom: 8px;
}

.timeline-content p {
    font-size: 14px;
    color: #534c46;
    line-height: 1.6;
}

/* 荣耀徽章 */
.honor-section {
    padding: 100px 0;
}

.honor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.honor-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f6f2 100%);
    padding: 40px 30px;
    text-align: center;
    border-radius: 16px;
    border: 1px solid #e8e4dc;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.honor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(151, 126, 46, 0.1), transparent);
    transition: left 0.6s ease;
}

.honor-card:hover::before {
    left: 100%;
}

.honor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(63, 51, 44, 0.15);
    border-color: #977e2e;
}

.honor-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.honor-card h3 {
    font-size: 18px;
    color: #3f332c;
    margin-bottom: 12px;
    font-weight: 500;
}

.honor-card p {
    font-size: 14px;
    color: #534c46;
    line-height: 1.6;
}




/* ========================
   统一页面模板样式
======================== */

/* 页面Banner统一样式 */
.page-banner {
    background: linear-gradient(135deg, #f5f2eb 0%, #e8e4dc 100%);
    padding: 80px 0;
    text-align: center;
    border-bottom: 1px solid #d4c9b8;
}

.page-banner h1 {
    font-size: 42px;
    color: #3f332c;
    margin-bottom: 16px;
    font-weight: 500;
}

.page-banner p {
    font-size: 18px;
    color: #977e2e;
}

.section-title {
    text-align: center;
    font-size: 36px;
    color: #3f332c;
    margin-bottom: 60px;
    font-weight: 500;
}

/* ========================
   Products Page 样式
======================== */

.product-categories {
    padding: 60px 0;
    background: #f9f7f3;
}

.category-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.category-btn {
    padding: 12px 24px;
    border: 2px solid #d4c9b8;
    background: white;
    color: #534c46;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.category-btn.active,
.category-btn:hover {
    background: #977e2e;
    color: white;
    border-color: #977e2e;
}

.products-grid {
    padding: 80px 0;
}

.products-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.product-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(63, 51, 44, 0.1);
    transition: transform 0.3s ease;
}

.product-item:hover {
    transform: translateY(-10px);
}

.product-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-item:hover .product-image img {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(63, 51, 44, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-item:hover .product-overlay {
    opacity: 1;
}

.view-detail {
    padding: 12px 24px;
    background: #977e2e;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.product-info {
    padding: 24px;
}

.product-info h3 {
    font-size: 18px;
    color: #3f332c;
    margin-bottom: 8px;
}

.product-desc {
    font-size: 14px;
    color: #534c46;
    margin-bottom: 12px;
}

.product-price {
    font-size: 20px;
    color: #977e2e;
    font-weight: bold;
}

/* ========================
   Contact Page 样式
======================== */

.contact-info {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.contact-card {
    background: white;
    padding: 40px 30px;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(63, 51, 44, 0.1);
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.contact-card h3 {
    font-size: 20px;
    color: #3f332c;
    margin-bottom: 12px;
}

.contact-card p {
    font-size: 16px;
    color: #534c46;
    margin-bottom: 8px;
}

.contact-detail {
    font-size: 14px;
    color: #977e2e;
}

.store-map {
    padding: 80px 0;
    background: #f9f7f3;
}

.map-container {
    max-width: 1000px;
    margin: 0 auto;
}

.map-placeholder {
    background: white;
    padding: 60px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(63, 51, 44, 0.1);
}

.store-list {
    list-style: none;
    text-align: left;
    max-width: 300px;
    margin: 30px auto;
}

.store-list li {
    padding: 12px 0;
    border-bottom: 1px solid #e8e4dc;
    font-size: 16px;
    color: #534c46;
}

.contact-form-section {
    padding: 80px 0;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    background: white;
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(63, 51, 44, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #3f332c;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d4c9b8;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    background: #f9f7f3;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #977e2e;
    background: white;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: #977e2e;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background: #7d6725;
}

/* ========================
   News Page 样式
======================== */

.news-section {
    padding: 80px 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.news-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(63, 51, 44, 0.1);
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-image {
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-content {
    padding: 24px;
}

.news-date {
    font-size: 14px;
    color: #977e2e;
    margin-bottom: 8px;
}

.news-content h3 {
    font-size: 18px;
    color: #3f332c;
    margin-bottom: 12px;
    line-height: 1.4;
}

.news-content p {
    font-size: 14px;
    color: #534c46;
    line-height: 1.6;
    margin-bottom: 16px;
}

.read-more {
    color: #977e2e;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #7d6725;
}

/* ========================
   响应式设计
======================== */

@media (max-width: 1200px) {
    .container {
        width: 90%;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        padding: 20px 0;
    }
    
    .nav {
        margin-top: 20px;
    }
    
    .nav a {
        margin: 0 16px;
        font-size: 16px;
    }
    
    .banner {
        height: 500px;
    }
    
    .banner-content h1 {
        font-size: 36px;
    }
    
    .feature {
        flex-direction: column;
        padding-bottom: 60px;
    }
    
    .feature-item {
        width: 100%;
        margin-bottom: 40px;
    }
    
    .story-item {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 80px;
    }
    
    .story-left,
    .story-right {
        flex-direction: column;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        flex-direction: row;
        text-align: left;
    }
    
    .timeline-item:nth-child(odd) {
        flex-direction: row;
        text-align: left;
    }
    
    .timeline-year {
        flex: 0 0 80px;
        margin-right: 20px;
    }
    
    .timeline-content {
        padding: 0 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .category-nav {
        gap: 10px;
    }
    
    .category-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .page-banner h1 {
        font-size: 32px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .products-container {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .nav a {
        margin: 0 12px;
        font-size: 14px;
    }
}

/* ========================
   通用动画效果
======================== */

.fade-in {
    animation: fadeIn 0.8s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
 opacity: 1;
        transform: translateX(0);
    }
}

/* ========================
   滚动动画
======================== */

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ========================
   加载动画
======================== */

.loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #977e2e;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========================
   工具类
======================== */

.text-gold {
    color: #977e2e;
}

.text-dark {
    color: #3f332c;
}

.text-light {
    color: #534c46;
}

.bg-light {
    background: #f9f7f3;
}

.bg-white {
    background: white;
}

.shadow-card {
    box-shadow: 0 10px 30px rgba(63, 51, 44, 0.1);
}

.rounded {
    border-radius: 12px;
}

/* ========================
   打印样式
======================== */

@media print {
    .header,
    .footer,
    .nav {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .container {
        width: 100%;
    }
}
