/* =====================================
   RESET & BASE
   ===================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
    --yy-primary: #4F46E5;
    --yy-primary-dark: #4338CA;
    --yy-accent: #8B5CF6;
    --yy-gradient: linear-gradient(135deg, #4F46E5 0%, #7C3AED 50%, #A855F7 100%);
    --yy-bg: #F1F5F9;
    --yy-card: #FFFFFF;
    --yy-text: #1E293B;
    --yy-text-light: #64748B;
    --yy-border: #E2E8F0;
    --yy-shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --yy-shadow-md: 0 4px 6px rgba(0,0,0,.05), 0 2px 4px rgba(0,0,0,.04);
    --yy-shadow-lg: 0 10px 25px rgba(0,0,0,.08), 0 4px 10px rgba(0,0,0,.04);
    --yy-radius: 16px;
    --yy-radius-sm: 10px;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
    background: var(--yy-bg);
    color: var(--yy-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 84px;
}

/* =====================================
   HEADER / NAVBAR
   ===================================== */
.yy-header {
    background: #fff;
    border-bottom: 1px solid var(--yy-border);
    padding: 0 24px;
    position: sticky; top: 0; z-index: 100;
    box-shadow: var(--yy-shadow);
}
.yy-header-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    height: 60px;
}
.yy-logo {
    display: flex; align-items: center; gap: 8px;
    text-decoration: none; color: var(--yy-text);
    font-size: 18px; font-weight: 700;
}
.yy-logo-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--yy-gradient);
}
.yy-header-actions { display: flex; align-items: center; gap: 16px; }
.yy-header-home {
    padding: 6px 16px; border-radius: 20px;
    background: var(--yy-bg); color: var(--yy-text);
    text-decoration: none; font-size: 14px; font-weight: 500;
    transition: all .2s;
}
.yy-header-home:hover { background: #E2E8F0; }

/* ====== 咨询热线条 ====== */
.yy-tel-bar {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 24px; margin-bottom: 24px;
    background: #F5F3FF;
    border: 1px solid #DDD6FE;
    border-radius: var(--yy-radius);
    font-size: 15px;
}
.yy-tel-bar-icon { font-size: 20px; }
.yy-tel-bar-text { color: var(--yy-text-light); font-weight: 500; }
.yy-tel-bar-num {
    color: var(--yy-primary); font-weight: 800; font-size: 18px;
    text-decoration: none; letter-spacing: .5px;
    transition: color .2s;
}
.yy-tel-bar-num:hover { color: #4338CA; text-decoration: underline; }
.yy-tel-bar-divider { color: #C7D2FE; margin: 0 4px; }
.yy-tel-bar-info { color: var(--yy-text); font-weight: 500; }

/* =====================================
   HERO
   ===================================== */
.yy-hero {
    background: var(--yy-gradient);
    padding: 64px 24px 80px;
    text-align: center; color: #fff;
    position: relative; overflow: hidden;
}
.yy-hero::before {
    content: ''; position: absolute;
    width: 400px; height: 400px;
    background: rgba(255,255,255,.06); border-radius: 50%;
    top: -100px; right: -100px;
}
.yy-hero::after {
    content: ''; position: absolute;
    width: 250px; height: 250px;
    background: rgba(255,255,255,.04); border-radius: 50%;
    bottom: -60px; left: -60px;
}
.yy-hero-inner { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.yy-hero-badge {
    display: inline-block; padding: 4px 16px;
    background: rgba(255,255,255,.2); backdrop-filter: blur(10px);
    border-radius: 50px; font-size: 13px; font-weight: 600;
    margin-bottom: 16px; letter-spacing: .5px;
}
.yy-hero h1 { font-size: 40px; font-weight: 800; margin-bottom: 12px; letter-spacing: -0.5px; }
.yy-hero p { font-size: 17px; opacity: .9; max-width: 500px; margin: 0 auto; }
.yy-hero-features {
    display: flex; justify-content: center; gap: 32px;
    margin-top: 32px; flex-wrap: wrap;
}
.yy-hero-feat {
    display: flex; align-items: center; gap: 8px;
    font-size: 14px; font-weight: 500; opacity: .85;
}
.yy-hero-feat-icon { font-size: 18px; }

/* =====================================
   MAIN LAYOUT
   ===================================== */
.yy-main { max-width: 900px; margin: 0 auto; padding: 0 15px; }
.yy-card {
    background: var(--yy-card);
    border-radius: var(--yy-radius);
    box-shadow: var(--yy-shadow-lg);
    margin-bottom: 32px;
    overflow: hidden;
}

/* =====================================
   FORM SECTION
   ===================================== */
.yy-form-section { margin-top: -48px; position: relative; z-index: 2; }
.yy-card-header {
    padding: 28px 32px 0;
    display: flex; align-items: center; gap: 10px;
}
.yy-card-header h2 { font-size: 22px; font-weight: 700; }
.yy-card-header-icon { font-size: 28px; }

/* ---- Service Type Grid ---- */
.yy-service-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    padding: 24px 32px;
    border-bottom: 1px solid var(--yy-border);
}
.yy-service-item {
    position: relative; cursor: pointer;
}
.yy-service-item input {
    position: absolute; opacity: 0; width: 0; height: 0;
}
.yy-service-card {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 18px 12px 14px;
    border: 2px solid var(--yy-border);
    border-radius: var(--yy-radius-sm);
    transition: all .25s cubic-bezier(.4,0,.2,1);
    background: #FAFBFC;
    text-align: center;
}
.yy-service-card:hover {
    border-color: #C7D2FE;
    background: #EEF2FF;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79,70,229,.1);
}
.yy-service-item input:checked + .yy-service-card {
    border-color: var(--yy-primary);
    background: linear-gradient(135deg, #EEF2FF, #E0E7FF);
    box-shadow: 0 0 0 3px rgba(79,70,229,.15), 0 4px 12px rgba(79,70,229,.12);
    transform: translateY(-2px);
}
.yy-service-icon { font-size: 36px; line-height: 1; }
.yy-service-name { font-size: 13px; font-weight: 600; color: var(--yy-text); }

/* ---- Form Fields ---- */
.yy-form-body { padding: 28px 32px 32px; }
.yy-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.yy-form-group { margin-bottom: 16px; }
.yy-form-label {
    display: block; font-size: 14px; font-weight: 600;
    color: var(--yy-text); margin-bottom: 6px;
}
.yy-form-label .yy-required { color: #EF4444; margin-left: 2px; }
.yy-form-input {
    width: 100%; padding: 12px 16px;
    border: 2px solid var(--yy-border); border-radius: var(--yy-radius-sm);
    font-size: 15px; color: var(--yy-text);
    background: #FAFBFC;
    transition: all .2s;
    outline: none;
}
.yy-form-input:focus {
    border-color: var(--yy-primary);
    box-shadow: 0 0 0 3px rgba(79,70,229,.1);
    background: #fff;
}
.yy-form-input::placeholder { color: #94A3B8; }
.yy-form-textarea {
    width: 100%; padding: 12px 16px;
    border: 2px solid var(--yy-border); border-radius: var(--yy-radius-sm);
    font-size: 15px; color: var(--yy-text);
    background: #FAFBFC; resize: vertical;
    min-height: 100px; outline: none;
    transition: all .2s; font-family: inherit;
}
.yy-form-textarea:focus {
    border-color: var(--yy-primary);
    box-shadow: 0 0 0 3px rgba(79,70,229,.1);
    background: #fff;
}
.yy-form-textarea::placeholder { color: #94A3B8; }
.yy-form-hint { font-size: 12px; color: var(--yy-text-light); margin-top: 4px; }

/* ---- Urgency ---- */
.yy-urgency-group { display: flex; gap: 8px; }
.yy-urgency-item { flex: 1; position: relative; }
.yy-urgency-item input { position: absolute; opacity: 0; }
.yy-urgency-label {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 12px; border: 2px solid var(--yy-border);
    border-radius: var(--yy-radius-sm); cursor: pointer;
    font-size: 14px; font-weight: 500;
    transition: all .2s; background: #FAFBFC;
}
.yy-urgency-label:hover { border-color: #C7D2FE; background: #EEF2FF; }
.yy-urgency-item input:checked + .yy-urgency-label {
    border-color: var(--yy-primary);
    background: linear-gradient(135deg, #EEF2FF, #E0E7FF);
    font-weight: 600;
}

/* ---- Submit ---- */
.yy-submit-wrap { text-align: center; padding: 0 32px 32px; }
.yy-submit-btn {
    display: inline-block; width: 100%; max-width: 360px;
    padding: 16px 48px; font-size: 17px; font-weight: 700;
    color: #fff; border: none; border-radius: 50px;
    background: var(--yy-gradient);
    cursor: pointer; transition: all .3s;
    box-shadow: 0 6px 20px rgba(79,70,229,.3);
    letter-spacing: 1px;
}
.yy-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(79,70,229,.4);
}
.yy-submit-btn:active { transform: translateY(0); }
.yy-submit-btn:disabled {
    opacity: .6; cursor: not-allowed; transform: none;
}
.yy-disclaimer {
    margin-top: 12px; font-size: 13px; color: var(--yy-text-light);
    text-align: center;
}
.yy-disclaimer a { color: var(--yy-primary); text-decoration: none; }

/* ---- Success / Error ---- */
.yy-result {
    text-align: center; padding: 60px 32px;
}
.yy-result-icon { font-size: 72px; margin-bottom: 16px; }
.yy-result h2 { font-size: 24px; margin-bottom: 8px; }
.yy-result p { color: var(--yy-text-light); margin-bottom: 24px; }
.yy-result-success h2 { color: #10B981; }
.yy-result-error h2 { color: #EF4444; }
.yy-result-btn {
    display: inline-block; padding: 12px 32px;
    border-radius: 50px; text-decoration: none;
    font-weight: 600; font-size: 15px;
    background: var(--yy-gradient); color: #fff;
    transition: all .3s; box-shadow: 0 4px 14px rgba(79,70,229,.25);
}
.yy-result-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(79,70,229,.35); }

/* =====================================
   BOTTOM FLOATING BAR
   ===================================== */
.yy-bottom-bar {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
    display: flex; justify-content: space-around;
    background: #fff;
    border-top: 1px solid var(--yy-border);
    box-shadow: 0 -2px 12px rgba(0,0,0,.06);
    padding: 8px 0 env(safe-area-inset-bottom, 4px);
    max-width: 100vw;
}
.yy-bottom-item {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
    text-decoration: none; color: var(--yy-text-light);
    font-size: 11px; font-weight: 500;
    padding: 6px 0;
    transition: all .2s;
    position: relative;
}
.yy-bottom-icon { font-size: 20px; line-height: 1; }
.yy-bottom-label { line-height: 1; }
.yy-bottom-item:hover { color: var(--yy-primary); }
.yy-bottom-item.active { color: var(--yy-primary); }
.yy-bottom-item.active .yy-bottom-label { font-weight: 700; }

/* =====================================
   RESPONSIVE
   ===================================== */
@media (max-width: 768px) {
    .yy-hero { padding: 40px 16px 64px; }
    .yy-hero h1 { font-size: 28px; }
    .yy-hero p { font-size: 15px; }
    .yy-hero-features { gap: 16px; }
    .yy-service-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px; padding: 16px;
    }
    .yy-service-card { padding: 14px 8px 10px; }
    .yy-service-icon { font-size: 28px; }
    .yy-service-name { font-size: 12px; }
    .yy-card-header { padding: 20px 16px 0; }
    .yy-card-header h2 { font-size: 18px; }
    .yy-form-body { padding: 20px 16px; }
    .yy-form-row { grid-template-columns: 1fr; }
    .yy-submit-wrap { padding: 0 16px 24px; }
}
@media (max-width: 480px) {
    .yy-service-grid { grid-template-columns: repeat(2, 1fr); }
    .yy-hero h1 { font-size: 24px; }
    .yy-header-inner { padding: 0 8px; }
    .yy-tel-bar { flex-wrap: wrap; gap: 6px; padding: 12px 16px; font-size: 14px; }
    .yy-tel-bar-num { font-size: 16px; }
    .yy-logo { font-size: 15px; }
    .yy-submit-btn { max-width: 100%; font-size: 16px; padding: 14px 24px; }
}

/* ===== 短信验证码行 ===== */
.yy-sms-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.yy-sms-input {
    flex: 1;
    min-width: 0;
}

/* 获取验证码按钮 - 轮廓风 */
.yy-sms-btn {
    white-space: nowrap;
    padding: 0 18px;
    background: transparent;
    color: #7C3AED;
    border: 1.5px solid #A78BFA;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .25s cubic-bezier(.4,0,.2,1);
    min-width: 115px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: .02em;
    user-select: none;
}

.yy-sms-btn:hover {
    background: #F5F3FF;
    border-color: #7C3AED;
    color: #6D28D9;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(124, 58, 237, .18);
}

.yy-sms-btn:active {
    transform: scale(.96);
    background: #EDE9FE;
}

/* 发送中 / 倒计时 */
.yy-sms-btn:disabled {
    background: #F8FAFC;
    border-color: #E2E8F0;
    color: #94A3B8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    font-weight: 400;
}

/* 倒计时数字微微跳动 */
.yy-sms-btn.counting {
    border-color: #DDD6FE;
    color: #A78BFA;
    background: #F5F3FF;
}
