/* 雅虎 100% 浅色视觉引擎 */
:root {
    --bg-color: #f6f9fb;
    --card-bg: #ffffff;
    --text-main: #222222;
    --text-sub: #6e7780;
    --yahoo-purple: #6001d2;
    --border-color: #e0e4e8;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; background-color: var(--bg-color); color: var(--text-main); }

/* 头部 */
.yahoo-header { background: #fff; padding: 15px 40px; display: flex; align-items: center; gap: 30px; border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 100; }
.logo { font-size: 24px; font-weight: 900; color: var(--yahoo-purple); }
.logo span { font-weight: 400; font-size: 20px; }
.search-container { flex: 1; max-width: 600px; position: relative; display: flex; }
.search-container input { width: 100%; padding: 10px 20px; border-radius: 50px; border: 1px solid #dcdfe3; background: #f1f3f5; outline: none; }
.search-container button { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); border: none; background: none; cursor: pointer; }

.app-container { max-width: 1000px; margin: 20px auto; padding: 0 15px; }

/* 英雄区：白色卡片 */
.hero-section { margin-bottom: 30px; }
.hero-card { background: var(--card-bg); padding: 30px; border-radius: 12px; border: 1px solid var(--border-color); box-shadow: 0 2px 8px rgba(0,0,0,0.05); max-width: 450px; }
.hero-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
#locationName { font-size: 28px; font-weight: 700; }
.follow-btn { border: 1px solid #222; border-radius: 50px; padding: 4px 12px; font-size: 14px; background: none; cursor: pointer; font-weight: 600; }
.hero-main { display: flex; justify-content: space-between; align-items: center; }
#currentTemp { font-size: 84px; font-weight: 300; line-height: 1; }
.feels-like { color: var(--text-sub); font-size: 16px; margin-top: 5px; }
#weatherIcon { width: 80px; }
#weatherDesc { font-size: 16px; margin: 15px 0; font-weight: 500; }
.high-low-row { font-size: 18px; display: flex; gap: 15px; }

/* 详情板块通用 */
.section-header { font-size: 18px; font-weight: 700; margin-bottom: 15px; padding-left: 5px; }
.card-box { background: #fff; padding: 20px; border-radius: 12px; border: 1px solid var(--border-color); margin-bottom: 25px; }

/* 预报列表 */
.forecast-list { display: flex; gap: 20px; overflow-x: auto; padding-bottom: 10px; }
.forecast-day { text-align: center; min-width: 80px; flex-shrink: 0; }
.forecast-day img { width: 40px; }
.forecast-temp { font-weight: 700; font-size: 15px; }

/* 条件网格：消除空洞 */
.conditions-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 25px; }
.cond-item { background: #fff; padding: 12px 20px; border: 1px solid var(--border-color); border-radius: 8px; display: flex; justify-content: space-between; align-items: center; }
.cond-item span { color: var(--text-sub); font-size: 14px; }

/* 生活指数 */
.life-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.life-item { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--text-sub); }

#weatherMap { height: 400px; border-radius: 8px; }

/* 新闻列表：图文结构 */
.news-item { display: flex; gap: 20px; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border-color); }
.news-thumb { width: 140px; height: 90px; border-radius: 8px; object-fit: cover; background: #eee; }
.news-text h4 { font-size: 18px; line-height: 1.3; margin-bottom: 8px; color: #000; }
.news-text a { text-decoration: none; }
.news-meta { font-size: 12px; color: var(--text-sub); }

.yahoo-footer { text-align: center; padding: 50px 0; color: var(--text-sub); font-size: 13px; }

@media (max-width: 768px) {
    .conditions-grid, .life-grid { grid-template-columns: 1fr; }
    .hero-card { max-width: 100%; }
}