/* ═══════════════════════════════════════════════
   深圳HPV V8 — 蓝色主题样式表
   主色：#1e40af 深蓝 | 强调色：#f59e0b 琥珀
   ═══════════════════════════════════════════════ */

/* ── Reset & Base ──────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: -apple-system, "Microsoft YaHei", "PingFang SC", sans-serif;
    background: #f0f9ff;
    color: #1e293b;
    line-height: 1.7;
}
a { color: #1e40af; text-decoration: none; }
a:hover { color: #1d4ed8; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ── Top Bar ───────────────────────────────────── */
.top-bar {
    background: linear-gradient(135deg, #1e40af, #1e3a8a);
    color: #e0e7ff;
    font-size: 0.82rem;
    padding: 8px 0;
}
.top-bar .container {
    display: flex; justify-content: space-between; align-items: center;
}
.top-bar .consult-btn {
    background: #f59e0b; color: #1e3a8a;
    padding: 4px 16px; border-radius: 20px;
    font-weight: 700; font-size: 0.82rem;
}
.top-bar .consult-btn:hover { background: #d97706; color: #fff; }
.lang-switch {
    margin-left: 14px; cursor: pointer;
    border: 1px solid rgba(255,255,255,0.4); border-radius: 4px;
    padding: 2px 10px; font-size: 0.78rem; color: #e0e7ff;
}
.lang-switch:hover { background: rgba(255,255,255,0.15); }

/* ── Header Banner ────────────────────────────── */
.header-banner {
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
    color: #fff; text-align: center;
    padding: 36px 20px 30px;
}
.header-banner h1 { font-size: 1.7rem; font-weight: 800; letter-spacing: 0.05em; }
.header-banner p  { font-size: 0.95rem; opacity: 0.85; margin-top: 6px; }

/* ── Nav ──────────────────────────────────────── */
.header {
    background: #fff; border-bottom: 3px solid #1e40af;
    position: sticky; top: 0; z-index: 100;
    box-shadow: 0 2px 12px rgba(30,64,175,0.08);
}
.header .container { display: flex; align-items: center; height: 58px; gap: 6px; }
.logo { font-size: 1.15rem; font-weight: 800; color: #1e40af; margin-right: auto; }
.nav a {
    padding: 8px 14px; border-radius: 6px;
    font-size: 0.88rem; color: #334155; font-weight: 500;
}
.nav a:hover, .nav a.active { background: #dbeafe; color: #1e40af; }

/* ── Hero Section ─────────────────────────────── */
.hero-section { padding: 40px 0; }
.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.badge {
    background: #dbeafe; color: #1e40af;
    padding: 5px 14px; border-radius: 20px;
    font-size: 0.8rem; font-weight: 600;
}
.hero-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 22px; }

/* ── Category Cards ───────────────────────────── */
.cat-card {
    background: #fff; border-radius: 14px;
    overflow: hidden; box-shadow: 0 4px 16px rgba(30,64,175,0.07);
    transition: transform 0.2s, box-shadow 0.2s;
    border-top: 4px solid #3b82f6;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(30,64,175,0.13); }
.cat-card img { width: 100%; height: 160px; object-fit: cover; }
.cat-card h3 { padding: 14px 16px 4px; font-size: 1rem; color: #1e3a8a; }
.cat-card p  { padding: 0 16px 16px; font-size: 0.85rem; color: #64748b; }

/* ── Article Cards ─────────────────────────────── */
.article-card {
    background: #fff; border-radius: 12px; overflow: hidden;
    box-shadow: 0 2px 10px rgba(30,64,175,0.06);
    display: flex; gap: 18px; padding: 16px;
    border-left: 4px solid #3b82f6;
    transition: box-shadow 0.2s;
}
.article-card:hover { box-shadow: 0 4px 18px rgba(30,64,175,0.12); }
.article-card img { width: 180px; height: 130px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.article-card h3 { font-size: 1rem; color: #1e3a8a; margin-bottom: 6px; }
.article-card .excerpt { font-size: 0.85rem; color: #64748b; }
.article-card .meta { font-size: 0.78rem; color: #94a3b8; margin-top: 8px; }

/* ── Featured Article (首页大图) ───────────────── */
.featured-section { margin-bottom: 36px; }
.featured-article {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    border-radius: 16px; overflow: hidden; color: #fff;
    display: flex; min-height: 280px;
}
.featured-article img { width: 50%; object-fit: cover; }
.featured-article .content { padding: 32px; display: flex; flex-direction: column; justify-content: center; }
.featured-article h2 { font-size: 1.5rem; margin-bottom: 12px; }
.featured-article p  { opacity: 0.88; font-size: 0.92rem; }

/* ── Breadcrumb ───────────────────────────────── */
.breadcrumb {
    font-size: 0.82rem; color: #94a3b8;
    padding: 16px 0 10px;
}
.breadcrumb a { color: #3b82f6; }

/* ── Content Wrapper (文章页双栏) ────────────── */
.content-wrapper { display: flex; gap: 28px; padding: 24px 0 48px; }
.main-content { flex: 1; min-width: 0; }
.sidebar     { width: 300px; flex-shrink: 0; }

/* ── Article Detail ────────────────────────────── */
.article-detail {
    background: #fff; border-radius: 14px;
    padding: 32px; box-shadow: 0 2px 12px rgba(30,64,175,0.06);
}
.article-detail h1 { font-size: 1.5rem; color: #1e3a8a; margin-bottom: 12px; }
.article-meta { font-size: 0.82rem; color: #94a3b8; margin-bottom: 24px; }
.article-body { line-height: 1.9; font-size: 0.95rem; color: #334155; }
.article-body h3 { color: #1e40af; margin: 24px 0 12px; font-size: 1.1rem; }
.article-body p  { margin-bottom: 14px; }
.article-body ul { padding-left: 20px; margin-bottom: 14px; }

/* ── Sidebar Widget ───────────────────────────── */
.widget {
    background: #fff; border-radius: 12px;
    padding: 20px; margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(30,64,175,0.05);
    border-top: 3px solid #3b82f6;
}
.widget h3 { font-size: 0.95rem; color: #1e40af; margin-bottom: 14px; }
.widget li {
    list-style: none; padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.88rem;
}
.widget li:last-child { border-bottom: none; }
.widget a { color: #334155; }
.widget a:hover { color: #1e40af; }

/* ── Pagination ───────────────────────────────── */
.pagination { display: flex; gap: 6px; justify-content: center; padding: 28px 0; }
.pagination a, .pagination span {
    padding: 7px 14px; border-radius: 8px;
    font-size: 0.85rem; background: #fff;
    box-shadow: 0 1px 4px rgba(30,64,175,0.08);
}
.pagination a:hover { background: #dbeafe; color: #1e40af; }
.pagination .current { background: #1e40af; color: #fff; }

/* ── Float Buttons ────────────────────────────── */
.float-btns {
    position: fixed; right: 24px; bottom: 120px;
    display: flex; flex-direction: column; gap: 10px; z-index: 999;
}
.float-btn {
    padding: 10px 18px; border-radius: 24px;
    font-size: 0.85rem; font-weight: 700;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
    color: #fff; text-align: center;
}
.consult-float   { background: linear-gradient(135deg, #f59e0b, #d97706); }
.appointment-float { background: linear-gradient(135deg, #1e40af, #3b82f6); }
.float-btn:hover { transform: scale(1.05); }

/* ── Modal (预约/咨询弹窗) ────────────────────── */
.modal-overlay {
    display: none; position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); z-index: 9999;
    justify-content: center; align-items: center;
}
.modal-overlay.active { display: flex; }
.modal-box {
    background: #fff; border-radius: 16px;
    width: 90%; max-width: 440px; padding: 28px 24px;
    position: relative; box-shadow: 0 8px 30px rgba(0,0,0,0.18);
}
.modal-box .close-btn {
    position: absolute; top: 12px; right: 16px;
    font-size: 1.6rem; cursor: pointer; color: #94a3b8;
}
.modal-box h3 { color: #1e40af; margin-bottom: 6px; }
.modal-box .form-group { margin-top: 14px; }
.modal-box label { font-size: 0.85rem; color: #475569; font-weight: 600; }
.modal-box input,
.modal-box textarea {
    width: 100%; padding: 10px 14px;
    border: 1px solid #bfdbfe; border-radius: 10px;
    font-size: 0.9rem; margin-top: 4px;
}
.modal-box input:focus, .modal-box textarea:focus {
    outline: none; border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}
.btn-submit {
    margin-top: 18px; width: 100%; padding: 12px;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: #fff; border: none; border-radius: 10px;
    font-size: 1rem; font-weight: 700; cursor: pointer;
}
.btn-submit:hover { opacity: 0.92; }

/* ── Admin Login ──────────────────────────────── */
.admin-login {
    min-height: 100vh; display: flex;
    justify-content: center; align-items: center;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
}
.login-box {
    background: #fff; border-radius: 16px;
    padding: 40px 36px; width: 380px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}
.login-box h2 { text-align: center; color: #1e40af; margin-bottom: 28px; }
.login-box .form-group { margin-bottom: 18px; }
.login-box label { font-size: 0.88rem; color: #475569; font-weight: 600; }
.login-box input {
    width: 100%; padding: 10px 14px;
    border: 1px solid #bfdbfe; border-radius: 10px;
    font-size: 0.95rem; margin-top: 4px;
}
.login-box .btn-login {
    width: 100%; padding: 12px;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: #fff; border: none; border-radius: 10px;
    font-size: 1rem; font-weight: 700; cursor: pointer;
}

/* ── Admin Layout ─────────────────────────────── */
.admin-body { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 220px; background: #1e293b;
    color: #e2e8f0; padding: 24px 0;
}
.admin-sidebar h2 { text-align: center; color: #60a5fa; margin-bottom: 28px; font-size: 1.1rem; }
.admin-sidebar a {
    display: block; padding: 12px 24px;
    color: #cbd5e1; font-size: 0.9rem;
}
.admin-sidebar a:hover, .admin-sidebar a.active { background: #334155; color: #60a5fa; }
.admin-main { flex: 1; background: #f1f5f9; padding: 28px; }

/* ── Footer ───────────────────────────────────── */
.footer {
    background: #1e293b; color: #94a3b8;
    padding: 36px 0 20px; font-size: 0.85rem;
}
.footer h3 { color: #60a5fa; margin-bottom: 12px; font-size: 0.95rem; }
.footer a { color: #94a3b8; }
.footer a:hover { color: #60a5fa; }
.footer-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 28px; }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid #334155; margin-top: 28px; }

/* ── Responsive ───────────────────────────────── */
@media (max-width: 768px) {
    .featured-article { flex-direction: column; }
    .featured-article img { width: 100%; height: 180px; }
    .content-wrapper { flex-direction: column; }
    .sidebar { width: 100%; }
    .article-card { flex-direction: column; }
    .article-card img { width: 100%; height: 160px; }
    .footer-grid { grid-template-columns: repeat(2,1fr); }
    .admin-sidebar { display: none; }
}
