/* ==========================================================================
   AquaClean 洗衣店 Landing Page - 現代專業科技風格
   ========================================================================== */

:root {
    /* 核心色調 */
    --primary-color: #0A2540;   /* 深邃藍 - 專業權威 */
    --brand-mint: #00D4B2;      /* 電光薄荷綠 - 潔淨科技 */
    --accent-color: #FF5E36;    /* 活力珊瑚橙 - 高轉換率 CTA */
    --bg-light: #F6F9FC;        /* 柔和灰藍背景 */
    --card-bg: #FFFFFF;
    --text-dark: #1A1F36;       /* 主字體色 */
    --text-muted: #4F566B;      /* 次字體色 */
    --text-light: #FFFFFF;
    --border-color: #E2E8F0;
    --shadow-soft: 0 10px 30px rgba(10, 37, 64, 0.08);
    --shadow-hover: 0 20px 40px rgba(10, 37, 64, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --------------------------------------------------------------------------
   頂部導覽列 (Navbar)
   -------------------------------------------------------------------------- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 16px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 20px rgba(10, 37, 64, 0.06);
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 12px 8%;
    background: rgba(255, 255, 255, 0.98);
}

.logo {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--brand-mint);
}

.btn-nav {
    background: var(--primary-color);
    color: white;
    padding: 10px 22px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-nav:hover {
    background: var(--accent-color);
    box-shadow: 0 4px 15px rgba(255, 94, 54, 0.35);
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Hero 視覺區塊
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 120px 8% 60px 8%;
    background-color: var(--primary-color);
    background-image: 
        radial-gradient(circle at 80% 20%, rgba(0, 212, 178, 0.15) 0%, transparent 40%),
        linear-gradient(135deg, rgba(10, 37, 64, 0.92) 0%, rgba(10, 37, 64, 0.75) 100%), 
        url('https://images.unsplash.com/photo-1517677208171-0bc6725a3e60?auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
    color: var(--text-light);
}

.hero-content {
    max-width: 620px;
    z-index: 2;
}

.urgency-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 212, 178, 0.12);
    border: 1px solid rgba(0, 212, 178, 0.4);
    color: #E2E8F0;
    padding: 8px 18px;
    border-radius: 30px;
    font-weight: 500;
    font-size: 0.88rem;
    margin-bottom: 24px;
    backdrop-filter: blur(8px);
}

.timer-badge {
    background: var(--accent-color);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.5px;
}

.hero-content h1 {
    font-size: 3.4rem;
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-content h1 .highlight {
    color: var(--brand-mint);
}

.hero-content p {
    font-size: 1.15rem;
    margin-bottom: 36px;
    line-height: 1.7;
    color: #CBD5E1;
}

.cta-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.btn-large {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 16px 42px;
    font-size: 1.2rem;
    font-weight: 900;
    text-decoration: none;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(255, 94, 54, 0.4);
    transition: all 0.3s ease;
    animation: pulse 2.5s infinite;
}

.btn-large:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(255, 94, 54, 0.6);
}

.spots-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: #94A3B8;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--brand-mint);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(0, 212, 178, 0.7);
    animation: dotPulse 1.8s infinite;
}

/* SVG 洗衣機動畫 */
.hero-animation {
    width: 380px;
    height: 380px;
    z-index: 2;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.3));
}

.drum {
    transform-origin: 50px 60px;
    animation: spin 3s linear infinite;
}

.bubble {
    transform-box: fill-box;
    transform-origin: center;
    animation: floatUp 2.2s ease-in-out infinite;
}

.bubble:nth-child(2) { animation-delay: 0.8s; animation-duration: 2.6s; }
.bubble:nth-child(3) { animation-delay: 1.4s; animation-duration: 1.9s; }

/* --------------------------------------------------------------------------
   動畫 Keyframes
   -------------------------------------------------------------------------- */
@keyframes spin { 
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); } 
}

@keyframes floatUp {
    0% { transform: translateY(0) scale(0.5); opacity: 0; }
    40% { opacity: 0.9; }
    100% { transform: translateY(-45px) scale(1.3); opacity: 0; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

@keyframes dotPulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 212, 178, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(0, 212, 178, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 212, 178, 0); }
}

/* --------------------------------------------------------------------------
   服務特色區塊 (Features)
   -------------------------------------------------------------------------- */
.features {
    padding: 100px 8%;
    background: var(--bg-light);
}

.section-title {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px auto;
}

.section-title h2 {
    font-size: 2.3rem;
    font-weight: 900;
    color: var(--primary-color);
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.card {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.35s ease;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

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

.card-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

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

.card:hover img {
    transform: scale(1.06);
}

.card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(10, 37, 64, 0.85);
    color: var(--brand-mint);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

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

.card-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.card-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.65;
}

/* --------------------------------------------------------------------------
   服務流程區塊 (Process)
   -------------------------------------------------------------------------- */
.process {
    padding: 90px 8%;
    background: white;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.step-item {
    padding: 30px;
    background: var(--bg-light);
    border-radius: 18px;
    position: relative;
    border: 1px solid var(--border-color);
}

.step-num {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--brand-mint);
    margin-bottom: 12px;
}

.step-item h3 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.step-item p {
    color: var(--text-muted);
    font-size: 0.92rem;
}

/* --------------------------------------------------------------------------
   強烈行動呼籲區塊 (Pricing CTA)
   -------------------------------------------------------------------------- */
.pricing-cta {
    padding: 80px 8%;
    background: var(--bg-light);
}

.cta-box {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1E3A8A 100%);
    border-radius: 28px;
    padding: 60px 40px;
    text-align: center;
    color: white;
    box-shadow: var(--shadow-hover);
}

.cta-box h2 {
    font-size: 2.4rem;
    font-weight: 900;
    margin-bottom: 16px;
}

.cta-box p {
    font-size: 1.15rem;
    color: #CBD5E1;
    margin-bottom: 32px;
}

.cta-box p strong {
    color: var(--brand-mint);
}

/* --------------------------------------------------------------------------
   頁尾 (Footer)
   -------------------------------------------------------------------------- */
footer {
    background: var(--primary-color);
    color: #94A3B8;
    padding: 60px 8% 30px 8%;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-logo h3 {
    color: white;
    font-size: 1.4rem;
    margin-bottom: 6px;
}

.footer-info p {
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   預約 Modal 與 Toast 訊息
   -------------------------------------------------------------------------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 37, 64, 0.7);
    backdrop-filter: blur(6px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background: white;
    width: 90%;
    max-width: 480px;
    padding: 36px;
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-card {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 22px;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text-muted);
    cursor: pointer;
}

.modal-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 6px;
}

.modal-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 18px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 6px;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group input:focus, .form-group select:focus {
    border-color: var(--brand-mint);
}

.btn-submit {
    width: 100%;
    background: var(--accent-color);
    color: white;
    padding: 14px;
    border: none;
    border-radius: 30px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(255, 94, 54, 0.35);
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-submit:hover {
    background: #E04822;
}

.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--primary-color);
    color: var(--brand-mint);
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    z-index: 3000;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

/* --------------------------------------------------------------------------
   響應式設計 (Responsive Design)
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding-top: 130px;
    }

    .hero-content {
        max-width: 100%;
    }

    .cta-group {
        align-items: center;
    }

    .hero-animation {
        width: 300px;
        height: 300px;
        margin-top: 40px;
    }

    .nav-links {
        display: none; /* 手機版簡化導覽列 */
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2.3rem;
    }

    .btn-large {
        width: 100%;
        padding: 14px 24px;
        font-size: 1.1rem;
    }

    .cta-box h2 {
        font-size: 1.8rem;
    }
}
