/* 星露谷物语 Wiki - 全局样式 */
:root {
    /* 星露谷主题色 */
    --primary: #5a8f3e;          /* 田园绿 */
    --primary-light: #7cb342;
    --primary-dark: #388e3c;
    --secondary: #f9a825;        /* 丰收金 */
    --accent: #ff7043;           /* 强调橙 */
    
    /* 环境色 */
    --forest: #2e7d32;           /* 森林绿 */
    --soil: #795548;             /* 泥土棕 */
    --wheat: #ffd54f;            /* 小麦黄 */
    --sunset: #ff8a65;           /* 日落橙 */
    --night: #37474f;            /* 夜空蓝 */
    
    /* 界面颜色 */
    --bg-dark: #1a2e1a;          /* 深绿背景 */
    --bg-card: #243524;          /* 卡片背景 */
    --bg-light: #2d4a2d;         /* 浅背景 */
    --bg-section: #1e3a1e;       /* 分区背景 */
    --text-primary: #f1f8e9;
    --text-secondary: #c5e1a5;
    --text-muted: #81c784;
    --border: rgba(90, 143, 62, 0.3);
    
    /* 状态颜色 */
    --success: #66bb6a;
    --warning: #ffb74d;
    --danger: #ef5350;
    --info: #4fc3f7;
    --love: #e91e63;             /* 喜爱 */
    --like: #8bc34a;             /* 喜欢 */
    --neutral: #9e9e9e;          /* 一般 */
    --hate: #f44336;             /* 讨厌 */
    
    --radius: 8px;
    --radius-lg: 12px;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.4);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans SC', Roboto, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* ========================================
   导航栏
   ======================================== */
.navbar {
    background: linear-gradient(180deg, rgba(30, 58, 30, 0.98) 0%, rgba(30, 58, 30, 0.95) 100%);
    border-bottom: 1px solid var(--border);
    padding: 0 2rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.navbar-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    transition: color 0.2s;
}

.navbar-brand:hover {
    color: var(--wheat);
}

.navbar-nav {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.navbar-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s;
    padding: 0.5rem 0;
}

.navbar-nav a:hover {
    color: var(--wheat);
}

/* ========================================
   Hero 区域
   ======================================== */
.hero {
    background: linear-gradient(135deg, #1a2e1a 0%, #2d4a2d 30%, #1e3a1e 60%, #1a2e1a 100%);
    padding: 120px 2rem 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(90, 143, 62, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(249, 168, 37, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.hero-stardew {
    border-bottom: 1px solid var(--border);
}

.game-logo {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--wheat) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle { 
    color: var(--text-muted); 
    font-size: 1.2rem; 
    margin-bottom: 0.5rem; 
}

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

.hero-tags { 
    display: flex; 
    gap: 1rem; 
    justify-content: center; 
    flex-wrap: wrap; 
}

.hero-tag {
    background: rgba(90, 143, 62, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border: 1px solid rgba(90, 143, 62, 0.4);
}

/* ========================================
   主内容区
   ======================================== */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* ========================================
   分区样式
   ======================================== */
.section {
    background: var(--bg-section);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
}

.section h2 {
    margin-top: 0;
    color: var(--wheat);
}

/* ========================================
   模块导航卡片
   ======================================== */
.module-card {
    display: block;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.module-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(90, 143, 62, 0.3);
}

.module-card h3 {
    font-size: 1rem;
    margin: 0.75rem 0 0.5rem;
    color: var(--text-primary);
}

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

/* ========================================
   特色卡片
   ======================================== */
.feature-card {
    background: rgba(90, 143, 62, 0.1);
    padding: 1.5rem;
    border-radius: var(--radius);
    border-left: 3px solid var(--primary-light);
}

.feature-card h4 {
    margin: 0 0 0.5rem;
    color: var(--wheat);
}

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

/* ========================================
   村民卡片
   ======================================== */
.villager-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    text-align: center;
}

.villager-card .avatar {
    font-size: 3rem;
    margin-bottom: 0.75rem;
}

.villager-card h4 {
    margin: 0 0 0.5rem;
    color: var(--wheat);
}

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

/* ========================================
   季节卡片
   ======================================== */
.season-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    text-align: center;
}

.season-card.spring { border-top: 3px solid #81c784; }
.season-card.summer { border-top: 3px solid #ffb74d; }
.season-card.fall { border-top: 3px solid #ff8a65; }
.season-card.winter { border-top: 3px solid #90caf9; }

.season-card h4 {
    margin: 0.5rem 0;
    color: var(--text-primary);
}

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

/* ========================================
   攻略卡片
   ======================================== */
.guide-card {
    display: block;
    background: rgba(90, 143, 62, 0.1);
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    border: 1px solid rgba(90, 143, 62, 0.3);
    text-decoration: none;
    transition: all 0.2s;
}

.guide-card:hover {
    border-color: var(--primary-light);
    background: rgba(90, 143, 62, 0.2);
}

.guide-card h4 {
    margin: 0;
    color: var(--wheat);
    font-size: 1rem;
}

.guide-card p {
    margin: 0.5rem 0 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ========================================
   物品网格
   ======================================== */
.item-card {
    background: var(--bg-card);
    padding: 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    text-align: center;
}

.item-card .icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.item-card h4 {
    font-size: 0.9rem;
    margin: 0 0 0.25rem;
    color: var(--text-primary);
}

.item-card .price {
    color: var(--wheat);
    font-size: 0.85rem;
}

/* ========================================
   页脚
   ======================================== */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 2rem;
    margin-top: 4rem;
    text-align: center;
}

.footer a {
    color: var(--primary-light);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* ========================================
   通用样式
   ======================================== */
a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--wheat);
}

h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

h4 {
    font-size: 1rem;
    font-weight: 600;
}

p {
    color: var(--text-secondary);
}

ul, ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

/* 网格布局 */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 768px) {
    .navbar {
        padding: 0 1rem;
    }
    
    .navbar-nav {
        display: none;
    }
    
    .hero {
        padding: 100px 1rem 40px;
    }
    
    .game-logo {
        font-size: 2.5rem;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .section {
        padding: 1.25rem;
    }
}

/* ========================================
   滚动条
   ======================================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-dark);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ========================================
   动画
   ======================================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.module-card, .section, .villager-card, .season-card {
    animation: fadeIn 0.4s ease-out;
}
