
:root {
    --bg-paper: #f7f5f0;
    --ink-black: #2b2b2b;
    --cinnabar: #8a3324;
    --herb-green: #556b2f;
    --border-color: #dcd6cc;
    --font-serif: "Noto Serif SC", "Songti SC", serif;
}

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

body {
    font-family: var(--font-serif);
    background-color: var(--bg-paper);
    color: var(--ink-black);
    line-height: 1.8;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23dcd6cc' fill-opacity='0.4' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.tcm-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.6);
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

/* Header */
.tcm-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    border-bottom: 1px solid var(--border-color);
}

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

.seal {
    background-color: var(--cinnabar);
    color: white;
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
    border-radius: 4px;
    font-weight: bold;
    writing-mode: vertical-rl;
}

.logo-area h1 {
    font-size: 1.8rem;
    letter-spacing: 0.2rem;
    color: var(--ink-black);
}

.top-nav a {
    text-decoration: none;
    color: var(--ink-black);
    margin-left: 2rem;
    font-size: 1.1rem;
    position: relative;
}

.top-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--cinnabar);
    transition: width 0.3s;
}

.top-nav a:hover::after, .top-nav a.active::after {
    width: 100%;
}

/* Hero */
.hero-section {
    padding: 4rem 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(to right, rgba(247, 245, 240, 0.9), rgba(247, 245, 240, 0.4));
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--ink-black);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--herb-green);
    margin-bottom: 2rem;
    letter-spacing: 0.1rem;
}

.cta-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    border: 1px solid var(--cinnabar);
    color: var(--cinnabar);
    text-decoration: none;
    transition: all 0.3s;
}

.cta-button:hover {
    background-color: var(--cinnabar);
    color: white;
}

.hero-decoration {
    width: 200px;
    height: 200px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    position: relative;
}

.hero-decoration::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
}

/* Showcase */
.herb-showcase {
    padding: 3rem;
}

.section-title-wrap {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title-wrap h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.divider {
    width: 60px;
    height: 3px;
    background-color: var(--cinnabar);
    margin: 0 auto;
}

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

.herb-card {
    background: white;
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.herb-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.herb-img-box {
    height: 200px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border-radius: 4px;
}

.herb-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.herb-card:hover .herb-img-box img {
    transform: scale(1.1);
}

.herb-details h4 {
    font-size: 1.4rem;
    margin-bottom: 0.2rem;
    color: var(--ink-black);
}

.latin-name {
    display: block;
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: #888;
}

.efficacy {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 1rem;
    min-height: 3em;
}

.properties {
    display: flex;
    gap: 0.5rem;
}

.prop {
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    border: 1px solid currentColor;
}

.prop.warm { color: var(--cinnabar); }
.prop.neutral { color: #555; }
.prop.sweet { color: #d4af37; }
.prop.pungent { color: var(--herb-green); }

/* Knowledge */
.knowledge-section {
    background-color: #e8e4dc;
    padding: 4rem 3rem;
    margin-top: 2rem;
}

.knowledge-container {
    display: flex;
    align-items: center;
    justify-content: space-around;
    max-width: 900px;
    margin: 0 auto;
}

.k-text {
    max-width: 500px;
}

.k-text h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--cinnabar);
}

.yin-yang-symbol {
    width: 120px;
    height: 120px;
    background: linear-gradient(to bottom, var(--ink-black) 50%, white 50%);
    border-radius: 50%;
    border: 1px solid var(--ink-black);
    position: relative;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.yin-yang-symbol::before, .yin-yang-symbol::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    left: 30px;
}

.yin-yang-symbol::before {
    top: 0;
    background: var(--ink-black);
    border: 20px solid white;
}

.yin-yang-symbol::after {
    bottom: 0;
    background: white;
    border: 20px solid var(--ink-black);
}

/* Footer */
.tcm-footer {
    text-align: center;
    padding: 2rem;
    color: #888;
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .tcm-header {
        flex-direction: column;
        gap: 1rem;
    }
    .top-nav a {
        margin: 0 0.5rem;
    }
    .hero-section {
        flex-direction: column;
        text-align: center;
    }
    .hero-decoration {
        display: none;
    }
    .knowledge-container {
        flex-direction: column-reverse;
        gap: 2rem;
        text-align: center;
    }
}
