/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4a8f29; /* 草药绿 */
    --secondary-color: #8b5a2b; /* 木质棕 */
    --accent-color: #d4af37; /* 金色 */
    --text-color: #333;
    --light-bg: #f5f5f0;
    --dark-bg: #2c3e2a;
    --herb-shadow: 0 10px 30px rgba(74, 143, 41, 0.2);
    
    /* 五行元素颜色 */
    --wood-color: #4a8f29;
    --fire-color: #e74c3c;
    --earth-color: #f39c12;
    --metal-color: #95a5a6;
    --water-color: #3498db;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    background: rgba(74, 143, 41, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    color: white;
    gap: 0.5rem;
}

.nav-logo h1 {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color);
}

.nav-cta {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background: #b8941f;
    transform: translateY(-2px);
}

/* 英雄区域 - UE风格设计 */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 800px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d4a2d 50%, #1a2f1a 100%);
    color: white;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg, 
        rgba(74, 143, 41, 0.3) 0%, 
        rgba(0, 0, 0, 0.5) 50%, 
        rgba(74, 143, 41, 0.2) 100%
    );
}

.hero-container {
    position: relative;
    z-index: 3;
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
    gap: 4rem;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.content-wrapper {
    max-width: 600px;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(45deg, var(--accent-color), #f4d03f);
    color: #000;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    line-height: 1.1;
    background: linear-gradient(45deg, #fff, var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 1rem;
    color: #e0e0e0;
    line-height: 1.3;
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    color: #b0b0b0;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.btn-primary, .btn-secondary {
    padding: 1.2rem 2.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(45deg, var(--accent-color), #f4d03f);
    color: #000;
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(212, 175, 55, 0.6);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
}

.hero-features {
    display: flex;
    gap: 2rem;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.feature-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent-color);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.feature-label {
    font-size: 0.9rem;
    color: #b0b0b0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 视觉展示区域 */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.game-showcase {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.showcase-main {
    position: relative;
    text-align: center;
    margin-bottom: 2rem;
}

.main-spirit {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--accent-color);
    box-shadow: 0 0 50px rgba(212, 175, 55, 0.5);
}

.main-spirit img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.main-spirit:hover img {
    transform: scale(1.1);
}

.spirit-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--accent-color), transparent);
    opacity: 0.3;
    animation: glow-pulse 3s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
    0% { opacity: 0.3; transform: scale(1); }
    100% { opacity: 0.6; transform: scale(1.05); }
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-particle {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0.7;
    animation: float-particle 6s ease-in-out infinite;
}

.floating-particle:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-particle:nth-child(2) {
    top: 30%;
    right: 20%;
    animation-delay: -1.5s;
}

.floating-particle:nth-child(3) {
    bottom: 30%;
    left: 20%;
    animation-delay: -3s;
}

.floating-particle:nth-child(4) {
    bottom: 20%;
    right: 10%;
    animation-delay: -4.5s;
}

@keyframes float-particle {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(90deg); }
    50% { transform: translateY(-10px) rotate(180deg); }
    75% { transform: translateY(-30px) rotate(270deg); }
}

.showcase-spirits {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.spirit-preview {
    position: relative;
    width: 120px;
    text-align: center;
    transition: transform 0.3s ease;
}

.spirit-preview:hover {
    transform: translateY(-10px);
}

.spirit-preview img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(212, 175, 55, 0.5);
    transition: all 0.3s ease;
}

.spirit-preview:hover img {
    border-color: var(--accent-color);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.spirit-name {
    display: block;
    margin-top: 0.8rem;
    font-size: 0.9rem;
    color: #e0e0e0;
}

/* 底部信息栏 */
.hero-bottom {
    position: relative;
    z-index: 3;
    padding: 2rem 3rem;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.game-info {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #b0b0b0;
    font-size: 0.9rem;
}

.info-item i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

/* 五行系统 */
.elements-section {
    padding: 5rem 2rem;
    text-align: center;
    background: white;
}

.elements-section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.elements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.element {
    padding: 2rem;
    border-radius: 15px;
    background: var(--light-bg);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.element:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.element i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.element.metal i { color: #c0c0c0; }
.element.wood i { color: #228b22; }
.element.water i { color: #4169e1; }
.element.fire i { color: #ff4500; }
.element.earth i { color: #8b4513; }

.element h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

/* 精灵展示 */
.herbs-section {
    padding: 5rem 2rem;
    background: var(--light-bg);
    text-align: center;
}

.herbs-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.section-desc {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.herbs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.herb-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.herb-card.featured {
    border: 2px solid var(--primary-color);
    background: linear-gradient(135deg, white 0%, rgba(74, 143, 41, 0.05) 100%);
}

.herb-card.preview {
    background: #f8f9fa;
    border: 2px dashed #ccc;
}

.herb-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

.herb-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid var(--accent-color);
}

.herb-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.herb-details {
    text-align: left;
    background: rgba(74, 143, 41, 0.05);
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
}

.herb-details p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.herb-card.preview:hover .preview-overlay {
    opacity: 1;
}

.preview-text {
    text-align: center;
    color: white;
}

.preview-text h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.coming-soon {
    background: var(--accent-color);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    display: inline-block;
    margin-top: 0.5rem;
}

.locked-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.6;
}

/* 药方合成系统 */
.formula-section {
    padding: 5rem 2rem;
    background: white;
}

.formula-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.formula-container {
    max-width: 1200px;
    margin: 0 auto;
}

.formula-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.formula-intro h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.formula-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 3rem;
}

.formula-card.highlight {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
}

.formula-card.highlight:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.formula-card.preview-formula {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    padding: 2.5rem;
    border: 2px dashed #ccc;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.formula-header {
    border-bottom: 2px solid var(--light-bg);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.formula-header h4 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.formula-effect {
    background: var(--accent-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.formula-origin {
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-style: italic;
}

.formula-composition h5 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.ingredient-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.ingredient-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--light-bg);
    padding: 0.8rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.ingredient {
    font-weight: bold;
    color: var(--primary-color);
}

.dosage {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.formula-desc {
    background: rgba(74, 143, 41, 0.05);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: left;
}

.formula-desc p {
    margin: 0.8rem 0;
    line-height: 1.6;
}

.coming-soon-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    border-radius: 20px;
}

.coming-soon-overlay span:first-child {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.coming-soon-overlay span:last-child {
    background: var(--accent-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* 关于游戏部分 - 优化版 */
.about-section {
    padding: 4rem 1.5rem;
    background: linear-gradient(to bottom, #e2ffe6 0%,#1a1a1a 50% #ffffff 100%);
}

.about-section h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 1rem;
}

.about-section h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: flex-start;
}

.about-text {
    flex: 1 1 60%;
    min-width: 300px;
}

.about-text h3 {
    font-size: 2.2rem;
    color: var(--secondary-color);
    margin-bottom: 1.8rem;
    background: linear-gradient(45deg, #4a8f29, #8b5a2b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-text > p {
    font-size: 1.15rem;
    line-height: 1.85;
    color: #444;
    margin-bottom: 2.5rem;
    padding-right: 1rem;
}

.game-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.8rem;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    padding: 1.8rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(74, 143, 41, 0.12);
    border-left: 5px solid var(--primary-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.highlight-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(74, 143, 41, 0.2);
}

.highlight-item i {
    font-size: 2.4rem;
    min-width: 50px;
    color: var(--accent-color);
    background: linear-gradient(45deg, #4a8f29, #d4af37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding: 0.8rem;
    border-radius: 50%;
    background-color: rgba(212, 175, 55, 0.1);
}

.highlight-item-content {
    flex: 1;
}

.highlight-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.highlight-item p {
    color: #555;
    line-height: 1.7;
    font-size: 1.05rem;
}

.about-stats {
    margin-top: 125px;
    flex: 1 1 30%;
    min-width: 280px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.7);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.stat-item {
    text-align: center;
    padding: 1.8rem 1rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(245, 245, 245, 0.8) 100%);
    border-radius: 16px;
    transition: all 0.4s ease;
    border: 1px solid rgba(74, 143, 41, 0.15);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.stat-item:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 15px 35px rgba(74, 143, 41, 0.15);
    background: linear-gradient(135deg, white 0%, #f5f5f0 100%);
    border-color: rgba(212, 175, 55, 0.3);
}

.stat-number {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 0.3rem;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.stat-label {
    font-size: 1.05rem;
    color: var(--secondary-color);
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }
    
    .about-text,
    .about-stats {
        width: 100%;
    }
    
    .about-stats {
        order: -1;
        max-width: 500px;
        margin: 0 auto 2rem;
    }
}

@media (max-width: 576px) {
    .about-section h2 {
        font-size: 2.2rem;
    }
    
    .about-text h3 {
        font-size: 1.8rem;
    }
    
    .game-highlights {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2.8rem;
    }
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 15px;
    width: 80%;
    max-width: 600px;
    position: relative;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
}

.close:hover {
    color: #333;
}

/* 采集游戏样式 */
.collect-game {
    text-align: center;
}

.collect-area {
    margin: 2rem 0;
    padding: 2rem;
    background: var(--light-bg);
    border-radius: 15px;
}

.herb-spot {
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 1rem;
    border-radius: 15px;
}

.herb-spot:hover {
    background: rgba(74, 143, 41, 0.1);
    transform: scale(1.1);
}

.herb-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: sway 2s ease-in-out infinite;
}

@keyframes sway {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

.collect-progress {
    margin-top: 1rem;
}

.collect-instructions {
    color: var(--secondary-color);
    margin: 1rem 0;
}

.collect-instructions p {
    margin: 0.5rem 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        gap: 1rem;
    }
    
    .nav-link {
        display: none;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .game-features {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-spirits {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        flex-direction: row;
        justify-content: center;
        margin-top: 2rem;
        gap: 1rem;
    }
    
    .spirit {
        width: 100px;
        height: 100px;
    }
    
    .elements-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .herbs-grid {
        grid-template-columns: 1fr;
    }
    
    .formula-showcase {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 元素徽章颜色 */
.element-badge.wood { background: var(--wood-color); }
.element-badge.fire { background: var(--fire-color); }
.element-badge.earth { background: var(--earth-color); }
.element-badge.metal { background: var(--metal-color); }
.element-badge.water { background: var(--water-color); }

/* 响应式设计 - 英雄区域 */
@media (max-width: 1200px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .main-spirit {
        width: 250px;
        height: 250px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 100vh;
        height: auto;
    }
    
    .hero-container {
        padding: 2rem 1.5rem;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        padding: 1rem;
    }
    
    .hero-features {
        justify-content: center;
        gap: 1.5rem;
    }
    
    .feature-number {
        font-size: 2rem;
    }
    
    .main-spirit {
        width: 200px;
        height: 200px;
    }
    
    .showcase-spirits {
        gap: 1rem;
    }
    
    .spirit-preview {
        width: 100px;
    }
    
    .spirit-preview img {
        width: 80px;
        height: 80px;
    }
    
    .game-info {
        flex-wrap: wrap;
        gap: 1.5rem;
        justify-content: center;
    }
    
    .hero-bottom {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-container {
        padding: 1rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-spirit {
        width: 180px;
        height: 180px;
    }
    
    .showcase-spirits {
        flex-direction: column;
        align-items: center;
    }
}

/* 页脚样式 */
.footer {
    background: var(--dark-bg);
    color: white;
    padding: 1.5rem 0 0;
    position: relative;
    overflow: auto;
    min-height: 30vh;
    max-height: 30vh;
}

.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-logo i {
    font-size: 2rem;
    color: var(--accent-color);
}

.footer-logo span {
    font-size: 1.8rem;
    font-weight: bold;
    background: linear-gradient(45deg, #fff, var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    justify-content: space-between;
}

.link-group {
    flex: 1 0 150px;
    min-width: 150px;
    max-width: 200px;
}

.link-group h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    position: relative;
    padding-bottom: 0.5rem;
}

.link-group h4::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--accent-color);
}

.link-group a {
    display: block;
    color: #b0b0b0;
    margin-bottom: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.link-group a:hover {
    color: white;
    transform: translateX(5px);
}

.link-group a i {
    margin-right: 0.5rem;
    color: var(--accent-color);
    width: 20px;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    text-align: center;
}

.footer-bottom p {
    margin: 0.5rem 0;
    color: #b0b0b0;
    font-size: 0.9rem;
}

.footer-bottom p:first-child {
    color: white;
    font-size: 1rem;
}

/* 响应式设计 - 页脚 */
@media (max-width: 768px) {
    .footer-links {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .link-group {
        margin-bottom: 1.5rem;
    }
}

/* 加载动画 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

section {
    animation: fadeIn 0.8s ease-out forwards;
}

/* 属性克制循环体系 */
.elements-cycle-section {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, var(--light-bg) 0%, #e8f5e9 100%);
    text-align: center;
}

.elements-cycle-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.cycle-description {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* 五行克制循环图 */
.cycle-visualization {
    display: flex;
    justify-content: center;
    margin-bottom: 4rem;
    padding: 2rem;
}

.cycle-diagram {
    position: relative;
    width: 600px;
    height: 600px;
    margin: 0 auto;
    background: radial-gradient(circle, rgba(212,175,55,0.05) 0%, rgba(74,143,41,0.03) 70%, transparent 100%);
    border-radius: 20px;
    border: 2px dashed rgba(212,175,55,0.2);
}

.element-node {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, white 0%, rgba(244,244,244,0.9) 100%);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15), 0 5px 15px rgba(0,0,0,0.1);
    border: 3px solid;
    transition: all 0.3s ease;
    z-index: 3;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.element-node:hover {
    transform: scale(1.15) translateY(-5px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.25), 0 15px 35px rgba(0,0,0,0.15);
    z-index: 10;
    background: linear-gradient(135deg, white 0%, rgba(248,248,248,1) 100%);
}

.element-node:hover .element-icon {
    animation: bounce 0.6s ease-in-out;
    transform: scale(1.1);
}

/* 元素悬停时高亮相关的连线 - 使用JavaScript实现 */
/* CSS悬停效果已移至JavaScript实现，以确保兼容性 */

@keyframes bounce {
    0%, 20%, 60%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    80% { transform: translateY(-5px); }
}

.element-node.fire {
    border-color: var(--fire-color);
    top: 40px;    /* 火(苦) - 顶部角平分线向外扩展 */
    left: 250px;  /* 保持水平居中 */
}

.element-node.earth {
    border-color: var(--earth-color);
    top: 170px;   /* 土(甘) - 右上角平分线向外扩展 */
    right: 55px;  /* 角平分线向外扩展 */
}

.element-node.metal {
    border-color: var(--metal-color);
    bottom: 110px; /* 金(酸) - 右下角平分线向外扩展 */
    right: 120px;  /* 角平分线向外扩展 */
}

.element-node.water {
    border-color: var(--water-color);
    bottom: 110px; /* 水(咸) - 左下角平分线向外扩展 */
    left: 120px;   /* 角平分线向外扩展 */
}

.element-node.wood {
    border-color: var(--wood-color);
    top: 170px;   /* 木(辛) - 左上角平分线向外扩展，已向下调整 */
    left: 55px;   /* 角平分线向外扩展 */
}

/* 为每个元素添加特定的彩色阴影效果 */
.element-node.fire:hover {
    box-shadow: 0 25px 60px rgba(231,76,60,0.25), 0 15px 35px rgba(231,76,60,0.15);
}

.element-node.earth:hover {
    box-shadow: 0 25px 60px rgba(243,156,18,0.25), 0 15px 35px rgba(243,156,18,0.15);
}

.element-node.metal:hover {
    box-shadow: 0 25px 60px rgba(149,165,166,0.25), 0 15px 35px rgba(149,165,166,0.15);
}

.element-node.water:hover {
    box-shadow: 0 25px 60px rgba(52,152,219,0.25), 0 15px 35px rgba(52,152,219,0.15);
}

.element-node.wood:hover {
    box-shadow: 0 25px 60px rgba(74,143,41,0.25), 0 15px 35px rgba(74,143,41,0.15);
}

.element-icon {
    font-size: 2.2rem;
    margin-bottom: 0.2rem;
    transition: all 0.3s ease;
}

.element-node.wood .element-icon { 
    color: var(--wood-color); 
    text-shadow: 0 2px 4px rgba(74,143,41,0.3);
}
.element-node.fire .element-icon { 
    color: var(--fire-color); 
    text-shadow: 0 2px 4px rgba(231,76,60,0.3);
}
.element-node.earth .element-icon { 
    color: var(--earth-color); 
    text-shadow: 0 2px 4px rgba(243,156,18,0.3);
}
.element-node.metal .element-icon { 
    color: var(--metal-color); 
    text-shadow: 0 2px 4px rgba(149,165,166,0.3);
}
.element-node.water .element-icon { 
    color: var(--water-color); 
    text-shadow: 0 2px 4px rgba(52,152,219,0.3);
}

.element-name {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 0.2rem;
    text-align: center;
    line-height: 1.2;
}

.element-desc {
    font-size: 0.75rem;
    color: var(--text-color);
    text-align: center;
    line-height: 1.1;
    opacity: 0.8;
}

/* SVG箭头容器 */
.cycle-arrows {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;  /* 提高箭头层级，显示在图标上方 */
    pointer-events: none;
}

.star-line {
    filter: drop-shadow(0 0 6px rgba(212,175,55,0.8)) drop-shadow(0 0 12px rgba(212,175,55,0.4));
    transition: all 0.3s ease;
}

.star-line.highlighted {
    stroke-width: 5 !important;
    filter: drop-shadow(0 0 8px rgba(212,175,55,1)) drop-shadow(0 0 16px rgba(212,175,55,0.6));
    animation: pulse-arrow 1s ease-in-out infinite;
}

@keyframes pulse-arrow {
    0%, 100% { 
        opacity: 0.8; 
        stroke-width: 4;
    }
    50% { 
        opacity: 1; 
        stroke-width: 6;
    }
}

.star-line:hover {
    stroke-width: 4;
    filter: drop-shadow(0 0 8px rgba(212,175,55,0.8));
}

/* 君臣佐使配伍系统 */
.compatibility-system {
    margin-bottom: 4rem;
}

.compatibility-system h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.compatibility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.compatibility-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border-left: 5px solid;
}

.compatibility-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.compatibility-card.sovereign {
    border-left-color: var(--wood-color);
}

.compatibility-card.minister {
    border-left-color: var(--fire-color);
}

.compatibility-card.assistant {
    border-left-color: var(--earth-color);
}

.compatibility-card.messenger {
    border-left-color: var(--metal-color);
}

.role-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-color);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.compatibility-card h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.compatibility-card p {
    margin: 0.5rem 0;
    color: var(--text-color);
}

.compatibility-card .effect {
    font-weight: bold;
    color: var(--secondary-color);
}

/* 组合技示例 */
.combo-examples {
    text-align: center;
}

.combo-examples h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.combo-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.combo-item {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 2px solid var(--light-bg);
}

.combo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    border-color: var(--accent-color);
}

.combo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.combo-name {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--primary-color);
}

.combo-result {
    background: var(--accent-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: bold;
}

.combo-desc p {
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
}

/* 响应式设计 - 属性克制循环体系 */
@media (max-width: 768px) {
    .cycle-visualization {
        padding: 1rem;
    }
    
    .cycle-diagram {
        width: 350px;
        height: 350px;
        border-radius: 15px;
    }
    
    .element-node {
        width: 70px;
        height: 70px;
    }
    
    .element-icon {
        font-size: 1.5rem;
    }
    
    .element-name {
        font-size: 0.8rem;
    }
    
    .element-desc {
        font-size: 0.65rem;
    }
    
    /* 重新调整小屏幕下的元素位置 */
    .element-node.fire {
        top: 15px;
        left: 140px;
    }
    
    .element-node.earth {
        top: 90px;
        right: 30px;
    }
    
    .element-node.metal {
        bottom: 65px;
        right: 60px;
    }
    
    .element-node.water {
        bottom: 65px;
        left: 60px;
    }
    
    .element-node.wood {
        top: 100px;
        left: 30px;
    }
}

@media (max-width: 480px) {
    .cycle-diagram {
        width: 280px;
        height: 280px;
    }
    
    .element-node {
        width: 60px;
        height: 60px;
    }
    
    .element-icon {
        font-size: 1.2rem;
    }
    
    .element-name {
        font-size: 0.7rem;
    }
    
    .element-desc {
        font-size: 0.6rem;
    }
    
    /* 更小屏幕的元素位置 */
    .element-node.fire {
        top: 10px;
        left: 110px;
    }
    
    .element-node.earth {
        top: 70px;
        right: 20px;
    }
    
    .element-node.metal {
        bottom: 50px;
        right: 45px;
    }
    
    .element-node.water {
        bottom: 50px;
        left: 45px;
    }
    
    .element-node.wood {
        top: 80px;
        left: 20px;
    }
}

/* 新增内容样式 */

/* 通用区域头部样式 */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-style: italic;
}

.section-description {
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-color);
    line-height: 1.8;
}

/* 五行相生系统增强样式 */
.element-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    background: radial-gradient(circle, currentColor 2px, transparent 2px);
    background-size: 20px 20px;
    pointer-events: none;
}

.element-nature {
    margin-bottom: 1rem;
    color: var(--text-color);
    font-weight: 500;
}

.element-details {
    margin: 1.5rem 0;
    text-align: left;
    background: rgba(255,255,255,0.8);
    padding: 1rem;
    border-radius: 10px;
    border-left: 4px solid;
}

.element.wood .element-details { border-left-color: var(--wood-color); }
.element.fire .element-details { border-left-color: var(--fire-color); }
.element.earth .element-details { border-left-color: var(--earth-color); }
.element.metal .element-details { border-left-color: var(--metal-color); }
.element.water .element-details { border-left-color: var(--water-color); }

.element-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.stat-item {
    font-size: 0.9rem;
    padding: 0.3rem 0.6rem;
    background: rgba(255,255,255,0.9);
    border-radius: 15px;
    border: 1px solid rgba(0,0,0,0.1);
}

/* 五行相生循环样式 */
.generation-cycle {
    margin-top: 4rem;
    padding: 2rem;
    background: var(--light-bg);
    border-radius: 20px;
}

.generation-cycle h3 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.cycle-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.flow-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.element-symbol {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

.wood-symbol { background: var(--wood-color); }
.fire-symbol { background: var(--fire-color); }
.earth-symbol { background: var(--earth-color); }
.metal-symbol { background: var(--metal-color); }
.water-symbol { background: var(--water-color); }

.flow-arrow {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.relationship-desc {
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: bold;
}

.cycle-explanation {
    color: var(--text-color);
    font-style: italic;
    line-height: 1.6;
}

/* 克制关系说明样式 */
.restraint-explanation {
    margin: 3rem 0;
    padding: 2rem;
    background: rgba(212,175,55,0.05);
    border-radius: 20px;
    border: 2px dashed rgba(212,175,55,0.3);
}

.restraint-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.restraint-item {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.restraint-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.restraint-symbols {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.attacker, .defender {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.3rem;
}

.attacker.wood, .defender.wood { background: var(--wood-color); }
.attacker.fire, .defender.fire { background: var(--fire-color); }
.attacker.earth, .defender.earth { background: var(--earth-color); }
.attacker.metal, .defender.metal { background: var(--metal-color); }
.attacker.water, .defender.water { background: var(--water-color); }

.restraint-symbols i {
    color: var(--accent-color);
    font-size: 1.5rem;
}

.restraint-item p {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.restraint-item small {
    color: var(--secondary-color);
    font-style: italic;
}

/* 君臣佐使系统增强样式 */
.system-header {
    text-align: center;
    margin-bottom: 3rem;
}

.system-subtitle {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.system-description {
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-color);
    line-height: 1.7;
}

.compatibility-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.compatibility-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.compatibility-card.sovereign {
    border-color: #ff6b6b;
}

.compatibility-card.minister {
    border-color: #4ecdc4;
}

.compatibility-card.assistant {
    border-color: #45b7d1;
}

.compatibility-card.messenger {
    border-color: #f9ca24;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.role-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    color: white;
}

.role-badge.primary { background: #ff6b6b; }
.role-badge.secondary { background: #4ecdc4; }
.role-badge.support { background: #45b7d1; }
.role-badge.utility { background: #f9ca24; }

.card-content h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.role-description {
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-style: italic;
}

.role-details {
    margin-bottom: 1.5rem;
}

.role-details p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.role-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.role-stats .stat {
    background: var(--light-bg);
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.85rem;
    border: 1px solid rgba(0,0,0,0.1);
}

/* 阵容配伍样式 */
.formation-examples {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--light-bg);
    border-radius: 20px;
}

.formation-examples h4 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 1.6rem;
}

.formation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.formation-card {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.formation-card h5 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.formation-lineup {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.spirit-slot {
    padding: 0.4rem 0.8rem;
    border-radius: 12px;
    font-size: 0.85rem;
    color: white;
    font-weight: bold;
}

.spirit-slot.sovereign { background: #ff6b6b; }
.spirit-slot.minister { background: #4ecdc4; }
.spirit-slot.assistant { background: #45b7d1; }
.spirit-slot.messenger { background: #f9ca24; color: #333; }

.formation-effect {
    font-size: 0.9rem;
    color: var(--text-color);
    line-height: 1.5;
}

/* 组合技能增强样式 */
.combo-header {
    text-align: center;
    margin-bottom: 3rem;
}

.combo-subtitle {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.combo-item {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.combo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.combo-item.legendary {
    border-color: #ff9500;
    background: linear-gradient(135deg, #fff 0%, #fff8e1 100%);
}

.combo-item.epic {
    border-color: #9c27b0;
    background: linear-gradient(135deg, #fff 0%, #f3e5f5 100%);
}

.combo-item.rare {
    border-color: #2196f3;
    background: linear-gradient(135deg, #fff 0%, #e3f2fd 100%);
}

.combo-item.common {
    border-color: #4caf50;
    background: linear-gradient(135deg, #fff 0%, #e8f5e8 100%);
}

.combo-elements {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.element-tag {
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
}

.element-tag.wood { background: var(--wood-color); }
.element-tag.fire { background: var(--fire-color); }
.element-tag.earth { background: var(--earth-color); }
.element-tag.metal { background: var(--metal-color); }
.element-tag.water { background: var(--water-color); }

.combo-rank {
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
    color: white;
}

.combo-rank.legendary { background: #ff9500; }
.combo-rank.epic { background: #9c27b0; }
.combo-rank.rare { background: #2196f3; }
.combo-rank.common { background: #4caf50; }

.combo-theory {
    background: rgba(74,143,41,0.1);
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary-color);
}

.combo-effects ul {
    list-style: none;
    padding: 0;
}

.combo-effects li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.combo-effects li:last-child {
    border-bottom: none;
}

.combo-spirits {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(212,175,55,0.1);
    border-radius: 10px;
    font-size: 0.95rem;
}

/* 组合技能进阶样式 */
.combo-mastery {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--light-bg);
    border-radius: 20px;
    text-align: center;
}

.combo-mastery h4 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.mastery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.mastery-level {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.level-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 15px;
    font-weight: bold;
    color: white;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
}

/* 精灵展示增强样式 */
.herbs-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.herb-card {
    position: relative;
    overflow: hidden;
}

.card-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 2;
}

.element-badge,
.rarity-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    color: white;
}

.element-badge.wood { background: var(--wood-color); }
.element-badge.fire { background: var(--fire-color); }
.element-badge.earth { background: var(--earth-color); }
.element-badge.metal { background: var(--metal-color); }
.element-badge.water { background: var(--water-color); }

.rarity-badge.legendary { background: #ff9500; }
.rarity-badge.epic { background: #9c27b0; }
.rarity-badge.rare { background: #2196f3; }
.rarity-badge.uncommon { background: #00bcd4; }
.rarity-badge.common { background: #4caf50; }

.card-image-container {
    position: relative;
    margin-bottom: 1rem;
}

.element-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.herb-card:hover .element-glow {
    opacity: 0.3;
}

.wood-glow { background: radial-gradient(circle, var(--wood-color), transparent); }
.fire-glow { background: radial-gradient(circle, var(--fire-color), transparent); }
.earth-glow { background: radial-gradient(circle, var(--earth-color), transparent); }
.metal-glow { background: radial-gradient(circle, var(--metal-color), transparent); }
.water-glow { background: radial-gradient(circle, var(--water-color), transparent); }

.card-content {
    padding: 1rem;
}

.herb-stats {
    margin: 1rem 0;
}

.stat-bar {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.stat-label {
    width: 80px;
    font-size: 0.85rem;
    color: var(--text-color);
}

.stat-progress {
    flex: 1;
    height: 8px;
    background: rgba(0,0,0,0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-left: 0.5rem;
}

.stat-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 4px;
    transition: width 0.3s ease;
}

.herb-skills {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--light-bg);
    border-radius: 10px;
}

.herb-skills h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1rem;
}

.skill-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.skill-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: white;
    border-radius: 8px;
    font-size: 0.85rem;
}

.skill-name {
    font-weight: bold;
    color: var(--primary-color);
}

.skill-desc {
    color: var(--text-color);
    font-size: 0.75rem;
}

/* 精灵获取指南样式 */
.acquisition-guide {
    margin-top: 4rem;
    padding: 3rem 2rem;
    background: var(--light-bg);
    border-radius: 20px;
    text-align: center;
}

.acquisition-guide h3 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 2rem;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.guide-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.guide-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.guide-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.guide-item h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.guide-item p {
    color: var(--text-color);
    line-height: 1.6;
}
