/* ============================================================
   yanke · 眼科会议 H5 样式
   1:1 复刻三页：首页 / 报名表 / 会议地点
   ============================================================ */

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: #333;
    background: #f5f7fa;
    -webkit-font-smoothing: antialiased;
}

.app {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    background: #fff;
}

.page {
    display: none;
    min-height: 100vh;
    width: 100%;
}
.page.active { display: block; }

/* ============================================================
   通用元素
   ============================================================ */
.btn-primary {
    display: block;
    width: 100%;
    padding: 15px 0;
    border: none;
    border-radius: 24px;
    background: linear-gradient(90deg, #1a6fd1 0%, #2b8bf5 100%);
    color: #fff;
    font-size: 17px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(30, 124, 232, 0.35);
}
.btn-secondary {
    display: block;
    width: 100%;
    padding: 14px 0;
    border: 1px solid #2b8bf5;
    border-radius: 24px;
    background: #eef6ff;
    color: #1a6fd1;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
}

/* ============================================================
   第 1 页：首页
   ============================================================ */
.home-page {
    background: linear-gradient(180deg, #cfe5fa 0%, #deedfc 28%, #eef7ff 52%, #ffffff 74%);
    position: relative;
    padding-bottom: 44px;
    overflow: hidden;
}
.home-page::before,
.home-page::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}
.home-page::before {
    height: 150px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 375 150' preserveAspectRatio='none'%3E%3Cpath d='M0 150 L0 80 Q90 35 187 80 Q280 122 375 60 L375 150 Z' fill='%2390c6f6' opacity='0.45'/%3E%3C/svg%3E") no-repeat bottom;
    background-size: 100% 100%;
}
.home-page::after {
    height: 92px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 375 92' preserveAspectRatio='none'%3E%3Cpath d='M0 92 L0 46 Q95 14 187 50 Q280 86 375 40 L375 92 Z' fill='%236fb2f0' opacity='0.5'/%3E%3C/svg%3E") no-repeat bottom;
    background-size: 100% 100%;
}

.home-header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px 6px;
}
.home-logo {
    display: block;
    height: 52px;
    width: auto;
    max-width: calc(100vw - 130px);
    object-fit: contain;
}
.home-motto {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
}
.motto-row {
    display: flex;
    gap: 14px;
}
.motto-row span {
    font-family: "Kaiti SC", "STKaiti", KaiTi, "DFKai-SB", serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 1px;
    color: #17468f;
    white-space: nowrap;
}

.home-hero {
    position: relative;
    z-index: 2;
    padding: 24px 14px 2px;
    text-align: center;
}
.home-title {
    font-size: clamp(22px, 7.2vw, 28px);
    font-weight: 900;
    color: #123e87;
    line-height: 1.5;
    margin: 0;
    letter-spacing: 0;
}
.home-subtitle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    color: #123e87;
    font-size: clamp(12px, 3.5vw, 14.5px);
    font-weight: 700;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.home-subtitle::before,
.home-subtitle::after {
    content: "——";
    letter-spacing: -1px;
    font-weight: 400;
    opacity: 0.85;
}
.home-photo {
    position: relative;
    z-index: 1;
    margin: 16px 18px 0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(18, 62, 135, 0.18);
}
.home-photo-img {
    width: 100%;
    height: min(118vw, 520px);
    object-fit: cover;
    object-position: center 32%;
    display: block;
}
.home-photo::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 42%;
    background: linear-gradient(180deg, rgba(10, 30, 70, 0) 0%, rgba(10, 30, 70, 0.38) 100%);
    pointer-events: none;
}
.home-photo-badge {
    position: absolute;
    left: 14px;
    bottom: 14px;
    z-index: 2;
    padding: 10px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 4px 14px rgba(10, 30, 70, 0.18);
}
.home-badge-date {
    font-size: 19px;
    font-weight: 800;
    color: #123e87;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.home-badge-place {
    margin-top: 3px;
    font-size: 12px;
    color: #5a6472;
    letter-spacing: 1.5px;
}

.home-info {
    position: relative;
    z-index: 2;
    margin: -26px 18px 0;
    background: #fff;
    border-radius: 16px;
    padding: 10px 18px;
    box-shadow: 0 8px 24px rgba(18, 62, 135, 0.10);
}
.home-info-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
}
.home-info-icon {
    width: 34px;
    height: 34px;
    margin-right: 14px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #4a9bf5 0%, #2b6fd6 100%);
    color: #fff;
    box-shadow: 0 3px 8px rgba(43, 111, 214, 0.3);
}
.home-info-icon svg { width: 17px; height: 17px; }
.home-info-body { flex: 1; min-width: 0; }
.home-info-label {
    color: #1f2d3d;
    font-size: 15px;
    font-weight: 700;
    margin-right: 12px;
    white-space: nowrap;
}
.home-info-value {
    color: #5a6472;
    font-size: 14px;
    line-height: 1.55;
}
.home-info-value small {
    display: block;
    color: #8a94a6;
    font-size: 12.5px;
    margin-top: 2px;
}

.home-info-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 6px;
    padding-top: 12px;
    border-top: 1px solid #f0f4f9;
    color: #2b6fd6;
    font-size: 13px;
    font-weight: 500;
}
.home-info-more svg { width: 14px; height: 14px; }

.home-footer {
    position: relative;
    z-index: 2;
    margin-top: 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
}
.home-footer-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #17468f;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 2px;
}
.home-footer-text::before,
.home-footer-text::after {
    content: "";
    width: 34px;
    height: 1px;
    background: #17468f;
    opacity: 0.5;
}
.home-chevron {
    width: 22px;
    height: 22px;
    color: #2b6fd6;
}

/* ============================================================
   第 2 页：报名表单
   ============================================================ */
.form-page {
    background: #f4f8ff;
    min-height: 100vh;
    padding-bottom: 30px;
}
.page-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    padding: 0 14px;
}
.page-header-back {
    position: absolute;
    top: 50%;
    left: 8px;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a6fd1;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}
.page-header-back svg { width: 22px; height: 22px; }
.page-header-title {
    font-size: 17px;
    font-weight: 600;
    color: #1a6fd1;
}

.form-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 24px 14px;
}
.form-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.form-step-num {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    background: #1a6fd1;
    color: #fff;
}
.form-step.pending .form-step-num {
    background: #fff;
    color: #1a6fd1;
    border: 1px solid #1a6fd1;
}
.form-step-label {
    font-size: 12px;
    color: #1a6fd1;
    font-weight: 500;
}
.form-step.pending .form-step-label { color: #999; }
.form-step-line {
    flex: 1;
    height: 1px;
    background: #c9e2ff;
    margin: 0 8px;
    margin-bottom: 22px;
    max-width: 60px;
}

.form-card {
    margin: 0 14px 14px;
    background: #fff;
    border-radius: 12px;
    padding: 16px 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.form-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: #1a6fd1;
    margin: 0 0 14px;
}
.form-section-title::before {
    content: "";
    width: 4px;
    height: 16px;
    background: #1a6fd1;
    border-radius: 2px;
}

.f-row {
    display: flex;
    align-items: center;
    min-height: 50px;
    border-bottom: 1px solid #f0f4f9;
    padding: 8px 0;
}
.f-row:last-child { border-bottom: none; }
.f-row.top { align-items: flex-start; padding-top: 12px; }
.f-label {
    width: 100px;
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 15px;
    color: #333;
    font-weight: 500;
}
.f-label.required::after {
    content: "*";
    color: #e54545;
    margin-left: 3px;
}
.f-control { flex: 1; }
.f-input {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 15px;
    color: #333;
    padding: 6px 0;
    outline: none;
}
.f-input::placeholder { color: #bbb; }
.f-radio-group {
    display: flex;
    align-items: center;
    gap: 20px;
}
.f-radio {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    color: #333;
    cursor: pointer;
}
.f-radio input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #1a6fd1;
}
.f-textarea-wrap {
    flex: 1;
    position: relative;
}
.f-textarea {
    width: 100%;
    min-height: 90px;
    border: none;
    background: transparent;
    font-size: 15px;
    color: #333;
    padding: 6px 0 20px;
    outline: none;
    resize: none;
    font-family: inherit;
}
.f-textarea::placeholder { color: #bbb; }
.f-counter {
    position: absolute;
    right: 0;
    bottom: 0;
    font-size: 12px;
    color: #999;
}

.form-actions {
    margin: 20px 14px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ============================================================
   第 2 页：会议详情（内容介绍）
   ============================================================ */
.loc-page {
    background: #eef5fc url("../image/background.png") no-repeat top center;
    background-size: 100% auto;
    min-height: 100vh;
    padding-bottom: 0;
}
.notice-card { text-align: center; }
.notice-org {
    font-size: 21px;
    font-weight: 800;
    color: #123e87;
    letter-spacing: 2px;
}
.notice-no {
    margin-top: 6px;
    padding-bottom: 10px;
    border-bottom: 2px solid #123e87;
    font-size: 13px;
    color: #5a6472;
    letter-spacing: 1px;
}
.notice-title {
    margin: 14px 0 12px;
    font-size: 16px;
    font-weight: 700;
    color: #1f2d3d;
    line-height: 1.7;
    text-align: left;
}
.notice-para {
    margin: 6px 0;
    font-size: 14px;
    color: #333;
    line-height: 1.9;
    text-align: left;
}
.notice-para.indent { text-indent: 2em; }

.d-row {
    display: flex;
    padding: 7px 0;
    font-size: 14px;
    line-height: 1.6;
}
.d-label {
    flex-shrink: 0;
    width: 76px;
    color: #1f2d3d;
    font-weight: 600;
}
.d-value { flex: 1; color: #5a6472; }
.d-sub {
    font-size: 14.5px;
    font-weight: 700;
    color: #1f2d3d;
    margin: 10px 0 6px;
}
.d-list { margin: 0; padding-left: 18px; }
.d-list li {
    font-size: 14px;
    color: #5a6472;
    line-height: 1.9;
}

.loc-contact { margin-top: 4px; }
.loc-contact-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid #f0f4f9;
    font-size: 14px;
}
.loc-contact-row:last-child { border-bottom: none; }
.loc-contact-name {
    width: 52px;
    flex-shrink: 0;
    color: #1f2d3d;
    font-weight: 600;
}
.loc-contact-phone {
    flex: 1;
    color: #1a6fd1;
    font-weight: 500;
    text-decoration: none;
    letter-spacing: 0.5px;
}
.loc-contact-tag {
    flex-shrink: 0;
    font-size: 12px;
    color: #999;
}

.loc-action-bar {
    position: sticky;
    bottom: 0;
    z-index: 10;
    padding: 10px 20px calc(24px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06);
}
.loc-card {
    margin: 14px;
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.loc-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: #1a6fd1;
    margin: 0 0 12px;
}
.loc-section-title svg { width: 18px; height: 18px; }
.loc-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}
.loc-address {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}
.loc-map {
    margin-top: 12px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    background: #e8f3ff;
    height: 180px;
}
.loc-map img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.loc-map-marker {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -100%);
    background: #fff;
    padding: 5px 10px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    font-size: 12px;
    color: #333;
    font-weight: 500;
    white-space: nowrap;
}
.loc-map-marker::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #fff;
}
.loc-map-pin {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #1a6fd1;
    margin-top: -12px;
}
.loc-map-pin svg { width: 28px; height: 28px; }

.loc-actions {
    display: flex;
    gap: 14px;
    margin-top: 14px;
}
.loc-action {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 0;
    background: #f4f8ff;
    border-radius: 10px;
    color: #1a6fd1;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: none;
}
.loc-action svg { width: 24px; height: 24px; }

.loc-cityscape {
    margin-top: 8px;
    width: 100%;
    height: 56px;
    object-fit: cover;
    object-position: bottom;
    display: block;
}

/* ============================================================
   确认页 / 成功页
   ============================================================ */
.confirm-page {
    background: #f4f8ff;
    min-height: 100vh;
    padding-bottom: 30px;
    display: none;
}
.confirm-page.active { display: block; }
.success-box {
    text-align: center;
    padding: 40px 20px;
}
.success-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 16px;
    background: #1a6fd1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.success-icon svg { width: 36px; height: 36px; }
.success-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}
.success-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 28px;
}

/* ============================================================
   提示信息
   ============================================================ */
.toast {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.75);
    color: #fff;
    padding: 12px 22px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 100;
    display: none;
}
.toast.show { display: block; }
