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

:root {
    --primary-color: #8b4513;
    --secondary-color: #a0522d;
    --accent-color: #cd853f;
    --bg-color: #faf8ef;
    --card-bg: #fff;
    --text-color: #333;
    --text-secondary: #666;
    --text-muted: #999;
    --border-color: #eee;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(250, 248, 239, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.section {
    padding: 80px 2rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    border-radius: 2rem;
    padding: 4rem;
    text-align: center;
    color: white;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

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

.hero-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 2rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.hero-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

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

.feature-card {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

.feature-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.herbs-scroll {
    overflow-x: auto;
    margin-bottom: 2rem;
}

.herbs-list {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
}

.herb-item {
    background: white;
    padding: 1rem;
    border-radius: 1rem;
    min-width: 140px;
    text-align: center;
    flex-shrink: 0;
}

.herb-color {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin: 0 auto 0.5rem;
}

.herb-name {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.herb-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    justify-content: center;
}

.herb-tag {
    background: var(--bg-color);
    color: var(--primary-color);
    padding: 0.2rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.7rem;
}

.color-demo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.color-box {
    width: 150px;
    height: 100px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
}

.color-box.normal {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.color-box.changed {
    background: linear-gradient(135deg, var(--accent-color), #daa520);
    box-shadow: 0 8px 25px rgba(218, 165, 32, 0.4);
}

.arrow {
    font-size: 1.5rem;
    color: var(--text-muted);
}

.color-desc {
    text-align: center;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.filter-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.filter-tab {
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 2rem;
    background: var(--bg-color);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
}

.filter-tab.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.filter-option {
    padding: 0.4rem 1rem;
    background: var(--bg-color);
    border-radius: 2rem;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-option.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.clear-btn {
    background: none;
    border: none;
    color: var(--secondary-color);
    cursor: pointer;
    margin-bottom: 1rem;
}

.selected-herbs {
    background: var(--bg-color);
    padding: 1rem;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
}

.selected-herbs h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.selected-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.selected-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
}

.selected-color {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.remove-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.match-tips {
    background: rgba(139, 69, 19, 0.1);
    padding: 1rem;
    border-radius: 0.5rem;
}

.match-tips h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

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

.herb-card {
    background: white;
    padding: 1rem;
    border-radius: 1rem;
    display: flex;
    gap: 1rem;
    cursor: pointer;
    transition: box-shadow 0.3s;
}

.herb-card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.herb-card-left {
    flex-shrink: 0;
}

.herb-card-color {
    width: 60px;
    height: 60px;
    border-radius: 0.5rem;
}

.herb-card-info {
    flex: 1;
}

.herb-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.herb-card-name {
    font-weight: bold;
}

.herb-card-pinyin {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.herb-card-efficacies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-bottom: 0.5rem;
}

.herb-card-tag {
    background: var(--bg-color);
    color: var(--primary-color);
    padding: 0.2rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.7rem;
}

.herb-card-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.select-indicator {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-weight: bold;
}

.select-indicator.selected {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.preview-container {
    display: flex;
    justify-content: center;
    padding: 2rem;
    background: var(--bg-color);
    border-radius: 2rem;
    margin-bottom: 2rem;
}

.fan-wrapper {
    perspective: 500px;
}

.fan {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fanRotate 8s linear infinite;
}

@keyframes fanRotate {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

.fan-face {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2), inset 0 0 60px rgba(255, 255, 255, 0.3);
    overflow: hidden;
}

.pattern-layer {
    position: absolute;
    width: 100%;
    height: 100%;
}

.pattern-item {
    position: absolute;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: bold;
}

.herbs-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
}

.herb-decoration {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 3s ease-in-out infinite;
}

.herb-decoration:nth-child(1) { top: 15%; left: 20%; }
.herb-decoration:nth-child(2) { top: 20%; right: 25%; }
.herb-decoration:nth-child(3) { bottom: 25%; left: 30%; }

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

.herb-char {
    color: white;
    font-size: 1rem;
    font-weight: bold;
}

.fan-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.fan-handle {
    width: 8px;
    height: 80px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--primary-color));
    border-radius: 0 0 4px 4px;
    margin-top: -5px;
}

.style-selector {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
}

.style-selector h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.style-options {
    display: flex;
    gap: 1rem;
}

.style-option {
    flex: 1;
    text-align: center;
    padding: 1rem;
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.style-option.active {
    background: var(--bg-color);
}

.style-preview {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 0.5rem;
}

.style-name {
    font-size: 0.9rem;
}

.effect-preview {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
}

.effect-preview h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.effect-switch {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.effect-switch input {
    display: none;
}

.slider {
    width: 50px;
    height: 26px;
    background: #ddd;
    border-radius: 13px;
    position: relative;
    cursor: pointer;
    transition: background 0.3s;
}

.slider::before {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: left 0.3s;
}

.effect-switch input:checked + .slider {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.effect-switch input:checked + .slider::before {
    left: 26px;
}

.effect-cards {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.effect-card {
    text-align: center;
}

.effect-box {
    width: 120px;
    height: 80px;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
}

.effect-box.normal {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.effect-box.changed {
    background: linear-gradient(135deg, var(--accent-color), #daa520);
}

.preview-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.action-btn {
    padding: 0.8rem 2rem;
    border-radius: 2rem;
    font-size: 1rem;
    cursor: pointer;
    transition: opacity 0.3s;
}

.action-btn.secondary {
    background: var(--bg-color);
    color: var(--primary-color);
    border: none;
}

.action-btn.primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
}

.action-btn:hover {
    opacity: 0.8;
}

.guide-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.guide-tab {
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 2rem;
    background: var(--bg-color);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
}

.guide-tab.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.guide-content {
    animation: fadeIn 0.3s ease;
}

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

.guide-herbs-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.guide-herb-card {
    background: white;
    padding: 1rem;
    border-radius: 1rem;
    display: flex;
    gap: 1rem;
    cursor: pointer;
}

.guide-knowledge-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.knowledge-card {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    display: flex;
    gap: 1rem;
}

.knowledge-icon {
    width: 50px;
    height: 50px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    flex-shrink: 0;
}

.knowledge-title {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.knowledge-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.guide-usage-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.usage-card {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
}

.usage-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.usage-num {
    background: var(--bg-color);
    color: var(--primary-color);
    padding: 0.3rem 0.7rem;
    border-radius: 0.3rem;
    font-weight: bold;
}

.usage-title {
    font-weight: bold;
}

.usage-desc {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.usage-tips {
    background: var(--bg-color);
    padding: 1rem;
    border-radius: 0.5rem;
}

.tip-item {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.guide-health-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.health-card {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
}

.health-title {
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.health-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.health-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.health-tag {
    background: var(--bg-color);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 1rem;
    font-size: 0.8rem;
}

.craft-intro {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.process-list {
    background: white;
    border-radius: 1rem;
    padding: 1rem;
    margin-bottom: 2rem;
}

.process-card {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
}

.process-card:last-child {
    border-bottom: none;
}

.process-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 1rem;
}

.process-title {
    font-weight: bold;
    margin-bottom: 0.2rem;
}

.process-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

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

.material-card {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    text-align: center;
}

.material-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-weight: bold;
}

.material-name {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.material-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

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

.culture-card {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    display: flex;
    gap: 1rem;
}

.culture-icon {
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    background: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-weight: bold;
    flex-shrink: 0;
}

.culture-title {
    font-weight: bold;
    margin-bottom: 0.3rem;
}

.culture-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.feature-card-item {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    display: flex;
    gap: 1rem;
}

.feature-num {
    background: var(--bg-color);
    color: var(--primary-color);
    padding: 0.3rem 0.7rem;
    border-radius: 0.3rem;
    font-weight: bold;
}

.feature-title {
    font-weight: bold;
    margin-bottom: 0.3rem;
}

.feature-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.footer {
    text-align: center;
    padding: 2rem;
    background: var(--bg-color);
    color: var(--text-muted);
}

.icp-record {
    margin-top: 0.75rem;
    font-size: 0.875rem;
}

.icp-record a {
    color: inherit;
    text-decoration: none;
}

.icp-record a:hover {
    text-decoration: underline;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
}

.modal-content {
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
}

.modal-header {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: var(--bg-color);
}

.modal-color {
    width: 50px;
    height: 50px;
    border-radius: 0.5rem;
    margin-right: 1rem;
}

.modal-title-wrap h3 {
    margin-bottom: 0.2rem;
}

.modal-title-wrap p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.modal-close {
    margin-left: auto;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #eee;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
}

.modal-body {
    padding: 1.5rem;
    max-height: 50vh;
    overflow-y: auto;
}

.modal-section-title {
    color: var(--primary-color);
    font-weight: bold;
    margin: 1rem 0 0.5rem;
}

.modal-section-title:first-child {
    margin-top: 0;
}

.modal-efficacies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.modal-tag {
    background: var(--bg-color);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 1rem;
    font-size: 0.85rem;
}

.modal-desc,
.modal-usage {
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .nav {
        display: none;
        flex-direction: column;
        gap: 1rem;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 1rem;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    }

    .nav.active {
        display: flex;
    }

    .menu-btn {
        display: block;
    }

    .hero-title {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .filter-tabs {
        flex-wrap: wrap;
    }

    .effect-cards {
        flex-direction: column;
        gap: 1rem;
    }

    .preview-actions {
        flex-direction: column;
    }

    .action-btn {
        width: 100%;
    }

    .guide-tabs {
        flex-wrap: wrap;
    }
}
