/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: relative;
}

.nav-logo h2 {
    color: #2c5aa0;
    font-size: 1.8rem;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-menu a:hover {
    color: #2c5aa0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #2c5aa0;
    transition: width 0.3s ease;
}

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

/* 汉堡菜单 */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #2c5aa0;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* 主标题区域 */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0 20px;
    margin-top: 80px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.cta-button {
    background: #d4af37;
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.cta-button:hover {
    background: #b8941f;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* .product-showcase {
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
} */
.product-showcase img {
    width: auto;
    height: 600px;
    object-fit: cover;
    border-radius: 15px;
}

/* 通用区域样式 */
section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
    font-weight: 700;
}

/* 产品介绍 */
.product-intro {
    background: #f8f9fa;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.card-number {
    position: absolute;
    top: -15px;
    left: 2rem;
    background: #d4af37;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.product-card h3 {
    margin: 1rem 0;
    color: #333;
    font-size: 1.5rem;
}

.product-card p {
    color: #666;
    line-height: 1.8;
}

/* 产品介绍部分 */
#product {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.product-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.product-text h3 {
    color: #2c5aa0;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.product-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 15px;
    color: #555;
}

.product-image-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 300px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* 市场定位部分 */
#market-positioning {
    padding: 100px 0;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}

.market-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: center;
}

.market-text {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.market-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.market-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.market-icon {
    font-size: 2.5rem;
    min-width: 60px;
    text-align: center;
}

.market-info h3 {
    color: #2c5aa0;
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.market-info p {
    color: #555;
    line-height: 1.6;
    font-size: 1rem;
}

.market-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.market-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* 研发背景 */
.research-bg {
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
    padding: 100px 0;
}

.research-content {
    max-width: 1200px;
    margin: 0 auto;
}

.research-header {
    display: grid;
    /* grid-template-columns: 2fr 1fr; */
    gap: 60px;
    align-items: start;
}

.research-text h3 {
    color: #2c5aa0;
    font-size: 1.8rem;
    margin-bottom: 40px;
    font-weight: 600;
    line-height: 1.4;
}

.research-steps {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.step {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    background: rgba(255, 255, 255, 0.9);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    align-items: center;
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.step-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.step-icon {
    font-size: 2.5rem;
    min-width: 60px;
    text-align: center;
}

.step-content p {
    color: #666;
    line-height: 1.6;
    font-size: 1.1rem;
    margin: 0;
}

.step-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.research-image {
    height: 100px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.research-main-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.main-product-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.image-caption {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    font-style: italic;
}

/* 成分功效部分 */
#ingredients {
    padding: 100px 0;
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
}

.ingredients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.ingredient-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ingredient-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.ingredient-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.ingredient-icon {
    font-size: 2.5rem;
}

.ingredient-card h3 {
    color: #2c5aa0;
    font-size: 1.5rem;
    margin: 0;
}

.ingredient-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.ingredient-image {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 10px;
    margin-top: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 红景天特殊样式 */
.ingredient-card .ingredient-effects {
    text-align: left;
    margin: 20px 0;
}

.ingredient-card .effect {
    margin-bottom: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    border-left: 4px solid #2c5aa0;
}

.ingredient-card .effect h4 {
    color: #2c5aa0;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.ingredient-card .effect p {
    margin: 0;
    font-size: 0.95rem;
}

.ingredient-tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-left: 10px;
}

/* 使用方法 */
.usage {
    background: white;
}

.usage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.usage-card {
    text-align: center;
    padding: 2rem;
    border-radius: 15px;
    background: #f8f9fa;
    transition: transform 0.3s ease;
}

.usage-card:hover {
    transform: translateY(-5px);
}

.usage-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.usage-card h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.usage-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.usage-image {
    width: 100%;
    margin-top: 20px;
    border-radius: 15px;
}

.warning, .cycle-info, .storage-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    text-align: left;
}

.warning {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.cycle-info {
    background: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

.storage-warning {
    background: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

/* 科研支持 */
.research {
    background: #f8f9fa;
}

.research-intro {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.references {
    max-width: 900px;
    margin: 0 auto;
}

.reference-list {
    margin-top: 20px;
}

.reference-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.ref-number {
    color: #d4af37;
    font-weight: 700;
    min-width: 40px;
}

.ref-text {
    color: #666;
    line-height: 1.6;
}

/* 文献来源 */
#references {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
    padding: 100px 0;
}

.references-content {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.references-text {
    background: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.references-list {
    list-style: none;
    counter-reset: reference-counter;
    margin: 20px 0 0;
    padding: 0;
}

.references-list li {
    counter-increment: reference-counter;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    border-left: 4px solid #2c5aa0;
    position: relative;
    line-height: 1.6;
    font-size: 0.95rem;
    color: #555;
}

.references-list li::before {
    content: "[" counter(reference-counter) "]";
    color: #2c5aa0;
    font-weight: bold;
    margin-right: 10px;
}

.references-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.references-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* 页脚 */
.footer {
    background: #333;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #d4af37;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
    color: #ccc;
}

.footer-section p {
    color: #ccc;
    line-height: 1.6;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #555;
    color: #999;
}

/* 移动端响应式设计 */
@media (max-width: 768px) {
    /* 导航栏移动端适配 */
    .nav-container {
        padding: 0 15px;
    }
    
    .nav-logo {
        font-size: 14px;
    }
    
    .nav-logo h2 {
        font-size: 20px !important;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 60px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        transition: right 0.3s ease;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        padding: 40px 20px;
        gap: 30px;
        z-index: 1000;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        margin: 0;
        width: 100%;
        text-align: center;
    }
    
    .nav-menu a {
        font-size: 18px;
        padding: 15px 20px;
        display: block;
        width: 100%;
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    
    .nav-menu a:hover {
        background: rgba(102, 134, 255, 0.1);
        color: #6686ff;
    }
    
    /* 主要内容区域 */
    .hero {
        flex-direction: column;
        padding: 80px 20px 40px;
        min-height: auto;
    }
    
    .hero-content {
        padding: 20px;
        text-align: center;
        max-width: 100%;
    }

    .hero-title {
        font-size: 1.6rem !important;
        margin-bottom: 12px;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
        margin-bottom: 15px;
        line-height: 1.5;
    }
    
    .hero-description {
        font-size: 0.9rem !important;
        margin-bottom: 20px;
        line-height: 1.5;
    }
    
    /* 产品展示图片移动端适配 */
    .product-showcase img {
        height: 300px;
        max-width: 100%;
        margin: 20px auto;
    }

    .cta-button {
        padding: 14px 32px;
        font-size: 16px;
        min-height: 48px;
        border-radius: 8px;
    }

    /* 产品介绍 */
    .product-content {
        padding: 35px 20px;
        text-align: center;
    }
    
    .product-content h2 {
        font-size: 22px;
        margin-bottom: 15px;
    }
    
    .product-content p {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 12px;
    }

    /* 市场定位 */
    .market-content {
        display: flex;
        flex-direction: column;
        padding: 35px 20px;
        gap: 30px;
    }
    
    .market-image {
        order: -1; /* 将图片移到标题下方 */
        margin-bottom: 20px;
    }
    
    .market-text {
        width: 100%;
    }
    
    .market-content h2 {
        font-size: 22px;
        margin-bottom: 20px;
    }
    
    .market-item {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        margin-bottom: 15px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .market-item h3 {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .market-item p {
        font-size: 13px;
        line-height: 1.5;
    }
    
    /* 网格布局 */
    .ingredients-grid,
    .usage-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 0 10px;
    }
    
    /* 成分功效 */
    .ingredient-card {
        padding: 18px;
    }
    
    .ingredient-card h3 {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .ingredient-card p {
        font-size: 13px;
        line-height: 1.5;
    }
    
    /* 研发历程 */
    .research-header {
        flex-direction: column;
        gap: 25px;
        padding: 35px 20px;
    }
    
    .research-header h2 {
        font-size: 22px;
        margin-bottom: 15px;
    }
    
    .research-text p {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 10px;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .step-content h3 {
        font-size: 15px;
        margin-bottom: 6px;
    }
    
    .step-content p {
        font-size: 12px;
        line-height: 1.4;
    }
    
    /* 图片优化 */
    .research-image {
        width: 100%;
        max-width: 200px;
        height: auto;
        border-radius: 6px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
        margin: 0 auto;
    }
    
    .main-product-image {
        width: 100%;
        max-width: 180px;
        height: auto;
        border-radius: 6px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
        margin: 15px auto;
        display: block;
    }
    
    .step-image {
        width: 100%;
        max-width: 120px;
        height: auto;
        border-radius: 6px;
        margin: 0 auto 10px;
    }
    
    .image-caption {
        font-size: 11px;
        color: #666;
        text-align: center;
        margin-top: 8px;
        line-height: 1.3;
    }

    /* 使用方法 */
    .usage-card {
        padding: 18px;
    }
    
    .usage-card h3 {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .usage-card p {
        font-size: 13px;
        line-height: 1.5;
    }

    /* 文献来源 */
    .references-content {
        padding: 35px 20px;
    }
    
    .references-content h2 {
        font-size: 22px;
        margin-bottom: 15px;
    }
    
    .references-text p {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 12px;
    }
    
    .references-list li {
        font-size: 12px;
        line-height: 1.5;
        margin-bottom: 8px;
    }

    /* 页脚 */
    .footer-content {
        padding: 25px 20px;
        text-align: center;
    }
    
    .footer-content p {
        font-size: 12px;
        line-height: 1.4;
    }
    
    /* 通用优化 */
    .container {
        padding: 0 15px;
        max-width: 100%;
    }
    
    .section-title {
        font-size: 20px;
        margin-bottom: 20px;
        text-align: center;
    }
    
    /* 防止水平滚动 */
    body {
        overflow-x: hidden;
    }
    
    /* 触摸友好的交互 */
    .ingredient-card,
    .usage-card,
    .market-item {
        border-radius: 8px;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    
    .ingredient-card:active,
    .usage-card:active,
    .market-item:active {
        transform: scale(0.98);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }
    
    /* 触摸友好的按钮 */
    .cta-button,
    .nav-menu a {
        min-height: 44px;
    }
}

/* 超小屏幕优化 (小于480px) */
@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 22px;
    }
    
    .hero-text p {
        font-size: 14px;
    }
    
    .nav-logo {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .product-content h2,
    .market-content h2,
    .research-header h2,
    .references-content h2 {
        font-size: 18px;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .hero-content,
    .product-content,
    .market-content,
    .research-header,
    .references-content {
        padding: 25px 10px;
    }
    
    .footer-content {
        padding: 20px 10px;
    }
    
    .ingredient-card,
    .usage-card {
        padding: 15px;
    }
}

/* 滚动动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}