/* 海葬服务平台 - 全局样式 */

/* ===== CSS变量 ===== */
:root {
    --primary: #0066B8;
    --primary-dark: #004080;
    --secondary: #4A90D9;
    --accent: #00A0B0;
    --bg-light: #F5F9FC;
    --bg-dark: #0A2540;
    --text-primary: #1A2B3C;
    --text-secondary: #6B7C8C;
    --white: #FFFFFF;
    --border: #E8EEF4;
    --shadow: 0 4px 20px rgba(0, 102, 184, 0.1);
    --radius: 12px;
    --danger: #f5576c;
    --warning: #FFB800;
    --success: #43e97b;
}

/* ===== 重置样式 ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text-primary);
    background: var(--bg-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary);
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== 顶部导航栏 ===== */
.site-navbar {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
    padding: 8px 0;
    box-shadow: 0 2px 20px rgba(0, 64, 128, 0.3);
}

.site-navbar .logo-icon {
    font-size: 28px;
    margin-right: 8px;
}

.site-navbar .logo-text {
    font-size: 20px;
    font-weight: 700;
    color: white;
    font-family: 'Noto Serif SC', serif;
}

.site-navbar .site-logo-img {
    height: 32px;
    width: auto;
    margin-right: 8px;
    border-radius: 4px;
}

.site-navbar .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 16px !important;
    border-radius: 20px;
    transition: all 0.2s;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link.active {
    color: white !important;
    background: rgba(255, 255, 255, 0.15);
}

.site-navbar .btn-outline-light {
    font-size: 14px;
    border-width: 1.5px;
}

.site-navbar .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
}

/* ===== 主内容区 ===== */
.main-content {
    padding-top: 60px;
    min-height: calc(100vh - 300px);
}

/* ===== Banner区域 ===== */
.banner {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, var(--bg-dark) 100%);
    padding: 80px 0 60px;
    text-align: center;
    color: white;
}

.banner-waves {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    overflow: hidden;
}

.banner-waves .wave {
    position: absolute;
    bottom: 0;
    left: -50%;
    width: 200%;
    height: 60px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50% 50% 0 0;
}

.banner-waves .wave1 {
    animation: waveAnim 8s ease-in-out infinite;
}

.banner-waves .wave2 {
    animation: waveAnim 10s ease-in-out infinite;
    opacity: 0.6;
}

.banner-waves .wave3 {
    animation: waveAnim 12s ease-in-out infinite;
    opacity: 0.3;
}

@keyframes waveAnim {
    0%, 100% { transform: translateX(0) translateY(0); }
    50% { transform: translateX(-25%) translateY(-6px); }
}

.banner-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 12px;
    animation: fadeInUp 0.8s ease-out;
}

.banner-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.banner-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.banner-stats .stat-item {
    text-align: center;
}

.banner-stats .stat-num {
    font-size: 28px;
    font-weight: 700;
    color: white;
}

.banner-stats .stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.banner-stats .stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.3);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== 快捷入口 ===== */
.quick-entry {
    margin: -30px auto 0;
    position: relative;
    z-index: 10;
    max-width: 900px;
}

.entry-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    background: white;
    border-radius: 16px;
    padding: 28px 20px;
    box-shadow: 0 8px 32px rgba(0, 102, 184, 0.15);
}

.entry-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border-radius: 12px;
    transition: all 0.2s;
    cursor: pointer;
}

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

.entry-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--bg-light) 0%, #E8F4FC 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.entry-name {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}

/* ===== 通用区块 ===== */
.section {
    padding: 50px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
}

.section-more {
    font-size: 14px;
    color: var(--primary);
    cursor: pointer;
    transition: opacity 0.2s;
}

.section-more:hover {
    opacity: 0.8;
}

/* ===== 服务流程 ===== */
.process-section {
    background: white;
}

.process-wrapper {
    position: relative;
}

.process-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    overflow-x: auto;
    padding: 12px 0;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.process-steps::-webkit-scrollbar {
    display: none;
}

/* 流程箭头按钮 - 默认隐藏，移动端显示 */
.process-arrow {
    display: none;
    position: absolute;
    top: 22px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255,255,255,0.95);
    border: 1px solid #ddd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    cursor: pointer;
    font-size: 14px;
    color: #667eea;
    z-index: 10;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.process-arrow:hover,
.process-arrow:active {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
}
.process-arrow-left { left: -4px; }
.process-arrow-right { right: -4px; }

.step-item {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.step-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.step-num {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    flex-shrink: 0;
}

.step-content {
    text-align: center;
}

.step-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.step-desc {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
}

.step-arrow {
    color: var(--primary);
    font-size: 20px;
    opacity: 0.35;
    flex-shrink: 0;
    margin-top: -20px;
}

/* ===== 机构卡片 ===== */
.institutions-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 8px 0;
    -webkit-overflow-scrolling: touch;
}

.institutions-scroll::-webkit-scrollbar {
    display: none;
}

.institution-card {
    min-width: 220px;
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.institution-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.inst-cover {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.inst-logo {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.inst-info {
    padding: 14px;
}

.inst-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.inst-area {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.inst-rating {
    display: flex;
    align-items: center;
    gap: 2px;
}

.inst-rating .star {
    color: #ddd;
    font-size: 14px;
}

.inst-rating .star.filled {
    color: var(--warning);
}

.inst-rating .rating-num {
    margin-left: 6px;
    color: var(--text-secondary);
    font-size: 13px;
}

/* ===== 基地卡片 ===== */
.bases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.base-card {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.base-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.base-image {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.base-info {
    padding: 14px;
}

.base-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.base-city {
    font-size: 13px;
    color: var(--text-secondary);
}

.base-capacity {
    font-size: 13px;
    color: var(--primary);
    margin-top: 6px;
}

/* ===== 案例卡片 ===== */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.case-card {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.case-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.case-image {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.case-quote {
    font-size: 72px;
    color: rgba(255, 255, 255, 0.3);
    font-family: serif;
}

.case-content {
    padding: 14px;
}

.case-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.case-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.case-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-secondary);
}

/* ===== 产品卡片 ===== */
.products-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product-card {
    background: white;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    position: relative;
    display: flex;
    gap: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.product-badge {
    position: absolute;
    top: 0;
    right: 20px;
    padding: 4px 14px;
    border-radius: 0 0 10px 10px;
    font-size: 12px;
    color: white;
    font-weight: 600;
}

.badge-recommend {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.badge-hot {
    background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
}

.badge-new {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.badge-vip {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.product-info {
    flex: 1;
}

.product-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.product-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.product-includes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.include-tag {
    padding: 4px 12px;
    background: var(--bg-light);
    border-radius: 14px;
    font-size: 12px;
    color: var(--text-secondary);
}

.product-price {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.price-num {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
}

.price-num::before {
    content: '¥';
    font-size: 16px;
}

.price-btn {
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
}

.price-btn:hover {
    opacity: 0.9;
    color: white;
}

/* ===== 关于海葬 ===== */
.about-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 60px 0;
    color: white;
    text-align: center;
}

.about-section .section-title {
    color: white;
    margin-bottom: 16px;
}

.about-text {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto 36px;
}

.about-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.value-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.value-title {
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
}

.value-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* ===== 图片轮播 ===== */
.gallery-carousel {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: #f0f2f5;
}
.gallery-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    max-height: 420px;
}
.gallery-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.gallery-slide.active {
    opacity: 1;
}
.gallery-slide img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.gallery-thumbs {
    display: flex;
    gap: 6px;
    padding: 10px;
    background: #fff;
    overflow-x: auto;
}
.gallery-thumb {
    width: 64px; height: 48px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    flex-shrink: 0;
    opacity: 0.6;
    transition: all 0.2s;
}
.gallery-thumb.active {
    border-color: var(--primary);
    opacity: 1;
}
.gallery-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.gallery-prev, .gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-80%);
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.85);
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: background 0.2s;
}
.gallery-prev:hover, .gallery-next:hover {
    background: #fff;
}
.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }
@media (max-width: 576px) {
    .gallery-viewport { max-height: 240px; }
    .gallery-thumb { width: 48px; height: 36px; }
    .gallery-prev, .gallery-next { width: 30px; height: 30px; font-size: 14px; }
}

/* ===== 文章资讯 ===== */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.filter-tab {
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 14px;
    color: var(--text-secondary);
    background: var(--bg-light);
    text-decoration: none;
    transition: all 0.2s;
}

.filter-tab:hover,
.filter-tab.active {
    background: var(--primary);
    color: white;
}

.article-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.article-card .card-img-top {
    height: 180px;
    object-fit: cover;
}

.article-card .cover-placeholder {
    height: 180px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 48px;
}

.article-card .card-title a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card .card-title a:hover {
    color: var(--primary);
}

.article-card .card-text {
    font-size: 13px;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card .card-footer {
    border-top: 1px solid var(--border-color);
    font-size: 12px;
}

.article-detail {
    background: white;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.article-detail .article-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.4;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.article-meta i {
    margin-right: 4px;
}

.article-content {
    line-height: 1.8;
    font-size: 15px;
    color: var(--text-primary);
}

.article-content p {
    margin-bottom: 16px;
}

.article-content h2,
.article-content h3,
.article-content h4 {
    margin-top: 24px;
    margin-bottom: 12px;
    font-weight: 600;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 16px 0;
}

.article-content ul,
.article-content ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

.article-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 12px 20px;
    margin: 16px 0;
    background: var(--bg-light);
    border-radius: 0 8px 8px 0;
}

.related-sidebar {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.related-sidebar h5 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}

.related-item {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    text-decoration: none;
    color: var(--text-primary);
}

.related-item:hover {
    color: var(--primary);
}

.related-item img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.related-item .cover-placeholder-sm {
    width: 80px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 6px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 20px;
}

.related-item .info {
    flex: 1;
    min-width: 0;
}

.related-item .info h6 {
    font-size: 13px;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
}

.related-item .info small {
    color: var(--text-secondary);
    font-size: 12px;
}

/* ===== 问答百科 ===== */

/* 首页新闻列表 */
.home-news-list {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.home-news-item {
    display: flex;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-primary);
    transition: background 0.2s;
}

.home-news-item:last-child {
    border-bottom: none;
}

.home-news-item:hover {
    background: var(--bg-light);
    border-radius: 8px;
}

.news-date {
    flex-shrink: 0;
    width: 50px;
    text-align: center;
    padding: 4px 0;
}

.news-day {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.news-month {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
}

.news-info {
    flex: 1;
    min-width: 0;
}

.news-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-summary {
    font-size: 12px;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 首页FAQ列表 */
.home-faq-list {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.home-faq-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-primary);
    transition: background 0.2s;
}

.home-faq-item:last-child {
    border-bottom: none;
}

.home-faq-item:hover {
    background: var(--bg-light);
    border-radius: 8px;
}

.faq-q {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-text {
    font-size: 14px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-faq-item:hover .faq-text {
    color: var(--primary);
}
.faq-category-header {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
    margin: 24px 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
}

.faq-category-header:first-child {
    margin-top: 0;
}

.accordion-item {
    border: 1px solid var(--border-color);
    border-radius: 8px !important;
    margin-bottom: 8px;
    overflow: hidden;
}

.accordion-button {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    background: white;
    padding: 14px 20px;
}

.accordion-button:not(.collapsed) {
    background: rgba(102, 126, 234, 0.06);
    color: var(--primary);
    box-shadow: none;
}

.accordion-button::before {
    content: 'Q';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-size: 12px;
    font-weight: 700;
    margin-right: 12px;
    flex-shrink: 0;
}

.accordion-button:not(.collapsed)::before {
    background: var(--secondary);
}

.accordion-button::after {
    margin-left: auto;
}

.accordion-body {
    padding: 16px 20px 20px 56px;
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.accordion-body::before {
    content: 'A';
    display: block;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #28a745;
    color: white;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    line-height: 24px;
    margin-bottom: 10px;
}

/* ===== 底部信息 ===== */
.site-footer {
    background: var(--bg-dark);
    padding: 50px 0 30px;
    color: white;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-logo .logo-icon {
    font-size: 28px;
}

.footer-logo .logo-text {
    font-size: 20px;
    font-weight: 600;
    color: white;
}

.footer-logo .footer-logo-img {
    height: 32px;
    width: auto;
    margin-right: 8px;
    border-radius: 4px;
}

.footer-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

.footer-title {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-links li {
    margin-bottom: 6px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-contact li {
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
    margin-bottom: 6px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
    margin-bottom: 4px;
}

/* ===== 预约弹窗 ===== */
.booking-modal-content {
    border: none;
    border-radius: 16px;
}

.booking-input {
    background: var(--bg-light);
    border: none;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 15px;
}

.booking-input:focus {
    background: var(--bg-light);
    box-shadow: 0 0 0 3px rgba(0, 102, 184, 0.15);
}

.booking-product-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-light);
    border-radius: 10px;
}

.booking-product-name {
    font-size: 15px;
    color: var(--text-primary);
}

.booking-product-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--danger);
}

.btn-cancel {
    background: var(--bg-light);
    color: var(--text-secondary);
    border: none;
    border-radius: 22px;
    padding: 10px 28px;
    font-weight: 600;
}

.btn-submit {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 22px;
    padding: 10px 28px;
    font-weight: 600;
}

/* ===== 分页组件 ===== */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    padding: 24px 0;
}

.pagination-wrapper .page-link {
    color: var(--primary);
    border-color: var(--border);
    margin: 0 4px;
    border-radius: 8px !important;
}

.pagination-wrapper .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
}

/* ===== 筛选标签 ===== */
.filter-bar {
    display: flex;
    gap: 10px;
    padding: 16px 0;
    overflow-x: auto;
    flex-wrap: wrap;
}

.filter-bar::-webkit-scrollbar {
    display: none;
}

.filter-tag {
    padding: 8px 20px;
    background: var(--bg-light);
    border-radius: 20px;
    font-size: 14px;
    color: var(--text-secondary);
    white-space: nowrap;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.filter-tag:hover {
    background: #dce8f4;
}

.filter-tag.active {
    background: var(--primary);
    color: white;
}

/* ===== 搜索框 ===== */
.search-box {
    position: relative;
    margin-bottom: 16px;
}

.search-box input {
    width: 100%;
    height: 48px;
    background: white;
    border: 2px solid var(--border);
    border-radius: 24px;
    padding: 0 48px 0 20px;
    font-size: 15px;
    transition: border-color 0.2s;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
}

.search-box .search-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 18px;
}

/* ===== 星星评分（CSS宽度方式） ===== */
.stars-visual {
    display: inline-block;
    position: relative;
    font-size: 14px;
    letter-spacing: 1px;
    color: #ddd;
}
.stars-visual::before {
    content: '★★★★★';
}
.stars-fill {
    position: absolute;
    left: 0;
    top: 0;
    overflow: hidden;
    white-space: nowrap;
    color: #ffc107;
}
.stars-fill::before {
    content: '★★★★★';
}

/* ===== 列表页卡片 ===== */
.list-card {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.list-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.list-card .card-header-bg {
    height: 120px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    position: relative;
}

.list-card .card-verified {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 14px;
    font-size: 12px;
    color: var(--primary);
    font-weight: 500;
}

.list-card .card-body {
    padding: 20px;
}

.list-card .card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.list-card .card-area {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.list-card .card-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.list-card .card-footer-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.list-card .card-rating {
    display: flex;
    align-items: center;
    gap: 2px;
}

.list-card .card-rating .star {
    color: #ddd;
    font-size: 14px;
}

.list-card .card-rating .star.filled {
    color: var(--warning);
}

.list-card .card-rating .rating-score {
    margin-left: 6px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 14px;
}

.list-card .card-service-count {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ===== 详情页 ===== */
.detail-header-bg {
    padding: 40px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
}

.detail-header-bg .detail-logo {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.detail-header-bg .detail-name {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 6px;
}

.detail-header-bg .detail-area {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 12px;
}

.detail-header-bg .detail-rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

.detail-header-bg .detail-rating .star {
    color: rgba(255, 255, 255, 0.4);
    font-size: 16px;
}

.detail-header-bg .detail-rating .star.filled {
    color: var(--warning);
}

.detail-header-bg .detail-rating .rating-score {
    color: white;
    font-weight: 600;
    margin-left: 8px;
}

.detail-section {
    background: white;
    margin: 16px 0;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.detail-section .section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
}

/* 视频展示 */
.detail-video {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}
.detail-video video,
.detail-video iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
    display: block;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.info-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.info-value {
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 500;
}

.info-value.primary {
    color: var(--primary);
}

.intro-text {
    font-size: 15px;
    color: var(--text-primary);
    line-height: 1.8;
    white-space: pre-line;
}

/* ===== 服务项目列表 ===== */
.service-item {
    display: flex;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.service-item:last-child {
    border-bottom: none;
}

.service-icon {
    font-size: 28px;
    margin-right: 12px;
}

.service-info {
    flex: 1;
}

.service-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.service-desc {
    font-size: 13px;
    color: var(--text-secondary);
}

.service-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

/* ===== 评价列表 ===== */
.review-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.review-item:last-child {
    border-bottom: none;
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.reviewer-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: 600;
    margin-right: 12px;
}

.reviewer-info {
    flex: 1;
}

.reviewer-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.reviewer-date {
    font-size: 12px;
    color: var(--text-secondary);
}

.review-rating .star {
    color: #ddd;
    font-size: 13px;
}

.review-rating .star.filled {
    color: var(--warning);
}

.review-content {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== 底部操作栏 ===== */
.bottom-actions {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: white;
    display: flex;
    align-items: center;
    padding: 0 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
    z-index: 100;
}

.action-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 16px;
    padding: 8px 16px;
}

.action-icon {
    font-size: 22px;
}

.action-text {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.action-book {
    flex: 1;
    height: 48px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.action-book:hover {
    color: white;
    opacity: 0.9;
}

/* ===== 可预约日期 ===== */
.dates-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.date-item {
    padding: 14px;
    background: var(--bg-light);
    border-radius: 10px;
    text-align: center;
    font-size: 14px;
    color: var(--text-primary);
    transition: all 0.2s;
    cursor: pointer;
    border: 2px solid transparent;
}

.date-item:hover {
    border-color: var(--primary);
}

.date-item.selected {
    background: var(--primary);
    color: white;
}

/* ===== 注意事项 ===== */
.notice-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

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

.notice-icon {
    font-size: 16px;
}

.notice-text {
    flex: 1;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ===== 包含服务 ===== */
.includes-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.include-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: var(--bg-light);
    border-radius: 10px;
}

.include-icon {
    width: 24px;
    height: 24px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    flex-shrink: 0;
}

.include-text {
    font-size: 14px;
    color: var(--text-primary);
}

/* ===== 价格区域 ===== */
.price-section {
    background: white;
    margin: -20px 16px 16px;
    padding: 20px;
    border-radius: 14px;
    position: relative;
    z-index: 2;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: baseline;
}

.price-info {
    display: flex;
    align-items: baseline;
}

.price-symbol {
    font-size: 18px;
    color: var(--danger);
    font-weight: 600;
}

.price-big {
    font-size: 36px;
    font-weight: 700;
    color: var(--danger);
}

.price-unit {
    font-size: 14px;
    color: var(--text-secondary);
    margin-left: 6px;
}

/* ===== 用户中心 ===== */
.user-header {
    position: relative;
    padding: 40px 0 30px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

.user-header .header-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 24px;
    background: var(--bg-light);
    border-radius: 24px 24px 0 0;
}

.user-info {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-avatar {
    width: 72px;
    height: 72px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.user-avatar.login-avatar {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 36px;
}

.user-nickname {
    font-size: 22px;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
}

.user-phone {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.order-status {
    display: flex;
    justify-content: space-around;
    padding: 24px 0;
    background: white;
    margin: -16px 16px 16px;
    border-radius: 14px;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.status-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.status-icon {
    font-size: 24px;
}

.status-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.status-count {
    min-width: 20px;
    height: 20px;
    background: var(--primary);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    padding: 0 6px;
}

/* ===== 功能菜单 ===== */
.menu-section {
    padding: 0 16px;
}

.menu-group {
    background: white;
    border-radius: 14px;
    margin-bottom: 16px;
    overflow: hidden;
}

.menu-title {
    padding: 16px 20px 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.2s;
}

.menu-item:hover {
    background: var(--bg-light);
}

.menu-icon {
    font-size: 22px;
    margin-right: 12px;
}

.menu-label {
    flex: 1;
    font-size: 15px;
    color: var(--text-primary);
}

.menu-arrow {
    color: var(--text-secondary);
    font-size: 15px;
}

/* ===== 机构入驻入口 ===== */
.merchant-entry {
    display: flex;
    align-items: center;
    margin: 0 16px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 14px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.merchant-entry:hover {
    opacity: 0.9;
}

.merchant-entry .entry-icon {
    font-size: 32px;
    margin-right: 12px;
}

.merchant-entry .entry-title {
    font-size: 17px;
    font-weight: 600;
    color: white;
    margin-bottom: 2px;
}

.merchant-entry .entry-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

.merchant-entry .entry-arrow {
    margin-left: auto;
    font-size: 18px;
    color: white;
}

/* ===== 机构会员中心 ===== */
.merchant-header {
    position: relative;
    padding: 40px 0 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.merchant-logo {
    width: 72px;
    height: 72px;
    background: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    color: #667eea;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.merchant-name {
    font-size: 22px;
    font-weight: 700;
    color: white;
    margin-bottom: 6px;
}

.merchant-status {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 500;
}

.merchant-status.approved {
    background: rgba(67, 233, 123, 0.9);
    color: white;
}

.merchant-status.pending {
    background: rgba(255, 183, 0, 0.9);
    color: white;
}

.stats-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 16px;
    margin-top: -16px;
}

.stat-card {
    background: white;
    border-radius: 14px;
    padding: 16px 10px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.logout-btn {
    margin: 24px 16px;
    height: 48px;
    background: white;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--danger);
    cursor: pointer;
    transition: background 0.2s;
}

.logout-btn:hover {
    background: #fff5f5;
}

/* ===== 登录表单 ===== */
.login-content {
    padding: 60px 32px 32px;
}

.login-header {
    text-align: center;
    margin-bottom: 48px;
}

.login-header .logo-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.login-header .logo-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 30px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.login-header .logo-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
}

.login-form .form-label {
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.login-form .form-control {
    height: 52px;
    background: white;
    border-radius: 12px;
    padding: 0 16px;
    font-size: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    border: 2px solid var(--border);
}

.login-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 184, 0.15);
}

.code-input {
    display: flex;
    gap: 12px;
}

.code-input .form-control {
    flex: 1;
}

.code-btn {
    width: 120px;
    height: 52px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.code-btn.disabled {
    background: #ccc;
    cursor: not-allowed;
}

.login-btn {
    height: 52px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    margin-top: 32px;
    box-shadow: 0 8px 24px rgba(0, 102, 184, 0.3);
    border: none;
    cursor: pointer;
    width: 100%;
    transition: opacity 0.2s;
}

.login-btn:hover {
    opacity: 0.9;
}

.other-login {
    margin-top: 40px;
}

.divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: var(--border);
}

.divider-text {
    font-size: 14px;
    color: var(--text-secondary);
}

.wechat-login {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.wechat-icon {
    width: 56px;
    height: 56px;
    background: #07C160;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}

.wechat-text {
    font-size: 14px;
    color: var(--text-secondary);
}

.login-footer {
    text-align: center;
    margin-top: 40px;
    font-size: 13px;
}

.agree-text {
    color: var(--text-secondary);
}

.login-footer .link {
    color: var(--primary);
    text-decoration: underline;
    cursor: pointer;
}

.login-footer .and {
    color: var(--text-secondary);
    margin: 0 4px;
}

/* ===== 空状态 ===== */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.empty-text {
    font-size: 16px;
    color: var(--text-secondary);
}

/* ===== 家属感言 ===== */
.testimonial-card {
    background: var(--bg-light);
    border-radius: 14px;
    padding: 20px;
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: 600;
    margin-right: 12px;
}

.testimonial-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.testimonial-date {
    font-size: 12px;
    color: var(--text-secondary);
}

.testimonial-content {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    font-style: italic;
}

/* ===== 相关机构 ===== */
.related-card {
    display: flex;
    align-items: center;
    padding: 16px;
    background: var(--bg-light);
    border-radius: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.related-card:hover {
    background: #dce8f4;
}

.related-logo {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    color: white;
    margin-right: 12px;
}

.related-info {
    flex: 1;
}

.related-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.related-area {
    font-size: 13px;
    color: var(--text-secondary);
}

.related-rating .star {
    color: #ddd;
    font-size: 13px;
}

.related-rating .star.filled {
    color: var(--warning);
}

.related-arrow {
    color: var(--text-secondary);
    font-size: 18px;
}

/* ===== 基地状态标签 ===== */
.base-status {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 14px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 600;
}

.base-status.available {
    background: rgba(67, 233, 123, 0.9);
    color: white;
}

.base-status.limited {
    background: rgba(255, 183, 0, 0.9);
    color: white;
}

.base-status.unavailable {
    background: rgba(150, 150, 150, 0.9);
    color: white;
}

/* ===== 产品网格列表 ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.product-grid .product-card {
    flex-direction: column;
    padding: 0;
}

.product-grid .product-header-bg {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-grid .product-icon {
    font-size: 48px;
}

.product-grid .product-body {
    padding: 16px;
}

.product-grid .product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.product-grid .product-price-display {
    display: flex;
    align-items: baseline;
}

.product-grid .price-symbol {
    font-size: 14px;
    color: var(--primary);
}

.product-grid .price-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
}

.product-grid .product-btn {
    padding: 6px 16px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 500;
    border: none;
    cursor: pointer;
}

/* ===== 隐私政策弹窗 ===== */
.policy-modal .modal-content {
    border: none;
    border-radius: 16px;
}

.policy-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.policy-body h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--primary);
}

.policy-body h4 {
    font-size: 15px;
    font-weight: 600;
    margin-top: 16px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.policy-body p {
    font-size: 14px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.policy-body ul {
    margin-left: 20px;
    margin-bottom: 10px;
}

.policy-body li {
    font-size: 14px;
    margin-bottom: 4px;
    color: var(--text-primary);
}

/* ===== 移动端底部工具栏 ===== */
.mobile-toolbar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 58px;
    background: #fff;
    box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 0;
    border-top: 1px solid #eee;
}

.mobile-toolbar .toolbar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    flex: 1;
    height: 100%;
    color: #666;
    text-decoration: none;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
    position: relative;
}

.mobile-toolbar .toolbar-item i {
    font-size: 22px;
    transition: transform 0.2s;
}

.mobile-toolbar .toolbar-item span {
    font-size: 11px;
    font-weight: 500;
}

.mobile-toolbar .toolbar-item:active {
    background: #f5f5f5;
}

.mobile-toolbar .toolbar-item:active i {
    transform: scale(1.15);
}

/* 首页 */
.mobile-toolbar .toolbar-home {
    color: #555;
}
.mobile-toolbar .toolbar-home i { color: #667eea; }

/* 电话咨询 - 突出显示 */
.mobile-toolbar .toolbar-phone {
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: -1px 0;
}
.mobile-toolbar .toolbar-phone i {
    font-size: 24px;
    color: #fff;
}
.mobile-toolbar .toolbar-phone span {
    color: #fff;
    font-weight: 600;
}

/* 返回顶部 */
.mobile-toolbar .toolbar-top {
    color: #555;
}
.mobile-toolbar .toolbar-top i { color: #764ba2; }

@media (max-width: 767px) {
    .mobile-toolbar {
        display: flex;
    }

    body {
        padding-bottom: 58px;
    }

    .site-footer {
        padding: 36px 0 70px;
    }

    .footer-desc {
        font-size: 13px;
        margin-bottom: 8px;
    }

    .footer-title {
        font-size: 14px;
        margin-bottom: 10px;
        padding-bottom: 6px;
    }

    .footer-links a,
    .footer-contact li {
        font-size: 12px;
    }
}

/* ===== 单页内容样式 ===== */
.page-content h4 {
    font-size: 17px;
    font-weight: 600;
    color: var(--primary);
    margin-top: 24px;
    margin-bottom: 12px;
    padding-left: 12px;
    border-left: 3px solid var(--primary);
}

.page-content p {
    font-size: 15px;
    color: var(--text-primary);
    line-height: 2;
    margin-bottom: 10px;
}

/* ===== 响应式适配 ===== */
@media (max-width: 991px) {
    .banner-title {
        font-size: 32px;
    }

    .banner-stats {
        gap: 24px;
    }

    .banner-stats .stat-num {
        font-size: 22px;
    }

    .bases-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-values {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .stats-section {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-card {
        flex-direction: column;
    }
}

@media (max-width: 767px) {
    .banner {
        padding: 60px 0 40px;
    }

    .banner-title {
        font-size: 26px;
    }

    .banner-subtitle {
        font-size: 15px;
        margin-bottom: 28px;
    }

    .banner-stats {
        gap: 16px;
    }

    .banner-stats .stat-num {
        font-size: 18px;
    }

    .banner-stats .stat-label {
        font-size: 12px;
    }

    .entry-grid {
        grid-template-columns: repeat(4, 1fr);
        padding: 20px 12px;
    }

    .entry-icon {
        width: 44px;
        height: 44px;
        font-size: 22px;
    }

    .entry-name {
        font-size: 12px;
    }

    .bases-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cases-grid {
        grid-template-columns: 1fr;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .about-values {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .includes-list {
        grid-template-columns: 1fr;
    }

    .dates-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .detail-header-bg .detail-name {
        font-size: 22px;
    }

    .section {
        padding: 32px 0;
    }

    .section-title {
        font-size: 20px;
    }

    .process-steps {
        gap: 0;
        padding: 12px 36px;
        justify-content: flex-start;
    }

    .process-arrow {
        display: flex;
    }

    .step-item {
        min-width: 100px;
        flex: none;
    }

    .step-arrow {
        display: none;
    }

    .step-desc {
        white-space: normal;
    }

    .stats-section {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .banner-title {
        font-size: 22px;
    }

    .banner-stats {
        flex-wrap: wrap;
        gap: 12px;
    }

    .banner-stats .stat-divider {
        display: none;
    }

    .entry-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
}
