/* Medical Companion Service - Nordic Minimal Theme
   Clean, professional design for European audience */

/* ==================== 全局样式 ==================== */
:root {
    /* Nordic Minimal Color Palette */
    --primary-color: #2D5F7F;
    /* Deep Nordic Blue */
    --primary-hover: #1E4259;
    /* Darker Nordic Blue */
    --primary-light: #E8F0F5;
    /* Light Blue Background */
    --accent-color: #5B9AA0;
    /* Muted Teal */
    --success-color: #6B9080;
    /* Nordic Green */
    --warning-color: #D4A373;
    /* Muted Gold */
    --error-color: #BC4749;
    /* Soft Red */

    /* Neutral Colors */
    --text-color: #2C3E50;
    /* Dark Gray - High readability */
    --text-secondary: #64748B;
    /* Medium Gray */
    --text-light: #94A3B8;
    /* Light Gray */
    --border-color: #E2E8F0;
    /* Subtle border */
    --bg-color: #F7F9FB;
    /* Cool white background */
    --white: #FFFFFF;
    --off-white: #FAFBFC;

    /* Shadows - soft and diffused */
    --shadow: 0 1px 3px rgba(45, 95, 127, 0.08),
        0 4px 12px rgba(45, 95, 127, 0.04);
    --shadow-hover: 0 4px 12px rgba(45, 95, 127, 0.12),
        0 8px 24px rgba(45, 95, 127, 0.08);
    --shadow-subtle: 0 1px 2px rgba(45, 95, 127, 0.06);

    /* Spacing */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
        'Helvetica Neue', Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==================== Accessibility - Skip Link ==================== */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 16px;
    z-index: 10000;
    font-size: 14px;
    text-decoration: none;
    border-radius: 0 0 var(--radius-sm) 0;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
}

/* ==================== Performance - Reduce Motion ==================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==================== Performance - Content Visibility ==================== */
section {
    content-visibility: auto;
    contain-intrinsic-size: auto 500px;
}

/* ==================== 导航栏 ==================== */
.navbar {
    background-color: var(--white);
    box-shadow: var(--shadow-subtle);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
    border-bottom: 1px solid var(--border-color);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.navbar-logo {
    font-size: 22px;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: -0.02em;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1002;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.navbar-menu {
    display: flex;
    gap: 32px;
    list-style: none;
}

.navbar-menu li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.25s ease;
    letter-spacing: -0.01em;
    -webkit-tap-highlight-color: transparent;
}

.navbar-menu li a:active {
    color: var(--primary-color);
}

.navbar-menu li a:hover {
    color: var(--primary-color);
}

.lang-switcher {
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-color);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.lang-switcher:hover,
.lang-switcher:active {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* ==================== Hero 区域 ==================== */
.hero {
    background: linear-gradient(135deg, #f0f7fc 0%, #e8f5f0 50%, #f5f0fa 100%);
    color: var(--text-color);
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero 背景网格 - 科技感 */
.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(45, 95, 127, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(45, 95, 127, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(60px, 60px);
    }
}

/* Hero 渐变光晕 */
.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: glowPulse 8s ease-in-out infinite;
}

.hero-glow-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(91, 154, 160, 0.4) 0%, transparent 70%);
    top: -150px;
    right: -100px;
    animation-delay: 0s;
}

.hero-glow-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(107, 144, 128, 0.3) 0%, transparent 70%);
    bottom: -100px;
    left: -50px;
    animation-delay: 2s;
}

.hero-glow-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(212, 163, 115, 0.2) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 4s;
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

/* DNA 双螺旋动画 */
.hero-dna {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.dna-strand {
    position: absolute;
    width: 200%;
    height: 4px;
    top: 50%;
    left: -50%;
}

.dna-strand-1 {
    animation: dnaRotate1 30s linear infinite;
}

.dna-strand-2 {
    animation: dnaRotate2 30s linear infinite;
}

.dna-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), var(--success-color));
    box-shadow: 0 0 20px rgba(91, 154, 160, 0.5);
}

.dna-dot:nth-child(odd) {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

@keyframes dnaRotate1 {
    0% {
        transform: translateY(-50%) rotate(0deg);
    }

    100% {
        transform: translateY(-50%) rotate(360deg);
    }
}

@keyframes dnaRotate2 {
    0% {
        transform: translateY(-50%) rotate(180deg);
    }

    100% {
        transform: translateY(-50%) rotate(540deg);
    }
}

/* 浮动医疗图标 */
.hero-float-icon {
    position: absolute;
    opacity: 0.15;
    color: var(--primary-color);
    animation: floatIcon 20s ease-in-out infinite;
}

.hero-float-icon svg {
    width: 100%;
    height: 100%;
}

.float-icon-1 {
    width: 80px;
    height: 80px;
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.float-icon-2 {
    width: 60px;
    height: 60px;
    top: 25%;
    right: 15%;
    animation-delay: 3s;
}

.float-icon-3 {
    width: 70px;
    height: 70px;
    bottom: 25%;
    left: 20%;
    animation-delay: 6s;
}

.float-icon-4 {
    width: 50px;
    height: 50px;
    bottom: 35%;
    right: 10%;
    animation-delay: 9s;
}

.float-icon-5 {
    width: 65px;
    height: 65px;
    top: 60%;
    left: 5%;
    animation-delay: 12s;
}

.float-icon-6 {
    width: 55px;
    height: 55px;
    top: 10%;
    left: 50%;
    animation-delay: 15s;
}

@keyframes floatIcon {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.1;
    }

    25% {
        transform: translateY(-30px) rotate(5deg);
        opacity: 0.2;
    }

    50% {
        transform: translateY(-15px) rotate(-3deg);
        opacity: 0.15;
    }

    75% {
        transform: translateY(-40px) rotate(3deg);
        opacity: 0.2;
    }
}

/* 脉冲波纹 - 心跳监测效果 */
.hero-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    pointer-events: none;
}

.pulse-ring {
    position: absolute;
    inset: 0;
    border: 2px solid rgba(91, 154, 160, 0.3);
    border-radius: 50%;
    animation: pulseRing 4s ease-out infinite;
}

.pulse-ring:nth-child(2) {
    animation-delay: 1s;
}

.pulse-ring:nth-child(3) {
    animation-delay: 2s;
}

.pulse-ring:nth-child(4) {
    animation-delay: 3s;
}

@keyframes pulseRing {
    0% {
        transform: scale(0.5);
        opacity: 0.8;
        border-width: 3px;
    }

    100% {
        transform: scale(8);
        opacity: 0;
        border-width: 1px;
    }
}

/* 心电图波形 */
.hero-ecg {
    position: absolute;
    bottom: 20%;
    left: 0;
    right: 0;
    height: 60px;
    overflow: hidden;
    opacity: 0.1;
}

.ecg-line {
    position: absolute;
    width: 200%;
    height: 100%;
    animation: ecgMove 8s linear infinite;
}

.ecg-line svg {
    width: 100%;
    height: 100%;
}

@keyframes ecgMove {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* 连接点网络 */
.hero-nodes {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-node {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    opacity: 0.3;
    animation: nodePulse 3s ease-in-out infinite;
}

.hero-node::before,
.hero-node::after {
    content: '';
    position: absolute;
    background: var(--accent-color);
    opacity: 0.2;
}

.hero-node::before {
    width: 1px;
    height: 40px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero-node::after {
    width: 40px;
    height: 1px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero-node:nth-child(1) {
    top: 20%;
    left: 15%;
    animation-delay: 0s;
}

.hero-node:nth-child(2) {
    top: 30%;
    right: 20%;
    animation-delay: 0.5s;
}

.hero-node:nth-child(3) {
    top: 70%;
    left: 25%;
    animation-delay: 1s;
}

.hero-node:nth-child(4) {
    top: 60%;
    right: 10%;
    animation-delay: 1.5s;
}

.hero-node:nth-child(5) {
    bottom: 25%;
    left: 50%;
    animation-delay: 2s;
}

.hero-node:nth-child(6) {
    top: 40%;
    left: 40%;
    animation-delay: 2.5s;
}

@keyframes nodePulse {

    0%,
    100% {
        opacity: 0.2;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.5);
    }
}

/* 尊重用户动画偏好 */
@media (prefers-reduced-motion: reduce) {

    .hero-bg-grid,
    .hero-glow,
    .dna-strand,
    .hero-float-icon,
    .pulse-ring,
    .ecg-line,
    .hero-node {
        animation: none;
    }

    .hero-dna {
        display: none;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: var(--primary-color);
}

.hero p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 36px;
    line-height: 1.7;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    white-space: normal;
    word-wrap: break-word;
}

.hero-btn {
    display: inline-block;
    padding: 14px 36px;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.hero-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* ==================== App Download Section ==================== */
.app-download-section {
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    animation: fadeInUp 0.8s ease backwards 0.3s;
}

.download-badges {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.store-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-xl);
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 4px 16px rgba(45, 95, 127, 0.08);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.store-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(45, 95, 127, 0.15);
    background: var(--white);
    color: var(--primary-color);
}

.store-badge svg {
    width: 24px;
    height: 24px;
}

.qr-codes-container {
    display: flex;
    gap: 24px;
    justify-content: center;
}

.qr-card {
    background: var(--white);
    padding: 12px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.qr-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.qr-card img {
    width: 110px;
    height: 110px;
    border-radius: var(--radius-sm);
    display: block;
}

.qr-card span {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

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

@media (max-width: 768px) {
    .qr-codes-container {
        display: none;
    }
    .app-download-section {
        margin-top: 36px;
    }
}

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

/* ==================== Featured Hospital ==================== */
.featured-hospital-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-top: 40px;
}

.featured-hospital-image {
    min-height: 400px;
    display: flex;
    align-items: center;
    /* Center content vertically */
    padding: 60px;
    position: relative;
}

.featured-hospital-content {
    max-width: 600px;
    color: var(--white);
    z-index: 2;
}

.featured-badge {
    display: inline-block;
    background-color: var(--warning-color);
    color: var(--white);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
}

.featured-hospital-content h3 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.2;
}

.featured-subtitle {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 20px;
    opacity: 0.9;
}

.featured-desc {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.9;
}

.featured-list {
    list-style: none;
    margin-bottom: 36px;
}

.featured-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    font-size: 16px;
}

.featured-list li::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 12px;
}

.featured-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.featured-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--white);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 2px solid var(--white);
}

.featured-btn:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.featured-btn.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.featured-btn.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .featured-hospital-image {
        padding: 40px 20px;
    }

    .featured-hospital-content h3 {
        font-size: 28px;
    }
}

/* ==========================================================================
   News / Insights Module Styles
   ========================================================================== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.news-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-subtle);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.news-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-image {
    height: 200px;
    background: linear-gradient(135deg, #E8F0F5, #D1E1E9);
    position: relative;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    opacity: 0.3;
}

.news-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.news-source {
    font-weight: 600;
    color: var(--accent-color);
    background: rgba(91, 154, 160, 0.1);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
}

.news-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.news-readmore {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.news-card:hover .news-readmore {
    color: var(--primary-hover);
}

@media (max-width: 1024px) {
    .news-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (max-width: 768px) {
    .news-grid { grid-template-columns: 1fr; gap: 20px; }
    .news-image { height: 180px; }
}

/* ==================== 服务卡片 ==================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
    margin-top: 40px;
}

.service-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.service-card-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 56px;
    position: relative;
}

.service-card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.05) 100%);
}

.service-card-content {
    padding: 24px;
}

.service-card-title {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-color);
    letter-spacing: -0.01em;
}

.service-card-desc {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

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


.service-card-tag {
    display: inline-block;
    padding: 6px 14px;
    background-color: var(--primary-light);
    color: var(--primary-color);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
}

/* ==================== 服务详情页 ==================== */
.detail-header {
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 28px;
    border: 1px solid var(--border-color);
}

.detail-image {
    width: 100%;
    height: 320px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 72px;
    margin-bottom: 28px;
}

.detail-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 18px;
    letter-spacing: -0.02em;
    color: var(--text-color);
}

.detail-price {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 18px;
}


.detail-info {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    margin-bottom: 18px;
}

.detail-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 15px;
}

.detail-description {
    line-height: 1.8;
    color: var(--text-secondary);
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 16px;
}

/* ==================== 预约表单 ==================== */
.booking-form {
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.form-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 28px;
    letter-spacing: -0.02em;
    color: var(--text-color);
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    font-size: 15px;
    color: var(--text-color);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 15px;
    transition: all 0.25s ease;
    background-color: var(--off-white);
    color: var(--text-color);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(45, 95, 127, 0.12);
    background-color: var(--white);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-primary {
    background-color: var(--primary-color);
    width: 100%;
    padding: 14px;
    font-size: 16px;
}

/* ==================== 响应式设计 ==================== */

/* 小屏幕设备 (手机) */
@media (max-width: 768px) {

    /* 导航栏移动端样式 */
    .navbar-container {
        padding: 12px 16px;
        height: 60px;
    }

    .navbar-logo {
        font-size: 18px;
    }

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

    .navbar-menu {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background-color: var(--white);
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        padding: 0;
    }

    .navbar-menu.active {
        max-height: 400px;
        padding: 16px 0;
    }

    .navbar-menu li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid var(--border-color);
    }

    .navbar-menu li:last-child {
        border-bottom: none;
    }

    .navbar-menu li a,
    .navbar-menu li .lang-switcher-wrapper {
        display: block;
        padding: 16px 20px;
        width: 100%;
    }

    .navbar-menu li .lang-switcher {
        width: 100%;
        max-width: 200px;
    }

    /* Hero 区域 */
    .hero {
        padding: 40px 16px;
    }

    .hero h1 {
        font-size: 28px;
        line-height: 1.3;
    }

    .hero p {
        font-size: 15px;
        margin-bottom: 28px;
    }

    .hero-btn {
        padding: 14px 28px;
        font-size: 15px;
        width: 100%;
        max-width: 280px;
    }

    /* 内容容器 */
    .container {
        padding: 24px 16px;
    }

    /* 服务卡片网格 */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 24px;
    }

    .service-card {
        display: flex;
        flex-direction: column;
    }

    .service-card-image {
        height: 160px;
    }

    .service-card-content {
        padding: 16px;
    }

    .service-card-title {
        font-size: 17px;
    }

    .service-card-desc {
        font-size: 14px;
    }

    .service-card-price {
        font-size: 20px;
    }

    /* 详情页 */
    .detail-header,
    .booking-form {
        padding: 20px 16px;
        border-radius: var(--radius-md);
    }

    .detail-title {
        font-size: 22px;
    }

    .detail-price {
        font-size: 26px;
    }

    .detail-image {
        height: 180px;
        font-size: 48px;
    }

    .detail-cta {
        flex-direction: column;
    }

    .detail-cta .btn {
        width: 100%;
    }

    /* 表单样式 */
    .form-title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .form-label {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .form-input,
    .form-select,
    .form-textarea {
        padding: 14px 16px;
        font-size: 16px;
        /* 防止 iOS 自动缩放 */
        -webkit-appearance: none;
        border-radius: var(--radius-md);
    }

    /* 增加触摸目标大小 */
    .form-input,
    .form-select,
    textarea,
    button,
    a {
        min-height: 44px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .form-section-title {
        font-size: 16px;
        margin-top: 24px;
        margin-bottom: 16px;
    }

    /* 按钮样式 */
    .btn {
        padding: 14px 24px;
        font-size: 15px;
        width: 100%;
    }

    /* 上传区域移动端优化 */
    .upload-area {
        padding: 32px 20px;
    }

    .upload-icon {
        font-size: 42px;
    }

    /* 预览区域 */
    .preview-item {
        width: 90px;
        height: 90px;
    }

    .preview-remove {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }

    /* 特性画廊 */
    .features-gallery {
        gap: 24px;
        margin-top: 40px;
    }

    .gallery-item {
        border-radius: var(--radius-md);
    }

    .gallery-image {
        height: 220px;
    }

    .gallery-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 12px;
    }

    .gallery-icon svg {
        width: 32px;
        height: 32px;
    }

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

    .gallery-content {
        padding: 20px 16px;
    }

    .gallery-heading {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .gallery-desc {
        font-size: 14px;
        line-height: 1.7;
    }

    /* 资源卡片 */
    .resources-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .resource-image {
        height: 140px;
    }

    .resource-icon {
        width: 56px;
        height: 56px;
    }

    .resource-content {
        padding: 16px;
    }

    .resource-title {
        font-size: 16px;
    }

    .resource-desc {
        font-size: 13px;
    }

    /* TikTok 卡片 */
    .tiktok-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .tiktok-thumbnail {
        min-height: 280px;
    }

    .tiktok-info {
        padding: 12px;
    }

    .tiktok-title {
        font-size: 13px;
    }

    /* Why Choose Box */
    .why-choose-box {
        padding: 24px 16px;
    }

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

    .why-icon {
        width: 42px;
        height: 42px;
    }

    .why-icon svg {
        width: 22px;
        height: 22px;
    }

    .why-text h4 {
        font-size: 15px;
    }

    .why-text p {
        font-size: 13px;
    }

    /* 筛选区域 */
    .filter-section {
        padding: 16px;
    }

    /* 空状态 */
    .empty-state {
        padding: 60px 20px;
    }

    .empty-icon {
        font-size: 42px;
    }

    .empty-text {
        font-size: 14px;
    }

    /* 页面标题 */
    .section-title {
        font-size: 24px;
    }

    .section-subtitle {
        font-size: 14px;
    }

    /* About 页面 */
    .about-title {
        font-size: 24px;
    }

    .about-intro {
        font-size: 15px;
    }

    /* Toast 消息移动端优化 */
    .service-summary {
        padding: 20px 16px;
    }

    .service-summary h3 {
        font-size: 18px;
    }

    .service-summary p {
        font-size: 14px;
    }

    /* Form hint */
    .form-hint {
        font-size: 11px;
        margin-top: 6px;
    }

    /* Footer */
    .footer {
        padding: 24px 16px;
        margin-top: 40px;
    }

    .footer-text {
        font-size: 12px;
    }
}

/* 中等屏幕设备 (平板) */
@media (min-width: 769px) and (max-width: 1024px) {
    .navbar-container {
        padding: 0 24px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

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

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

    .features-gallery {
        gap: 32px;
    }

    .gallery-content {
        padding: 28px 24px;
    }
}

/* 大屏幕设备 */
@media (min-width: 1025px) {
    .navbar-menu {
        display: flex !important;
        max-height: none !important;
        position: static !important;
        box-shadow: none !important;
        border-bottom: none !important;
        padding: 0 !important;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {

    /* 移除 hover 效果，使用 active 效果 */
    .service-card:hover,
    .gallery-item:hover,
    .resource-card:hover,
    .tiktok-card:hover {
        transform: none;
    }

    .service-card:active,
    .gallery-item:active,
    .resource-card:active,
    .tiktok-card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }

    .btn:active,
    .hero-btn:active {
        transform: scale(0.97);
        transition: transform 0.1s ease;
    }

    /* 增加点击区域 */
    .navbar-menu li a {
        padding: 16px 12px;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

/* 横屏手机 */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 24px 16px;
    }

    .hero h1 {
        font-size: 24px;
    }

    .features-gallery,
    .resources-grid,
    .tiktok-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==================== 工具类 ==================== */
.text-center {
    text-align: center;
}

.mt-16 {
    margin-top: 16px;
}

.mt-24 {
    margin-top: 24px;
}

.mb-16 {
    margin-bottom: 16px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
    color: var(--text-color);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-size: 16px;
}

/* ==================== Footer ==================== */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 32px 20px;
    text-align: center;
    margin-top: 60px;
}

.footer-text {
    margin: 0;
    font-size: 14px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    margin-top: 16px;
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

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

.footer-apps {
    margin-top: 12px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.95);
}

.footer-apps a {
    color: var(--white);
    text-decoration: none;
}

.footer-apps a:hover {
    text-decoration: underline;
}

.footer-apps span {
    margin: 0 8px;
}

/* ==================== Filter Section ==================== */
.filter-section {
    background-color: var(--white);
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ==================== Empty State ==================== */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-icon {
    font-size: 48px;
    color: var(--text-light);
    margin-bottom: 16px;
    font-weight: 300;
}

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

.service-location {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 12px;
}

/* ==================== Description & CTA ==================== */
.description-title {
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
}

.detail-cta {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

.detail-cta .btn-primary {
    text-align: center;
}

/* Back Link - Top Left Corner Style */
.back-link {
    display: inline-flex;
    align-items: center;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 0;
    margin-bottom: 16px;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: var(--primary-color);
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

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

/* ==================== Features Gallery Section ==================== */
.features-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 56px;
}

.gallery-item {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(45, 95, 127, 0.15);
}

.gallery-image {
    width: 100%;
    height: 420px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.gallery-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.15) 100%);
}

.gallery-overlay {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    transform: translateY(20px);
    opacity: 0.9;
    transition: all 0.5s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
    opacity: 1;
}

.gallery-icon {
    width: 96px;
    height: 96px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.4s ease;
}

.gallery-icon svg {
    color: var(--white);
}

.gallery-item:hover .gallery-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(255, 255, 255, 0.25);
}

.gallery-title {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.gallery-content {
    padding: 40px;
}

.gallery-heading {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.gallery-desc {
    font-size: 16px;
    line-height: 1.8;
    color: #475569;
}

@media (max-width: 768px) {
    .features-gallery {
        gap: 32px;
    }

    .gallery-image {
        height: 280px;
    }

    .gallery-icon {
        width: 72px;
        height: 72px;
        margin-bottom: 16px;
    }

    .gallery-icon svg {
        width: 36px;
        height: 36px;
    }

    .gallery-title {
        font-size: 22px;
    }

    .gallery-content {
        padding: 28px 24px;
    }

    .gallery-heading {
        font-size: 20px;
    }

    .gallery-desc {
        font-size: 15px;
    }
}

/* ==================== About Section ==================== */
.about-header {
    text-align: center;
    margin-bottom: 56px;
}

.about-title {
    font-size: 38px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.about-intro {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Medical Resources Section */
.medical-resources-section {
    margin-bottom: 80px;
}

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

.resource-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.resource-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

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

.resource-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    color: var(--white);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.resource-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.resource-content {
    padding: 24px;
}

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

.resource-subtitle {
    font-size: 14px;
    color: #3A7075;
    font-weight: 500;
    margin-bottom: 12px;
}

.resource-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.resource-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.resource-tag {
    padding: 4px 12px;
    background: var(--primary-light);
    color: var(--primary-hover);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 500;
}

/* TikTok Section */
.tiktok-section {
    margin-bottom: 80px;
    text-align: center;
}

.tiktok-intro {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    margin-top: -32px;
}

.tiktok-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.tiktok-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.tiktok-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.tiktok-thumbnail {
    aspect-ratio: 9 / 16;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
}

.tiktok-play {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.tiktok-card:hover .tiktok-play {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.tiktok-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.5);
    color: var(--white);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 500;
}

.tiktok-info {
    padding: 16px;
    text-align: left;
}

.tiktok-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    line-height: 1.5;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tiktok-meta {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    gap: 6px;
}

.tiktok-cta {
    display: flex;
    justify-content: center;
}

/* Why Choose Box */
.why-choose-box {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: var(--radius-xl);
    padding: 48px;
    color: var(--white);
}

.why-choose-box .section-subtitle {
    color: var(--white);
    margin-bottom: 40px;
}

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

.why-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.why-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--white);
}

.why-text h4 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 6px;
}

.why-text p {
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.6;
}

/* Responsive Design for About Section */
@media (max-width: 1024px) {
    .resources-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    .about-title {
        font-size: 28px;
    }

    .about-intro {
        font-size: 16px;
    }

    .resources-grid {
        gap: 24px;
    }

    .resource-image {
        height: 160px;
    }

    .resource-icon {
        width: 64px;
        height: 64px;
    }

    .tiktok-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .tiktok-thumbnail {
        min-height: 320px;
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .why-choose-box {
        padding: 32px 24px;
    }
}

/* ==================== Toast Animations (moved from JS) ==================== */
@keyframes slideDown {
    from {
        transform: translateX(-50%) translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    to {
        transform: translateX(-50%) translateY(-100%);
        opacity: 0;
    }
}