@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@300;400;500;700&family=Noto+Serif+TC:wght@400;500;600;700&display=swap');

:root {
    --primary-red: #cc0000;
    --dark-red: #990000;
    --gold: #d4af37;
    --gold-gradient: linear-gradient(135deg, #d4af37 0%, #f4e4bc 100%);
    --light-gold: #fdf8e6;
    --white: #ffffff;
    --bg-gray: #f5f5f7;
    --text-dark: #1d1d1f;
    --text-muted: #86868b;
    --radius: 20px;
    --safe-area-inset-bottom: env(safe-area-inset-bottom, 20px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Noto Sans TC', sans-serif;
    background-color: var(--bg-gray);
    color: var(--text-dark);
    line-height: 1.6;
    width: 100%;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: 'Noto Serif TC', serif;
}

/* Mobile Wrapper - Forces a mobile feel on desktop */
.mobile-wrapper {
    max-width: 500px;
    margin: 0 auto;
    background: var(--white);
    min-height: 100vh;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate {
    opacity: 0;
    transition: 0.8s cubic-bezier(0.2, 1, 0.2, 1);
}

.animate-in {
    opacity: 1;
    transform: translateY(0) !important;
}

/* Hero Section */
.hero {
    position: relative;
    height: 70vh;
    /* Shorter for mobile to show next section */
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(139, 0, 0, 0.8) 100%),
        url('hero.png');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px 20px;
    color: var(--white);
}

.logo-top {
    position: absolute;
    top: 20px;
    left: 20px;
    height: 40px;
    filter: brightness(0) invert(1);
    /* Force to white */
}

.hero h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 15px;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
}

.hero .badges {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.badge {
    background: var(--gold);
    color: var(--dark-red);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 700;
}

.hero p {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 300;
    border-left: 2px solid var(--gold);
    padding-left: 15px;
}

/* Section Common */
section {
    padding: 40px 20px;
}

.section-title {
    font-size: 1.8rem;
    color: var(--primary-red);
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--gold);
    margin: 10px auto;
}

/* Highlights - Vertical Stack */
.highlight-card {
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.02);
    transform: translateY(20px);
}

.highlight-card h3 {
    color: var(--primary-red);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.highlight-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Requirements */
.req-box {
    background: var(--light-gold);
    border-radius: var(--radius);
    padding: 30px 15px;
    margin-bottom: 30px;
}

.req-item {
    background: var(--white);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 12px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.req-num {
    background: var(--primary-red);
    color: var(--white);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 2px;
}

.req-item p {
    font-size: 0.95rem;
    font-weight: 500;
}

/* Vertical Process */
.process-vertical {
    border-left: 2px dashed var(--gold);
    margin-left: 10px;
    padding-left: 30px;
    position: relative;
}

.process-step {
    margin-bottom: 40px;
    position: relative;
}

.process-step::before {
    content: '';
    position: absolute;
    left: -38px;
    top: 0;
    width: 14px;
    height: 14px;
    background: var(--gold);
    border-radius: 50%;
    border: 3px solid var(--white);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.2);
}

.step-label {
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.step-content {
    background: var(--white);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid var(--primary-red);
    font-size: 0.95rem;
}

/* Footer & Action Bar */
footer {
    background: var(--primary-red);
    color: var(--white);
    padding: 60px 20px;
    text-align: center;
}

.footer-slogan {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.footer-item h4 {
    color: var(--gold);
    margin-bottom: 5px;
}

/* Scroll Snap */
html {
    scroll-snap-type: y proximity;
}

section {
    scroll-snap-align: start;
}