/* ============================================================
   首页样式 - Hero + 倒计时 + 9宫格 + 公告
   政务蓝主调，紧凑信息密度
   ============================================================ */

/* ---------- Hero 大图区 ---------- */
.hero {
    position: relative;
    min-height: 320px;
    background: linear-gradient(135deg, #001529 0%, #003a8c 40%, #0050b3 70%, #1890ff 100%);
    overflow: hidden;
    color: #fff;
    display: flex;
    align-items: center;
}

/* 港珠澳大桥线条装饰 */
.hero::before {
    content: '';
    position: absolute;
    top: 30%;
    right: -50px;
    width: 400px;
    height: 400px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 40px var(--space-lg);
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.hero-title {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: var(--space-sm);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 14px;
    opacity: 0.85;
    margin-bottom: var(--space-lg);
    letter-spacing: 1px;
}

/* 倒计时 */
.countdown {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: var(--space-md) var(--space-lg);
    display: inline-flex;
    align-items: center;
    gap: var(--space-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.countdown-label {
    font-size: 14px;
    opacity: 0.9;
}

.countdown-numbers {
    font-family: var(--font-mono);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
}

.countdown-numbers .unit {
    font-size: 13px;
    font-weight: 400;
    opacity: 0.7;
    margin: 0 6px 0 2px;
}

/* ---------- 9 宫格 ---------- */
.section {
    padding: var(--space-xl) var(--space-md);
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--c-text);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.section-title::before {
    content: '';
    width: 4px;
    height: 18px;
    background: var(--c-primary);
    border-radius: 2px;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
    background: var(--c-white);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    box-shadow: var(--shadow);
}

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-md) var(--space-sm);
    text-align: center;
    cursor: pointer;
    border-radius: var(--radius);
    transition: all 0.2s;
    text-decoration: none;
    color: var(--c-text);
}

.menu-item:hover {
    background: var(--c-bg-2);
    transform: translateY(-2px);
}

.menu-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-sm);
    color: #fff;
}

.menu-icon svg {
    width: 24px;
    height: 24px;
}

.menu-label {
    font-size: 13px;
    color: var(--c-text-2);
    font-weight: 500;
}

.menu-item.highlight .menu-label {
    color: var(--c-danger);
    font-weight: 600;
}

.menu-item.highlight .menu-icon {
    box-shadow: 0 0 0 2px var(--c-danger);
}

/* ---------- 公告区 ---------- */
.notice-card {
    background: var(--c-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.notice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md);
    border-bottom: 1px solid var(--c-bg);
}

.notice-header h3 {
    font-size: 15px;
    color: var(--c-text);
    font-weight: 600;
}

.notice-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px var(--space-md);
    border-bottom: 1px solid var(--c-bg);
    cursor: pointer;
    transition: background 0.2s;
}

.notice-list li:last-child {
    border-bottom: none;
}

.notice-list li:hover {
    background: var(--c-primary-light);
}

.notice-list .title {
    flex: 1;
    font-size: 14px;
    color: var(--c-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: var(--space-md);
}

.notice-list .title::before {
    content: '·';
    color: var(--c-primary);
    margin-right: 6px;
    font-weight: bold;
}

.notice-list .date {
    color: var(--c-text-3);
    font-size: 12px;
    flex-shrink: 0;
}

.notice-empty {
    padding: var(--space-xl);
    text-align: center;
    color: var(--c-text-3);
    font-size: 14px;
}

/* ---------- 公告与 9 宫格布局（PC 双栏）---------- */
.home-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    margin-top: var(--space-md);
}

/* ---------- PC 端响应式 ---------- */
@media (min-width: 768px) {
    .hero {
        min-height: 400px;
    }
    .hero-title {
        font-size: 48px;
    }
    .countdown-numbers {
        font-size: 30px;
    }
    .menu-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: var(--space-md);
        padding: var(--space-lg);
    }
    .menu-item {
        padding: var(--space-lg) var(--space-sm);
    }
    .menu-icon {
        width: 56px;
        height: 56px;
    }
    .menu-icon svg {
        width: 28px;
        height: 28px;
    }
    .menu-label {
        font-size: 14px;
    }
    .home-grid {
        grid-template-columns: 1.5fr 1fr;
    }
}

@media (min-width: 992px) {
    .hero-title {
        font-size: 56px;
    }
    .menu-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* ---------- 移动端底部 Tab ---------- */
.mobile-tabbar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--c-white);
    border-top: 1px solid var(--c-border);
    z-index: 100;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.mobile-tabbar-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 56px;
}

.mobile-tabbar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--c-text-3);
    font-size: 11px;
    text-decoration: none;
    padding: 4px;
    flex: 1;
}

.mobile-tabbar-item svg {
    width: 22px;
    height: 22px;
    margin-bottom: 2px;
}

.mobile-tabbar-item.active {
    color: var(--c-primary);
}

.mobile-tabbar-item.center {
    margin-top: -20px;
}

.mobile-tabbar-item.center .icon {
    width: 44px;
    height: 44px;
    background: var(--c-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.4);
}

.mobile-tabbar-item.center .icon svg {
    width: 24px;
    height: 24px;
    margin: 0;
}

.mobile-tabbar-spacer {
    height: 56px;
}

/* 移动端显示底部 Tab */
@media (max-width: 768px) {
    .mobile-tabbar { display: block; }
    .mobile-tabbar-spacer { display: block; }
    .navbar-nav { display: none; }
}
