/**
 * 深圳HPV V5 样式表
 * HPV风格 · 紫色渐变 · 现代卡片式版式
 * 主色：#7c3aed（紫色）#ec4899（粉紫）#06b6d4（青）
 */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.8; color: #1e293b; background: #faf5ff;
    min-height: 100vh;
}
a { color: #7c3aed; text-decoration: none; transition: color 0.3s; }
a:hover { color: #ec4899; }
img { max-width: 100%; height: auto; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== Top Bar 语言栏 ===== */
.top-bar {
    background: linear-gradient(135deg, #4c1d95, #7c3aed);
    color: #ede9fe; font-size: 0.82rem;
    padding: 6px 0; position: sticky; top: 0; z-index: 1001;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.lang-switch {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(236,72,153,0.3); padding: 3px 12px; border-radius: 12px;
    color: #faf5ff; font-size: 0.8rem; cursor: pointer;
    border: 1px solid rgba(236,72,153,0.4); transition: all 0.3s;
}
.lang-switch:hover { background: rgba(236,72,153,0.5); }

/* ===== Header ===== */
.header {
    background: #fff;
    box-shadow: 0 2px 20px rgba(124,58,237,0.08);
    position: sticky; top: 28px; z-index: 1000;
}
.header .container {
    display: none; /* layout handled by hero */
}
.header-inner {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 0;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-badge {
    width: 48px; height: 48px;
    background: linear-gradient(135deg, #7c3aed, #ec4899);
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.1rem; font-weight: 700;
    box-shadow: 0 4px 12px rgba(124,58,237,0.3);
}
.logo h1 { font-size: 1.3rem; color: #1e1b4b; font-weight: 700; }
.logo .tagline { font-size: 0.75rem; color: #7c3aed; letter-spacing: 1px; }
.nav-menu { display: flex; list-style: none; gap: 4px; align-items: center; }
.nav-menu a {
    color: #475569; padding: 8px 16px; border-radius: 8px;
    font-size: 0.92rem; font-weight: 500; transition: all 0.3s;
}
.nav-menu a:hover, .nav-menu a.active {
    color: #7c3aed; background: rgba(124,58,237,0.06);
}
.nav-toggle {
    display: none; background: none; border: 1px solid #e9d5ff;
    border-radius: 6px; padding: 8px 10px; cursor: pointer;
    flex-direction: column; gap: 5px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: #7c3aed; border-radius: 2px; }
@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-menu { display: none; width: 100%; flex-direction: column; gap: 2px; padding-top: 10px; }
    .nav-menu.open { display: flex; }
    .header-inner { flex-wrap: wrap; }
}

/* ===== Hero Section ===== */
.hero-section {
    background: linear-gradient(135deg, #1e1b4b 0%, #4c1d95 50%, #7c3aed 100%);
    border-radius: 0 0 24px 24px;
    padding: 60px 0 50px; color: #fff; position: relative; overflow: hidden;
}
.hero-section::before {
    content: ''; position: absolute; top: -50%; right: -20%;
    width: 500px; height: 500px; border-radius: 50%;
    background: rgba(236,72,153,0.1); pointer-events: none;
}
.hero-section .container { position: relative; z-index: 1; }
.hero-section h2 { font-size: 2.2rem; margin-bottom: 14px; line-height: 1.3; }
.hero-section h2 span { color: #f0abfc; }
.hero-section p { color: #ede9fe; font-size: 1.05rem; max-width: 600px; line-height: 1.8; }
.hero-badges { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.badge {
    background: rgba(236,72,153,0.2); border: 1px solid rgba(236,72,153,0.4);
    color: #f0abfc; padding: 5px 14px; border-radius: 20px;
    font-size: 0.82rem;
}

/* ===== Grid Layout V5 ===== */
.index-grid { display: grid; grid-template-columns: 1fr 300px; gap: 30px; margin-top: 30px; }
@media (max-width: 960px) { .index-grid { grid-template-columns: 1fr; } }

/* ===== Section Title ===== */
.section-title {
    color: #1e1b4b; font-size: 1.15rem; padding-bottom: 10px;
    border-bottom: 2px solid #7c3aed; margin-bottom: 18px;
    display: flex; align-items: center; gap: 10px;
}
.section-title::before {
    content: ''; width: 4px; height: 22px;
    background: linear-gradient(to bottom, #7c3aed, #ec4899);
    border-radius: 2px;
}

/* ===== Article Card V5 (New Style) ===== */
.article-list { display: flex; flex-direction: column; gap: 14px; }
.article-card {
    background: #fff; border: 1px solid #f3e8ff; border-radius: 14px;
    padding: 20px 22px; transition: all 0.3s;
    border-left: 3px solid transparent;
}
.article-card:hover {
    border-color: #e9d5ff; border-left-color: #7c3aed;
    box-shadow: 0 4px 20px rgba(124,58,237,0.08); transform: translateX(2px);
}
.article-card-title { font-size: 1.02rem; font-weight: 600; line-height: 1.5; margin-bottom: 8px; }
.article-card-title a { color: #1e1b4b; }
.article-card-title a:hover { color: #7c3aed; }
.article-card-meta { display: flex; gap: 15px; font-size: 0.78rem; color: #94a3b8; }
.article-card-summary { color: #64748b; font-size: 0.85rem; margin-top: 8px; line-height: 1.7; }

/* ===== Sidebar V5 ===== */
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar-card {
    background: #fff; border: 1px solid #f3e8ff;
    border-radius: 14px; padding: 20px;
}
.sidebar-card h3 { color: #1e1b4b; font-size: 0.95rem; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid #faf5ff; }
.sidebar-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.sidebar-links a { color: #475569; font-size: 0.88rem; padding: 4px 0; transition: all 0.2s; }
.sidebar-links a:hover { color: #7c3aed; padding-left: 6px; }
.sidebar-cta {
    background: linear-gradient(135deg, #7c3aed, #6d28d9); color: #fff;
    border: none; padding: 11px; border-radius: 10px; font-size: 0.92rem;
    cursor: pointer; width: 100%; transition: all 0.3s; font-weight: 500;
}
.sidebar-cta:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(124,58,237,0.3); }
.sidebar-cta-secondary {
    background: #fff; color: #7c3aed; border: 1px solid #7c3aed;
    padding: 10px; border-radius: 10px; font-size: 0.92rem;
    cursor: pointer; width: 100%; transition: all 0.3s;
}
.sidebar-cta-secondary:hover { background: #faf5ff; }

/* ===== News List V5 ===== */
.page-header { margin-bottom: 25px; }
.page-header h2 { color: #1e1b4b; font-size: 1.5rem; }
.page-header p { color: #94a3b8; font-size: 0.88rem; }
.breadcrumb { margin-bottom: 20px; font-size: 0.82rem; color: #94a3b8; }
.breadcrumb a { color: #7c3aed; }
.filter-bar { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.filter-btn {
    background: #fff; border: 1px solid #e9d5ff; color: #7c3aed;
    padding: 6px 16px; border-radius: 20px; font-size: 0.82rem; cursor: pointer; transition: all 0.3s;
}
.filter-btn:hover, .filter-btn.active { background: #7c3aed; color: #fff; border-color: #7c3aed; }
.news-item {
    background: #fff; border: 1px solid #f3e8ff; border-radius: 14px;
    padding: 22px 24px; display: flex; gap: 22px; transition: all 0.3s;
}
.news-item:hover { border-color: #e9d5ff; box-shadow: 0 4px 20px rgba(124,58,237,0.06); }
.news-thumb-placeholder {
    width: 150px; height: 100px; flex-shrink: 0;
    background: linear-gradient(135deg, #faf5ff, #ede9fe);
    border-radius: 10px; display: flex; align-items: center; justify-content: center;
    font-size: 2rem; color: #7c3aed;
}
.news-content { flex: 1; }
.news-content h3 { font-size: 1.02rem; color: #1e1b4b; margin-bottom: 6px; }
.news-content h3 a { color: #1e1b4b; }
.news-content h3 a:hover { color: #7c3aed; }
.news-meta { display: flex; gap: 15px; font-size: 0.78rem; color: #94a3b8; margin-bottom: 8px; }
.news-summary { color: #64748b; font-size: 0.85rem; line-height: 1.7; }
@media (max-width: 600px) { .news-item { flex-direction: column; } .news-thumb-placeholder { width: 100%; height: 120px; } }

/* ===== Article Detail V5 ===== */
.content-wrapper { max-width: 800px; margin: 0 auto; }
.article-detail {
    background: #fff; border: 1px solid #f3e8ff;
    border-radius: 18px; padding: 44px 48px;
}
.article-header { margin-bottom: 28px; padding-bottom: 22px; border-bottom: 1px solid #f3e8ff; }
.article-header h1 { color: #1e1b4b; font-size: 1.7rem; line-height: 1.4; margin-bottom: 14px; }
.article-meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: 0.82rem; color: #94a3b8; }
.article-meta .category {
    background: linear-gradient(135deg, #faf5ff, #ede9fe);
    color: #7c3aed; padding: 3px 12px; border-radius: 12px; font-size: 0.78rem;
}
.article-summary {
    background: linear-gradient(135deg, #faf5ff, #f3e8ff);
    border-left: 3px solid #7c3aed;
    padding: 16px 20px; border-radius: 0 10px 10px 0;
    color: #475569; font-size: 0.92rem; margin-bottom: 24px;
}
.article-body { color: #334155; font-size: 1rem; line-height: 1.95; }
.article-body h3, .article-body h4 { color: #1e1b4b; margin: 26px 0 14px; }
.article-body h3 { font-size: 1.15rem; padding-bottom: 8px; border-bottom: 1px solid #f3e8ff; }
.article-body p { margin-bottom: 14px; }
.article-body ul, .article-body ol { margin: 14px 0; padding-left: 24px; }
.article-body li { margin-bottom: 8px; }

/* ===== Related Articles ===== */
.related-articles { margin-top: 38px; padding-top: 28px; border-top: 1px solid #f3e8ff; }
.related-articles h3 { color: #1e1b4b; font-size: 1.05rem; margin-bottom: 14px; }
.related-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.related-item { background: #faf5ff; border: 1px solid #e9d5ff; border-radius: 10px; padding: 14px; transition: all 0.3s; }
.related-item:hover { border-color: #7c3aed; background: #fff; }
.related-item a { color: #475569; font-size: 0.85rem; }
.related-item a:hover { color: #7c3aed; }
.related-item .date { font-size: 0.72rem; color: #94a3b8; margin-top: 4px; display: block; }

/* ===== Pagination ===== */
.pagination { display: flex; justify-content: center; gap: 6px; margin: 35px 0; flex-wrap: wrap; }
.pagination a, .pagination span {
    padding: 8px 14px; background: #fff; border: 1px solid #e9d5ff;
    color: #7c3aed; border-radius: 8px; font-size: 0.88rem; transition: all 0.3s;
}
.pagination a:hover { background: #faf5ff; border-color: #7c3aed; }
.pagination .current { background: #7c3aed; border-color: #7c3aed; color: #fff; }

/* ===== Footer V5 ===== */
.footer {
    background: linear-gradient(135deg, #1e1b4b, #4c1d95);
    color: #ede9fe; padding: 40px 0 18px; margin-top: 50px;
}
.footer-content { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 30px; margin-bottom: 25px; }
.footer-info h3 { color: #fff; font-size: 1.05rem; margin-bottom: 10px; }
.footer-info p { color: #c4b5fd; font-size: 0.85rem; }
.footer-links h4 { color: #f0abfc; font-size: 0.9rem; margin-bottom: 12px; }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.footer-links a { color: #c4b5fd; font-size: 0.85rem; }
.footer-links a:hover { color: #fff; }
.footer-copyright {
    text-align: center; padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #a78bfa; font-size: 0.78rem;
}
@media (max-width: 768px) { .footer-content { grid-template-columns: 1fr; } .article-detail { padding: 22px 18px; } .hero-section h2 { font-size: 1.6rem; } }

/* ===== Floating Buttons V5 (Now Links) ===== */
.consult-float {
    position: fixed; bottom: 30px; right: 30px;
    width: auto; min-width: 56px; height: 56px;
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    border-radius: 28px; display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 0.9rem; cursor: pointer;
    box-shadow: 0 4px 18px rgba(124,58,237,0.4);
    z-index: 9998; transition: all 0.3s; padding: 0 20px; gap: 8px;
    text-decoration: none;
}
.consult-float:hover { transform: scale(1.05); box-shadow: 0 6px 24px rgba(124,58,237,0.5); color: #fff; }
.consult-float .icon { font-size: 1.3rem; }

.appointment-float {
    position: fixed; bottom: 96px; right: 30px;
    width: 56px; height: 56px;
    background: linear-gradient(135deg, #ec4899, #f97316);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.4rem; cursor: pointer;
    box-shadow: 0 4px 18px rgba(236,72,153,0.4);
    z-index: 9998; transition: all 0.3s; text-decoration: none;
}
.appointment-float:hover { transform: scale(1.1); color: #fff; }

/* ===== Admin ===== */
.admin-container { display: grid; grid-template-columns: 200px 1fr; min-height: 100vh; }
.admin-sidebar { background: linear-gradient(180deg, #1e1b4b, #4c1d95); padding: 20px 12px; }
.admin-sidebar h2 { color: #fff; font-size: 1rem; margin-bottom: 22px; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.sidebar-nav { display: flex; flex-direction: column; gap: 3px; }
.sidebar-nav a { color: #c4b5fd; padding: 9px 12px; border-radius: 8px; font-size: 0.88rem; }
.sidebar-nav a:hover, .sidebar-nav a.active { background: rgba(236,72,153,0.25); color: #fff; }
.admin-main { padding: 25px; background: #faf5ff; }
.admin-header { margin-bottom: 22px; }
.admin-header h1 { color: #1e1b4b; font-size: 1.3rem; }
.error-msg { background: #fef2f2; border: 1px solid #fecaca; color: #dc2626; padding: 10px 14px; border-radius: 8px; margin-bottom: 18px; font-size: 0.88rem; }
.success-msg { background: #f0fdf4; border: 1px solid #bbf7d0; color: #16a34a; padding: 10px 14px; border-radius: 8px; margin-bottom: 18px; font-size: 0.88rem; }
.admin-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid #e9d5ff; }
.admin-table th { background: #faf5ff; color: #7c3aed; padding: 10px 12px; text-align: left; font-size: 0.82rem; font-weight: 600; border-bottom: 1px solid #e9d5ff; }
.admin-table td { color: #334155; padding: 10px 12px; border-top: 1px solid #faf5ff; font-size: 0.85rem; }
.admin-table tr:hover td { background: #faf5ff; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; color: #475569; font-size: 0.88rem; margin-bottom: 5px; font-weight: 500; }
.form-group input[type="text"], .form-group textarea, .form-group select {
    width: 100%; padding: 9px 12px; background: #faf5ff; border: 1px solid #e9d5ff;
    border-radius: 8px; color: #1e293b; font-size: 0.9rem; font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: #7c3aed; box-shadow: 0 0 0 3px rgba(124,58,237,0.1); }
.btn-submit { background: #7c3aed; color: #fff; border: none; padding: 10px 28px; border-radius: 8px; font-size: 0.92rem; cursor: pointer; }
.btn-submit:hover { background: #6d28d9; }
.btn-cancel { color: #64748b; padding: 10px 18px; border: 1px solid #e9d5ff; border-radius: 8px; }
.form-actions { display: flex; gap: 12px; margin-top: 22px; }
.status-published { background: #f0fdf4; color: #16a34a; padding: 2px 8px; border-radius: 8px; font-size: 0.75rem; }
.status-draft { background: #fffbeb; color: #d97706; padding: 2px 8px; border-radius: 8px; font-size: 0.75rem; }
@media (max-width: 768px) { .admin-container { grid-template-columns: 1fr; } }
