:root {
    --primary: #22486d;
    --primary-dark: #192f47;
    --primary-light: #2e6496;
    --accent: #e8a020;
    --accent-hover: #cf8c18;
    --text-dark: #1a1a2e;
    --text-mid: #444;
    --text-light: #fff;
    --bg-light: #f5f8fc;
    --bg-section: #eef3f9;
    --border: #d0dce8;
    --radius: 10px;
    --shadow: 0 4px 24px rgba(34,72,109,0.13);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Noto Sans TC', '微軟正黑體', Arial, sans-serif;
    font-size: 16px;
    color: var(--text-dark);
    background: #fff;
    line-height: 1.7;
}

/* ── Hamburger ── */
#menu-btn {
    position: fixed;
    top: 18px;
    right: 20px;
    z-index: 1100;
    background: var(--primary);
    border: none;
    border-radius: 6px;
    width: 46px;
    height: 46px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    transition: background .2s;
    box-shadow: 0 2px 10px rgba(0,0,0,.25);
}
#menu-btn:hover { background: var(--primary-dark); }
#menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform .3s, opacity .3s;
}
#menu-btn.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
#menu-btn.open span:nth-child(2) { opacity: 0; }
#menu-btn.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ── Overlay Nav ── */
#nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(22,40,66,.97);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
}
#nav-overlay.open { opacity: 1; pointer-events: all; }
#nav-overlay nav ul { list-style: none; text-align: center; }
#nav-overlay nav ul li { margin: 18px 0; }
#nav-overlay nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: .05em;
    transition: color .2s;
}
#nav-overlay nav ul li a:hover { color: var(--accent); }

/* ── Hero ── */
#hero {
    position: relative;
    width: 100%;
    min-height: 56vw;
    max-height: 90vh;
    background-image: url('/ADV/ONESHOP/IMG/basler202606_cover-img_blank.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
#hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(22,40,66,.75) 40%, rgba(34,72,109,.45) 100%);
}

/* Logo — only visible inside #hero */
.hero-logo {
    position: absolute;
    top: 22px;
    left: 24px;
    z-index: 3;
}
.hero-logo img {
    height: 44px;
    width: auto;
    display: block;
}
@media (max-width: 600px) {
    .hero-logo img { height: 32px; }
    .hero-logo { top: 14px; left: 14px; }
}

.hero-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 60px 24px;
    max-width: 860px;
}
.hero-inner h1 {
    font-size: clamp(1.6rem, 4vw, 3rem);
    font-weight: 900;
    line-height: 1.4;
    margin-bottom: 18px;
    text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.hero-inner .subtitle {
    font-size: clamp(.95rem, 2vw, 1.2rem);
    opacity: .92;
    margin-bottom: 36px;
    line-height: 1.8;
}
.btn-hero {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 14px 40px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 18px rgba(232,160,32,.5);
    transition: background .2s, transform .15s, box-shadow .2s;
    letter-spacing: .03em;
}
.btn-hero:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(232,160,32,.6);
    color: #fff;
    text-decoration: none;
}

/* ── Sections common ── */
section { padding: 72px 0; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.section-title {
    font-size: clamp(1.3rem, 2.5vw, 1.9rem);
    font-weight: 800;
    color: var(--primary);
    text-align: center;
    margin-bottom: 36px;
    position: relative;
    padding-bottom: 16px;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

/* ── Section 2: Content ── */
#content { background: var(--bg-light); }
.content-lead {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: var(--text-mid);
    margin-bottom: 20px;
    line-height: 1.9;
}
.content-lead strong { color: var(--primary); }
.key-list {
    background: #fff;
    border-radius: var(--radius);
    padding: 28px 32px;
    box-shadow: var(--shadow);
    margin-top: 32px;
}
.key-list h3 {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 18px;
}
.key-list ol {
    padding-left: 20px;
}
.key-list ol li {
    margin-bottom: 14px;
    line-height: 1.85;
    font-size: clamp(.98rem, 1.3vw, 1.08rem);
    color: var(--text-mid);
}
.key-list ol li strong { color: var(--primary-dark); }

/* ── Section 3: Gifts ── */
#gifts { background: #fff; }
.gifts-period {
    text-align: center;
    font-size: .9rem;
    color: var(--primary-light);
    font-weight: 700;
    margin-bottom: 32px;
    letter-spacing: .02em;
}
.gift-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
    margin-top: 12px;
}
.gift-card {
    background: var(--bg-section);
    border-radius: var(--radius);
    padding: 36px 24px 28px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform .2s;
}
.gift-card:hover { transform: translateY(-4px); }
.gift-icon {
    width: 100%;
    height: 140px;
    margin-bottom: 18px;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gift-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.gift-card h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 10px;
    line-height: 1.5;
}
.gift-card h3 small {
    display: block;
    font-size: .82rem;
    font-weight: 500;
    color: var(--text-mid);
    margin-top: 4px;
}
.gift-card p {
    font-size: .88rem;
    color: var(--text-mid);
    line-height: 1.65;
}
.gift-badge {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
    letter-spacing: .04em;
}

/* ── Activity Rules Accordion ── */
.rules-accordion {
    max-width: 760px;
    margin: 44px auto 0;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.rules-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-section);
    border: none;
    padding: 16px 24px;
    cursor: pointer;
    font-size: .95rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: .02em;
    transition: background .2s;
    font-family: inherit;
}
.rules-toggle:hover { background: var(--border); }
.rules-toggle.open { background: var(--primary); color: #fff; }
.rules-arrow {
    font-size: .75rem;
    transition: transform .3s;
    flex-shrink: 0;
    margin-left: 12px;
}
.rules-toggle.open .rules-arrow { transform: rotate(180deg); }
.rules-toggle.open:hover { background: var(--primary-dark); }
.rules-body {
    border-top: 1.5px solid var(--border);
}
.rules-inner {
    padding: 28px 28px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 32px;
}
@media (max-width: 680px) {
    .rules-inner { grid-template-columns: 1fr; padding: 20px 18px; }
}
.rules-block h4 {
    font-size: .88rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--border);
}
.rules-block p, .rules-block ul, .rules-block li {
    font-size: .83rem;
    color: var(--text-mid);
    line-height: 1.75;
}
.rules-block ul {
    padding-left: 16px;
    margin-top: 6px;
}
.rules-block ul li { margin-bottom: 6px; }
.rules-block strong { color: var(--primary-dark); }

/* ── Section 4: Form ── */
#contact { background: var(--bg-light); }
.form-wrap {
    background: #fff;
    border-radius: var(--radius);
    padding: 48px 40px;
    box-shadow: var(--shadow);
    max-width: 720px;
    margin: 0 auto;
}
@media (max-width: 600px) {
    .form-wrap { padding: 28px 16px; }
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
}
@media (max-width: 640px) {
    .form-row { grid-template-columns: 1fr; }
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-size: .88rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
    text-align: left;
}
.form-group label .req { color: #c0392b; margin-left: 2px; }
.form-control {
    width: 100%;
    border: 1.5px solid var(--border);
    border-radius: 6px;
    padding: 10px 14px;
    font-size: .96rem;
    color: var(--text-dark);
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
}
.form-control:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(34,72,109,.1);
}
.check-group, .radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}
.check-group label, .radio-group label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 400;
    color: var(--text-dark);
    cursor: pointer;
}
.check-group input, .radio-group input {
    margin-top: 3px;
    accent-color: var(--primary);
    flex-shrink: 0;
}

/* "其他" option with inline text input */
.interest-other-label {
    flex-wrap: wrap;
}
.interest-other-input {
    flex: 1;
    min-width: 160px;
    padding: 6px 10px;
    font-size: .92rem;
}
.interest-other-input:disabled {
    background: var(--bg-section);
    color: #999;
    cursor: not-allowed;
}
.privacy-box {
    background: #f5f8fc;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 14px;
    font-size: .83rem;
    color: #555;
    height: 120px;
    overflow-y: scroll;
    line-height: 1.7;
    margin-bottom: 12px;
    text-align: left;
}
.privacy-box a { color: var(--primary-light); }
.privacy-agree {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .86rem;
    color: var(--text-mid);
    margin-bottom: 24px;
}
.btn-submit {
    display: block;
    width: 100%;
    background: var(--primary);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background .2s, transform .15s;
    letter-spacing: .04em;
}
.btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}
.form-section-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary);
    margin: 28px 0 14px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--bg-section);
}

/* error styles */
.field-error {
    color: #c0392b;
    font-size: .8rem;
    margin-top: 4px;
    display: none;
}
.field-error.show { display: block; }
.form-control.invalid { border-color: #c0392b; }

/* activity notice */
.notice-box {
    max-width: 720px;
    margin: 48px auto 0;
    background: #fff;
    border-radius: var(--radius);
    padding: 32px 36px;
    box-shadow: var(--shadow);
}
.notice-box h3 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 16px;
    text-align: center;
}
.notice-box ol {
    padding-left: 20px;
}
.notice-box ol li {
    font-size: .87rem;
    color: var(--text-mid);
    margin-bottom: 8px;
    line-height: 1.7;
}

/* ── Footer ── */
footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,.8);
    text-align: center;
    padding: 36px 20px;
    font-size: .88rem;
    line-height: 1.9;
}
footer a {
    color: var(--accent);
    text-decoration: none;
}
.social-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 16px 0 0;
    list-style: none;
}
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,.12);
    border-radius: 50%;
    font-size: 1rem;
    color: #fff;
    transition: background .2s;
    text-decoration: none;
}
.social-links a:hover { background: var(--accent); }
.back-top {
    display: inline-block;
    margin-bottom: 14px;
    color: rgba(255,255,255,.6);
    font-size: .85rem;
    text-decoration: none;
    transition: color .2s;
}
.back-top:hover { color: var(--accent); }

/* ── Success msg ── */
.success-msg {
    text-align: center;
    padding: 40px 20px;
    color: var(--primary);
    font-size: 1.05rem;
}

/* ── Nav CTA link (下載白皮書 in hamburger) ── */
#nav-overlay nav ul li a.nav-link-cta {
    color: var(--accent);
    border: 2px solid var(--accent);
    padding: 8px 28px;
    border-radius: 50px;
    display: inline-block;
    margin-top: 8px;
    transition: background .2s, color .2s;
}
#nav-overlay nav ul li a.nav-link-cta:hover {
    background: var(--accent);
    color: #fff;
}