/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #77BEF0; /* Skypath Blue */
    --color-primary-dark: #4A9CD6; /* Blue 700 for contrast */
    --color-accent: #F9D88C; /* Morning Gold */
    --color-text: #2C3E50;
    --color-text-light: #5A6C7D;
    --color-text-muted: #8B9BA8;
    --color-deep-earth: #3A3A3A;
    --color-white: #FFFFFF;
    --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.12);
    --shadow-dock: 0 -4px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --transition-fast: all 0.25s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'WenQuanYi Micro Hei', 'Segoe UI', sans-serif;
    color: var(--color-text);
    line-height: 1.5;
    overflow-x: hidden;
    padding-bottom: 80px; /* Space for sticky dock on mobile */
}

.container {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 768px) {
    .container {
        padding: 0 24px;
    }
}

/* Header - Minimal */
.header {
    padding: 16px 0;
    background: transparent;
    position: relative;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* Language Toggle */
.language-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.lang-btn {
    background: none;
    border: none;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'WenQuanYi Micro Hei', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    transition: var(--transition);
    min-width: 40px;
    text-align: center;
}

.lang-btn.active {
    color: var(--color-white);
    background: rgba(119, 190, 240, 0.3);
}

.lang-btn:hover {
    color: var(--color-white);
    background: rgba(119, 190, 240, 0.2);
}

.lang-divider {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px 60px;
    overflow: hidden;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.45) 0%,
        rgba(0, 0, 0, 0.35) 50%,
        transparent 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
    width: 100%;
    margin: 0 auto;
    animation: fadeInUp 0.3s ease-out;
}

.hero-logo-text {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #77BEF0;
    text-align: center;
    margin: 0 auto 16px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
}

.hero-tagline-text {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.875rem, 2vw, 1.125rem);
    font-weight: 400;
    letter-spacing: 0.05em;
    color: #77BEF0;
    text-align: center;
    margin: 0 auto 32px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
    .hero-logo-text {
        margin-bottom: 20px;
    }
    
    .hero-tagline-text {
        margin-bottom: 40px;
    }
}

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

.hero-tagline {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.05em;
    margin-bottom: 16px;
    text-transform: uppercase;
    text-align: center;
}

.hero-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 600;
    line-height: 1.14;
    color: var(--color-white);
    margin: 0 auto 16px;
    letter-spacing: -0.02em;
    text-align: center;
}

.hero-main {
    display: block;
    white-space: nowrap;
    text-align: center;
}

.hero-locations {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 600;
    color: var(--color-primary-dark);
    margin: 0 auto 48px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    text-align: center;
}

/* CTA Bar */
.cta-bar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    margin-bottom: 24px;
}

/* Hero Notice */
.hero-notice {
    font-size: 0.875rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    line-height: 1.6;
    margin: 0 auto 32px;
    max-width: 500px;
    padding: 0 20px;
}

.hero-notice br {
    display: block;
    content: "";
    margin-top: 0.5em;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    height: 52px;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow-soft);
    width: 100%;
    max-width: 240px;
    justify-content: center;
    border: none;
    cursor: pointer;
}

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

.btn-primary:hover,
.btn-primary:focus {
    background: #6BA8D9;
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: var(--color-accent);
    color: var(--color-text);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: #F5D078;
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.btn-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Service Image */
.service-image {
    max-width: 100%;
    width: 100%;
    max-width: 320px;
    height: auto;
    margin: 0 auto 32px;
    display: block;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
    .service-image {
        max-width: 400px;
        margin-bottom: 40px;
        border-radius: 20px;
        padding: 12px;
    }
}

/* Trust Row Mini */
.trust-row-mini {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    justify-content: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.875rem;
    font-weight: 500;
}

.trust-icon {
    font-size: 1.125rem;
    opacity: 0.9;
    filter: grayscale(10%);
}

.trust-text {
    letter-spacing: 0.01em;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--color-white);
    padding: 2rem;
    border-radius: 24px;
    max-width: 400px;
    width: 90%;
    position: relative;
    text-align: center;
    animation: fadeInUp 0.3s ease-out;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--color-text-light);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.qr-placeholder {
    background: #F8F9FA;
    border: 2px dashed var(--color-text-muted);
    border-radius: 12px;
    padding: 3rem 2rem;
    margin: 1rem 0;
}

.qr-placeholder p {
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
}

.qr-hint {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* Toast */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--color-text);
    color: var(--color-white);
    padding: 1rem 2rem;
    border-radius: 50px;
    box-shadow: var(--shadow-hover);
    z-index: 3000;
    opacity: 0;
    transition: var(--transition);
    font-weight: 600;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Sticky Contact Dock (Mobile) */
.contact-dock {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: var(--color-white);
    padding: 12px;
    box-shadow: var(--shadow-dock);
    z-index: 1000;
    gap: 8px;
}

.dock-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 16px;
    padding: 12px;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-soft);
    max-width: 56px;
    height: 56px;
}

.dock-btn:hover,
.dock-btn:focus {
    background: #6BA8D9;
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-hover);
}

.dock-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.wechat-dock-btn {
    background: #07C160;
}

.wechat-dock-btn:hover,
.wechat-dock-btn:focus {
    background: #06B050;
}

/* Footer - Minimal */
.footer {
    padding: 60px 0 40px;
    text-align: center;
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-tagline {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 16px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.footer-info {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    margin-bottom: 16px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.footer-info a {
    color: var(--color-primary-dark);
    text-decoration: none;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

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

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 16px;
    font-size: 0.875rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: var(--transition);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

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

.footer-copyright {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 400;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (min-width: 768px) {
    body {
        padding-bottom: 0;
    }

    .header {
        padding: 20px 0;
    }

    .logo {
        font-size: 1.5rem;
    }

    .hero {
        min-height: calc(100vh - 100px);
        padding: 96px 24px 80px;
    }

    .cta-bar {
        flex-direction: row;
        justify-content: center;
        gap: 16px;
    }

    .btn {
        width: auto;
        min-width: 200px;
        max-width: none;
    }

    .trust-row-mini {
        flex-direction: row;
        gap: 24px;
        padding-top: 32px;
    }

    .trust-item {
        font-size: 0.9375rem;
    }

    .contact-dock {
        display: none;
    }

    .footer {
        padding: 80px 0 60px;
    }
}

@media (min-width: 1024px) {
    .hero {
        background-attachment: fixed;
    }

    .hero-bg-image {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        will-change: transform;
    }

    .cta-bar {
        gap: 20px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hero {
        background-attachment: scroll;
    }

    .hero-bg-image {
        position: absolute !important;
    }
}

/* Focus States */
button:focus,
a:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Language switching */
/* Hide Chinese content by default, but NOT language toggle buttons */
p[data-lang="zh"],
span[data-lang="zh"],
h1[data-lang="zh"],
h2[data-lang="zh"],
h3[data-lang="zh"],
div[data-lang="zh"] {
    display: none !important;
}

body.lang-zh p[data-lang="en"],
body.lang-zh span[data-lang="en"],
body.lang-zh h1[data-lang="en"],
body.lang-zh h2[data-lang="en"],
body.lang-zh h3[data-lang="en"],
body.lang-zh div[data-lang="en"] {
    display: none !important;
}

body.lang-zh p[data-lang="zh"],
body.lang-zh span[data-lang="zh"],
body.lang-zh h1[data-lang="zh"],
body.lang-zh h2[data-lang="zh"],
body.lang-zh h3[data-lang="zh"],
body.lang-zh div[data-lang="zh"] {
    display: block !important;
}

body.lang-zh span[data-lang="zh"] {
    display: inline !important;
}
