/* ==================== 全局样式 ==================== */
:root {
    --primary-color: #D4AF79;
    --secondary-color: #8B7355;
    --accent-color: #F5E6E8;
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #FAF8F5;
    --white: #FFFFFF;
    --shadow: 0 5px 15px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* ==================== 导航栏 ==================== */
.site-header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.navbar {
    background: var(--white) !important;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-right: 10px;
}

.brand-name-en {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 400;
}

.logo-wrapper {
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: inline-block;
}

.logo {
    height: 50px;
    width: auto;
    display: block;
    max-width: 200px;
}

.nav-link {
    color: var(--text-color) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.search-box {
    position: relative;
    display: flex;
}

.search-box input {
    border: 1px solid #ddd;
    border-radius: 25px;
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    width: 200px;
    transition: all 0.3s ease;
}

.search-box input:focus {
    width: 250px;
    border-color: var(--primary-color);
}

.btn-search {
    position: absolute;
    right: 0;
    background: transparent;
    border: none;
    padding: 0.5rem 1rem;
    color: var(--text-light);
}

/* ==================== Hero Section ==================== */
.hero-section {
    position: relative;
    height: 600px;
}

.hero-slide {
    height: 600px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
}

.hero-slide-default {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--white);
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--white) !important;
}

.swiper-pagination-bullet-active {
    background: var(--white) !important;
}

/* ==================== 通用区块 ==================== */
.section-header {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* ==================== 产品卡片 ==================== */
.product-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: var(--white);
    box-shadow: var(--shadow);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.product-image {
    position: relative;
    overflow: hidden;
    padding-top: 100%;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

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

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

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

.product-info {
    padding: 1.5rem;
    text-align: center;
}

.product-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.product-name-en {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.product-subtitle {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

/* ==================== 品牌理念区 ==================== */
.brand-features {
    list-style: none;
    padding: 0;
}

.brand-features li {
    padding: 0.75rem 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.brand-features li i {
    font-size: 1.2rem;
    margin-right: 1rem;
}

/* ==================== 成分卡片 ==================== */
.ingredient-card {
    padding: 2rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.ingredient-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.ingredient-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.ingredient-icon i {
    font-size: 2rem;
    color: var(--primary-color);
}

.ingredient-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.ingredient-desc {
    color: var(--text-light);
    margin: 0;
}

/* ==================== CTA区域 ==================== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    text-align: center;
    padding: 5rem 0;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* ==================== 页面头部 ==================== */
.page-header {
    background: var(--bg-light);
    padding: 3rem 0 2rem;
    margin-bottom: 3rem;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

/* ==================== 产品详情 ==================== */
.product-gallery .main-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.thumbnail-images .thumbnail {
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.thumbnail-images .thumbnail:hover,
.thumbnail-images .thumbnail.active {
    opacity: 1;
    box-shadow: var(--shadow);
}

.product-category-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--accent-color);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.product-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.product-title-en {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.product-subtitle-large {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.product-price-large {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.product-features {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 10px;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
}

.features-list li i {
    margin-right: 0.75rem;
}

.product-tabs .nav-tabs {
    border-bottom: 2px solid #ddd;
}

.product-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-light);
    font-weight: 600;
    padding: 1rem 2rem;
}

.product-tabs .nav-link.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: transparent;
}

.tab-content-inner {
    padding: 2rem;
}

.ingredients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.ingredient-item {
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
}

.ingredient-item i {
    margin-right: 0.75rem;
    font-size: 1.2rem;
}

/* ==================== 页脚 ==================== */
.site-footer {
    background: #2c2c2c;
    color: #ffffff;
    padding: 4rem 0 1rem;
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.footer-text {
    color: #cccccc;
    line-height: 1.8;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #cccccc;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    color: #cccccc;
}

.footer-contact li i {
    margin-right: 0.75rem;
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    color: #999;
    margin: 0;
}

.icp-link {
    color: #999;
    text-decoration: none;
}

.icp-link:hover {
    color: var(--white);
}

/* ==================== 返回顶部按钮 - 美化版 ==================== */
.btn-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(212, 175, 121, 0.4);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.btn-back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.btn-back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 6px 25px rgba(212, 175, 121, 0.6);
}

.btn-back-to-top:active {
    transform: translateY(-2px) scale(1.05);
}

/* ==================== 按钮样式 ==================== */
.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    padding: 0.75rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
    padding: 0.75rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.btn-outline-light {
    border-color: var(--white);
    color: var(--white);
    padding: 0.75rem 2rem;
    border-radius: 30px;
    font-weight: 600;
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* ==================== Flash消息美化 ==================== */
.flash-messages-frontend {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 1050;
    max-width: 400px;
}

.flash-messages-frontend .alert {
    border: none;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    margin-bottom: 1rem;
    animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.flash-messages-frontend .alert::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: currentColor;
}

.flash-messages-frontend .alert-success {
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.95) 0%, rgba(56, 161, 105, 0.95) 100%);
    color: white;
}

.flash-messages-frontend .alert-danger {
    background: linear-gradient(135deg, rgba(245, 101, 101, 0.95) 0%, rgba(229, 62, 62, 0.95) 100%);
    color: white;
}

.flash-messages-frontend .alert-warning {
    background: linear-gradient(135deg, rgba(237, 137, 54, 0.95) 0%, rgba(221, 107, 32, 0.95) 100%);
    color: white;
}

.flash-messages-frontend .alert-info {
    background: linear-gradient(135deg, rgba(66, 153, 225, 0.95) 0%, rgba(49, 130, 206, 0.95) 100%);
    color: white;
}

.flash-messages-frontend .alert .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.flash-messages-frontend .alert .btn-close:hover {
    opacity: 1;
}

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

/* ==================== 响应式设计 ==================== */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    .hero-section {
        height: 400px;
    }
    
    .hero-slide {
        height: 400px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .product-title {
        font-size: 1.8rem;
    }
    
    .search-box input {
        width: 150px;
    }
    
    .search-box input:focus {
        width: 200px;
    }
    
    .logo-wrapper {
        padding: 3px 6px !important;
    }
    
    .logo {
        height: 35px !important;
    }
}

