/* ====== ACE·同心铸盾计划社区官网 — 样式表 ====== */

/* ---------- 全局重置 ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary:      #c0392b;      /* 主红 */
    --primary-dark: #96281b;
    --primary-light:#e74c3c;
    --gold:         #e6b800;
    --gold-light:   #ffe066;
    --bg:           #f5f5f5;
    --bg-white:     #ffffff;
    --text:         #333333;
    --text-light:   #666666;
    --text-muted:   #999999;
    --border:       #e0e0e0;
    --shadow:       0 2px 12px rgba(0,0,0,0.08);
    --radius:       8px;
    --nav-h:        64px;
    --max-w:        1200px;
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }

/* ---------- 顶部导航 ---------- */
.top-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    height: var(--nav-h);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.nav-container {
    max-width: var(--max-w);
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo-box {
    display: flex; align-items: center; gap: 10px;
    transition: opacity 0.2s;
}
.logo-box:hover { opacity: 0.85; }
.logo-img { height: 40px; width: auto; }
.logo-text {
    font-size: 1.4rem; font-weight: 700;
    color: #fff; letter-spacing: 2px;
}

/* 导航链接 */
.nav-links { display: flex; gap: 8px; }
.nav-item {
    padding: 8px 20px; border-radius: 4px;
    color: rgba(255,255,255,0.8); font-size: 0.95rem;
    transition: all 0.2s;
}
.nav-item:hover { background: rgba(255,255,255,0.15); color: #fff; }
.nav-item.active { background: rgba(255,255,255,0.2); color: #fff; font-weight: 600; }

/* ---------- Banner ---------- */
.hero-banner {
    margin-top: var(--nav-h);
    width: 100%;
    position: relative; overflow: hidden;
}
.banner-img {
    width: 100%; height: auto; display: block;
}

/* ---------- 四大功能入口 ---------- */
.function-blocks {
    max-width: var(--max-w);
    margin: -40px auto 40px;
    padding: 0 24px;
    position: relative; z-index: 10;
}

.blocks-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.func-block {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 28px 16px 24px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid transparent;
    cursor: pointer;
}
.func-block:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border-color: var(--primary-light);
}
.func-block:hover .block-icon { color: var(--primary); }

.block-icon {
    width: 60px; height: 60px; margin: 0 auto 14px;
    color: var(--text-light);
    transition: color 0.3s;
}
.block-icon svg { width: 100%; height: 100%; }

.block-label {
    font-size: 1rem; font-weight: 600;
    color: var(--text);
}

/* ---------- 底部双栏 ---------- */
.bottom-modules {
    max-width: var(--max-w);
    margin: 0 auto 40px;
    padding: 0 24px;
}

.modules-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 24px;
}

.module-left, .module-right {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

/* 模块标题 */
.module-title {
    font-size: 1.1rem; font-weight: 700;
    color: var(--text);
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 16px;
}
.title-bar {
    display: inline-block; width: 4px; height: 20px;
    background: var(--primary); border-radius: 2px;
}

.module-title-row {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 4px;
}
.module-title-row .module-title { margin-bottom: 0; }

.more-btn {
    padding: 4px 8px; border-radius: 4px;
    color: var(--text-muted); transition: all 0.2s;
    display: flex; align-items: center;
}
.more-btn:hover { color: var(--primary); background: rgba(192,57,43,0.08); }

/* 功能链接 */
.module-links { display: flex; flex-direction: column; gap: 12px; }
.link-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; border-radius: 6px;
    font-size: 0.95rem; color: var(--text-light);
    transition: all 0.2s;
    border: 1px solid transparent;
}
.link-item:hover {
    color: var(--primary); background: rgba(192,57,43,0.05);
    border-color: rgba(192,57,43,0.15);
}
.link-item svg { flex-shrink: 0; color: var(--text-muted); }
.link-item:hover svg { color: var(--primary); }

/* 公告列表 */
.notice-list {
    display: flex; flex-direction: column; gap: 8px;
}
.notice-item a {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; border-radius: 6px;
    font-size: 0.93rem; color: var(--text-light);
    transition: all 0.2s;
    border-bottom: 1px solid var(--border);
}
.notice-item:last-child a { border-bottom: none; }
.notice-item a:hover {
    color: var(--primary); background: rgba(192,57,43,0.04);
}
.notice-dot {
    flex-shrink: 0; width: 6px; height: 6px;
    border-radius: 50%; background: var(--gold);
}

/* ---------- 页脚 ---------- */
.site-footer {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: rgba(255,255,255,0.5); text-align: center;
    padding: 24px; font-size: 0.85rem;
}
.site-footer p + p { margin-top: 4px; }

/* ====== 响应式 ====== */
@media (max-width: 900px) {
    .blocks-container { grid-template-columns: repeat(2, 1fr); }
    .modules-container { grid-template-columns: 1fr; }
    .hero-banner { height: auto; }
}

@media (max-width: 560px) {
    .blocks-container { grid-template-columns: 1fr; }
    .nav-container { padding: 0 12px; }
    .logo-text { font-size: 1.1rem; }
    .hero-banner { height: auto; }
}

/* 自定义改动 */
.block-label { font-size: 0.78rem; white-space: nowrap; }
.logo-full { height: auto; width: auto; max-width: 200px; max-height: 50px; object-fit: contain; }
