/* ============================================================
   玉龙发卡网分销站 - 官网首页样式（蓝紫科技风）
   ============================================================ */

:root {
    --yl-primary: #6366f1;
    --yl-primary-dark: #4f46e5;
    --yl-violet: #8b5cf6;
    --yl-purple: #a855f7;
    --yl-deep: #0f1226;
    --yl-deep-2: #171b3a;
    --yl-text: #1e2235;
    --yl-text-light: #6b7194;
    --yl-bg-soft: #f6f7fd;
    --yl-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 55%, #a855f7 100%);
    --yl-gradient-btn: linear-gradient(135deg, #5b5ff0 0%, #8b5cf6 100%);
    --yl-radius: 16px;
    --yl-shadow: 0 12px 40px rgba(99, 102, 241, .16);
    --yl-shadow-hover: 0 18px 50px rgba(99, 102, 241, .28);
}

html {
    scroll-behavior: smooth;
}

body.home-page {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: var(--yl-text);
    background: #fff;
    overflow-x: hidden;
}

/* ---------- 通用 ---------- */
.yl-section {
    padding: 84px 0;
}

.yl-section-soft {
    background: var(--yl-bg-soft);
}

.yl-section-deep {
    background: linear-gradient(160deg, var(--yl-deep) 0%, var(--yl-deep-2) 60%, #1d1650 100%);
    color: #fff;
}

.yl-sec-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    background: rgba(99, 102, 241, .1);
    color: var(--yl-primary);
    margin-bottom: 14px;
}

.yl-section-deep .yl-sec-tag {
    background: rgba(139, 92, 246, .18);
    color: #c4b5fd;
}

.yl-sec-title {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.yl-sec-sub {
    font-size: 16px;
    color: var(--yl-text-light);
    margin-bottom: 48px;
}

.yl-section-deep .yl-sec-sub {
    color: rgba(255, 255, 255, .62);
}

/* ---------- 导航栏 ---------- */
.home-navbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(15, 18, 38, .82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    padding: 14px 0;
}

.home-navbar .yl-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    letter-spacing: 1px;
}

.yl-brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--yl-gradient);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 18px rgba(139, 92, 246, .45);
}

.home-navbar .yl-nav-link {
    color: rgba(255, 255, 255, .72);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all .25s ease;
}

.home-navbar .yl-nav-link:hover,
.home-navbar .yl-nav-link.active {
    color: #fff;
    background: rgba(139, 92, 246, .22);
}

.yl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 26px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all .28s ease;
}

.yl-btn-gradient {
    background: var(--yl-gradient-btn);
    color: #fff;
    box-shadow: 0 8px 24px rgba(99, 102, 241, .38);
}

.yl-btn-gradient:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(99, 102, 241, .5);
}

.yl-btn-ghost {
    background: rgba(255, 255, 255, .08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .22);
}

.yl-btn-ghost:hover {
    color: #fff;
    background: rgba(255, 255, 255, .16);
    border-color: rgba(255, 255, 255, .4);
}

.yl-btn-outline {
    background: transparent;
    color: var(--yl-primary);
    border: 1.5px solid var(--yl-primary);
}

.yl-btn-outline:hover {
    background: var(--yl-primary);
    color: #fff;
    box-shadow: 0 8px 24px rgba(99, 102, 241, .32);
}

.yl-btn-lg {
    padding: 14px 34px;
    font-size: 16px;
    border-radius: 14px;
}

/* ---------- Hero 区 ---------- */
.yl-hero {
    position: relative;
    background:
        radial-gradient(900px 420px at 12% -8%, rgba(99, 102, 241, .38), transparent 60%),
        radial-gradient(800px 460px at 88% 8%, rgba(168, 85, 247, .3), transparent 62%),
        linear-gradient(165deg, var(--yl-deep) 0%, #191d42 52%, #221a52 100%);
    color: #fff;
    padding: 92px 0 110px;
    overflow: hidden;
}

.yl-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 75%);
    pointer-events: none;
}

.yl-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 18px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 600;
    color: #cdd2ff;
    background: rgba(99, 102, 241, .16);
    border: 1px solid rgba(139, 92, 246, .35);
    margin-bottom: 22px;
}

.yl-hero-badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 10px #34d399;
    animation: yl-pulse 1.8s infinite;
}

@keyframes yl-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .35; }
}

.yl-hero-title {
    font-size: 52px;
    font-weight: 900;
    line-height: 1.22;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.yl-hero-title .grad {
    background: linear-gradient(120deg, #93c5fd 0%, #c4b5fd 45%, #f0abfc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.yl-hero-sub {
    font-size: 17px;
    line-height: 1.9;
    color: rgba(255, 255, 255, .66);
    margin-bottom: 34px;
    max-width: 560px;
}

.yl-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* Hero 右侧亮点卡片 */
.yl-hero-card {
    position: relative;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 20px;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: 30px 28px 26px;
    box-shadow: 0 24px 70px rgba(6, 8, 30, .55);
}

.yl-hero-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 21px;
    padding: 1px;
    background: linear-gradient(140deg, rgba(139, 92, 246, .65), transparent 42%, transparent 62%, rgba(99, 102, 241, .5));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.yl-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

.yl-card-tip {
    font-size: 13px;
    color: rgba(255, 255, 255, .55);
    margin-bottom: 18px;
}

.yl-hl-list {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
}

.yl-hl-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 12px;
    border-radius: 13px;
    transition: background .25s ease;
}

.yl-hl-list li:hover {
    background: rgba(255, 255, 255, .07);
}

.yl-hl-list li .ico {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(99, 102, 241, .18);
    border: 1px solid rgba(139, 92, 246, .3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
}

.yl-hl-list li b {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

.yl-hl-list li i {
    display: block;
    font-style: normal;
    font-size: 12.5px;
    color: rgba(255, 255, 255, .55);
    margin-top: 2px;
}

.yl-hl-foot {
    text-align: center;
    font-size: 13.5px;
    color: rgba(255, 255, 255, .55);
    margin-top: 14px;
}

.yl-hl-foot a {
    color: #c4b5fd;
    text-decoration: none;
    transition: color .2s;
}

.yl-hl-foot a:hover {
    color: #fff;
}

/* 数据统计条 */
.yl-stats {
    position: relative;
    z-index: 2;
    margin-top: -52px;
}

.yl-stats-card {
    background: #fff;
    border-radius: var(--yl-radius);
    box-shadow: var(--yl-shadow);
    padding: 30px 10px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.yl-stat-item {
    text-align: center;
    padding: 6px 10px;
    border-right: 1px solid #eef0fa;
}

.yl-stat-item:last-child {
    border-right: none;
}

.yl-stat-num {
    font-size: 32px;
    font-weight: 800;
    background: var(--yl-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.yl-stat-num small {
    font-size: 16px;
    font-weight: 700;
}

.yl-stat-label {
    font-size: 14px;
    color: var(--yl-text-light);
    margin-top: 4px;
}

/* ---------- 商业模式 ---------- */
.yl-biz-flow {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 56px;
}

.yl-biz-node {
    background: #fff;
    border: 1.5px solid #e8eafb;
    border-radius: var(--yl-radius);
    padding: 26px 20px;
    text-align: center;
    transition: all .3s ease;
    position: relative;
}

.yl-biz-node:hover {
    transform: translateY(-6px);
    border-color: rgba(139, 92, 246, .5);
    box-shadow: var(--yl-shadow-hover);
}

.yl-biz-node .ico {
    width: 58px;
    height: 58px;
    margin: 0 auto 14px;
    border-radius: 16px;
    background: rgba(99, 102, 241, .1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 27px;
}

.yl-biz-node h5 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
}

.yl-biz-node p {
    font-size: 13.5px;
    color: var(--yl-text-light);
    line-height: 1.75;
    margin: 0;
}

.yl-biz-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--yl-violet);
    font-size: 22px;
    opacity: .75;
}

/* 资金流说明 */
.yl-money-flow {
    background: #fff;
    border-radius: var(--yl-radius);
    box-shadow: var(--yl-shadow);
    padding: 34px 36px;
}

.yl-money-flow h4 {
    font-size: 19px;
    font-weight: 800;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.yl-money-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: money;
}

.yl-money-steps li {
    counter-increment: money;
    position: relative;
    padding: 6px 26px 6px 0;
}

.yl-money-steps li:not(:last-child)::after {
    content: "›";
    position: absolute;
    right: 2px;
    top: 4px;
    font-size: 26px;
    color: #c9cdf3;
    font-weight: 700;
}

.yl-money-steps .ms-title {
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 700;
    font-size: 15.5px;
    margin-bottom: 6px;
}

.yl-money-steps .ms-title::before {
    content: counter(money, decimal-leading-zero);
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    background: var(--yl-gradient);
    border-radius: 8px;
    padding: 3px 8px;
}

.yl-money-steps .ms-desc {
    font-size: 13.5px;
    color: var(--yl-text-light);
    line-height: 1.8;
}

/* 角色卡 */
.yl-role-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.yl-role-card {
    border-radius: var(--yl-radius);
    padding: 32px 28px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .12);
    transition: all .3s ease;
}

.yl-role-card:hover {
    background: rgba(255, 255, 255, .09);
    border-color: rgba(139, 92, 246, .45);
    transform: translateY(-5px);
}

.yl-role-card .ico {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: var(--yl-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    margin-bottom: 18px;
    box-shadow: 0 8px 22px rgba(139, 92, 246, .4);
}

.yl-role-card h5 {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
}

.yl-role-card p {
    font-size: 14px;
    color: rgba(255, 255, 255, .62);
    line-height: 1.9;
    margin-bottom: 14px;
}

.yl-role-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.yl-role-card ul li {
    font-size: 13.5px;
    color: rgba(255, 255, 255, .78);
    padding: 5px 0 5px 24px;
    position: relative;
}

.yl-role-card ul li::before {
    content: "✦";
    position: absolute;
    left: 2px;
    color: #a78bfa;
}

/* ---------- 优势卡片 ---------- */
.yl-feat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.yl-feat-card {
    background: #fff;
    border: 1.5px solid #e8eafb;
    border-radius: var(--yl-radius);
    padding: 34px 28px;
    transition: all .32s ease;
    position: relative;
    overflow: hidden;
}

.yl-feat-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--yl-gradient);
    opacity: 0;
    transition: opacity .3s ease;
}

.yl-feat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--yl-shadow-hover);
    border-color: transparent;
}

.yl-feat-card:hover::after {
    opacity: 1;
}

.yl-feat-card .ico {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(99, 102, 241, .1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
    transition: all .3s ease;
}

.yl-feat-card:hover .ico {
    background: var(--yl-gradient);
    transform: scale(1.06) rotate(-4deg);
    box-shadow: 0 10px 26px rgba(139, 92, 246, .38);
}

.yl-feat-card h5 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 10px;
}

.yl-feat-card p {
    font-size: 14px;
    color: var(--yl-text-light);
    line-height: 1.85;
    margin: 0;
}

/* ---------- 入驻步骤 ---------- */
.yl-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    position: relative;
}

.yl-step {
    text-align: center;
    padding: 0 8px;
    position: relative;
}

.yl-step-num {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
    border: 1.5px solid rgba(139, 92, 246, .5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 900;
    color: #c4b5fd;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 0 8px rgba(139, 92, 246, .08);
}

.yl-step h5 {
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
}

.yl-step p {
    font-size: 13.5px;
    color: rgba(255, 255, 255, .6);
    line-height: 1.8;
    margin: 0;
}

/* ---------- 商户展示 ---------- */
.yl-merchant-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.yl-merchant-chip {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: #fff;
    border: 1.5px solid #e8eafb;
    border-radius: 999px;
    padding: 10px 22px;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--yl-text);
    text-decoration: none;
    transition: all .28s ease;
}

.yl-merchant-chip:hover {
    border-color: var(--yl-violet);
    color: var(--yl-primary-dark);
    box-shadow: var(--yl-shadow);
    transform: translateY(-3px);
}

/* ---------- CTA ---------- */
.yl-cta {
    position: relative;
    border-radius: 26px;
    overflow: hidden;
    padding: 66px 40px;
    text-align: center;
    background:
        radial-gradient(600px 260px at 15% 0%, rgba(99, 102, 241, .5), transparent 60%),
        radial-gradient(600px 280px at 88% 100%, rgba(168, 85, 247, .42), transparent 62%),
        linear-gradient(150deg, #14173a 0%, #1e1a4d 100%);
    box-shadow: 0 26px 80px rgba(30, 26, 77, .45);
}

.yl-cta h3 {
    font-size: 34px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 14px;
    letter-spacing: 1px;
}

.yl-cta p {
    font-size: 16px;
    color: rgba(255, 255, 255, .66);
    margin-bottom: 32px;
}

.yl-cta .yl-cta-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

/* ---------- 页脚 ---------- */
.home-footer {
    background: var(--yl-deep);
    color: rgba(255, 255, 255, .55);
    padding: 56px 0 26px;
    font-size: 14px;
}

.home-footer h6 {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 18px;
    letter-spacing: 1px;
}

.home-footer a {
    color: rgba(255, 255, 255, .55);
    text-decoration: none;
    display: inline-block;
    padding: 4.5px 0;
    transition: color .2s;
}

.home-footer a:hover {
    color: #c4b5fd;
}

.home-footer .yl-footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 19px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 14px;
}

.home-footer .yl-footer-slogan {
    line-height: 1.9;
    max-width: 300px;
}

.yl-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .09);
    margin-top: 38px;
    padding-top: 22px;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, .4);
}

/* ---------- 商户登录 / 注册页 ---------- */
body.auth-page {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
    position: relative;
    color: #fff;
    background:
        radial-gradient(700px 380px at 18% 6%, rgba(99, 102, 241, .4), transparent 60%),
        radial-gradient(640px 420px at 85% 90%, rgba(168, 85, 247, .32), transparent 62%),
        linear-gradient(160deg, var(--yl-deep) 0%, var(--yl-deep-2) 55%, #241b56 100%);
}

body.auth-page::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: radial-gradient(ellipse 80% 65% at 50% 30%, #000 30%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse 80% 65% at 50% 30%, #000 30%, transparent 78%);
    pointer-events: none;
}

.yl-auth-home {
    position: absolute;
    top: 22px;
    left: 26px;
    color: rgba(255, 255, 255, .6);
    text-decoration: none;
    font-size: 14px;
    transition: color .2s;
}

.yl-auth-home:hover { color: #c4b5fd; }

.yl-auth-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 450px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 22px;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 26px 80px rgba(6, 8, 30, .6);
    padding: 40px 38px 32px;
}

.yl-auth-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 26px;
    text-decoration: none;
    color: #fff;
}

.yl-auth-brand .yl-brand-logo {
    width: 54px;
    height: 54px;
    font-size: 26px;
    border-radius: 15px;
}

.yl-auth-brand h1 {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: 1px;
    margin: 0;
}

.yl-auth-brand p {
    font-size: 13.5px;
    color: rgba(255, 255, 255, .55);
    margin: 0;
}

.yl-auth-card .form-label {
    font-size: 13.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, .78);
    margin-bottom: 7px;
}

.yl-auth-card .form-control {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .18);
    color: #fff;
    border-radius: 11px;
    padding: 11px 15px;
    font-size: 14.5px;
}

.yl-auth-card .form-control::placeholder {
    color: rgba(255, 255, 255, .35);
}

.yl-auth-card .form-control:focus {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(139, 92, 246, .65);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, .18);
    color: #fff;
}

.yl-auth-card .alert {
    font-size: 14px;
    border-radius: 11px;
}

.yl-auth-tip {
    margin-top: 18px;
    padding: 11px 15px;
    border-radius: 11px;
    background: rgba(99, 102, 241, .14);
    border: 1px dashed rgba(139, 92, 246, .45);
    font-size: 13px;
    color: rgba(255, 255, 255, .72);
    text-align: center;
}

.yl-auth-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin-top: 20px;
    font-size: 14px;
}

.yl-auth-links a {
    color: rgba(255, 255, 255, .62);
    text-decoration: none;
    transition: color .2s;
}

.yl-auth-links a:hover { color: #c4b5fd; }

@media (max-width: 575.98px) {
    .yl-auth-card { padding: 32px 24px 26px; }
}

/* ============================================================
   授权中心样式
   ============================================================ */

/* 定价卡片 */
.yl-price-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    align-items: stretch;
}

.yl-price-card {
    position: relative;
    background: #fff;
    border: 1.5px solid #e8eafb;
    border-radius: 20px;
    padding: 38px 30px 30px;
    text-align: center;
    transition: all .32s ease;
    display: flex;
    flex-direction: column;
}

.yl-price-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--yl-shadow-hover);
    border-color: rgba(139, 92, 246, .45);
}

.yl-price-card.recommend {
    border: 2px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        var(--yl-gradient) border-box;
    box-shadow: var(--yl-shadow);
}

.yl-price-tag {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 18px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
    color: #fff;
    background: var(--yl-gradient);
    box-shadow: 0 6px 18px rgba(139, 92, 246, .42);
    white-space: nowrap;
}

.yl-price-name {
    font-size: 19px;
    font-weight: 800;
    margin-bottom: 6px;
}

.yl-price-desc {
    font-size: 13px;
    color: var(--yl-text-light);
    margin-bottom: 20px;
    min-height: 38px;
}

.yl-price-num {
    font-size: 44px;
    font-weight: 900;
    line-height: 1;
    background: var(--yl-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.yl-price-unit {
    font-size: 14px;
    color: var(--yl-text-light);
    margin: 8px 0 22px;
}

.yl-price-features {
    list-style: none;
    margin: 0 0 26px;
    padding: 0;
    text-align: left;
    flex: 1;
}

.yl-price-features li {
    font-size: 14px;
    color: var(--yl-text);
    padding: 7px 0 7px 28px;
    position: relative;
}

.yl-price-features li::before {
    content: "✓";
    position: absolute;
    left: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(99, 102, 241, .12);
    color: var(--yl-primary);
    font-size: 11px;
    font-weight: 800;
    text-align: center;
    line-height: 18px;
    top: 9px;
}

.yl-price-features li.off {
    color: #b6bacf;
    text-decoration: line-through;
}

.yl-price-features li.off::before {
    content: "×";
    background: #eef0fa;
    color: #b6bacf;
}

/* 授权查询 */
.yl-license-query {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 20px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 36px 34px;
    max-width: 660px;
    margin: 0 auto;
}

.yl-license-query .form-control {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .18);
    color: #fff;
    border-radius: 12px;
    padding: 13px 18px;
    font-size: 15px;
}

.yl-license-query .form-control::placeholder {
    color: rgba(255, 255, 255, .38);
}

.yl-license-query .form-control:focus {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(139, 92, 246, .65);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, .18);
    color: #fff;
}

.yl-lq-result {
    margin-top: 20px;
    border-radius: 14px;
    padding: 20px 22px;
    font-size: 14.5px;
    line-height: 2;
    text-align: left;
}

.yl-lq-result.ok {
    background: rgba(52, 211, 153, .1);
    border: 1px solid rgba(52, 211, 153, .4);
}

.yl-lq-result.warn {
    background: rgba(251, 191, 36, .1);
    border: 1px solid rgba(251, 191, 36, .4);
}

.yl-lq-result.bad {
    background: rgba(248, 113, 113, .1);
    border: 1px solid rgba(248, 113, 113, .4);
}

.yl-lq-result .badge-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    margin-right: 8px;
}

.yl-lq-result.ok .badge-dot { background: #34d399; box-shadow: 0 0 10px #34d399; }
.yl-lq-result.warn .badge-dot { background: #fbbf24; box-shadow: 0 0 10px #fbbf24; }
.yl-lq-result.bad .badge-dot { background: #f87171; box-shadow: 0 0 10px #f87171; }

/* 演示信息卡 */
.yl-demo-card {
    background: #fff;
    border-radius: var(--yl-radius);
    box-shadow: var(--yl-shadow);
    padding: 30px 32px;
}

.yl-demo-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.yl-demo-item {
    border: 1.5px dashed #d9ddf3;
    border-radius: 13px;
    padding: 18px 16px;
    text-align: center;
    transition: all .25s ease;
}

.yl-demo-item:hover {
    border-color: var(--yl-violet);
    background: rgba(99, 102, 241, .04);
}

.yl-demo-item .t {
    font-size: 14.5px;
    font-weight: 700;
    margin-bottom: 8px;
}

.yl-demo-item .c {
    font-family: Consolas, Monaco, monospace;
    font-size: 13px;
    color: var(--yl-primary-dark);
    background: rgba(99, 102, 241, .08);
    border-radius: 8px;
    padding: 6px 8px;
    display: inline-block;
    user-select: all;
}

/* 购买须知 */
.yl-notice {
    background: #fff;
    border-radius: var(--yl-radius);
    box-shadow: var(--yl-shadow);
    padding: 32px 36px;
}

.yl-notice ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.yl-notice ul li {
    position: relative;
    padding: 8px 0 8px 30px;
    font-size: 14.5px;
    color: var(--yl-text);
    line-height: 1.8;
}

.yl-notice ul li::before {
    content: "!";
    position: absolute;
    left: 0;
    top: 10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(250, 204, 21, .18);
    color: #d97706;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
    line-height: 20px;
}

/* 控制台布局 */
body.license-console-page {
    background: var(--yl-bg-soft);
    min-height: 100vh;
}

.yl-console-navbar {
    background: var(--yl-deep);
    padding: 14px 0;
}

.yl-console-wrap {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
    align-items: start;
    max-width: 1200px;
    margin: 28px auto;
    padding: 0 16px;
}

.yl-console-side {
    background: #fff;
    border-radius: var(--yl-radius);
    box-shadow: var(--yl-shadow);
    padding: 14px;
    position: sticky;
    top: 20px;
}

.yl-console-side .t {
    font-size: 13px;
    color: var(--yl-text-light);
    font-weight: 700;
    letter-spacing: 1px;
    padding: 12px 14px 6px;
}

.yl-console-side a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 14.5px;
    color: var(--yl-text);
    text-decoration: none;
    transition: all .2s ease;
}

.yl-console-side a:hover {
    background: rgba(99, 102, 241, .07);
    color: var(--yl-primary-dark);
}

.yl-console-side a.active {
    background: var(--yl-gradient);
    color: #fff;
    box-shadow: 0 6px 18px rgba(99, 102, 241, .35);
}

.yl-console-main {
    background: #fff;
    border-radius: var(--yl-radius);
    box-shadow: var(--yl-shadow);
    padding: 30px 32px;
    min-height: 500px;
}

.yl-console-main h4 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 22px;
}

.yl-stat-mini {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 26px;
}

.yl-stat-mini .b {
    border-radius: 13px;
    padding: 18px;
    background: rgba(99, 102, 241, .07);
}

.yl-stat-mini .b .n {
    font-size: 26px;
    font-weight: 800;
    color: var(--yl-primary-dark);
}

.yl-stat-mini .b .l {
    font-size: 13px;
    color: var(--yl-text-light);
}

.yl-days-left {
    font-size: 12.5px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
}

.yl-days-left.ok { background: rgba(52, 211, 153, .14); color: #059669; }
.yl-days-left.warn { background: rgba(251, 191, 36, .16); color: #b45309; }
.yl-days-left.bad { background: rgba(248, 113, 113, .14); color: #dc2626; }

/* 响应式（授权中心） */
@media (max-width: 991.98px) {
    .yl-price-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
    .yl-demo-row { grid-template-columns: 1fr; }
    .yl-console-wrap { grid-template-columns: 1fr; }
    .yl-console-side { position: static; }
    .yl-console-side .t { display: none; }
    .yl-console-side .links {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }
    .yl-console-side a { padding: 9px 13px; }
}

/* ---------- 响应式（官网首页） ---------- */
@media (max-width: 991.98px) {
    .yl-hero-title { font-size: 38px; }
    .yl-sec-title { font-size: 27px; }

    .yl-biz-flow {
        grid-template-columns: 1fr;
    }
    .yl-biz-arrow {
        transform: rotate(90deg);
        padding: 4px 0;
    }
    .yl-money-steps { grid-template-columns: repeat(2, 1fr); gap: 22px 10px; }
    .yl-money-steps li:nth-child(2)::after { display: none; }
    .yl-role-cards, .yl-feat-grid { grid-template-columns: 1fr 1fr; }
    .yl-steps { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
    .yl-stats-card { grid-template-columns: repeat(2, 1fr); row-gap: 18px; }
    .yl-stat-item:nth-child(2) { border-right: none; }
}

@media (max-width: 575.98px) {
    .yl-hero { padding: 60px 0 96px; }
    .yl-hero-title { font-size: 30px; }
    .yl-hero-actions .yl-btn { flex: 1; }
    .yl-role-cards, .yl-feat-grid, .yl-money-steps { grid-template-columns: 1fr; }
    .yl-money-steps li::after { display: none !important; }
    .yl-steps { grid-template-columns: 1fr; }
    .yl-stats-card { grid-template-columns: 1fr 1fr; padding: 22px 6px; }
    .yl-stat-num { font-size: 25px; }
    .yl-section { padding: 60px 0; }
    .yl-cta { padding: 48px 22px; }
    .yl-cta h3 { font-size: 25px; }
    .yl-hero-actions .yl-btn, .yl-cta .yl-btn { width: 100%; }
}

/* ============================================================
   产品文档页
   ============================================================ */
body.docs-page {
    background: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Microsoft YaHei", sans-serif;
    color: var(--yl-text);
}

.yl-docs-navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #eceef8;
    padding: 13px 0;
}

.yl-docs-navbar .yl-brand { color: var(--yl-text); }

.yl-docs-wrap {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 40px;
    max-width: 1160px;
    margin: 34px auto 60px;
    padding: 0 18px;
    align-items: start;
}

.yl-docs-side {
    position: sticky;
    top: 76px;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    font-size: 14px;
}

.yl-docs-side .group {
    font-weight: 800;
    font-size: 13px;
    color: var(--yl-text-light);
    letter-spacing: 1px;
    margin: 18px 0 6px;
    padding-left: 12px;
}

.yl-docs-side a {
    display: block;
    padding: 6.5px 12px;
    border-left: 2.5px solid transparent;
    color: var(--yl-text);
    text-decoration: none;
    border-radius: 0 8px 8px 0;
    transition: all .18s;
}

.yl-docs-side a:hover { color: var(--yl-primary-dark); background: rgba(99,102,241,.06); }

.yl-docs-side a.active {
    color: var(--yl-primary-dark);
    border-left-color: var(--yl-primary);
    background: rgba(99,102,241,.08);
    font-weight: 600;
}

.yl-docs-content h2 {
    font-size: 25px;
    font-weight: 800;
    padding-bottom: 12px;
    border-bottom: 1px solid #eceef8;
    margin: 54px 0 20px;
    scroll-margin-top: 80px;
}

.yl-docs-content h2:first-child { margin-top: 0; }

.yl-docs-content h3 {
    font-size: 18px;
    font-weight: 800;
    margin: 30px 0 12px;
    scroll-margin-top: 80px;
}

.yl-docs-content h4 {
    font-size: 15.5px;
    font-weight: 800;
    margin: 20px 0 8px;
}

.yl-docs-content p { font-size: 14.5px; line-height: 2; color: #3c4157; }

.yl-docs-content ul, .yl-docs-content ol {
    font-size: 14.5px;
    line-height: 2.1;
    color: #3c4157;
    padding-left: 22px;
}

.yl-docs-content pre {
    background: #14173a;
    color: #c9d1ff;
    border-radius: 10px;
    padding: 16px 18px;
    font-size: 13px;
    line-height: 1.8;
    overflow-x: auto;
    margin: 12px 0 18px;
}

.yl-docs-content table {
    width: 100%;
    font-size: 13.5px;
    border-collapse: collapse;
    margin: 12px 0 18px;
}

.yl-docs-content table th, .yl-docs-content table td {
    border: 1px solid #e6e9f6;
    padding: 9px 12px;
    text-align: left;
}

.yl-docs-content table th { background: #f6f7fd; font-weight: 700; }

.yl-docs-tip {
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 13.5px;
    line-height: 1.9;
    margin: 12px 0 18px;
}

.yl-docs-tip.info { background: rgba(99,102,241,.08); border: 1px solid rgba(99,102,241,.25); }
.yl-docs-tip.warn { background: rgba(250,204,21,.1); border: 1px solid rgba(217,119,6,.3); }

@media (max-width: 991.98px) {
    .yl-docs-wrap { grid-template-columns: 1fr; gap: 10px; }
    .yl-docs-side { position: static; max-height: none; }
}
