﻿/* =========================================================
   Anritsu Tech Forum 2026 – 共用樣式
   ========================================================= */
:root {
    /* 底色統一：深色 #203D45、淺色 #3E4E50（客戶指定 2026.11.05） */
    --atf-bg: #203d45;
    --atf-bg-2: #3e4e50;
    --atf-surface: #3e4e50;
    --atf-surface-2: #4a5c5e;
    --atf-line: rgba(255, 255, 255, .14);
    --atf-text: #f2f2f2;
    --atf-nav-text: #bfbfbf;
    --atf-nav-active: #ffffff;
    --atf-kv-max: 1440px;
    --atf-muted: #a9bccb;
    --atf-cyan: #54fee2;
    --atf-cyan-deep: #1fb5a3;
    --atf-gold: #f5cf7a;
    --atf-gold-deep: #c9a14a;
    --atf-danger: #ff7a7a;
    --atf-nav-h: 64px;
    --atf-radius: 20px;
    --atf-font: "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--atf-nav-h) + 16px); }

body {
    margin: 0;
    font-family: var(--atf-font);
    font-size: 17px;
    line-height: 1.75;
    color: var(--atf-text);
    background: var(--atf-bg);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--atf-cyan); text-decoration: none; }
a:hover { color: #fff; }

img { max-width: 100%; }

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

/* ---------- 中文斷行：依語意詞組換行，避免標題被拆成零碎字尾 ---------- */
.atf-keep { display: inline-block; }
h1, h2, h3, .atf-section-title, .atf-section-sub, .atf-intro-title, .atf-session__title, .atf-session__sub { text-wrap: balance; }
p, li { text-wrap: pretty; }

/* ---------- Navbar ---------- */
.atf-nav {
    min-height: var(--atf-nav-h);
    background: rgba(32, 61, 69, .92);
    backdrop-filter: saturate(160%) blur(10px);
    -webkit-backdrop-filter: saturate(160%) blur(10px);
}

.atf-nav .navbar-brand {
    color: var(--atf-text);
    font-weight: 700;
    letter-spacing: .02em;
    font-size: 19px;
}

.atf-nav .navbar-brand:hover { color: var(--atf-nav-active); }

.atf-nav .nav-link {
    color: var(--atf-nav-text);
    font-weight: 500;
    font-size: 15px;
    padding: 8px 14px !important;
    border-radius: 999px;
    transition: color .2s, background-color .2s;
}

.atf-nav .nav-link:hover { color: var(--atf-nav-active); }
.atf-nav .nav-link.active { color: var(--atf-nav-active); font-weight: 700; }

.atf-nav .nav-link.atf-nav-cta,
.atf-nav .nav-link.atf-nav-cta.show {
    color: var(--atf-bg);
    background: #f2f2f2;
    font-weight: 700;
    margin-left: 6px;
}

.atf-nav .nav-link.atf-nav-cta:hover { background: #ffffff; color: var(--atf-bg); }
.atf-nav .nav-link.atf-nav-cta.dropdown-toggle::after { vertical-align: .2em; margin-left: .4em; }

/* 立即報名下拉：選擇場次後前往已預選場次的報名表 */
.atf-nav .atf-cta-menu {
    --bs-dropdown-min-width: 0;
    background: transparent;
    border: 0;
    padding: 8px 0 0;
    margin-top: 4px !important;
    box-shadow: none;
}

.atf-cta-menu .atf-cta-item {
    --accent: var(--atf-cyan);
    display: block;
    margin-bottom: 8px;
    padding: 9px 22px;
    border: 1.5px solid var(--accent);
    border-radius: 999px;
    background: #fff;
    color: var(--atf-bg);
    font-weight: 700;
    font-size: 15px;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
    transition: background-color .2s, color .2s;
}

.atf-cta-menu .atf-cta-item--gold { --accent: var(--atf-gold); }
.atf-cta-menu .atf-cta-item:hover,
.atf-cta-menu .atf-cta-item:focus-visible { background: var(--accent); color: var(--atf-bg); }

.atf-nav .navbar-toggler { border-color: var(--atf-line); }
.atf-nav .navbar-toggler:focus { box-shadow: 0 0 0 2px rgba(84, 254, 226, .4); }
.atf-nav .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28233,241,246,0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 991.98px) {
    .atf-nav .navbar-collapse { padding: 8px 0 14px; }
    .atf-nav .nav-link.atf-nav-cta { display: inline-block; margin: 8px 0 0; padding: 8px 22px !important; }
    .atf-nav .atf-cta-menu { position: static; }
    .atf-cta-menu .atf-cta-item { display: inline-block; margin-right: 8px; }
}

/* ---------- KV（與去年相同：左右設最大寬度，超寬螢幕不無限放大） ---------- */
.atf-kv {
    margin-top: var(--atf-nav-h);
    position: relative;
    background: var(--atf-bg);
    line-height: 0;
}

.atf-kv img { display: block; width: 100%; max-width: var(--atf-kv-max); margin: 0 auto; aspect-ratio: 1920 / 768; object-fit: cover; }

/* ---------- Section ---------- */
.atf-section { padding: 72px 0; }
.atf-section--alt { background: var(--atf-bg-2); }
.atf-section--surface { background: var(--atf-surface); }

.atf-section-title {
    text-align: center;
    font-size: clamp(24px, 3vw, 30px);
    font-weight: 700;
    margin: 0 0 12px;
    letter-spacing: .04em;
}

.atf-section-sub {
    text-align: center;
    color: var(--atf-muted);
    margin: 0 auto 40px;
    max-width: 640px;
}

.atf-eyebrow {
    display: block;
    text-align: center;
    color: var(--atf-cyan);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .24em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.atf-lead p { font-size: 17px; text-align: justify; margin-bottom: 1.2em; }

/* ---------- Event meta ---------- */
.atf-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px 22px;
    margin: 48px 0 8px;
    font-weight: 700;
    text-shadow: 0 0 14px rgba(84, 254, 226, .55);
}

.atf-meta__date { font-size: clamp(28px, 4.2vw, 40px); letter-spacing: .02em; }
.atf-meta__date small { font-size: .55em; font-weight: 500; margin-left: 4px; }
.atf-meta__divider { width: 2px; height: 34px; background: var(--atf-text); opacity: .7; }
.atf-meta__venue { font-size: clamp(22px, 3.4vw, 32px); }

@media (max-width: 575.98px) { .atf-meta__divider { display: none; } .atf-meta { flex-direction: column; } }

/* ---------- Session cards ---------- */
.atf-session {
    --accent: var(--atf-cyan);
    --accent-glow: rgba(84, 254, 226, .35);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 30px 28px 26px;
    border-radius: 28px;
    background: linear-gradient(160deg, #3e4e50, #203d45);
    border: 2px solid var(--accent);
    box-shadow: 0 0 22px var(--accent-glow), inset 0 0 18px rgba(255, 255, 255, .04);
    transition: transform .25s, box-shadow .25s;
}

.atf-session:hover { transform: translateY(-4px); box-shadow: 0 0 34px var(--accent-glow), inset 0 0 18px rgba(255, 255, 255, .06); }

.atf-session--gold { --accent: var(--atf-gold); --accent-glow: rgba(245, 207, 122, .35); }

.atf-session__title {
    text-align: center;
    font-size: clamp(22px, 2.6vw, 27px);
    font-weight: 700;
    color: var(--accent);
    text-shadow: 0 0 12px var(--accent-glow);
    margin: 0 0 2px;
}

.atf-session__sub { text-align: center; font-size: clamp(17px, 2vw, 20px); font-weight: 700; color: #f2f2f2; margin-bottom: 16px; }
.atf-session__desc { flex: 1; text-align: justify; margin-bottom: 16px; }
.atf-session__time { font-weight: 700; color: var(--accent); margin-bottom: 18px; }

.atf-session__actions { display: flex; gap: 12px; }
.atf-session__actions .atf-btn { flex: 1; }

/* ---------- Buttons ---------- */
.atf-btn {
    --accent: var(--atf-cyan);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: .06em;
    border: 1.5px solid var(--accent);
    color: var(--accent);
    background: transparent;
    transition: background-color .2s, color .2s, box-shadow .2s;
}

.atf-btn:hover, .atf-btn:focus-visible { background: var(--accent); color: var(--atf-bg); box-shadow: 0 0 16px var(--accent); }

.atf-btn--solid { background: var(--accent); color: var(--atf-bg); }
.atf-btn--solid:hover { background: #fff; border-color: #fff; color: var(--atf-bg); }
.atf-btn--gold { --accent: var(--atf-gold); }

/* ---------- Partners ---------- */
.atf-partners {
    background: rgba(255, 255, 255, .1);
    border-radius: 32px;
    padding: 44px clamp(16px, 3vw, 32px) 36px;
}

.atf-partners__host { text-align: center; margin-bottom: 18px; }
.atf-partners__host img { width: 300px; max-width: 72%; }

/* 分級篩選按鈕 */
.atf-tier-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin: 22px 0 30px;
}

.atf-tier-btn {
    min-width: 132px;
    padding: 10px 22px;
    border: 2px solid transparent;
    border-radius: 12px;
    background: linear-gradient(180deg, #3e4e50, #203d45);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: .14em;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
    transition: border-color .2s, box-shadow .2s, transform .2s;
}

.atf-tier-btn:hover { transform: translateY(-2px); box-shadow: 0 0 12px rgba(255, 255, 255, .35); }
.atf-tier-btn:focus-visible { outline: 2px solid var(--atf-cyan); outline-offset: 2px; }
.atf-tier-btn.is-active { border-color: rgba(255, 255, 255, .9); box-shadow: 0 0 16px rgba(255, 255, 255, .6); }

.atf-logo-grid > [data-tier] { transition: opacity .25s; }
.atf-logo-grid > [data-tier].is-hidden { display: none; }
.atf-logo-grid.is-filtering > [data-tier] { animation: atfFadeIn .3s ease; }

@keyframes atfFadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (max-width: 575.98px) {
    .atf-tier-filter { gap: 8px; }
    .atf-tier-btn { min-width: 0; flex: 1; padding: 9px 6px; font-size: 14px; letter-spacing: .04em; }
}

.atf-logo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 9;
    background: #d3dce3;
    border-radius: 16px;
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
}

.atf-logo:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0, 0, 0, .35); }
.atf-logo img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transform: scale(var(--logo-scale, 1)); }   /* 個別 Logo 視覺大小以 --logo-scale 微調 */
.atf-logo span { display: none; color: #1a3850; font-weight: 700; font-size: 15px; text-align: center; padding: 0 8px; }
.atf-logo.is-missing img { display: none; }
.atf-logo.is-missing span { display: block; }

/* ---------- Notice ---------- */
.atf-notice { list-style: none; padding: 0; margin: 0 auto; max-width: 900px; font-size: 15.5px; }

.atf-notice li { position: relative; padding: 10px 0 10px 30px; border-bottom: 1px dashed var(--atf-line); }
.atf-notice li:last-child { border-bottom: 0; }
.atf-notice li::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 21px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--atf-cyan);
}

.atf-notice strong, .atf-notice u { color: var(--atf-gold); }

/* ---------- Venue ---------- */
.atf-venue__name { text-align: center; margin-bottom: 22px; }
.atf-venue__name b { font-size: clamp(22px, 3vw, 30px); text-shadow: 0 0 12px rgba(84, 254, 226, .55); margin-right: 12px; }
.atf-venue__name span { color: var(--atf-muted); }
@media (max-width: 575.98px) {
    .atf-venue__name b, .atf-venue__name span { display: block; margin: 0; }
    .atf-venue__name span { font-size: 15px; margin-top: 4px; }
    .atf-map iframe { height: 320px; }
}
.atf-map { border-radius: 20px; overflow: hidden; border: 1px solid var(--atf-line); line-height: 0; }
.atf-map iframe { width: 100%; height: 420px; border: 0; }

/* ---------- Session page intro ---------- */
.atf-intro-title {
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 700;
    margin-bottom: 22px;
    line-height: 1.5;
}

.atf-intro-meta { margin-top: 36px; padding-top: 4px; }

.atf-intro-title .hl { color: var(--accent, var(--atf-cyan)); text-shadow: 0 0 12px var(--accent-glow, rgba(84, 254, 226, .35)); }

/* ---------- Agenda ---------- */
.atf-agenda {
    --accent: var(--atf-cyan);
    --accent-ink: #0f2a3b;
    --break-bg: rgba(84, 254, 226, .12);
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 15.5px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--atf-line);
}

.atf-agenda--gold { --accent: var(--atf-gold); --accent-ink: #2b2410; --break-bg: rgba(245, 207, 122, .12); }

.atf-agenda thead th {
    background: var(--accent);
    color: var(--accent-ink);
    font-weight: 700;
    text-align: center;
    padding: 12px 14px;
    letter-spacing: .1em;
}

.atf-agenda td { padding: 14px; border-top: 1px solid var(--atf-line); vertical-align: middle; }
.atf-agenda tbody tr:first-child td { border-top: 0; }
.atf-agenda .t { width: 150px; text-align: center; font-weight: 700; color: var(--accent); white-space: nowrap; font-variant-numeric: tabular-nums; }
.atf-agenda .topic { font-weight: 700; }
.atf-agenda .spk { width: 210px; text-align: center; }
.atf-agenda .spk b { display: block; color: var(--accent); }
.atf-agenda .spk small { display: block; color: var(--atf-muted); font-size: 14px; }

.atf-agenda tr.is-break td { background: var(--break-bg); color: var(--accent); }
.atf-agenda tr.is-break .topic { font-weight: 500; text-align: center; }

.atf-agenda-note { text-align: center; font-size: 13.5px; color: var(--atf-muted); margin-top: 14px; }

@media (max-width: 767.98px) {
    .atf-agenda thead { display: none; }
    .atf-agenda, .atf-agenda tbody, .atf-agenda tr, .atf-agenda td { display: block; width: 100%; }
    .atf-agenda tr { padding: 14px 16px; border-top: 1px solid var(--atf-line); }
    .atf-agenda tbody tr:first-child { border-top: 0; }
    .atf-agenda td { padding: 0; border: 0; text-align: left !important; width: auto !important; }
    .atf-agenda .t { font-size: 14px; margin-bottom: 4px; }
    .atf-agenda .spk { margin-top: 6px; }
    .atf-agenda .spk b, .atf-agenda .spk small { display: inline; margin-right: 8px; }
    .atf-agenda tr.is-break { background: var(--break-bg); }
    .atf-agenda tr.is-break td { background: transparent; }
    .atf-agenda tr.is-break .topic { text-align: left; }
    .atf-agenda tr.is-break td:empty { display: none; }
}

/* ---------- Registration iframe ---------- */
.atf-regi-frame { width: 100%; height: 1500px; border: 0; display: block; }

/* ---------- Footer ---------- */
.atf-footer { background: var(--atf-bg); border-top: 1px solid var(--atf-line); color: var(--atf-muted); font-size: 14px; padding: 28px 0; text-align: center; }
.atf-footer a { color: var(--atf-muted); text-decoration: underline; }
@media (max-width: 575.98px) {
    .atf-footer__sep { display: none; }
    .atf-footer .atf-keep { display: block; line-height: 1.9; }
}

/* ---------- Go top ---------- */
.atf-gotop {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1020;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--atf-bg);
    background: var(--atf-cyan);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, visibility .25s;
}

.atf-gotop.show { opacity: 1; visibility: visible; }
.atf-gotop:hover { color: var(--atf-bg); background: #fff; }

/* =========================================================
   報名表單（Form.aspx）
   ========================================================= */
.atf-form-head { text-align: center; padding: 40px 0 8px; }
.atf-form-head h1 { font-size: clamp(24px, 3vw, 28px); font-weight: 700; color: var(--atf-gold); margin-bottom: 6px; }
.atf-form-head p { color: var(--atf-cyan); font-weight: 700; margin: 0; }

.atf-form-card {
    background: #f3f6f9;
    color: #1d3243;
    border-radius: 24px;
    padding: 36px clamp(18px, 4vw, 48px) 32px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
    margin: 24px 0 56px;
}

.atf-form-card .form-label { font-weight: 700; font-size: 15.5px; margin-bottom: 6px; color: #1d3243; }
.atf-form-card .req { color: #d63a3a; margin-left: 2px; }
.atf-form-card .form-text { color: #5f7484; font-size: 13.5px; }

.atf-form-card .form-control,
.atf-form-card .form-select {
    border-radius: 10px;
    border: 1px solid #c4d0da;
    padding: 10px 14px;
    font-size: 16px;
    background-color: #fff;
}

.atf-form-card .form-control:focus,
.atf-form-card .form-select:focus { border-color: var(--atf-cyan-deep); box-shadow: 0 0 0 3px rgba(31, 181, 163, .2); }

.atf-form-card .form-control[readonly] { background: #eef2f5; }

.atf-fieldset-title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .14em;
    color: #4f6779;
    padding-bottom: 8px;
    margin: 30px 0 18px;
    border-bottom: 1px solid #d5dee5;
}

.atf-fieldset-title:first-child { margin-top: 0; }

/* 場次選擇卡 */
.atf-session-option {
    position: relative;
    border: 2px solid #c9d5de;
    border-radius: 14px;
    background: #fff;
    padding: 14px 16px 14px 48px;
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s, background-color .2s;
    height: 100%;
}

.atf-session-option input[type=radio] {
    position: absolute;
    left: 16px;
    top: 18px;
    width: 20px;
    height: 20px;
    accent-color: #13897c;
    cursor: pointer;
}

.atf-session-option label { cursor: pointer; display: block; font-weight: 700; line-height: 1.5; }
.atf-session-option .meta { display: block; font-size: 13.5px; color: #5f7484; margin-top: 4px; }

.atf-session-option:hover { border-color: #8fb5c4; }
.atf-session-option:has(input:checked) { border-color: #13897c; background: #ecfbf8; box-shadow: 0 0 0 3px rgba(19, 137, 124, .15); }
.atf-session-option--gold:has(input:checked) { border-color: #c9a14a; background: #fdf7e9; box-shadow: 0 0 0 3px rgba(201, 161, 74, .2); }
.atf-session-option--gold input[type=radio] { accent-color: #b88a2c; }

.atf-invalid { display: block; color: #d63a3a; font-size: 13.5px; font-weight: 500; margin-top: 4px; }

.atf-submit {
    display: block;
    width: 100%;
    max-width: 320px;
    margin: 32px auto 0;
    padding: 13px 20px;
    border: 0;
    border-radius: 999px;
    background: var(--atf-gold);
    color: #1d3243;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: .3em;
    box-shadow: 0 6px 18px rgba(201, 161, 74, .45);
    transition: background-color .2s, transform .2s;
}

.atf-submit:hover { background: #ffdc8e; transform: translateY(-1px); }

.atf-privacy { text-align: center; font-size: 13px; color: #5f7484; margin: 14px 0 0; }

/* 結果頁（成功 / 截止 / 錯誤） */
.atf-result {
    background: #f3f6f9;
    color: #1d3243;
    border-radius: 24px;
    padding: 44px clamp(20px, 5vw, 56px);
    margin: 40px 0 56px;
    text-align: center;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
}

.atf-result__icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #fff;
    background: #13897c;
}

.atf-result__icon--warn { background: #c9a14a; }
.atf-result a:not(.atf-btn) { color: #13897c; text-decoration: underline; }
.atf-result .atf-btn--solid { --accent: #13897c; color: #fff; }
.atf-result .atf-btn--solid:hover { background: #0f6f64; border-color: #0f6f64; color: #fff; }
.atf-result h2 { font-size: clamp(22px, 3vw, 26px); font-weight: 700; margin-bottom: 10px; }
.atf-result .session { color: #13897c; font-weight: 700; font-size: 18px; margin-bottom: 18px; }
.atf-result p { margin-bottom: 8px; }

.atf-result__info {
    text-align: left;
    background: #fff;
    border: 1px solid #d5dee5;
    border-radius: 14px;
    padding: 16px 20px;
    margin: 24px auto 0;
    max-width: 520px;
    font-size: 15.5px;
}

.atf-result__info dt { color: #5f7484; font-weight: 500; float: left; width: 84px; clear: left; }
.atf-result__info dd { margin: 0 0 6px 84px; font-weight: 700; }

/* 嵌入 iframe 模式：透明背景、無導覽 */
body.is-embed { background: transparent; overflow: hidden; }   /* 高度由外層 iframe 同步，不出現捲軸 */
body.is-embed #form1 { display: flow-root; }                   /* 讓子元素 margin 計入表單高度，避免回報高度不足 */
body.is-embed .atf-container { padding: 0; }
body.is-embed #loading-overlay { background: transparent; }   /* 只擋點擊，Spinner 由外層頁面顯示 */
body.is-embed .loading-spinner { display: none; }
body.is-embed .atf-form-card, body.is-embed .atf-result { margin-top: 8px; margin-bottom: 8px; }
