/* ============================================================
   居家照护网 - 全局样式
   LNMP PHP7.4 / MySQL5.7 兼容
   ============================================================ */

/* ---------- CSS 变量 ---------- */
:root {
    --primary:    #2ecc71;
    --primary-dk: #27ae60;
    --primary-lt: #d5f5e3;
    --secondary:  #3498db;
    --accent:     #e74c3c;
    --warning:    #f39c12;
    --dark:       #2c3e50;
    --gray:       #7f8c8d;
    --light-bg:   #f4f6f8;
    --white:      #ffffff;
    --card-shadow: 0 4px 20px rgba(0,0,0,0.08);
    --radius:     10px;
    --transition: 0.25s ease;
    --nav-h:      64px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Segoe UI', sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: #333;
    background: var(--light-bg);
}

a { color: var(--primary-dk); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary); }
img { max-width: 100%; display: block; }

/* ---------- 布局容器 ---------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================================
   顶部公告条
   ============================================================ */
.top-bar {
    background: var(--dark);
    color: #bdc3c7;
    font-size: 0.82rem;
    padding: 7px 0;
}
.top-bar .container {
    display: flex;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap;
}
.top-bar .sep { opacity: 0.4; }
.top-bar i { margin-right: 5px; color: var(--primary); }

/* ============================================================
   导航栏
   ============================================================ */
.navbar {
    background: var(--white);
    height: var(--nav-h);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 100%;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-dk);
    white-space: nowrap;
    flex-shrink: 0;
}
.logo i { font-size: 1.6rem; color: var(--primary); }

/* 导航链接列表 */
.nav-links {
    display: flex;
    list-style: none;
    gap: 4px;
    flex: 1;
    justify-content: center;
    align-items: center;
}

.nav-links > li { position: relative; }

.nav-links a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 6px;
    color: var(--dark);
    font-size: 0.93rem;
    font-weight: 500;
    transition: all var(--transition);
    white-space: nowrap;
}
.nav-links a i { font-size: 0.85rem; }
.nav-links a .arrow-icon { font-size: 0.7rem; transition: transform var(--transition); }

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-dk);
    background: var(--primary-lt);
}
.nav-links a.active {
    font-weight: 700;
}

/* 下拉菜单 */
.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    min-width: 190px;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border: 1px solid #eee;
    overflow: hidden;
    animation: fadeInDown 0.2s ease;
}

@keyframes fadeInDown {
    from { opacity:0; transform: translateX(-50%) translateY(-8px); }
    to   { opacity:1; transform: translateX(-50%) translateY(0); }
}

.dropdown:hover .dropdown-menu { display: block; }
.dropdown:hover .arrow-icon { transform: rotate(180deg); }

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 18px;
    border-radius: 0;
    color: #444;
    font-size: 0.88rem;
}
.dropdown-menu a:hover { background: var(--primary-lt); color: var(--primary-dk); }
.dropdown-divider { border-top: 1px solid #eee; margin: 4px 0; }

/* 用户操作区 */
.user-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.welcome-text {
    color: var(--gray);
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 汉堡菜单按钮（移动端） */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    margin-left: auto;
}
.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ============================================================
   按钮
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 22px;
    border: 2px solid transparent;
    border-radius: 6px;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    text-decoration: none;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-sm { padding: 6px 14px; font-size: 0.83rem; }
.btn-lg { padding: 13px 32px; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}
.btn-primary:hover {
    background: var(--primary-dk);
    border-color: var(--primary-dk);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(46,204,113,0.4);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--primary-dk);
    border-color: var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--white);
    border-color: var(--secondary);
}
.btn-secondary:hover { background: #2980b9; border-color: #2980b9; color: var(--white); }

.btn-danger {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}
.btn-danger:hover { background: #c0392b; border-color: #c0392b; color: var(--white); }

/* ============================================================
   消息提示
   ============================================================ */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 18px;
    border-radius: var(--radius);
    margin: 18px 0;
    font-size: 0.9rem;
    animation: slideInDown 0.3s ease;
}
@keyframes slideInDown {
    from { opacity:0; transform: translateY(-10px); }
    to   { opacity:1; transform: translateY(0); }
}
.alert-success { background: #d5f5e3; color: #196f3d; border: 1px solid #a9dfbf; }
.alert-danger  { background: #fadbd8; color: #922b21; border: 1px solid #f1948a; }
.alert-warning { background: #fef9e7; color: #7d6608; border: 1px solid #f9e79f; }
.alert-info    { background: #d6eaf8; color: #1a5276; border: 1px solid #a9cce3; }

/* ============================================================
   卡片
   ============================================================ */
.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,0.12); }
.card-body { padding: 24px; }
.card-title { font-size: 1.1rem; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.card-text  { color: var(--gray); font-size: 0.88rem; }

/* ============================================================
   Hero 区块
   ============================================================ */
.hero {
    background: linear-gradient(135deg, #1abc9c 0%, #2ecc71 40%, #27ae60 100%);
    padding: 80px 0;
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 320px; height: 320px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -80px; left: -80px;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.hero h1 { font-size: 2.6rem; font-weight: 800; margin-bottom: 18px; text-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.hero p  { font-size: 1.15rem; opacity: 0.9; margin-bottom: 32px; max-width: 620px; margin-left: auto; margin-right: auto; }
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-btns .btn-white {
    background: var(--white);
    color: var(--primary-dk);
    border-color: var(--white);
    font-weight: 700;
}
.hero-btns .btn-white:hover { background: #f0f0f0; }
.hero-btns .btn-ghost {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.7);
}
.hero-btns .btn-ghost:hover { background: rgba(255,255,255,0.15); }

/* ============================================================
   统计数字条
   ============================================================ */
.stats-bar {
    background: var(--white);
    padding: 36px 0;
    box-shadow: var(--card-shadow);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}
.stat-item { padding: 10px; }
.stat-num  { font-size: 2.2rem; font-weight: 800; color: var(--primary-dk); }
.stat-label { color: var(--gray); font-size: 0.88rem; margin-top: 4px; }

/* ============================================================
   Section 通用
   ============================================================ */
.section { padding: 60px 0; }
.section-alt { background: var(--white); }

.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-size: 1.9rem; font-weight: 800; color: var(--dark); margin-bottom: 12px; }
.section-header p  { color: var(--gray); max-width: 580px; margin: 0 auto; }
.section-divider   { width: 48px; height: 4px; background: var(--primary); border-radius: 2px; margin: 14px auto 0; }

/* ============================================================
   特色服务网格
   ============================================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.feature-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px 20px;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: all var(--transition);
    border-top: 4px solid transparent;
}
.feature-card:hover { transform: translateY(-6px); border-top-color: var(--primary); }
.feature-icon {
    width: 70px; height: 70px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 18px;
}
.feature-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.feature-card p  { color: var(--gray); font-size: 0.87rem; }

/* ============================================================
   最新动态
   ============================================================ */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.news-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all var(--transition);
}
.news-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,0.12); }
.news-img {
    height: 160px;
    background: linear-gradient(135deg, var(--primary-lt), #a9dfbf);
    display: flex; align-items: center; justify-content: center;
    font-size: 3rem; color: var(--primary-dk);
}
.news-body { padding: 20px; }
.news-tag {
    display: inline-block;
    background: var(--primary-lt);
    color: var(--primary-dk);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    margin-bottom: 10px;
}
.news-title { font-weight: 700; color: var(--dark); margin-bottom: 8px; font-size: 0.97rem; }
.news-excerpt { color: var(--gray); font-size: 0.84rem; }
.news-meta { display: flex; justify-content: space-between; color: #aaa; font-size: 0.8rem; margin-top: 14px; }

/* ============================================================
   护工列表（同城搜索）
   ============================================================ */
.caregiver-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.caregiver-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--card-shadow);
    transition: all var(--transition);
}
.caregiver-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,0.12); }
.caregiver-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
}
.caregiver-avatar {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-lt), var(--primary));
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; color: var(--white);
    flex-shrink: 0;
}
.caregiver-info { flex: 1; margin-left: 14px; }
.caregiver-info h3 { font-size: 1rem; font-weight: 700; color: var(--dark); }
.caregiver-info .meta { font-size: 0.8rem; color: var(--gray); margin-top: 2px; }
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}
.badge-success { background: #d5f5e3; color: #196f3d; }
.badge-danger  { background: #fadbd8; color: #922b21; }

.caregiver-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tag {
    background: var(--light-bg);
    color: var(--gray);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
}
.tag-primary { background: var(--primary-lt); color: var(--primary-dk); }

.rating-row { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; color: var(--gray); font-size: 0.85rem; }
.text-warning { color: var(--warning); }

/* ============================================================
   论坛帖子列表
   ============================================================ */
.post-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 28px;
    border-bottom: 2px solid #eee;
    padding-bottom: 4px;
}
.tab-btn {
    padding: 8px 20px;
    border: none;
    background: none;
    border-radius: 6px 6px 0 0;
    cursor: pointer;
    font-size: 0.92rem;
    color: var(--gray);
    transition: all var(--transition);
    font-weight: 500;
    text-decoration: none;
}
.tab-btn:hover { color: var(--primary-dk); background: var(--primary-lt); }
.tab-btn.active { color: var(--primary-dk); background: var(--primary-lt); font-weight: 700; border-bottom: 2px solid var(--primary); }

.post-list { }
.post-item {
    background: var(--white);
    border-radius: var(--radius);
    padding: 22px 26px;
    margin-bottom: 14px;
    box-shadow: var(--card-shadow);
    display: flex;
    gap: 18px;
    transition: all var(--transition);
}
.post-item:hover { transform: translateX(4px); border-left: 4px solid var(--primary); }
.post-item-body { flex: 1; }
.post-item-body h3 { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.post-item-body h3 a { color: inherit; }
.post-item-body h3 a:hover { color: var(--primary-dk); }
.post-excerpt { color: var(--gray); font-size: 0.85rem; margin-bottom: 10px; }
.post-meta { display: flex; gap: 18px; font-size: 0.8rem; color: #aaa; }
.post-meta span { display: flex; align-items: center; gap: 4px; }
.post-tag {
    align-self: flex-start;
    background: var(--primary-lt);
    color: var(--primary-dk);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
}
.post-tag.salon { background: #fef9e7; color: #7d6608; }

/* ============================================================
   搜索表单
   ============================================================ */
.search-box {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--card-shadow);
    margin-bottom: 32px;
}
.search-box h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: 18px; color: var(--dark); }
.search-form {
    display: grid;
    grid-template-columns: repeat(4, 1fr) auto;
    gap: 14px;
    align-items: end;
}

/* ============================================================
   表单控件
   ============================================================ */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; color: var(--dark); margin-bottom: 7px; font-size: 0.9rem; }

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
select,
textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #dde2e7;
    border-radius: 7px;
    font-size: 0.92rem;
    background: #fff;
    color: #333;
    transition: border-color var(--transition), box-shadow var(--transition);
    font-family: inherit;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(46,204,113,0.2);
}
textarea { resize: vertical; min-height: 100px; }

.form-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 36px;
    box-shadow: var(--card-shadow);
    max-width: 460px;
    margin: 40px auto;
}
.form-card h1 { text-align: center; margin-bottom: 28px; color: var(--dark); font-size: 1.6rem; }
.form-hint { text-align: center; margin-top: 18px; color: var(--gray); font-size: 0.88rem; }
.form-hint a { color: var(--primary-dk); font-weight: 600; }

/* ============================================================
   智慧监护 - 产品卡片
   ============================================================ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 50px;
}
.product-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px 24px;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.product-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform var(--transition);
}
.product-card:hover::after { transform: scaleX(1); }
.product-card:hover { transform: translateY(-6px); box-shadow: 0 8px 30px rgba(0,0,0,0.12); }
.product-icon {
    width: 80px; height: 80px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; margin: 0 auto 18px;
}
.product-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.product-card p  { color: var(--gray); font-size: 0.86rem; margin-bottom: 16px; }
.product-card ul { text-align: left; color: var(--gray); font-size: 0.85rem; padding-left: 5px; }
.product-card ul li { padding: 3px 0; display: flex; align-items: center; gap: 6px; }
.product-card ul li::before { content: '✓'; color: var(--primary); font-weight: 700; flex-shrink: 0; }

/* 解决方案区 */
.solution-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 36px;
}
.solution-item { text-align: center; padding: 30px 20px; }
.solution-item .icon { font-size: 2.5rem; margin-bottom: 16px; }
.solution-item h3 { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.solution-item p  { color: var(--gray); font-size: 0.86rem; }

.highlight-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}
.highlight-item {
    background: var(--light-bg);
    border-radius: 8px;
    padding: 18px;
    text-align: center;
}
.highlight-item strong { display: block; color: var(--dark); margin-bottom: 5px; }
.highlight-item p { color: var(--gray); font-size: 0.82rem; }

/* ============================================================
   小区联络站
   ============================================================ */
.community-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.community-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--card-shadow);
    border-left: 4px solid var(--primary);
    transition: all var(--transition);
}
.community-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.community-card h3 { color: var(--primary-dk); font-size: 1rem; font-weight: 700; margin-bottom: 12px; }
.community-card .info-row { display: flex; align-items: center; gap: 8px; color: var(--gray); font-size: 0.86rem; margin-bottom: 7px; }
.community-card .info-row i { color: var(--primary); width: 16px; }

/* QR占位 */
.qr-box {
    display: inline-block;
    background: var(--white);
    border: 2px dashed #ddd;
    border-radius: 10px;
    padding: 24px;
    text-align: center;
    min-width: 180px;
}
.qr-box p { color: var(--gray); font-size: 0.8rem; margin-top: 8px; }
.qr-placeholder { text-align: center; }

/* ============================================================
   页脚
   ============================================================ */
.footer {
    background: var(--dark);
    color: #bdc3c7;
    padding: 60px 0 0;
    margin-top: 60px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-col h3, .footer-col h4 { color: var(--white); margin-bottom: 18px; font-size: 0.95rem; }
.footer-col h3 { font-size: 1.1rem; display: flex; align-items: center; gap: 8px; }
.footer-col h3 i { color: var(--primary); }
.footer-col p { font-size: 0.85rem; line-height: 1.8; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a { color: #bdc3c7; font-size: 0.85rem; display: flex; align-items: center; gap: 7px; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--primary); }
.contact-list { list-style: none; }
.contact-list li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; font-size: 0.85rem; }
.contact-list i { color: var(--primary); margin-top: 2px; flex-shrink: 0; }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a {
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #bdc3c7;
    font-size: 1rem;
    transition: all var(--transition);
}
.footer-social a:hover { background: var(--primary); color: var(--white); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 18px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    flex-wrap: wrap;
    gap: 10px;
}
.footer-bottom a { color: #bdc3c7; }
.footer-bottom a:hover { color: var(--primary); }
.footer-bottom .sep { opacity: 0.4; margin: 0 8px; }

/* ============================================================
   返回顶部
   ============================================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 46px; height: 46px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(46,204,113,0.5);
    transition: all var(--transition);
    z-index: 999;
}
.back-to-top:hover { background: var(--primary-dk); transform: translateY(-3px); }
.back-to-top.show { display: flex; }

/* ============================================================
   分页
   ============================================================ */
.pagination-wrap { display: flex; justify-content: center; margin-top: 36px; }
.pagination { list-style: none; display: flex; gap: 8px; }
.page-item { }
.page-link {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    border-radius: 6px;
    border: 1.5px solid #dde2e7;
    color: var(--dark);
    font-size: 0.88rem;
    transition: all var(--transition);
    text-decoration: none;
}
.page-link:hover, .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* ============================================================
   侧边栏
   ============================================================ */
.sidebar-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--card-shadow);
    margin-bottom: 20px;
}
.sidebar-card h4 { font-size: 0.95rem; font-weight: 700; color: var(--dark); margin-bottom: 14px; border-bottom: 2px solid var(--primary-lt); padding-bottom: 10px; }
.sidebar-list { list-style: none; }
.sidebar-list li { padding: 7px 0; border-bottom: 1px solid #f5f5f5; font-size: 0.86rem; display: flex; justify-content: space-between; align-items: center; }
.sidebar-list li a { color: var(--dark); }
.sidebar-list li a:hover { color: var(--primary-dk); }
.count { background: var(--primary-lt); color: var(--primary-dk); padding: 1px 8px; border-radius: 20px; font-size: 0.75rem; }

/* ============================================================
   活动卡片（线下沙龙）
   ============================================================ */
.event-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--card-shadow);
    margin-bottom: 14px;
    display: flex;
    gap: 18px;
    transition: all var(--transition);
}
.event-card:hover { transform: translateX(4px); border-left: 4px solid var(--warning); }
.event-date-box {
    background: var(--warning);
    color: var(--white);
    border-radius: 8px;
    min-width: 60px; text-align: center;
    padding: 10px 8px;
    flex-shrink: 0;
}
.event-date-box .day { font-size: 1.6rem; font-weight: 800; line-height: 1; }
.event-date-box .month { font-size: 0.75rem; opacity: 0.9; }
.event-body { flex: 1; }
.event-body h3 { font-size: 0.98rem; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.event-body p  { color: var(--gray); font-size: 0.84rem; margin-bottom: 10px; }
.event-info { display: flex; gap: 16px; font-size: 0.8rem; color: #aaa; }

/* ============================================================
   页面内 Banner（子页面）
   ============================================================ */
.page-hero {
    background: linear-gradient(135deg, #1abc9c, #27ae60);
    color: var(--white);
    padding: 50px 0;
    text-align: center;
}
.page-hero h1 { font-size: 2rem; font-weight: 800; margin-bottom: 10px; }
.page-hero p  { opacity: 0.88; }

/* 面包屑 */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.7);
    font-size: 0.83rem;
    justify-content: center;
    margin-top: 10px;
}
.breadcrumb a { color: rgba(255,255,255,0.85); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb .sep { opacity: 0.5; }

/* ============================================================
   工具类
   ============================================================ */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-muted  { color: var(--gray); }
.fw-bold     { font-weight: 700; }
.d-flex      { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 16px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 36px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 36px; }
.p-3 { padding: 24px; }
.rounded { border-radius: var(--radius); }
.shadow  { box-shadow: var(--card-shadow); }
.bg-white { background: var(--white); }
.bg-light { background: var(--light-bg); }
.w-100 { width: 100%; }
.main-content { min-height: 500px; }

/* 双列布局 */
.layout-sidebar {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    align-items: start;
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1024px) {
    .features-grid,
    .stats-grid,
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .caregiver-grid,
    .community-grid,
    .news-grid,
    .solution-grid { grid-template-columns: repeat(2, 1fr); }
    .highlight-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .layout-sidebar { grid-template-columns: 1fr; }
    .search-form { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .top-bar { display: none; }
    .navbar { height: auto; min-height: var(--nav-h); }
    .nav-container { flex-wrap: wrap; padding: 12px 20px; }

    .mobile-menu-btn { display: flex; }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 4px;
        padding: 12px 0;
        border-top: 1px solid #eee;
    }
    .nav-links.open { display: flex; }
    .nav-links > li { width: 100%; }
    .nav-links a { justify-content: flex-start; border-radius: 6px; }

    .dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        background: var(--light-bg);
        border-radius: 6px;
        margin-top: 4px;
        display: none;
    }
    .dropdown.open .dropdown-menu { display: block; }

    .user-actions { width: 100%; border-top: 1px solid #eee; padding-top: 10px; }

    .hero h1 { font-size: 1.7rem; }
    .features-grid,
    .stats-grid,
    .product-grid,
    .caregiver-grid,
    .community-grid,
    .news-grid,
    .solution-grid,
    .highlight-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .search-form { grid-template-columns: 1fr; }
    .post-item { flex-direction: column; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .layout-sidebar { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .container { padding: 0 12px; }
    .hero { padding: 50px 0; }
    .section { padding: 40px 0; }
    .hero h1 { font-size: 1.4rem; }
    .hero-btns { flex-direction: column; align-items: center; }
    .btn-lg { padding: 11px 24px; }
    .form-card { padding: 22px; }
}
