/* 语画界官方网站 - 紫色优雅风格 */

/* ============ 变量定义 ============ */
:root {
    --primary: #8b5cf6;
    --primary-dark: #7c3aed;
    --primary-light: #a78bfa;
    --secondary: #c084fc;
    --accent: #f472b6;
    --bg-primary: #fdf4ff;
    --bg-secondary: #f5d0fe;
    --bg-white: #ffffff;
    --text-primary: #1e1b4b;
    --text-secondary: #312e81;
    --text-muted: #6b7280;
    --border: #e9d5ff;
    --shadow: 0 8px 30px rgba(139, 92, 246, 0.15);
    --radius: 20px;
}

/* ============ 基础样式 ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-white) 50%, #fdf2f8 100%);
    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(--primary-dark); }

/* ============ 头部导航 ============ */
.header {
    background: rgba(255, 255, 255, 0.9);
    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: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    font-weight: bold;
}
.logo-text {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -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(--accent));
    border-radius: 3px;
    transition: all 0.3s;
    transform: translateX(-50%);
}
.nav a:hover::after { width: 100%; }

/* ============ 主视觉区域 ============ */
.hero {
    background: linear-gradient(135deg, #4c1d95 0%, #6d28d9 30%, #8b5cf6 60%, #c084fc 100%);
    padding: 6rem 2rem;
    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,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.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.2);
    letter-spacing: 0.05em;
}
.hero p {
    font-size: 1.3rem;
    opacity: 0.95;
    margin-bottom: 2rem;
}
.hero-tags { display: flex; justify-content: center; gap: 1.2rem; flex-wrap: wrap; }
.hero-tag {
    background: rgba(255,255,255,0.2);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-size: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
}

/* ============ 内容区域 ============ */
.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-white);
    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(139, 92, 246, 0.25);
}
.gallery-item img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
}
.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: 50px;
    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: linear-gradient(135deg, var(--bg-white), var(--bg-secondary));
    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(--accent));
    -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-white);
    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: linear-gradient(135deg, var(--bg-secondary), var(--bg-primary));
    color: var(--primary);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-size: 1rem;
    border: 1px solid var(--border);
    transition: all 0.3s;
}
.keywords-list a:hover {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    transform: translateY(-3px);
}

/* ============ 文章列表 ============ */
.articles-section h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2.5rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -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-white);
    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);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.2);
}
.article-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.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: linear-gradient(135deg, #1e1b4b, #312e81, #4c1d95);
    color: rgba(255,255,255,0.9);
    padding: 4rem 2rem;
    margin-top: 4rem;
}
.footer-inner { max-width: 1200px; margin: 0 auto; text-align: center; }
.footer h3 { font-size: 1.5rem; margin-bottom: 1rem; color: white; }
.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: rgba(255,255,255,0.7); }
.footer-links a:hover { color: var(--secondary); }

/* ============ 响应式 ============ */
@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; }
}
