/* mm131官方网站 - 蓝色清新风格 */

/* ============ 变量定义 ============ */
:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;
    --secondary: #0ea5e9;
    --bg-primary: #f0f9ff;
    --bg-secondary: #e0f2fe;
    --bg-white: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --border: #bfdbfe;
    --shadow: 0 4px 20px rgba(59, 130, 246, 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: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-white) 100%);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }

/* ============ 头部导航 ============ */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    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: 0.8rem;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav { display: flex; gap: 2rem; flex-wrap: wrap; }

.nav a {
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.nav a:hover { color: var(--primary); }
.nav a:hover::after { width: 100%; }

/* ============ 主视觉区域 ============ */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, #06b6d4 100%);
    padding: 5rem 2rem;
    text-align: center;
    color: white;
}

.hero-content { max-width: 900px; margin: 0 auto; }

.hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 2rem;
}

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

.hero-tag {
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.95rem;
    backdrop-filter: blur(5px);
}

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

/* 画廊网格 - 瀑布流风格 */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.gallery-item {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.25);
}

.gallery-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 3/4;
    object-fit: cover;
    display: block;
}

.gallery-info {
    padding: 1rem;
}

.gallery-tag {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.gallery-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ============ 关于区域 ============ */
.about {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow);
}

.about h2 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.about p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 800px;
    margin: 0 auto 1rem;
    text-align: center;
}

/* ============ 关键词云 ============ */
.keywords {
    text-align: center;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    margin-bottom: 3rem;
}

.keywords h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.keywords-list { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

.keywords-list a {
    background: var(--bg-white);
    color: var(--text-secondary);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.95rem;
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.keywords-list a:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ============ 文章列表 ============ */
.articles-section { margin-top: 3rem; }

.articles-section h2 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 2rem;
    text-align: center;
}

.article-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.article-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.article-card:hover { transform: translateY(-5px); }

.article-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.article-card .content { padding: 1.2rem; }

.article-card h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.article-card p {
    font-size: 0.9rem;
    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, var(--text-primary), #1e3a5f);
    color: rgba(255,255,255,0.8);
    padding: 3rem 2rem;
    margin-top: 4rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer h3 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.footer p { margin-bottom: 0.5rem; }

.footer-links {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a { color: rgba(255,255,255,0.7); }
.footer-links a:hover { color: white; }

/* ============ 响应式 ============ */
@media (max-width: 768px) {
    .header-inner { flex-direction: column; text-align: center; }
    .nav { justify-content: 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; }
    .hero h1 { font-size: 1.6rem; }
}
