/* 秀人官方门户V1 - 绿色清新杂志风 */

/* ============ 变量定义 ============ */
:root {
    --primary: #059669;
    --primary-dark: #047857;
    --primary-light: #10b981;
    --secondary: #34d399;
    --accent: #fbbf24;
    --bg-primary: #f7faf7;
    --bg-secondary: #ecfdf5;
    --bg-white: #ffffff;
    --bg-card: #ffffff;
    --text-primary: #1a2e1a;
    --text-secondary: #374151;
    --text-muted: #6b7280;
    --border: #d1fae5;
    --shadow: 0 4px 20px rgba(5, 150, 105, 0.08);
    --radius: 12px;
}

/* ============ 基础样式 ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.9;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; transition: all 0.25s ease; }
a:hover { color: var(--primary-dark); text-decoration: none; }
img { max-width: 100%; height: auto; }

/* ============ 头部导航 ============ */
.header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0.8rem 0;
}
.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(145deg, var(--primary), var(--primary-light));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.25);
}
.logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-dark);
    letter-spacing: -0.02em;
}
.logo-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
}
.nav { display: flex; gap: 2rem; }
.nav a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.4rem 0;
    position: relative;
    letter-spacing: 0.01em;
}
.nav a:hover { color: var(--primary); }
.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}
.nav a:hover::after { width: 100%; }

/* ============ 主视觉Banner ============ */
.hero {
    background: linear-gradient(160deg, #ecfdf5 0%, #d1fae5 50%, #a7f3d0 100%);
    padding: 5rem 1.5rem;
    text-align: center;
    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='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23059669' fill-opacity='0.04' fill-rule='evenodd'/%3E%3C/svg%3E");
}
.hero-content { max-width: 800px; margin: 0 auto; position: relative; z-index: 1; }
.hero h1 {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
    line-height: 1.2;
}
.hero p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}
.hero-tags { display: flex; justify-content: center; gap: 0.8rem; flex-wrap: wrap; }
.hero-tag {
    background: var(--bg-white);
    color: var(--primary);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--border);
    transition: all 0.2s;
}
.hero-tag:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

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

/* 精选展示 - 瀑布流风格 */
.featured {
    margin-bottom: 4rem;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border);
}
.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.section-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--primary);
    border-radius: 2px;
}
.section-link {
    color: var(--primary);
    font-weight: 500;
    font-size: 0.9rem;
}
.section-link:hover { color: var(--primary-dark); }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.gallery-item {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.35s ease;
    border: 1px solid var(--border);
}
.gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(5, 150, 105, 0.15);
}
.gallery-item a {
    display: block;
    color: inherit;
}
.gallery-item img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-info {
    padding: 1.2rem;
}
.gallery-tag {
    display: inline-block;
    background: var(--bg-secondary);
    color: var(--primary);
    padding: 0.25rem 0.8rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.gallery-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.5;
}

/* ============ 关于区域 ============ */
.about-section {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.about-section h2 {
    font-size: 1.6rem;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    text-align: center;
}
.about-section p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 2;
    text-align: justify;
}

/* ============ 关键词标签云 ============ */
.keywords-cloud {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 2.5rem;
    margin-bottom: 3rem;
    border: 1px solid var(--border);
    text-align: center;
}
.keywords-cloud h3 {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}
.keywords-list { display: flex; justify-content: center; gap: 0.8rem; flex-wrap: wrap; }
.keywords-list a {
    background: var(--bg-secondary);
    color: var(--primary-dark);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 0.9rem;
    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-bottom: 3rem; }
.article-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
.article-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    display: flex;
}
.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(5, 150, 105, 0.12);
}
.article-card img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    flex-shrink: 0;
}
.article-card .content {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.article-card h3 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
    line-height: 1.5;
    font-weight: 600;
}
.article-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-card .meta {
    margin-top: 0.8rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ============ 页脚 ============ */
.footer {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--primary-dark) 100%);
    color: var(--text-secondary);
    padding: 4rem 1.5rem 2rem;
}
.footer-inner { max-width: 1280px; margin: 0 auto; }
.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand h3 {
    font-size: 1.3rem;
    color: white;
    margin-bottom: 1rem;
}
.footer-brand p {
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
    font-size: 0.9rem;
}
.footer-links h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 1rem;
}
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    transition: color 0.2s;
}
.footer-links a:hover { color: white; }
.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .header-inner { flex-direction: column; gap: 1rem; }
    .hero h1 { font-size: 2rem; }
    .gallery-grid { grid-template-columns: 1fr; }
    .article-list { grid-template-columns: 1fr; }
    .article-card { flex-direction: column; }
    .article-card img { width: 100%; height: 180px; }
    .footer-main { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 480px) {
    .hero { padding: 3rem 1rem; }
    .hero h1 { font-size: 1.7rem; }
}
