/* ============================================================
   佳康运动康复官网 - 全局样式
   Primary: #0d9488 (teal)  Secondary: #0f172a (navy)
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
    font-size: 16px; line-height: 1.7; color: #334155; background: #f8fafc;
    overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
a { color: #0d9488; text-decoration: none; transition: color 0.2s; }
a:hover { color: #0f766e; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* --- Typography --- */
h1,h2,h3,h4,h5,h6 { color: #0f172a; font-weight: 700; line-height: 1.3; }
h1 { font-size: clamp(32px, 5vw, 48px); }
h2 { font-size: clamp(26px, 4vw, 36px); }
h3 { font-size: clamp(20px, 3vw, 24px); }

/* --- Buttons --- */
.btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 22px; border-radius: 8px; font-size: 14px; font-weight: 600;
    border: none; cursor: pointer; transition: all 0.25s; text-align: center; text-decoration: none;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 15px rgba(0,0,0,.12); }
.btn:active { transform: translateY(0); }
.btn-primary { background: linear-gradient(135deg, #0d9488, #0f766e); color: #fff; }
.btn-primary:hover { background: linear-gradient(135deg, #0f766e, #0d9488); color: #fff; }
.btn-outline { border: 2px solid #0d9488; color: #0d9488; background: transparent; }
.btn-outline:hover { background: #0d9488; color: #fff; }
.btn-white { background: #fff; color: #0f172a; }
.btn-phone { background: #0f172a; color: #fff; font-size: 14px; padding: 8px 18px; white-space: nowrap; }
.btn-phone:hover { background: #1e293b; color: #fff; }
.btn-join { background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; white-space: nowrap; }
.btn-join:hover { background: linear-gradient(135deg, #d97706, #f59e0b); color: #fff; }
.btn-lg { padding: 14px 36px; font-size: 16px; border-radius: 10px; }
.btn-block { display: flex; justify-content: center; width: 100%; }

/* --- Header --- */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(255,255,255,.95); backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0,0,0,.06); transition: box-shadow 0.3s;
}
.site-header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.08); }
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 72px; gap: 20px;
}
.logo-wrap { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.logo-icon svg { display: block; }
.main-nav ul { display: flex; gap: 8px; }
.main-nav a {
    display: block; padding: 8px 16px; font-size: 15px; font-weight: 500;
    color: #475569; border-radius: 6px; transition: all 0.2s;
}
.main-nav a:hover, .main-nav a.active { color: #0d9488; background: rgba(13,148,136,.08); }
.header-actions { display: flex; align-items: center; gap: 10px; }

/* Mobile Toggle */
.mobile-toggle {
    display: none; flex-direction: column; gap: 5px; padding: 6px;
    background: none; border: none; cursor: pointer;
}
.mobile-toggle span {
    display: block; width: 24px; height: 2.5px;
    background: #0f172a; border-radius: 2px; transition: all 0.3s;
}
.mobile-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.mobile-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* --- Main --- */
.site-main { padding-top: 72px; }

/* --- Hero Section --- */
.hero {
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 40%, #0d6b63 100%);
    padding: 100px 0 80px; color: #fff; text-align: center;
}
.hero::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(13,148,136,.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(245,158,11,.1) 0%, transparent 50%);
    animation: heroPulse 8s ease-in-out infinite;
}
@keyframes heroPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; margin-bottom: 16px; }
.hero h1 span { background: linear-gradient(135deg, #0d9488, #5eead4); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero .hero-subtitle { font-size: 18px; color: #94a3b8; max-width: 700px; margin: 0 auto 30px; }
.hero .hero-tags {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 36px;
}
.hero .hero-tags span {
    padding: 6px 16px; border-radius: 20px; font-size: 13px; font-weight: 500;
    background: rgba(255,255,255,.1); color: #cbd5e1; border: 1px solid rgba(255,255,255,.1);
}
.hero .hero-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.hero .hero-stats { display: flex; justify-content: center; gap: 60px; margin-top: 50px; flex-wrap: wrap; }
.hero .hero-stats .hs-item { text-align: center; }
.hero .hero-stats .hs-num { font-size: 40px; font-weight: 800; color: #0d9488; }
.hero .hero-stats .hs-label { font-size: 14px; color: #94a3b8; margin-top: 4px; }

/* --- Section Common --- */
.section { padding: 80px 0; }
.section-gray { background: #f1f5f9; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header .section-tag {
    display: inline-block; padding: 4px 14px; border-radius: 20px; font-size: 13px; font-weight: 600;
    background: rgba(13,148,136,.1); color: #0d9488; margin-bottom: 12px;
}
.section-header h2 { margin-bottom: 12px; }
.section-header p { color: #64748b; font-size: 16px; max-width: 600px; margin: 0 auto; }

/* --- Cards --- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.card {
    background: #fff; border-radius: 16px; padding: 32px 28px;
    box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.04);
    transition: all 0.3s; border: 1px solid #e2e8f0;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,.08); }
.card-icon {
    width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center;
    justify-content: center; margin-bottom: 16px; background: linear-gradient(135deg, rgba(13,148,136,.12), rgba(13,148,136,.06));
    color: #0d9488;
}
.card h3 { font-size: 18px; margin-bottom: 10px; }
.card p { color: #64748b; font-size: 14px; line-height: 1.7; }

/* --- About Page --- */
.about-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-intro .about-text h2 { margin-bottom: 20px; }
.about-intro .about-text p { color: #64748b; margin-bottom: 16px; }
.about-intro .about-image {
    background: linear-gradient(135deg, #0d9488, #0f172a); border-radius: 20px;
    padding: 60px; text-align: center; color: #fff;
}
.about-intro .about-image .big-year { font-size: 72px; font-weight: 800; }
.about-intro .about-image .year-label { font-size: 18px; opacity: .8; margin-top: 8px; }
.culture-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.culture-card {
    text-align: center; padding: 36px 20px; border-radius: 16px; background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.04); transition: all 0.3s; border: 1px solid #e2e8f0;
}
.culture-card:hover { transform: translateY(-3px); box-shadow: 0 6px 24px rgba(0,0,0,.06); }
.culture-card .cc-icon { font-size: 36px; margin-bottom: 12px; }
.culture-card h4 { font-size: 18px; color: #0d9488; margin-bottom: 6px; }

/* --- Services Page --- */
.service-block { margin-bottom: 60px; }
.service-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 24px; }
.service-card { background: #fff; border-radius: 14px; padding: 28px; box-shadow: 0 1px 3px rgba(0,0,0,.04); border: 1px solid #e2e8f0; }
.service-card h4 { color: #0d9488; font-size: 18px; margin-bottom: 8px; }
.service-card p { color: #64748b; font-size: 14px; }
.tech-highlight {
    background: linear-gradient(135deg, #0f172a, #1e3a5f);
    border-radius: 20px; padding: 50px; color: #fff; text-align: center; margin-top: 50px;
}
.tech-highlight h3 { color: #fff; margin-bottom: 10px; }
.tech-highlight p { color: #94a3b8; max-width: 700px; margin: 0 auto; }

/* --- Franchise Section --- */
.franchise-hero {
    background: linear-gradient(135deg, #f59e0b, #ea580c); border-radius: 20px;
    padding: 60px 50px; text-align: center; color: #fff; margin-bottom: 50px;
}
.franchise-hero h2 { color: #fff; margin-bottom: 12px; font-size: 32px; }
.franchise-hero p { opacity: .9; max-width: 700px; margin: 0 auto 24px; }
.compare-table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 30px 0; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,.06); }
.compare-table th, .compare-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid #e2e8f0; }
.compare-table th { background: #0f172a; color: #fff; font-weight: 600; font-size: 15px; }
.compare-table tr:nth-child(even) { background: #f8fafc; }
.compare-table tr:nth-child(odd) { background: #fff; }
.compare-table td.highlight { color: #0d9488; font-weight: 700; }
.fee-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.fee-card {
    text-align: center; background: #fff; border-radius: 16px; padding: 36px 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,.06); border: 1px solid #e2e8f0; transition: all .3s;
}
.fee-card:hover { transform: translateY(-4px); }
.fee-card.featured { border-color: #0d9488; box-shadow: 0 8px 32px rgba(13,148,136,.15); }
.fee-card .fee-amount { font-size: 36px; font-weight: 800; color: #0d9488; }
.fee-card .fee-label { font-size: 15px; color: #64748b; margin-bottom: 12px; }
.fee-card .fee-desc { font-size: 13px; color: #94a3b8; margin-bottom: 20px; line-height: 1.6; }
.delivery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 30px; }
.delivery-item { background: #fff; border-radius: 12px; padding: 20px; display: flex; gap: 14px; align-items: flex-start; border: 1px solid #e2e8f0; }
.delivery-item .di-num { font-size: 20px; font-weight: 800; color: #0d9488; flex-shrink: 0; min-width: 32px; }
.delivery-item .di-content h5 { font-size: 16px; margin-bottom: 4px; }
.delivery-item .di-content p { font-size: 13px; color: #64748b; }

/* --- Contact Page --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info .ci-item { display: flex; gap: 16px; align-items: flex-start; padding: 24px; background: #fff; border-radius: 12px; margin-bottom: 16px; box-shadow: 0 1px 3px rgba(0,0,0,.04); border: 1px solid #e2e8f0; }
.contact-info .ci-icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(13,148,136,.1); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #0d9488; }
.contact-info .ci-text h4 { font-size: 16px; margin-bottom: 4px; }
.contact-info .ci-text p, .contact-info .ci-text a { font-size: 15px; color: #64748b; }
.contact-form-wrap { background: #fff; border-radius: 16px; padding: 36px; box-shadow: 0 4px 24px rgba(0,0,0,.06); border: 1px solid #e2e8f0; }
.contact-form-wrap h3 { margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: #334155; }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%; padding: 12px 16px; border: 1.5px solid #e2e8f0; border-radius: 10px;
    font-size: 15px; font-family: inherit; color: #334155; background: #f8fafc;
    transition: all 0.25s; outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: #0d9488; box-shadow: 0 0 0 3px rgba(13,148,136,.1); background: #fff; }
.form-group select { appearance: none; background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e"); background-position: right 12px center; background-repeat: no-repeat; padding-right: 40px; }
.map-wrap { margin-top: 40px; border-radius: 16px; overflow: hidden; height: 320px; background: #e2e8f0; }

/* --- Lead Modal --- */
.lead-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,.5);
    display: flex; align-items: center; justify-content: center; z-index: 9999;
    opacity: 0; visibility: hidden; transition: all 0.3s; backdrop-filter: blur(4px);
}
.lead-modal-overlay.active { opacity: 1; visibility: visible; }
.lead-modal {
    background: #fff; border-radius: 20px; padding: 40px 32px; max-width: 460px; width: 90%;
    position: relative; box-shadow: 0 20px 60px rgba(0,0,0,.15); transform: scale(.9) translateY(20px);
    transition: transform 0.3s; max-height: 90vh; overflow-y: auto;
}
.lead-modal-overlay.active .lead-modal { transform: scale(1) translateY(0); }
.lead-modal.success-state { max-width: 400px; }
.lead-modal-close {
    position: absolute; top: 12px; right: 16px; font-size: 28px; color: #94a3b8; background: none;
    border: none; cursor: pointer; width: 36px; height: 36px; display: flex; align-items: center;
    justify-content: center; border-radius: 50%; transition: all .2s;
}
.lead-modal-close:hover { background: #f1f5f9; color: #0f172a; }
.lead-modal-header { text-align: center; margin-bottom: 24px; }
.lead-badge {
    display: inline-block; padding: 4px 14px; border-radius: 20px; font-size: 12px; font-weight: 700;
    background: rgba(245,158,11,.15); color: #d97706; margin-bottom: 10px;
}
.lead-modal-header h3 { font-size: 22px; }
.lead-modal-header p { color: #64748b; font-size: 14px; margin-top: 6px; }
.form-note { text-align: center; font-size: 12px; color: #94a3b8; margin-top: 12px; }
.lead-success { text-align: center; padding: 20px 0; }
.lead-success p { font-size: 16px; color: #334155; margin: 16px 0; }
.lead-success .btn { margin-top: 12px; }

/* --- Float Call & Back to Top --- */
.mobile-float-call {
    display: none; position: fixed; bottom: 24px; right: 24px; z-index: 999;
    width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, #0d9488, #0f766e);
    box-shadow: 0 4px 16px rgba(13,148,136,.4); align-items: center; justify-content: center;
    animation: floatBounce 2s ease-in-out infinite;
}
@keyframes floatBounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)} }
.back-to-top {
    position: fixed; bottom: 24px; right: 88px; z-index: 998;
    width: 44px; height: 44px; border-radius: 50%; background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,.1); border: 1px solid #e2e8f0;
    align-items: center; justify-content: center; cursor: pointer;
    opacity: 0; visibility: hidden; transition: all .3s; display: flex;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: #0f172a; color: #fff; }

/* --- CTA Banner --- */
.cta-banner {
    padding: 60px 0; text-align: center;
    background: linear-gradient(135deg, #0d9488, #0f766e); color: #fff; border-radius: 20px;
    margin: 60px 0;
}
.cta-banner h2 { color: #fff; margin-bottom: 12px; }
.cta-banner p { opacity: .9; margin-bottom: 24px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* --- Stats Row --- */
.stats-row { display: flex; justify-content: center; gap: 60px; flex-wrap: wrap; padding: 40px 0; }
.stat-item { text-align: center; }
.stat-number { font-size: 42px; font-weight: 800; color: #0d9488; }
.stat-label { font-size: 14px; color: #64748b; margin-top: 6px; }

/* --- Page Banner (internal) --- */
.page-banner {
    padding: 80px 0 60px; text-align: center;
    background: linear-gradient(135deg, #0f172a, #1e3a5f);
    color: #fff; position: relative; overflow: hidden;
}
.page-banner::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 60px;
    background: linear-gradient(to top, #f8fafc, transparent);
}
.page-banner h1 { color: #fff; margin-bottom: 10px; }
.page-banner p { color: #94a3b8; font-size: 16px; }

/* --- 2 Column Grid --- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }

/* --- Timeline --- */
.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: #0d9488; opacity: .3; }
.timeline-item { position: relative; margin-bottom: 30px; padding-left: 30px; }
.timeline-item::before { content: ''; position: absolute; left: -26px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: #0d9488; border: 3px solid #ccfbf1; }
.timeline-item h4 { font-size: 16px; color: #0d9488; margin-bottom: 4px; }
.timeline-item p { color: #64748b; font-size: 14px; }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .about-intro, .contact-grid, .grid-2 { grid-template-columns: 1fr; gap: 30px; }
    .hero .hero-stats { gap: 30px; }
}
@media (max-width: 768px) {
    .main-nav {
        position: fixed; top: 72px; left: 0; right: 0; background: rgba(255,255,255,.98);
        backdrop-filter: blur(12px); padding: 16px 0; box-shadow: 0 4px 20px rgba(0,0,0,.08);
        transform: translateY(-120%); opacity: 0; transition: all .3s; z-index: 999;
    }
    .main-nav.open { transform: translateY(0); opacity: 1; }
    .main-nav ul { flex-direction: column; padding: 0; }
    .main-nav a { padding: 12px 24px; border-radius: 0; font-size: 16px; }
    .mobile-toggle { display: flex; }
    .header-actions .btn-join { display: none; }
    .header-actions .btn-phone { font-size: 12px; padding: 6px 12px; }
    .hero { padding: 80px 0 60px; }
    .hero .hero-stats { gap: 20px; }
    .hero .hero-stats .hs-num { font-size: 30px; }
    .mobile-float-call { display: flex; }
    .back-to-top { right: 76px; }
    .card-grid { grid-template-columns: 1fr; }
    .service-list { grid-template-columns: 1fr; }
    .franchise-hero { padding: 36px 24px; }
    .franchise-hero h2 { font-size: 24px; }
    .form-row { grid-template-columns: 1fr; }
    .section { padding: 50px 0; }
    .fee-cards { grid-template-columns: 1fr; }
    .delivery-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .hero h1 { font-size: 28px; }
    .hero .hero-tags span { font-size: 12px; padding: 4px 10px; }
    .hero .hero-actions { flex-direction: column; align-items: center; }
    .hero .hero-actions .btn { width: 100%; max-width: 280px; justify-content: center; }
}

/* --- Animation --- */
.fade-up { opacity: 0; transform: translateY(30px); transition: all 0.7s ease-out; }
.fade-up.in-view { opacity: 1; transform: translateY(0); }

/* --- Footer --- */
.site-footer {
    background: #0f172a; color: #94a3b8; padding: 60px 0 30px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer-col p { font-size: 14px; line-height: 1.7; }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li, .footer-col ul li a { font-size: 14px; color: #94a3b8; transition: color .2s; }
.footer-col ul li a:hover { color: #0d9488; }
.footer-social { margin-top: 16px; }
.footer-social .social-label { font-size: 14px; color: #cbd5e1; margin-right: 8px; }
.footer-social .social-phone { font-size: 18px; font-weight: 700; color: #0d9488; }
.contact-list li { display: flex; align-items: flex-start; gap: 10px; }
.contact-list li svg { flex-shrink: 0; margin-top: 4px; color: #0d9488; }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); text-align: center; font-size: 13px; }
@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}
