/* 全局样式 */
:root {
    --primary-color: #6b8e23;  /* 橄榄绿，更符合茶叶色调 */
    --text-color: #333;
    --light-bg: #f8f7f4;
    --white: #ffffff;
    --transition: all 0.3s ease;
    --red: #e74c3c;  /* 红色标签 */
    --gray: #f0f0f0;  /* 浅灰色背景 */
    --border-color: #eaeaea;  /* 边框颜色 */
}

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

body {
    font-family: 'SimSun', '宋体', serif;
    color: var(--text-color);
    background-color: var(--light-bg);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

/* 自定义光标 */
.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    transition: width 0.3s, height 0.3s, border-color 0.3s;
    mix-blend-mode: difference;
}

.cursor-active {
    width: 40px;
    height: 40px;
    border-color: var(--red);
    background-color: rgba(107, 142, 35, 0.1);
    mix-blend-mode: normal;
}

/* 飞入购物车动画 */
.fly-item {
    position: fixed;
    width: 15px;
    height: 15px;
    background-color: var(--primary-color);
    border-radius: 50%;
    z-index: 9999;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    pointer-events: none;
}

.cart-bounce {
    animation: cartBounce 0.5s ease;
}

@keyframes cartBounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
}

/* 渐入动画 */
.will-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* 波纹效果 */
.ripple-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--white);
    opacity: 1;
    animation: ripple 2s ease-out infinite;
}

@keyframes ripple {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

/* 头部导航滚动效果 */
.header-scrolled {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.header-hidden {
    transform: translateY(-100%);
}

/* logo样式 */
.logo-img {
    height: 50px;
    width: auto;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

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

.logo-small {
    height: 40px;
    width: auto;
    border-radius: 5px;
}

/* 头部导航 */
header {
    padding: 20px 0;
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    background-color: rgba(248, 247, 244, 0.8);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
}

.main-nav {
    display: flex;
    gap: 40px;
}

.main-nav li a {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
    transition: var(--transition);
    position: relative;
}

.main-nav li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.main-nav li a:hover:after {
    width: 100%;
}

.main-nav li a:hover {
    color: var(--primary-color);
}

.nav-icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-icon i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.search-icon:hover i {
    transform: scale(1.2);
}

.profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background-color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    transition: transform 0.3s ease;
}

.profile-pic:hover {
    transform: scale(1.1);
}

.profile-pic i {
    font-size: 20px;
}

/* 移动端菜单按钮 */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-color);
}

/* 茶叶分类导航 */
.tea-categories {
    padding: 100px 0 30px;
    background-color: var(--white);
}

.category-list {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.category-item {
    flex: 0 0 20%;
    padding: 0 10px;
    text-align: center;
    margin-bottom: 20px;
}

.category-img {
    width: 70px;
    height: 70px;
    margin: 0 auto 10px;
    border-radius: 50%;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.category-img:hover {
    transform: translateY(-5px);
}

.category-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-item p {
    font-size: 14px;
    color: var(--text-color);
}

/* 英雄区 */
.hero {
    min-height: 100vh;
    padding: 120px 0 60px;
    position: relative;
    display: flex;
    align-items: center;
    background-color: transparent;
    overflow: hidden;
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url('../img/background.jpg') no-repeat center center;
    background-size: cover;
    opacity: 0.5;
    filter: blur(5px);
    z-index: -1;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 500px;
    animation: fadeInUp 1s ease;
}

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

.hero-content h1 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 24px;
    font-weight: 600;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 40px;
    color: #666;
}

.hero-buttons {
    display: flex;
    gap: 30px;
    align-items: center;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 32px;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: -100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.btn:hover:after {
    left: 100%;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(107, 142, 35, 0.3);
}

.btn-primary:hover {
    background-color: #556b2f;  /* 深橄榄绿，hover效果 */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(107, 142, 35, 0.4);
}

.btn-text {
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-text i {
    transition: var(--transition);
}

.btn-text:hover i {
    transform: translateX(5px);
}

.free-trial {
    margin-top: 40px;
    font-size: 14px;
    color: #666;
}

.social-icons {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

.social-icons a {
    font-size: 18px;
    color: var(--text-color);
    transition: var(--transition);
}

.social-icons a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* 茶叶图像 */
.hero-image {
    position: relative;
    animation: fadeIn 1.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.leaf-image {
    max-width: 100%;
    height: auto;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0px);
    }
}

.leaf-markers {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.marker {
    position: absolute;
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.3s ease;
}

.marker:hover {
    transform: scale(1.05);
}

.marker-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--white);
    border: 2px solid var(--primary-color);
    position: relative;
}

.marker-dot:after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    top: -6px;
    left: -6px;
    border-radius: 50%;
    border: 2px solid transparent;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
        border-color: rgba(107, 142, 35, 0.6);
    }
    70% {
        opacity: 0;
        transform: scale(1.5);
        border-color: rgba(107, 142, 35, 0);
    }
    100% {
        opacity: 0;
        transform: scale(1.5);
    }
}

.marker-label {
    background-color: var(--white);
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 14px;
    margin-left: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.marker-apex {
    top: 10%;
    left: 60%;
}

.marker-veins {
    top: 30%;
    right: 10%;
}

.marker-lobes {
    bottom: 30%;
    left: 40%;
}

.marker-petiole {
    bottom: 8%;
    right: 20%;
}

/* 底部圆形标志 */
.bottom-logo {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.circle-logo {
    width: 80px;
    height: 80px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 10px;
    animation: bounce 3s infinite;
}

.arrow-down {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.arrow-down i {
    font-size: 24px;
    color: var(--primary-color);
    animation: pulse 1.5s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.circle-text {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
}

/* 今日热卖区域 */
.hot-sale, .new-products, .private-old-tea {
    padding: 30px 0;
    background-color: var(--white);
}

.section-banner {
    width: 100%;
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.section-banner:hover {
    transform: translateY(-5px);
}

.banner-img {
    width: 100%;
    height: 30%;
    display: block;
    transition: transform 0.5s ease;
}

.section-banner:hover .banner-img {
    transform: scale(1.03);
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-left: 10px;
    position: relative;
}

.section-title:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.product-list {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.product-item {
    flex: 0 0 50%;
    padding: 0 10px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

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

.product-img {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.product-img img {
    transition: transform 0.5s ease;
}

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

.product-info {
    padding: 0 5px;
}

.product-name {
    font-size: 14px;
    font-weight: normal;
    margin-bottom: 5px;
    line-height: 1.4;
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.3s ease;
}

.product-item:hover .product-name {
    color: var(--primary-color);
}

.product-tag {
    display: inline-block;
    background-color: #ffe4e1;
    color: var(--red);
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.tag-special {
    background-color: var(--red);
    color: var(--white);
}

.product-price-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-size: 20px;
    font-weight: 600;
    color: var(--red);
}

.add-cart {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.add-cart:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: -100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.add-cart:hover:after {
    left: 100%;
}

.add-cart:hover {
    background-color: #556b2f;
    transform: scale(1.1);
}

/* 按钮点击动画 */
.button-clicked {
    transform: scale(0.9) !important;
    opacity: 0.8;
}

/* 视频模块 */
.tea-video {
    padding: 30px 0;
    background-color: var(--white);
}

.video-wrapper {
    position: relative;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.video-wrapper:hover {
    transform: translateY(-5px);
}

.video-wrapper video {
    width: 100%;
    display: block;
    border-radius: 10px;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(255,255,255,0.8);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
    z-index: 2;
}

.video-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background-color: rgba(255,255,255,0.9);
}

.video-play-btn i {
    font-size: 24px;
    color: var(--primary-color);
}

.video-caption {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: var(--white);
    font-size: 18px;
    font-weight: 600;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    z-index: 2;
}

.video-wrapper:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30%;
    background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
    z-index: 1;
}

/* 私房老茶标签导航 */
.tab-navigation {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.tab {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

.tab:hover {
    color: var(--primary-color);
}

.tab.active {
    color: var(--primary-color);
    font-weight: 500;
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 20px;
    right: 20px;
    height: 2px;
    background-color: var(--primary-color);
    animation: tabActive 0.3s ease;
}

@keyframes tabActive {
    from {
        opacity: 0;
        width: 0;
        left: 50%;
        right: 50%;
    }
    to {
        opacity: 1;
        width: auto;
        left: 20px;
        right: 20px;
    }
}

/* 底部导航 */
.mobile-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    z-index: 100;
}

.footer-nav {
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
}

.footer-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    color: #999;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-nav-item:hover {
    transform: translateY(-3px);
}

.footer-nav-item i {
    font-size: 20px;
    margin-bottom: 4px;
    transition: transform 0.3s ease;
}

.footer-nav-item:hover i {
    transform: scale(1.2);
}

.footer-nav-item.active {
    color: var(--primary-color);
}

/* 移动导航菜单 */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--light-bg);
    padding: 80px 20px;
    z-index: 99;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.mobile-menu-open .mobile-menu {
    transform: translateX(0);
}

.mobile-menu-open .mobile-menu-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr;
    }
    
    .hero-content {
        max-width: 100%;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .hero-image {
        order: -1;
        margin-bottom: 40px;
    }
    
    body {
        cursor: auto;
    }
    
    .custom-cursor {
        display: none;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    .mobile-menu .main-nav {
        display: flex;
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .mobile-menu .main-nav li a {
        font-size: 24px;
    }
    
    .category-item {
        flex: 0 0 20%;
    }
    
    .product-item {
        flex: 0 0 50%;
    }
}

@media (max-width: 576px) {
    .category-item {
        flex: 0 0 33.333%;
    }
    
    .product-item {
        flex: 0 0 100%;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
} 