:root {
    color-scheme: light;
    font-family: "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background-color: #f8fafc;
    --primary: #3b82f6;
    --secondary: #8b5cf6;
    /* 调整为移动端导航高度：Tailwind h-20 = 80px */
    --header-height: 80px;
}

/* 桌面端（lg ≥ 1024px）使用更高的导航高度：Tailwind h-24 = 96px */
@media (min-width: 1024px) {
  :root { --header-height: 96px; }
}

body {
    margin: 0;
    font-family: inherit;
    background-color: inherit;
}

.site-main {
    min-height: 60vh;
    padding-top: calc(var(--header-height));
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.site-header__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    min-height: var(--header-height);
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.site-logo img {
    display: block;
    height: 48px;
    width: auto;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.site-logo img:hover {
    transform: scale(1.05);
    opacity: 0.92;
}

/* OLD NAVIGATION STYLES - COMMENTED OUT TO AVOID CONFLICTS WITH TAILWIND
.site-header__nav {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.site-nav__list {
    display: flex;
    align-items: center;
    gap: 2.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav__item {
    position: relative;
}

.site-nav__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0;
    font-weight: 600;
    font-size: 1rem;
    color: #1f2937;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-nav__link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -0.35rem;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 999px;
    transition: width 0.25s ease;
}

.site-nav__item:hover .site-nav__link,
.site-nav__item:focus-within .site-nav__link {
    color: var(--primary);
}

.site-nav__item:hover .site-nav__link::after,
.site-nav__item:focus-within .site-nav__link::after,
.site-nav__item.active .site-nav__link::after {
    width: 100%;
}

.site-nav__item.active .site-nav__link {
    color: #0f172a;
}

.site-nav__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(120deg, var(--primary), var(--secondary));
    box-shadow: 0 12px 24px rgba(59, 130, 246, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    border: none;
    cursor: pointer;
}

.site-nav__cta:hover,
.site-nav__cta:focus {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 16px 32px rgba(139, 92, 246, 0.25);
}
*/

.nav-cta {
    position: relative;
}

.nav-cta__panel {
    position: absolute;
    top: calc(100% + 1rem);
    right: 0;
    width: 360px;
    padding: 1.75rem;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.95) 0%, #ffffff 100%);
    box-shadow: 0 32px 64px rgba(15, 23, 42, 0.18);
    border: 1px solid rgba(226, 232, 240, 0.8);
    backdrop-filter: blur(12px);
    z-index: 120;
}

.nav-cta__form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.nav-form__grid {
    display: grid;
    gap: 0.9rem 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.nav-form__field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.9rem;
}

.nav-form__field span {
    font-weight: 600;
    color: #0f172a;
}

.nav-form__field em {
    color: #ef4444;
    font-style: normal;
    margin-left: 0.1rem;
}

.nav-form__input,
.nav-form__select {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    padding: 0.65rem 0.85rem;
    font-size: 0.95rem;
    color: #0f172a;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: rgba(255, 255, 255, 0.97);
}
.home-form__textarea { min-height: 120px; }
.nav-form__input:focus,
.nav-form__select:focus {
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    outline: none;
}

.nav-form__submit {
    margin-top: 0.5rem;
    border: none;
    border-radius: 999px;
    background: linear-gradient(120deg, #2563eb, #7c3aed);
    color: #fff;
    font-weight: 600;
    padding: 0.75rem 1.6rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-form__submit:hover,
.nav-form__submit:focus {
    transform: translateY(-1px);
    box-shadow: 0 18px 32px rgba(59, 130, 246, 0.25);
}

.nav-form__hint {
    margin: 0;
    font-size: 0.8rem;
    color: #64748b;
    text-align: center;
}
.nav-form__field .errorlist {
    margin: 0;
    padding: 0;
    list-style: none;
    color: #b91c1c;
    font-size: 0.78rem;
}

/* Home appointment form inputs */
.home-form__input,
.home-form__select,
.home-form__textarea {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    padding: 0.65rem 0.85rem;
    font-size: 0.95rem;
    color: #0f172a;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: rgba(255, 255, 255, 0.97);
}
.home-form__textarea { min-height: 120px; }
.home-form__input:focus,
.home-form__select:focus,
.home-form__textarea:focus {
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    outline: none;
}

.global-messages {
    padding: 0.75rem 0;
}

.global-message {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.92rem;
    background: rgba(59, 130, 246, 0.12);
    color: #1d4ed8;
    margin-bottom: 0.5rem;
}

.global-message--error {
    background: rgba(239, 68, 68, 0.15);
    color: #b91c1c;
}

.global-message--success {
    background: rgba(34, 197, 94, 0.15);
    color: #166534;
}

.global-message:last-child {
    margin-bottom: 0;
}

/* OLD MOBILE NAVIGATION STYLES - COMMENTED OUT TO AVOID CONFLICTS WITH TAILWIND
.site-header__toggle {
    display: none;
    position: relative;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.04);
    cursor: pointer;
    transition: background 0.2s ease;
}

.site-header__toggle:hover,
.site-header__toggle:focus {
    background: rgba(59, 130, 246, 0.12);
}

.site-header__toggle-icon,
.site-header__toggle-icon::before,
.site-header__toggle-icon::after {
    display: block;
    position: absolute;
    left: 50%;
    width: 20px;
    height: 2px;
    background: #1f2937;
    border-radius: 999px;
    content: '';
    transform: translateX(-50%);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.site-header__toggle-icon {
    top: 50%;
    transform: translate(-50%, -50%);
}

.site-header__toggle-icon::before {
    top: -6px;
}

.site-header__toggle-icon::after {
    top: 6px;
}

#site-nav-toggle[aria-expanded="true"] .site-header__toggle-icon {
    background: transparent;
}

#site-nav-toggle[aria-expanded="true"] .site-header__toggle-icon::before {
    transform: translate(-50%, 6px) rotate(45deg);
}

#site-nav-toggle[aria-expanded="true"] .site-header__toggle-icon::after {
    transform: translate(-50%, -6px) rotate(-45deg);
}

.site-mobile-nav[hidden] {
    display: none;
}

.site-mobile-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
    padding: 1.75rem 1.5rem 2rem;
}

.site-mobile-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.site-mobile-nav__item a {
    display: block;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    font-weight: 600;
    color: #1f2937;
    text-decoration: none;
    background: rgba(15, 23, 42, 0.03);
    transition: background 0.2s ease, color 0.2s ease;
}

.site-mobile-nav__item a:hover,
.site-mobile-nav__item a:focus {
    background: rgba(59, 130, 246, 0.12);
    color: var(--primary);
}

.site-mobile-nav__item.active a {
    background: rgba(59, 130, 246, 0.16);
    color: #0f172a;
}

.site-mobile-nav__cta {
    display: block;
    margin-top: 1.5rem;
    padding: 1rem;
    text-align: center;
    border-radius: 14px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(120deg, var(--primary), var(--secondary));
    box-shadow: 0 16px 32px rgba(59, 130, 246, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.site-mobile-nav__cta:hover,
.site-mobile-nav__cta:focus {
    transform: translateY(-1px);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.25);
}
*/

.site-footer {
    position: relative;
    /* margin-top: 4rem; */
    padding: 4rem 0;
    background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
    color: #e2e8f0;
    overflow: hidden;
    text-align: center;
}

.site-footer__overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 10%, rgba(59, 130, 246, 0.25), transparent 55%),
                radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.25), transparent 55%);
    pointer-events: none;
}

.site-footer__content {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.site-footer__logo {
    height: 64px;
    width: auto;
    filter: drop-shadow(0 10px 32px rgba(59, 130, 246, 0.28));
}

.site-footer__tagline {
    max-width: 560px;
    margin: 0;
    font-size: 1.2rem;
    font-weight: 500;
    color: rgba(226, 232, 240, 0.88);
}

.site-footer__divider {
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.7), transparent);
}

.site-footer__legal {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(148, 163, 184, 0.75);
}

.button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.8rem;
    border-radius: 999px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    color: var(--primary);
    background: rgba(59, 130, 246, 0.12);
    transition: background 0.2s ease, color 0.2s ease;
}

.button-secondary:hover,
.button-secondary:focus {
    background: rgba(59, 130, 246, 0.2);
    color: #0f172a;
}

.success-card {
    background: #fff;
    border-radius: 16px;
    padding: 2.25rem;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
    text-align: center;
    margin: 2rem auto;
    max-width: 520px;
}

/* OLD NAVIGATION MEDIA QUERIES - COMMENTED OUT TO AVOID CONFLICTS WITH TAILWIND
body.site-mobile-nav-open {
    overflow: hidden;
}

@media (max-width: 1024px) {
    .site-header__nav {
        gap: 2rem;
    }
    .site-nav__list {
        gap: 1.5rem;
    }
}

@media (max-width: 900px) {
    .site-header__nav {
        display: none;
    }
    .site-header__toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .site-main {
        padding-top: calc(var(--header-height) + 16px);
    }
}

@media (min-width: 901px) {
    .site-mobile-nav {
        display: none !important;
    }
}
*/

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.6rem;
    border-radius: 999px;
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}
.button--primary {
    color: #fff;
    background: linear-gradient(120deg, var(--primary), var(--secondary));
    box-shadow: 0 12px 24px rgba(59, 130, 246, 0.25);
}
.button--primary:hover,
.button--primary:focus {
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(139, 92, 246, 0.25);
}
.button--secondary {
    color: var(--primary);
    background: rgba(59, 130, 246, 0.12);
}
.button--secondary:hover,
.button--secondary:focus {
    background: rgba(59, 130, 246, 0.2);
    color: #0f172a;
}
