/*!
 * 武夷岩茶主题主要样式
 * 版本: 1.0.0
 */

:root {
    /* 主色调 */
    --tea-green: #2c5530;
    --tea-light: #8ba989;
    --tea-dark: #1e3b22;
    --tea-gold: #d4af37;
    --tea-gold-light: #f4e4a9;
    
    /* 辅助色 */
    --cream: #f8f5f0;
    --light-cream: #fefdf9;
    --brown: #8b7355;
    --dark-brown: #5d4c35;
    --light-gray: #f5f5f5;
    --dark: #1a1a1a;
    
    /* 字体 */
    --font-serif: 'Noto Serif SC', serif;
    --font-sans: 'Noto Sans SC', sans-serif;
    
    /* 阴影 */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.15);
    --shadow-xl: 0 10px 25px rgba(0,0,0,0.2);
}

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light-cream);
    overflow-x: hidden;
}

/* 排版 */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--tea-dark);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--tea-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--tea-green);
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-sans);
}

.btn-primary {
    background-color: var(--tea-gold);
    color: var(--dark);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
    position: relative;
    z-index: 10;
    opacity: 1 !important;
}

.btn-primary:hover {
    background-color: var(--tea-gold-light);
    color: var(--dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-primary {
    background-color: transparent;
    border: 2px solid var(--tea-green);
    color: var(--tea-green);
    position: relative;
    z-index: 10;
    opacity: 1 !important;
}

.btn-outline-primary:hover {
    background-color: var(--tea-green);
    color: white;
    transform: translateY(-2px);
}

/* 激活状态的按钮样式 - 使用主题黄色 */
.btn-outline-primary.active,
.filter-btn.active {
    background-color: var(--tea-gold);
    border-color: var(--tea-gold);
    color: var(--dark);
}

.btn-outline-light {
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid white;
    color: white;
    font-weight: 600;
    backdrop-filter: blur(5px);
    position: relative;
    z-index: 10;
    opacity: 1 !important;
}

.btn-outline-light:hover {
    background-color: white;
    color: var(--tea-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-tea {
    background-color: var(--tea-gold);
    color: var(--dark);
}

.btn-tea:hover {
    background-color: var(--tea-gold-light);
    color: var(--dark);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* 顶部通知栏 */
.top-bar {
    font-size: 0.875rem;
}

.top-bar a {
    color: white;
}

.top-bar a:hover {
    color: var(--tea-gold-light);
}

/* 导航栏 */
.navbar-brand .brand-content {
    display: flex;
    flex-direction: column;
}

.brand-text {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.brand-subtitle {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.8);
    letter-spacing: 1px;
}

.bg-tea {
    background-color: var(--tea-green) !important;
}

.navbar-nav {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.navbar-nav > li {
    margin: 0 10px;
}

.navbar-nav .nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500;
    margin: 0 5px !important;
    padding: 10px 15px;
    position: relative;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: white !important;
}

/* 深色背景上的链接 */
.bg-tea a:not(.btn),
.hero-section a:not(.btn) {
    color: white;
}

.bg-tea a:not(.btn):hover,
.hero-section a:not(.btn):hover {
    color: var(--tea-gold-light);
}

.navbar-nav .nav-link:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--tea-gold);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover:after {
    width: 100%;
}

/* 当前页面导航项高亮 */
.navbar-nav .current-menu-item .nav-link {
    color: var(--tea-gold) !important;
}

.navbar-nav .current-menu-item .nav-link:after {
    width: 100%;
}

.search-form-nav .form-control {
    border: none;
    border-radius: 4px 0 0 4px;
}

.search-form-nav .btn-search {
    background-color: var(--tea-gold);
    border: none;
    border-radius: 0 4px 4px 0;
    color: var(--dark);
}

/* 英雄区域 */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, var(--tea-dark) 0%, var(--tea-green) 100%);
    color: white;
    padding: 100px 0;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
    line-height: 1.2;
}

.hero-highlight {
    color: var(--tea-gold);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-actions {
    margin-bottom: 2rem;
    position: relative;
    z-index: 10;
}

.hero-features {
    display: flex;
    gap: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-item i {
    color: var(--tea-gold);
}

.min-vh-80 {
    height: 700px;
    min-height: auto;
}

.tea-3d-viewer {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.viewer-placeholder {
    text-align: center;
    color: rgba(255,255,255,0.8);
}

.viewer-placeholder i {
    margin-bottom: 1rem;
    color: var(--tea-gold);
}

/* 通用部分样式 */
.section-label {
    display: inline-block;
    color: var(--tea-gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.1rem;
    color: var(--brown);
    max-width: 600px;
    margin: 0 auto;
}

/* 品牌故事部分 */
.brand-story {
    padding: 100px 0;
}

.story-text {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--dark-brown);
}

.story-image img {
    box-shadow: var(--shadow-lg);
}

/* 产品卡片 */
.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--tea-gold);
    color: var(--dark);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-gray);
    color: var(--tea-light);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
}

.product-info {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.product-title a {
    color: var(--tea-dark);
}

.product-title a:hover {
    color: var(--tea-green);
}

.product-origin {
    color: var(--tea-green);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.product-excerpt {
    color: var(--brown);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.product-price {
    font-size: 1.5rem;
    color: var(--tea-gold);
    font-weight: 700;
    margin: 0;
}

/* 茶文化部分 */
.tea-culture {
    background: linear-gradient(135deg, var(--tea-dark) 0%, var(--brown) 100%);
    color: white;
    padding: 100px 0;
}

.culture-card {
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    padding: 3rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

.culture-description {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.culture-item {
    padding: 1.5rem 1rem;
}

.culture-icon {
    margin-bottom: 1rem;
}

.culture-icon i {
    font-size: 2.5rem;
    color: var(--tea-gold);
}

.culture-item h4 {
    color: white;
    margin-bottom: 0.5rem;
}

.culture-item p {
    opacity: 0.8;
    margin: 0;
}

/* 新闻卡片 */
.news-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.news-image {
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-content {
    padding: 1.5rem;
}

.news-meta {
    display: flex;
    justify-content: between;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--brown);
}

.news-date {
    margin-right: 1rem;
}

.news-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.news-title a {
    color: var(--tea-dark);
}

.news-title a:hover {
    color: var(--tea-green);
}

.news-excerpt {
    color: var(--brown);
    margin-bottom: 1rem;
}

.news-link {
    color: var(--tea-green);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.news-link:after {
    content: '→';
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.news-link:hover:after {
    transform: translateX(3px);
}

/* 页脚样式 */
.footer {
    background: var(--dark) !important;
}

.footer-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: white;
}

.footer-description {
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--tea-gold);
    color: var(--dark);
    transform: translateY(-3px);
}

.footer-nav li {
    margin-bottom: 0.5rem;
}

.footer-nav a {
    color: rgba(255,255,255,0.8);
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--tea-gold);
}

.contact-info p {
    margin-bottom: 0.75rem;
    opacity: 0.8;
    display: flex;
    align-items: flex-start;
}

.contact-info i {
    margin-right: 0.75rem;
    color: var(--tea-gold);
    width: 16px;
}

.footer-bottom {
    opacity: 0.7;
    font-size: 0.875rem;
}

/* 工具类 */
.text-tea {
    color: var(--tea-green) !important;
}

.bg-light-cream {
    background-color: var(--light-cream) !important;
}

.shadow-custom {
    box-shadow: var(--shadow-lg);
}

.rounded-lg {
    border-radius: 10px;
}

/* 加载动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}