/* 尤果网 - 深色神秘风格 */

/* ============ 变量定义 ============ */
:root {
    --primary: #f97316;
    --primary-dark: #ea580c;
    --primary-light: #fb923c;
    --secondary: #fbbf24;
    --accent: #ef4444;
    --bg-primary: #0f0f0f;
    --bg-secondary: #1a1a1a;
    --bg-card: #262626;
    --bg-white: #ffffff;
    --text-primary: #f5f5f5;
    --text-secondary: #d4d4d4;
    --text-muted: #a3a3a3;
    --border: #404040;
    --shadow: 0 8px 30px rgba(249, 115, 22, 0.15);
    --radius: 16px;
}

/* ============ 基础样式 ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.8;
    min-height: 100vh;
}
a { color: var(--primary); text-decoration: none; transition: all 0.2s; }
a:hover { color: var(--secondary); }

/* ============ 头部导航 ============ */
.header {
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 2rem;
}
.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    font-weight: bold;
    box-shadow: 0 4px 20px rgba(249, 115, 22, 0.4);
}
.logo-text {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.logo-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
}
.nav { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.nav a {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 1.05rem;
    padding: 0.5rem 0;
    position: relative;
}
.nav a:hover { color: var(--primary); }
.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 3px;
    transition: all 0.3s;
    transform: translateX(-50%);
}
.nav a:hover::after { width: 100%; }

/* ============ 主视觉区域 ============ */
.hero {
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a1a 30%, #262626 60%, #1a1a1a 100%);
    padding: 6rem 2rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(249, 115, 22, 0.1) 0%, transparent 70%);
}
.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(249, 115, 22, 0.03) 2px,
        rgba(249, 115, 22, 0.03) 4px
    );
}
.hero-content { max-width: 900px; margin: 0 auto; position: relative; z-index: 1; }
.hero h1 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
    letter-spacing: 0.1em;
}
.hero p {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}
.hero-tags { display: flex; justify-content: center; gap: 1.2rem; flex-wrap: wrap; }
.hero-tag {
    background: var(--bg-card);
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

/* ============ 内容区域 ============ */
.main { max-width: 1400px; margin: 0 auto; padding: 4rem 2rem; }

/* 画廊 - 深色卡片 */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}
.gallery-item {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border);
}
.gallery-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(249, 115, 22, 0.25);
    border-color: var(--primary);
}
.gallery-item img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    filter: brightness(0.9);
    transition: filter 0.3s;
}
.gallery-item:hover img { filter: brightness(1); }
.gallery-info {
    padding: 1.5rem;
    text-align: center;
}
.gallery-tag {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}
.gallery-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* ============ 关于区域 ============ */
.about {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 3.5rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    text-align: center;
}
.about h2 {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
}
.about p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 900px;
    margin: 0 auto;
    line-height: 2;
}

/* ============ 关键词 ============ */
.keywords {
    text-align: center;
    padding: 3rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    margin-bottom: 3rem;
    border: 1px solid var(--border);
}
.keywords h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}
.keywords-list { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.keywords-list a {
    background: var(--bg-secondary);
    color: var(--primary);
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    border: 1px solid var(--border);
    transition: all 0.3s;
}
.keywords-list a:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--bg-primary);
    transform: translateY(-3px);
}

/* ============ 文章列表 ============ */
.articles-section h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.article-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}
.article-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border: 1px solid var(--border);
}
.article-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(249, 115, 22, 0.2);
}
.article-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    filter: brightness(0.85);
}
.article-card .content { padding: 1.5rem; }
.article-card h3 {
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.5;
}
.article-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-card .meta {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
}

/* ============ 页脚 ============ */
.footer {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 4rem 2rem;
    margin-top: 4rem;
    border-top: 1px solid var(--border);
}
.footer-inner { max-width: 1200px; margin: 0 auto; text-align: center; }
.footer h3 { font-size: 1.5rem; margin-bottom: 1rem; color: var(--primary); }
.footer p { margin-bottom: 0.5rem; }
.footer-links { margin-top: 2rem; display: flex; justify-content: center; gap: 2.5rem; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--primary); }

/* ============ 响应式 ============ */
@media (max-width: 768px) {
    .header-inner { flex-direction: column; text-align: center; }
    .hero h1 { font-size: 2rem; }
    .gallery { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .article-list { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .gallery { grid-template-columns: 1fr; }
    .hero { padding: 3rem 1rem; }
}
