/* ========================================
   巫咸故里·御药产地 - 重庆巫山中药材专题网站样式
   ======================================== */

/* 1. CSS变量定义 */
:root {
    --primary-color: #1B5E20;
    --primary-dark: #0D3610;
    --primary-light: #2E7D32;
    --accent-gold: #D4AF37;
    --secondary-color: #8B4513;
    --bg-white: #FFFFFF;
    --bg-light: #FAFAFA;
    --bg-cream: #F5F5DC;
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-light: #999999;
    --border-color: #E0E0E0;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    --transition-default: all 0.3s ease;
    --font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
}

/* 2. CSS重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-default);
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 3. 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 4. Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px var(--shadow-light);
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    color: white;
    font-size: 20px;
}

/* 5. 导航 */
.nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-item a {
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

.nav-item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-item a:hover::after,
.nav-item.active a::after {
    width: 100%;
}

.nav-item a:hover,
.nav-item.active a {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    background: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: var(--transition-default);
}

/* 6. Hero Banner */
.hero {
    height: 100vh;
    min-height: 700px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 50%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.03" d="M0,160L48,144C96,128,192,96,288,106.7C384,117,480,171,576,186.7C672,203,768,181,864,154.7C960,128,1056,96,1152,90.7C1248,85,1344,107,1392,117.3L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 1;
    padding: 0 20px;
    max-width: 900px;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    padding: 10px 30px;
    border-radius: 30px;
    font-size: 16px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 24px;
    margin-bottom: 15px;
    opacity: 0.95;
    animation: fadeInUp 1s ease 0.2s both;
    letter-spacing: 4px;
}

.hero-location {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.3s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: fadeInUp 1s ease 0.4s both;
}

/* 7. 按钮 */
.btn {
    display: inline-block;
    padding: 14px 36px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    transition: var(--transition-default);
    cursor: pointer;
}

.btn-primary {
    background: var(--accent-gold);
    color: var(--primary-dark);
    border: 2px solid var(--accent-gold);
}

.btn-primary:hover {
    background: #C5A028;
    border-color: #C5A028;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

.btn-white {
    background: white;
    color: var(--primary-color);
    border: 2px solid white;
}

.btn-white:hover {
    background: transparent;
    color: white;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* 8. 通用区块 */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-gold);
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-top: 20px;
}

/* 9. 产业概况 */
.industry {
    background: var(--bg-white);
}

.industry-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.industry-text h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.industry-text p {
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 15px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, var(--bg-light), var(--bg-white));
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition-default);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-light);
    border-color: var(--primary-color);
}

.stat-number {
    font-size: 42px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 15px;
    color: var(--text-secondary);
}

.industry-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.industry-image {
    height: 250px;
    background: var(--bg-cream);
    border-radius: 12px;
    overflow: hidden;
}

.industry-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.industry-image:first-child {
    grid-column: 1 / -1;
    height: 300px;
}

/* 10. 巫山面貌 */
.scenery {
    background: var(--bg-light);
}

.scenery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.scenery-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px var(--shadow-light);
    transition: var(--transition-default);
}

.scenery-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px var(--shadow-medium);
}

.scenery-image {
    width: 100%;
    height: 280px;
    background: var(--bg-cream);
    overflow: hidden;
}

.scenery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.scenery-card:hover .scenery-image img {
    transform: scale(1.1);
}

.scenery-content {
    padding: 25px;
}

.scenery-title {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.scenery-desc {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

/* 11. 道地药材 */
.herbs {
    background: var(--bg-white);
}

.herbs-showcase {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.herb-card {
    background: var(--bg-light);
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    transition: var(--transition-default);
    border: 1px solid var(--border-color);
}

.herb-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px var(--shadow-medium);
    border-color: var(--accent-gold);
}

.company-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.company-section [style*="cursor: pointer"]:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.herb-image {
    width: 100%;
    height: 220px;
    background: var(--bg-cream);
    overflow: hidden;
}

.herb-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.herb-content {
    padding: 25px 20px;
}

.herb-name {
    font-size: 22px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.herb-latin {
    font-size: 13px;
    color: var(--primary-color);
    font-style: italic;
    margin-bottom: 10px;
}

.herb-effect {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 12. 企业简介 */
.company {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

.company .section-title,
.company .section-subtitle {
    color: white;
}

.company .section-title::after {
    background: var(--accent-gold);
}

.intro-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 60px;
}

.intro-text p {
    line-height: 1.9;
    margin-bottom: 20px;
    font-size: 16px;
}

.intro-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.intro-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
}

.intro-feature i {
    color: var(--accent-gold);
    font-size: 18px;
}

.intro-image {
    width: 100%;
    height: 450px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

.intro-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 13. 基地风光 */
.base {
    background: var(--bg-light);
}

.base-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.base-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px var(--shadow-light);
    transition: var(--transition-default);
}

.base-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px var(--shadow-medium);
}

.base-image {
    width: 100%;
    height: 300px;
    background: var(--bg-cream);
    overflow: hidden;
}

.base-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.base-card:hover .base-image img {
    transform: scale(1.1);
}

.base-content {
    padding: 25px;
}

.base-title {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.base-desc {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

/* 14. 联系我们 */
.contact {
    background: var(--bg-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    margin-top: 60px;
}

.contact-info h3 {
    font-size: 28px;
    margin-bottom: 30px;
    color: var(--text-primary);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.contact-text h4 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.contact-text p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.qrcode {
    margin-top: 30px;
    text-align: center;
}

.qrcode img {
    width: 150px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 3px 10px var(--shadow-light);
}

.qrcode p {
    margin-top: 10px;
    color: var(--text-secondary);
    font-size: 14px;
}

.contact-form {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 3px 15px var(--shadow-light);
}

.form-title {
    font-size: 24px;
    margin-bottom: 30px;
    color: var(--text-primary);
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group label .required {
    color: #e74c3c;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    transition: var(--transition-default);
    font-family: inherit;
    background: var(--bg-white);
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(27, 94, 32, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-default);
}

.btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-medium);
}

.btn-submit:disabled {
    background: var(--text-light);
    cursor: not-allowed;
    transform: none;
}

/* 15. Footer */
.footer {
    background: var(--primary-dark);
    color: white;
    padding: 50px 0 30px;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-certificates {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px 30px;
    margin-bottom: 15px;
}

.footer-certificates p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-bottom: 0;
}

.footer-tech-support {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--accent-gold);
}

/* 16. 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 17. 响应式 */
@media (max-width: 1199px) {
    .herbs-showcase {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .industry-content,
    .intro-content,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .scenery-grid,
    .base-showcase {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .herbs-showcase {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .intro-image {
        height: 350px;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .hero-location {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .nav-list {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
        gap: 0;
    }
    
    .nav-list.active {
        display: flex;
    }
    
    .nav-list .nav-item {
        width: 100%;
    }
    
    .nav-list .nav-item a {
        display: block;
        padding: 15px 20px;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-list .nav-item:last-child a {
        border-bottom: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .industry-images {
        grid-template-columns: 1fr;
    }
    
    .scenery-grid,
    .base-showcase,
    .herbs-showcase {
        grid-template-columns: 1fr;
    }
    
    .intro-features {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
}

/* 18. 滚动条 */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}
