:root {
    --primary-blue: #1a73e8;
    --primary-dark: #1557b0;
    --accent-green: #34a853;
    --accent-orange: #ea8c00;
    --text-dark: #202124;
    --text-gray: #5f6368;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e8eaed;
    --shadow-soft: rgba(60, 64, 67, 0.1);
    --shadow-medium: rgba(60, 64, 67, 0.15);
}

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

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
}

/* 导航栏 */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    box-shadow: 0 1px 3px var(--shadow-soft);
    z-index: 100;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.8rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-blue);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-green));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-blue);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-blue);
}

.nav-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 1.1rem;
}

.nav-phone svg {
    width: 20px;
    height: 20px;
}

/* 汉堡菜单 */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 200;
}

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

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

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

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

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    z-index: 99;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-nav.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-links {
    list-style: none;
    text-align: center;
}

.mobile-nav-links li {
    margin: 1.5rem 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.mobile-nav.active .mobile-nav-links li {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav.active .mobile-nav-links li:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav.active .mobile-nav-links li:nth-child(2) { transition-delay: 0.15s; }
.mobile-nav.active .mobile-nav-links li:nth-child(3) { transition-delay: 0.2s; }
.mobile-nav.active .mobile-nav-links li:nth-child(4) { transition-delay: 0.25s; }
.mobile-nav.active .mobile-nav-links li:nth-child(5) { transition-delay: 0.3s; }

.mobile-nav-links a {
    font-size: 1.4rem;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
}

.mobile-nav-links a.active {
    color: var(--primary-blue);
}

.mobile-nav-phone {
    margin-top: 2rem;
    font-size: 1.2rem;
    color: var(--primary-blue);
    font-weight: 600;
}

/* 按钮 */
.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary-blue);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}

.btn-secondary {
    background: white;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    background: var(--primary-blue);
    color: white;
}

/* 页面内容 */
.page-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem 4rem;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.page-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.page-header p {
    font-size: 1.1rem;
    color: var(--text-gray);
}

/* 筛选区域 */
.filter-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px var(--shadow-soft);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-label {
    font-weight: 500;
    color: var(--text-dark);
    min-width: 80px;
}

.filter-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-tag {
    padding: 0.4rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: white;
    color: var(--text-gray);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

/* 医院详情卡片 */
.hospitals-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hospital-detail-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px var(--shadow-soft);
    transition: all 0.3s ease;
}

.hospital-detail-card:hover {
    box-shadow: 0 8px 25px var(--shadow-medium);
}

.hospital-header {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.hospital-logo-lg {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #e8f0fe, #fff);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.hospital-main-info {
    flex: 1;
}

.hospital-main-info h2 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.hospital-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.badge {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-weight: 500;
}

.badge-level {
    background: #e8f0fe;
    color: var(--primary-blue);
}

.badge-type {
    background: #e6f4ea;
    color: var(--accent-green);
}

.badge-hot {
    background: #fce8e6;
    color: #d93025;
}

.hospital-address {
    font-size: 0.9rem;
    color: var(--text-gray);
}

.hospital-action {
    flex-shrink: 0;
}

.hospital-departments {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.hospital-departments h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--text-gray);
}

.dept-list {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.dept-item {
    font-size: 0.85rem;
    padding: 0.3rem 0.8rem;
    background: var(--bg-light);
    border-radius: 4px;
    color: var(--text-gray);
}

/* CTA区域 */
.cta-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #4285f4 100%);
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    color: white;
    margin-top: 3rem;
}

.cta-section h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.cta-section p {
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.cta-section .btn-primary {
    background: white;
    color: var(--primary-blue);
}

.cta-section .btn-primary:hover {
    background: #f0f0f0;
}

/* 服务卡片 */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 2px 8px var(--shadow-soft);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-medium);
}

.service-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-blue), #4285f4);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

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

.service-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.service-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.service-price span {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-gray);
}

/* 关于页面 */
.about-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.about-text p {
    color: var(--text-gray);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.about-image {
    background: linear-gradient(135deg, #e8f0fe, #e6f4ea);
    border-radius: 16px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 2px 8px var(--shadow-soft);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* 联系页面 */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-form {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px var(--shadow-soft);
}

.contact-form h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-info-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px var(--shadow-soft);
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-card-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-blue), #4285f4);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.contact-card-icon svg {
    width: 24px;
    height: 24px;
}

.contact-card h3 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.contact-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

.contact-card a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
}

/* 页脚 */
footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 2rem 1.5rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
}

.footer-brand .logo {
    color: white;
    margin-bottom: 1rem;
}

.footer-brand .logo-icon {
    background: rgba(255, 255, 255, 0.2);
}

.footer-brand p {
    opacity: 0.7;
    font-size: 0.9rem;
}

.footer-links h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.6;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-intro {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image {
        order: -1;
        height: 200px;
    }

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

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

@media (max-width: 768px) {
    nav {
        padding: 0.8rem 1rem;
    }

    .nav-links,
    .nav-phone {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .mobile-nav {
        display: flex;
    }

    .page-content {
        padding: 5rem 1rem 3rem;
    }

    .page-header h1 {
        font-size: 1.6rem;
    }

    .filter-group {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-tags {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.5rem;
        width: 100%;
    }

    .filter-tag {
        flex-shrink: 0;
    }

    .hospital-header {
        flex-direction: column;
    }

    .hospital-action {
        width: 100%;
    }

    .hospital-action .btn {
        width: 100%;
        justify-content: center;
    }

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

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .stat-card {
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .footer-brand .logo {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.3rem;
    }

    .logo-icon {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }

    .page-header h1 {
        font-size: 1.4rem;
    }

    .cta-section {
        padding: 2rem 1rem;
    }

    .cta-section h3 {
        font-size: 1.2rem;
    }
}

/* 悬浮联系按钮 */
.floating-contact {
    position: fixed;
    right: 20px;
    bottom: 100px;
    z-index: 99;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.float-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.float-btn svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.float-phone {
    background: linear-gradient(135deg, #1a73e8, #4285f4);
    color: white;
}

.float-phone:hover {
    transform: translateX(-5px);
    box-shadow: 0 6px 20px rgba(26, 115, 232, 0.4);
}

.float-wechat {
    background: linear-gradient(135deg, #07c160, #2dc100);
    color: white;
}

.float-wechat:hover {
    transform: translateX(-5px);
    box-shadow: 0 6px 20px rgba(7, 193, 96, 0.4);
}

/* 微信弹窗 */
.wechat-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.wechat-modal.show {
    display: flex;
}

.wechat-content {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    max-width: 320px;
    position: relative;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.wechat-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #999;
}

.wechat-content h3 {
    margin-bottom: 1rem;
    color: #07c160;
}

.wechat-id {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.wechat-id strong {
    color: #07c160;
    font-size: 1.4rem;
}

.copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #07c160, #2dc100);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 0.8rem;
}

.copy-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(7, 193, 96, 0.4);
}

.copy-btn:active {
    transform: scale(0.98);
}

.wechat-tip {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 0.5rem;
}

.copy-success {
    color: #07c160;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.copy-success.show {
    opacity: 1;
}

@media (max-width: 768px) {
    .floating-contact {
        right: 10px;
        bottom: 80px;
    }

    .float-btn {
        padding: 10px 14px;
        font-size: 0.85rem;
    }

    .float-btn svg {
        width: 20px;
        height: 20px;
    }
}

