/* Fun Learning Style - 明亮可爱 */
@import url('https://fonts.googleapis.com/css2?family=ZCOOL+KuaiLe&family=Noto+Sans+SC:wght@400;500;700&display=swap');

:root {
    --primary: #FF6B6B;
    --secondary: #4ECDC4;
    --accent: #FFE66D;
    --purple: #A66CFF;
    --pink: #FF9FF3;
    --blue: #54A0FF;
    --green: #1DD1A1;
    --orange: #FF9F43;
    --bg: #FFF9F0;
    --text: #2D3436;
    --light: #FFFFFF;
}

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

body {
    font-family: 'Noto Sans SC', 'ZCOOL KuaiLe', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.8;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部 */
header {
    background: linear-gradient(135deg, var(--primary), var(--pink));
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(255,107,107,0.3);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 28px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 25px;
    background: rgba(255,255,255,0.2);
    font-weight: 500;
    transition: all 0.3s;
}

nav a:hover, nav a.active {
    background: white;
    color: var(--primary);
    transform: translateY(-2px);
}

/* 横幅 */
.hero {
    background: linear-gradient(135deg, var(--secondary), var(--blue));
    padding: 60px 20px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="10" cy="10" r="3" fill="rgba(255,255,255,0.1)"/><circle cx="30" cy="25" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="8" r="4" fill="rgba(255,255,255,0.1)"/><circle cx="70" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="12" r="3" fill="rgba(255,255,255,0.1)"/></svg>');
    animation: float 20s linear infinite;
}

@keyframes float {
    from { transform: translateX(-100px); }
    to { transform: translateX(100px); }
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 15px;
    font-family: 'ZCOOL KuaiLe', cursive;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.1);
}

.hero p {
    font-size: 20px;
    opacity: 0.95;
}

/* 主内容 */
.main {
    padding: 40px 20px;
}

/* 面包屑 */
.breadcrumb {
    padding: 15px 0;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: var(--blue);
    text-decoration: none;
}

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

/* 网格 */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

/* 卡片 */
.card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: all 0.3s;
    border: 3px solid transparent;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    border-color: var(--accent);
}

.card-icon {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 70px;
    background: linear-gradient(135deg, var(--secondary), var(--green));
}

.card:nth-child(2n) .card-icon { background: linear-gradient(135deg, var(--primary), var(--orange)); }
.card:nth-child(3n) .card-icon { background: linear-gradient(135deg, var(--purple), var(--pink)); }
.card:nth-child(4n) .card-icon { background: linear-gradient(135deg, var(--blue), var(--secondary)); }
.card:nth-child(5n) .card-icon { background: linear-gradient(135deg, var(--accent), var(--orange)); }

.card-body {
    padding: 20px;
}

.card-body h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text);
}

.card-body h3 a {
    color: inherit;
    text-decoration: none;
}

.card-body h3 a:hover {
    color: var(--primary);
}

.card-body p {
    font-size: 14px;
    color: #666;
}

/* 文章卡片 */
.article-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-left: 5px solid var(--secondary);
    transition: all 0.3s;
}

.article-card:hover {
    transform: translateX(5px);
    border-left-color: var(--primary);
}

.article-card h2 {
    font-size: 22px;
    margin-bottom: 12px;
}

.article-card h2 a {
    color: var(--text);
    text-decoration: none;
}

.article-card h2 a:hover {
    color: var(--primary);
}

.article-card .meta {
    font-size: 13px;
    color: #888;
    margin-bottom: 15px;
}

.article-card p {
    color: #555;
    line-height: 1.9;
}

/* 列表样式 */
.list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.list-item {
    background: white;
    padding: 20px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.list-item:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.list-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

/* 游戏页面 */
.game-container {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.game-frame {
    width: 100%;
    height: 500px;
    border: none;
    border-radius: 15px;
    background: #f0f0f0;
}

/* 页脚 */
footer {
    background: var(--text);
    color: white;
    padding: 30px 0;
    text-align: center;
    margin-top: 50px;
}

footer a {
    color: var(--accent);
    text-decoration: none;
    margin: 0 10px;
}

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

/* 按钮 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--primary), var(--pink));
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(255,107,107,0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary), var(--blue));
}

/* 工具 */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }

/* 响应式 */
@media (max-width: 768px) {
    .hero h1 { font-size: 32px; }
    .hero p { font-size: 16px; }
    .grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
    nav { gap: 8px; }
    nav a { padding: 6px 12px; font-size: 14px; }
    .game-frame { height: 350px; }
}

/* 搜索框 */
.search-box {
    max-width: 600px;
    margin: 30px auto;
    display: flex;
    gap: 10px;
}

.search-box input {
    flex: 1;
    padding: 15px 20px;
    border: 3px solid var(--secondary);
    border-radius: 30px;
    font-size: 16px;
    outline: none;
}

.search-box input:focus {
    border-color: var(--primary);
}

.search-box button {
    padding: 15px 30px;
}

/* 分类标签 */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.tag {
    padding: 8px 18px;
    background: var(--secondary);
    color: white;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.tag:hover {
    background: var(--primary);
    transform: scale(1.1);
}

/* 介绍页 */
.about-section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin: 20px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.about-section h2 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 28px;
}

.about-section p {
    margin-bottom: 15px;
    line-height: 2;
    color: #555;
}

/* 隐私条款 */
.legal-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    line-height: 2;
}

.legal-content h2 {
    color: var(--primary);
    margin: 30px 0 15px;
    font-size: 22px;
}

.legal-content h3 {
    color: var(--secondary);
    margin: 20px 0 10px;
}

/* SEO */
h1, h2, h3 { color: var(--text); }
a { color: var(--blue); }
img { max-width: 100%; height: auto; }
