@charset "utf-8";

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", "微软雅黑", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
}

body {
    background-color: #f9f9f7;
    color: #333;
    line-height: 1.8;
}

.container {
    max-width: 1660px;
    margin: 0 auto;
    padding: 0px;
}

/* 头部样式 */
header {
    background: linear-gradient(135deg, #1a6b3a, #3a9e4d);
    color: white;
    padding: 30px 0;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(26, 107, 58, 0.8), rgba(58, 158, 77, 0.8)), 
                url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path fill="%23ffffff" fill-opacity="0.05" d="M30,10L50,30L70,10L90,30L70,50L90,70L70,90L50,70L30,90L10,70L30,50L10,30L30,10Z"/></svg>');
    opacity: 0.15;
    z-index: 0;
}

.header-content {
    position: relative;
    z-index: 1;
}

.logo {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slogan {
    font-size: 20px;
    opacity: 0.95;
    margin-bottom: 10px;
}

.header-tagline {
    font-style: italic;
    opacity: 0.9;
    font-size: 16px;
}

/* 导航样式 */
nav {
    background-color: #d08000;
    overflow-x: auto;
    padding: 0 10px;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

nav ul {
    list-style: none;
    display: inline-block;
    margin: 0;
    padding: 0;
}

nav li {
    display: inline-block;
    position: relative;
}

nav a {
    display: inline-block;
    color: white;
    text-align: center;
    padding: 16px 22px;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s ease;
}

nav a:hover {
    background-color: #3a9e4d;
    color: #fff;
}

/* 主要内容区域 */
.main-content {
    display: flex;
    flex-wrap: wrap;
    margin: 30px 0;
    gap: 25px;
}

/* 内容区块样式 */
.content-section {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    padding: 25px;
    margin-bottom: 25px;
    width: 100%;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #eee;
    animation: fadeIn 0.6s ease-out forwards;
}

.content-section a{
    text-decoration: none;
}

.content-section:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.section-title {
    color: #1a6b3a;
    font-size: 26px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e8f5e9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 产品展示样式 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.product-card {
    border: 1px solid #e8f5e9;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
    background: white;
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-color: #3a9e4d;
}

.product-img-container {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    height: 220px;
    margin-bottom: 15px;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #e74c3c;
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
}

.product-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.product-desc {
    color: #666;
    margin-bottom: 15px;
    font-size: 15px;
}

.product-price {
    display: flex;
    align-items: center;
    margin: 15px 0;
}

.current-price {
    color: #e74c3c;
    font-weight: bold;
    font-size: 22px;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    margin-left: 10px;
    font-size: 16px;
}

.discount {
    background-color: #ffeb3b;
    color: #333;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    margin-left: 10px;
}

.buy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to right, #3a9e4d, #2ecc71);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: bold;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: center;
}

.buy-btn:hover {
    background: linear-gradient(to right, #2e8b40, #27ae60);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(46, 204, 113, 0.3);
}

.rating {
    color: #f39c12;
    margin: 10px 0;
    font-size: 14px;
}

/* 广告分隔样式 */
.ad-divider {
    width: auto;
    max-width: 100%;
    height: 120px;
    background: linear-gradient(135deg, #f5f7fa, #e4e8eb);
    margin: 30px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    border: 1px solid #ddd;
}

.ad-divider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ad-content {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.5);
    color: white;
    padding: 20px;
    text-align: center;
}

.ad-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 5px;
}

.ad-subtitle {
    font-size: 16px;
}

/* 信息列表样式 */
.info-list {
    list-style: none;
}

.info-list li {
    padding: 15px 0;
    border-bottom: 1px dashed #e0e0e0;
    transition: background-color 0.3s;
}

.info-list li:hover {
    background-color: #f9f9f9;
}

.info-list li:last-child {
    border-bottom: none;
}

.info-title {
    font-weight: bold;
    color: #1a6b3a;
    font-size: 18px;
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.info-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 10px 0;
    color: #666;
}

.info-meta span {
    display: flex;
    align-items: center;
}

/* 联系方式样式 */
.contact-box {
    background-color: #f5fbf6;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    border: 1px solid #e0f2e1;
}

.contact-box a{
    text-decoration: none;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

/* 特色标签 */
.feature-tag {
    display: inline-block;
    background-color: #e3f2fd;
    color: #1976d2;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    margin-right: 8px;
    margin-bottom: 8px;
}

/* 养生知识卡片 */
.knowledge-card {
    background-color: #f5fbf6;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #3a9e4d;
    transition: all 0.3s;
}

.knowledge-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 页脚样式 */
footer {
    background-color: #0c5027;
    color: white;
    padding: 50px 0 30px;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

.footer-column {
    flex: 1;
    min-width: 250px;
    padding: 0 20px;
    margin-bottom: 30px;
}

.footer-title {
    font-size: 20px;
    margin-bottom: 20px;
    color: #3a9e4d;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #3a9e4d;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

.footer-links a:hover {
    color: #3a9e4d;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #333;
    border-radius: 50%;
    color: white;
    transition: all 0.3s;
}

.social-link:hover {
    background-color: #3a9e4d;
    transform: translateY(-3px);
}

.newsletter-form {
    margin-top: 20px;
}

.newsletter-input {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 4px;
    margin-bottom: 10px;
    background-color: #333;
    color: white;
}

.newsletter-btn {
    background-color: #3a9e4d;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    font-weight: bold;
    transition: background-color 0.3s;
}

.newsletter-btn:hover {
    background-color: #2e8b40;
}

.copyright {
    margin-top: 30px;
    color: #777;
    font-size: 14px;
    padding: 10px;
    border-top: 3px solid #d08000;
}

/* 复制按钮样式 */
.copy-btn {
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px 12px;
    font-size: 13px;
    cursor: pointer;
    margin-left: 10px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
}

.copy-btn:hover {
    background-color: #3a9e4d;
    color: white;
    border-color: #3a9e4d;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 延迟动画 */
.content-section:nth-child(1) { animation-delay: 0.1s; }
.content-section:nth-child(2) { animation-delay: 0.2s; }
.content-section:nth-child(3) { animation-delay: 0.3s; }
.content-section:nth-child(4) { animation-delay: 0.4s; }
.content-section:nth-child(5) { animation-delay: 0.5s; }
.content-section:nth-child(6) { animation-delay: 0.6s; }
.content-section:nth-child(7) { animation-delay: 0.7s; }
.content-section:nth-child(8) { animation-delay: 0.8s; }
.content-section:nth-child(9) { animation-delay: 0.9s; }
.content-section:nth-child(10) { animation-delay: 1s; }

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #3a9e4d;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 99;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
}

 

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #2e8b40;
    transform: translateY(-5px);
}

.qr-code {
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 15px auto;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px;
    background-color: white;
}

.ad-banner {
    width: 100%;
    max-width: 1660px;
    height: auto;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    margin: 15px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}
.ad-banner:hover {
    transform: translateY(-3px);
}

/* 复制按钮样式 */
.copy-page-btn {
    position: fixed;
    bottom: 90px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #3498db;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 99;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    text-decoration: none;
    font-size: 20px;
    border: none;
    outline: none;
}

.copy-page-btn.visible {
    opacity: 1;
    visibility: visible;
}

.copy-page-btn:hover {
    background-color: #2980b9;
    transform: translateY(-3px);
}

.copy-page-btn::after {
    content: "复制标题和网址";
    position: absolute;
    right: 60px;
    white-space: nowrap;
    background-color: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.copy-page-btn:hover::after {
    opacity: 1;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 992px) {
    .footer-column {
        min-width: 200px;
    }
    
    .logo {
        font-size: 36px;
    }
    
    .slogan {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .logo {
        font-size: 32px;
    }
    
    .slogan {
        font-size: 16px;
    }
    
    nav a {
        padding: 14px 18px;
        font-size: 14px;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .ad-divider {
        height: 100px;
    }
    
    .footer-column {
        min-width: 100%;
        text-align: center;
    }
    
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .logo {
        font-size: 28px;
    }
    
    nav a {
        padding: 12px 15px;
        font-size: 16px;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 20px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .copy-btn {
        margin-left: 0;
        margin-top: 10px;
        align-self: flex-start;
    }
    
    .ad-divider {
        height: 80px;
    }
}



        .ad-label {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ff6b6b;
    color: white;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
}

.ad-label {
            position: absolute;
            top: 10px;
            right: 10px;
            background-color: rgba(0, 0, 0, 0.6);
            color: white;
            padding: 4px 10px;
            border-radius: 4px;
            font-size: 12px;
            font-weight: bold;
        }