/* 基础样式设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
    background-color: #121212;
    color: #ffffff;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #c75146; /* 深红琥珀色 */
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: #c75146;
    margin: 15px auto 0;
}

/* 导航栏样式 */
.navbar {
    background-color: rgba(18, 18, 18, 0.95);
    padding: 5px 0;
    position: fixed;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(199, 81, 70, 0.3);
    transition: all 0.3s;
}

.logo {
    display: flex;
    align-items: center;
    margin-left: 30px; /* logo和文字往左靠30px */
}

.logo img {
    width: 60px; /* logo尺寸改为60*60 */
    height: 60px;
}

.logo span {
    font-size: 1.5rem;
    margin-left: 10px;
    color: #C7B6B6;
}

.desktop-nav ul {
    display: flex;
    list-style: none;
    margin-right: 30px; /* 菜单栏往右靠30px */
}

.desktop-nav li {
    margin-left: 30px;
}

.desktop-nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
    position: relative;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: #c75146;
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #c75146;
    transition: width 0.3s;
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    margin-right: 30px; /* 移动端菜单按钮往右靠30px */
}

.mobile-nav {
    display: none;
    background-color: rgba(18, 18, 18, 0.98);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    border-top: 1px solid rgba(199, 81, 70, 0.2);
}

.mobile-nav ul {
    list-style: none;
}

.mobile-nav li {
    border-bottom: 1px solid rgba(199, 81, 70, 0.1);
}

.mobile-nav a {
    display: block;
    color: #ffffff;
    text-decoration: none;
    padding: 15px 20px;
    transition: background-color 0.3s;
}

.mobile-nav a:hover,
.mobile-nav a.active {
    background-color: rgba(199, 81, 70, 0.1);
    color: #c75146;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0; /* 移除容器默认内边距，避免影响偏移 */
}

/* Banner区域样式 */
.banner {
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/backpic.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.4;
    z-index: 1;
}

.ripple-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(199, 81, 70, 0.5);
    transform: scale(0);
    animation: ripple 8s linear infinite;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.banner-content {
    text-align: center;
    position: relative;
    z-index: 3;
    padding: 0 20px;
}

.banner-content h1 {
    font-size: 3.5rem;
    margin-bottom: 5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.banner-content p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.banner-images {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.banner-images img {
    width: 200px;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s;
}

.banner-images img:hover {
    transform: translateY(-10px);
}

/* 品牌故事样式 */
.story-section {
    background-color: #1a1a1a;
}

.story-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.story-text {
    flex: 1;
    font-size: 1.1rem;
}

.story-text p {
    margin-bottom: 20px;
}

.story-image {
    flex: 1;
}

.story-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* 茗品展示样式 */
.products-section {
    background-color: #121212;
    position: relative;
}

.products-section .bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/backpic.png');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: 1;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 2;
}

.product-card {
    background-color: rgba(26, 26, 26, 0.8);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.product-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.product-card h3 {
    font-size: 1.5rem;
    color: #c75146;
    padding: 20px 20px 10px;
}

.product-card p {
    padding: 0 20px 20px;
    color: #dddddd;
}

/* 匠心工艺样式 */
.craftsmanship-section {
    background-color: #1a1a1a;
}

.craftsmanship-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.craft-step {
    background-color: rgba(18, 18, 18, 0.8);
    padding: 30px;
    border-radius: 8px;
    border-left: 3px solid #c75146;
}

.step-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: #c75146;
    color: #ffffff;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-bottom: 15px;
    font-weight: bold;
}

.craft-step h3 {
    color: #c75146;
    margin-bottom: 15px;
}

/* 红茶金融样式 */
.finance-section {
    position: relative;
    background-color: #121212;
}

.finance-section .bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/backpic.png');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: 1;
}

.finance-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
}

.finance-item {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    background-color: rgba(18, 18, 18, 0.8);
    padding: 40px;
    border-radius: 8px;
    text-align: center;
}

.finance-item i {
    font-size: 3rem;
    color: #c75146;
    margin-bottom: 20px;
}

.finance-item h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

/* 合作联系样式 */
.contact-section {
    background-color: #1a1a1a;
}

.contact-methods {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.contact-item {
    text-align: center;
    padding: 20px;
    flex: 1;
    min-width: 200px;
}

.contact-item i {
    font-size: 2.5rem;
    color: #c75146;
    margin-bottom: 20px;
}

.contact-item h3 {
    margin-bottom: 15px;
}

.contact-item img {
    margin: 0 auto;
    display: block;
    border: 2px solid #ffffff;
    border-radius: 8px;
}

/* 友情链接样式 - 背景加深与上下区分 */
.friend-links {
    background-color: #0a0a0a; /* 更深的背景色 */
    padding: 40px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.3); /* 增加顶部边框区分 */
    border-bottom: 1px solid rgba(0, 0, 0, 0.3); /* 增加底部边框区分 */
}

.friend-links h3 {
    text-align: center;
    margin-bottom: 30px;
    color: #c75146;
}

.friend-links ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    gap: 20px;
}

.friend-links a {
    color: #bbbbbb;
    text-decoration: none;
    transition: color 0.3s;
    padding: 5px 10px;
}

.friend-links a:hover {
    color: #c75146;
}

/* 页脚样式 */
.footer {
    background-color: #121212;
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid rgba(199, 81, 70, 0.2);
}

.footer p {
    margin-bottom: 10px;
    color: #bbbbbb;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .story-content {
        flex-direction: column;
    }
    
    .story-image {
        width: 100%;
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .banner-content h1 {
        font-size: 2.5rem;
    }
    
    .banner-content p {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section {
        padding: 60px 0;
    }
}

@media (max-width: 576px) {
    .banner-content h1 {
        font-size: 2rem;
    }
    
    .banner-images img {
        width: 100px;
        height: 150px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .finance-content {
        flex-direction: column;
    }
    
    .logo {
        margin-left: 15px; /* 移动端logo左移距离减半 */
    }
    
    .mobile-menu-btn {
        margin-right: 15px; /* 移动端菜单按钮右移距离减半 */
    }
}