/* ==========================================================================
   SmilePro 官网
   单页静态站：没有构建步骤、没有 CDN 依赖，jar 里的静态资源直接对外。
   配色与后台登录页一致（深空紫青），保证从官网点进后台不会突然换风格。
   ========================================================================== */

:root {
    --ink: #05060f;
    --ink-2: #0a0d1c;
    --line: rgba(140, 160, 220, 0.14);
    --text: #e8edf9;
    --text-2: #a8b5d6;
    --text-3: #7c8aad;
    --violet: #8b7bff;
    --blue: #4f9dff;
    --cyan: #22d3ee;
    --grad: linear-gradient(96deg, #8b7bff 0%, #4f9dff 48%, #22d3ee 100%);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--ink);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: var(--blue);
    text-decoration: none;
}

a:hover {
    color: #86c2ff;
}

img {
    max-width: 100%;
    display: block;
}

.wrap {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ------------------------------------------------------------------ 顶部导航 */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: background 0.25s, border-color 0.25s, backdrop-filter 0.25s;
    border-bottom: 1px solid transparent;
}

.nav.solid {
    background: rgba(5, 6, 15, 0.82);
    border-bottom-color: var(--line);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.nav .wrap {
    height: 68px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: #fff;
    flex: none;
}

.brand:hover {
    color: #fff;
}

.brand img {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(90, 110, 255, 0.4);
}

.brand b {
    font-size: 17px;
    letter-spacing: 0.3px;
}

.brand small {
    display: block;
    font-size: 9.5px;
    letter-spacing: 1.8px;
    color: var(--text-3);
    text-transform: uppercase;
    line-height: 1.1;
    margin-top: 1px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 26px;
    margin-left: auto;
    font-size: 13.5px;
}

.nav-links a {
    color: var(--text-2);
    position: relative;
    padding: 4px 0;
}

.nav-links a:hover {
    color: #fff;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: var(--grad);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.22s;
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

.nav-cta {
    margin-left: 8px;
    padding: 8px 18px !important;
    border-radius: 999px;
    border: 1px solid rgba(140, 165, 255, 0.32);
    color: #dfe7ff !important;
    background: rgba(120, 140, 255, 0.1);
    font-weight: 500;
}

.nav-cta:hover {
    background: rgba(120, 140, 255, 0.2);
    border-color: rgba(140, 165, 255, 0.55);
}

.nav-cta::after {
    display: none;
}

/* ------------------------------------------------------------------ 首屏 */
.hero {
    position: relative;
    padding: 150px 0 96px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    /* 第一层 = 外置封面（${profile}/img/hero.jpg），加载失败时自动露出第二层 jar 内副本 */
    background-image: url("/img/ext/hero.jpg"), url("../img/smile/hero.jpg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0.9;
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(90% 70% at 20% 25%, rgba(5, 6, 15, 0.9) 0%, rgba(5, 6, 15, 0.4) 55%, rgba(5, 6, 15, 0.85) 100%),
        linear-gradient(180deg, rgba(5, 6, 15, 0.72) 0%, rgba(5, 6, 15, 0.35) 45%, var(--ink) 98%);
}

.hero .wrap {
    position: relative;
    z-index: 2;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
    gap: 60px;
    align-items: center;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 6px 14px 6px 8px;
    border-radius: 999px;
    border: 1px solid rgba(140, 165, 255, 0.24);
    background: rgba(120, 140, 255, 0.09);
    font-size: 12.5px;
    color: #b9c6e8;
    letter-spacing: 0.2px;
}

.pill .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #35e0b0;
    box-shadow: 0 0 0 3px rgba(53, 224, 176, 0.18);
    margin-left: 4px;
}

.pill b {
    color: #fff;
    font-weight: 600;
}

.hero h1 {
    margin: 22px 0 0;
    font-size: 54px;
    line-height: 1.13;
    letter-spacing: -1.2px;
    font-weight: 800;
}

.hero h1 em {
    font-style: normal;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero .lede {
    margin: 22px 0 0;
    max-width: 520px;
    font-size: 16px;
    line-height: 1.9;
    color: var(--text-2);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 34px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    height: 48px;
    padding: 0 26px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.2px;
    cursor: pointer;
    transition: transform 0.12s, box-shadow 0.2s, background 0.2s, border-color 0.2s, filter 0.2s;
}

.btn-primary {
    color: #06080f;
    background: var(--grad);
    box-shadow: 0 14px 34px rgba(80, 120, 255, 0.32);
}

.btn-primary:hover {
    color: #06080f;
    filter: brightness(1.07);
    box-shadow: 0 18px 40px rgba(80, 120, 255, 0.44);
}

.btn-primary:active {
    transform: translateY(1px);
}

.btn-ghost {
    color: #d6e0fb;
    border-color: rgba(140, 165, 255, 0.28);
    background: rgba(120, 140, 255, 0.07);
}

.btn-ghost:hover {
    color: #fff;
    border-color: rgba(140, 165, 255, 0.5);
    background: rgba(120, 140, 255, 0.14);
}

.btn[aria-disabled="true"] {
    cursor: not-allowed;
    filter: grayscale(0.5) brightness(0.85);
    box-shadow: none;
}

.hero-note {
    margin-top: 18px;
    font-size: 12.5px;
    color: var(--text-3);
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
}

.hero-note span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hero-note i {
    color: #4fd1e8;
}

/* 右侧：产品卡 */
.device {
    position: relative;
    border-radius: 20px;
    border: 1px solid rgba(150, 170, 255, 0.18);
    background: linear-gradient(170deg, rgba(18, 22, 42, 0.94) 0%, rgba(8, 10, 22, 0.96) 100%);
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6), 0 1px 0 rgba(255, 255, 255, 0.05) inset;
    overflow: hidden;
}

.device::before {
    content: "";
    position: absolute;
    left: 20%;
    right: 20%;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(150, 180, 255, 0.85), transparent);
}

.device-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 13px 16px;
    border-bottom: 1px solid var(--line);
    font-size: 12px;
    color: var(--text-3);
}

.device-bar .dots {
    display: flex;
    gap: 6px;
}

.device-bar .dots i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(140, 160, 220, 0.22);
}

.device-bar .dots i:first-child {
    background: rgba(255, 110, 130, 0.5);
}

.device-bar .dots i:nth-child(2) {
    background: rgba(255, 200, 110, 0.5);
}

.device-bar .dots i:nth-child(3) {
    background: rgba(90, 220, 170, 0.5);
}

.device-bar .tag {
    margin-left: auto;
    padding: 2px 9px;
    border-radius: 999px;
    border: 1px solid rgba(90, 220, 170, 0.3);
    color: #6fe0bd;
    font-size: 10.5px;
    letter-spacing: 0.4px;
}

.device-body {
    padding: 18px 18px 20px;
}

.status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 14px;
    border-radius: 11px;
    background: rgba(120, 140, 255, 0.07);
    border: 1px solid rgba(140, 165, 255, 0.13);
    font-size: 12.5px;
}

.status-row + .status-row {
    margin-top: 9px;
}

.status-row .k {
    color: var(--text-3);
}

.status-row .v {
    color: #dfe7ff;
    font-family: Consolas, Monaco, monospace;
    font-size: 12px;
}

.status-row .v.ok {
    color: #6fe0bd;
}

.status-row .v.warn {
    color: #ffcf7a;
}

.skin-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 9px;
    margin-top: 16px;
}

.skin {
    position: relative;
    aspect-ratio: 1 / 1.18;
    border-radius: 9px;
    overflow: hidden;
    border: 1px solid rgba(140, 165, 255, 0.12);
}

.skin i {
    position: absolute;
    inset: 0;
    display: block;
}

.skin.s1 i {
    background: linear-gradient(150deg, #6d4bff, #1b1f4a);
}

.skin.s2 i {
    background: linear-gradient(150deg, #1fd2ea, #0a2a3d);
}

.skin.s3 i {
    background: linear-gradient(150deg, #e2569f, #2a0f22);
}

.skin.s4 i {
    background: linear-gradient(150deg, #ffb454, #33210a);
}

.skin.s5 i {
    background: linear-gradient(150deg, #3bf0b8, #0a2c24);
}

.skin.s6 i {
    background: linear-gradient(150deg, #5577ff, #101a3a);
}

.skin.s7 i {
    background: linear-gradient(150deg, #b06dff, #1d1030);
}

.skin.s8 i {
    background: linear-gradient(150deg, #ff6b6b, #2f1010);
}

/* 选中的那张：去掉锁、亮起来 —— 这正是产品做的事 */
.skin.picked {
    border-color: rgba(110, 220, 255, 0.9);
    box-shadow: 0 0 0 2px rgba(80, 200, 255, 0.28), 0 10px 26px rgba(0, 200, 255, 0.22);
}

.skin.picked::after {
    content: "\2713";
    position: absolute;
    right: 5px;
    bottom: 4px;
    width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    border-radius: 50%;
    background: rgba(6, 12, 24, 0.8);
    color: #7fe6ff;
    font-size: 10px;
}

.skin.locked i {
    filter: grayscale(0.85) brightness(0.82);
}

.skin.locked::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(4, 6, 14, 0.22);
    z-index: 2;
}

.skin.locked .lock {
    position: absolute;
    z-index: 3;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    color: rgba(235, 242, 255, 0.85);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65);
}

.device-foot {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    padding-top: 13px;
    border-top: 1px solid var(--line);
    font-size: 11.5px;
    color: var(--text-3);
}

.device-foot .bar {
    flex: 1;
    height: 4px;
    border-radius: 999px;
    background: rgba(140, 160, 220, 0.14);
    overflow: hidden;
}

.device-foot .bar > i {
    display: block;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #22d3ee, #8b7bff);
}

/* ------------------------------------------------------------------ 通用区块 */
.section {
    padding: 92px 0;
    position: relative;
}

.section.alt {
    background: linear-gradient(180deg, rgba(10, 13, 28, 0) 0%, rgba(10, 13, 28, 0.75) 30%, rgba(10, 13, 28, 0.75) 70%, rgba(10, 13, 28, 0) 100%);
}

.eyebrow {
    font-size: 11.5px;
    letter-spacing: 2.6px;
    text-transform: uppercase;
    color: #7f8dff;
    font-weight: 600;
}

.section h2 {
    margin: 12px 0 0;
    font-size: 36px;
    line-height: 1.24;
    letter-spacing: -0.6px;
    font-weight: 750;
    color: #fff;
}

.section .sub {
    margin: 14px 0 0;
    max-width: 620px;
    color: var(--text-2);
    font-size: 15px;
}

.section-head {
    margin-bottom: 46px;
}

/* 特性卡 */
.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.card {
    position: relative;
    padding: 26px 24px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: linear-gradient(170deg, rgba(16, 20, 38, 0.8) 0%, rgba(9, 11, 24, 0.9) 100%);
    transition: border-color 0.22s, transform 0.22s, box-shadow 0.22s;
}

.card:hover {
    transform: translateY(-3px);
    border-color: rgba(140, 165, 255, 0.3);
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.36);
}

.card .ico {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    margin-bottom: 16px;
    font-size: 17px;
    color: #cfe0ff;
    background: rgba(120, 140, 255, 0.12);
    border: 1px solid rgba(140, 165, 255, 0.2);
}

.card h3 {
    margin: 0 0 8px;
    font-size: 16.5px;
    font-weight: 650;
    color: #fff;
}

.card p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.8;
    color: var(--text-3);
}

/* 三步流程 */
.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    counter-reset: step;
}

.step {
    position: relative;
    padding: 28px 24px 26px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: rgba(10, 13, 28, 0.6);
}

.step::before {
    counter-increment: step;
    content: counter(step, decimal-leading-zero);
    display: block;
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1px;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.9;
    margin-bottom: 14px;
}

.step h3 {
    margin: 0 0 8px;
    font-size: 16px;
    color: #fff;
}

.step p {
    margin: 0;
    font-size: 13.5px;
    color: var(--text-3);
    line-height: 1.8;
}

.step code {
    padding: 1px 6px;
    border-radius: 5px;
    background: rgba(120, 140, 255, 0.12);
    color: #bcd0ff;
    font-size: 12px;
}

/* 下载区 */
.dl {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 26px;
    padding: 38px;
    border-radius: 22px;
    border: 1px solid rgba(150, 170, 255, 0.2);
    background:
        radial-gradient(120% 140% at 0% 0%, rgba(110, 90, 255, 0.22) 0%, rgba(10, 13, 28, 0) 55%),
        radial-gradient(100% 120% at 100% 100%, rgba(34, 211, 238, 0.16) 0%, rgba(10, 13, 28, 0) 55%),
        linear-gradient(170deg, rgba(16, 20, 38, 0.92), rgba(8, 10, 22, 0.95));
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}

.dl h2 {
    margin: 0;
    font-size: 30px;
    letter-spacing: -0.4px;
    color: #fff;
}

.dl .sub {
    margin: 12px 0 0;
    color: var(--text-2);
    font-size: 14px;
    max-width: 520px;
}

.dl-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid rgba(140, 165, 255, 0.16);
    background: rgba(8, 11, 22, 0.6);
    font-size: 12px;
    color: var(--text-2);
}

.chip b {
    color: #fff;
    font-weight: 600;
}

.chip code {
    font-family: Consolas, Monaco, monospace;
    font-size: 11px;
    color: #9fb4e6;
}

.dl-actions {
    margin-top: 26px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.dl-side {
    border-left: 1px solid var(--line);
    padding-left: 26px;
}

.dl-side h4 {
    margin: 0 0 14px;
    font-size: 13px;
    letter-spacing: 0.4px;
    color: var(--text-3);
    font-weight: 600;
}

.log-item {
    padding: 10px 0;
    border-bottom: 1px dashed rgba(140, 160, 220, 0.12);
    font-size: 12.5px;
}

.log-item:last-child {
    border-bottom: 0;
}

.log-item .lv {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: #fff;
    font-weight: 600;
    margin-bottom: 3px;
}

.log-item .lv span {
    color: var(--text-3);
    font-weight: 400;
    font-size: 11.5px;
}

.log-item p {
    margin: 0;
    color: var(--text-3);
    font-size: 12px;
    line-height: 1.65;
}

.dl-empty {
    padding: 18px;
    border-radius: 12px;
    border: 1px dashed rgba(140, 165, 255, 0.24);
    text-align: center;
    color: var(--text-3);
    font-size: 13px;
}

/* 注意事项（来自用户包文档） */
.notes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.note {
    display: flex;
    gap: 13px;
    padding: 20px 22px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(10, 13, 28, 0.55);
}

.note .n-ico {
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    font-size: 13px;
    color: #ffcf7a;
    background: rgba(255, 200, 110, 0.1);
    border: 1px solid rgba(255, 200, 110, 0.2);
}

.note.ok .n-ico {
    color: #6fe0bd;
    background: rgba(90, 220, 170, 0.1);
    border-color: rgba(90, 220, 170, 0.2);
}

.note h4 {
    margin: 0 0 5px;
    font-size: 14px;
    color: #fff;
}

.note p {
    margin: 0;
    font-size: 13px;
    color: var(--text-3);
    line-height: 1.75;
}

/* FAQ */
.faq {
    max-width: 820px;
}

.faq details {
    border-bottom: 1px solid var(--line);
    padding: 18px 0;
}

.faq summary {
    cursor: pointer;
    list-style: none;
    font-size: 15px;
    font-weight: 600;
    color: #eaf0ff;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::before {
    content: "+";
    flex: none;
    width: 20px;
    height: 20px;
    line-height: 18px;
    text-align: center;
    border-radius: 6px;
    border: 1px solid rgba(140, 165, 255, 0.28);
    color: #8ea3ff;
    font-size: 14px;
    margin-top: 1px;
    transition: background 0.2s, color 0.2s;
}

.faq details[open] summary::before {
    content: "\2212";
    background: rgba(120, 140, 255, 0.16);
    color: #cfe0ff;
}

.faq details p {
    margin: 10px 0 0 32px;
    font-size: 13.5px;
    color: var(--text-3);
    line-height: 1.85;
}

.faq details p code {
    padding: 1px 6px;
    border-radius: 5px;
    background: rgba(120, 140, 255, 0.12);
    color: #bcd0ff;
    font-size: 12px;
}

/* 页脚 */
.footer {
    border-top: 1px solid var(--line);
    padding: 42px 0 34px;
    background: #04050c;
}

.footer .wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: flex-start;
    justify-content: space-between;
}

.footer .brand img {
    width: 30px;
    height: 30px;
    border-radius: 9px;
}

.footer .brand b {
    font-size: 15px;
}

.footer .copy {
    margin-top: 14px;
    font-size: 12px;
    color: #55617f;
    line-height: 1.9;
    max-width: 480px;
}

.footer .links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    font-size: 12.5px;
}

.footer .links a {
    color: var(--text-3);
}

.footer .links a:hover {
    color: #cfdaf3;
}

.footer .warn {
    width: 100%;
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid rgba(140, 160, 220, 0.08);
    font-size: 11.5px;
    color: #4c5672;
    line-height: 1.9;
}

/* 回到顶部 / 移动端 */
@media (max-width: 1000px) {
    .hero {
        padding: 120px 0 72px;
    }

    .hero-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 44px;
    }

    .hero h1 {
        font-size: 40px;
    }

    .cards,
    .steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dl {
        grid-template-columns: minmax(0, 1fr);
    }

    .dl-side {
        border-left: 0;
        border-top: 1px solid var(--line);
        padding-left: 0;
        padding-top: 22px;
    }

    .nav-links {
        gap: 18px;
    }

    .nav-links a:not(.nav-cta) {
        display: none;
    }
}

@media (max-width: 640px) {
    .section {
        padding: 66px 0;
    }

    .section h2,
    .dl h2 {
        font-size: 26px;
    }

    .hero h1 {
        font-size: 31px;
        letter-spacing: -0.6px;
    }

    .hero .lede {
        font-size: 14.5px;
    }

    .cards,
    .steps,
    .notes {
        grid-template-columns: minmax(0, 1fr);
    }

    .skin-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .dl {
        padding: 24px 20px;
    }

    .btn {
        width: 100%;
    }

    .hero-actions {
        gap: 10px;
    }

    .brand small {
        display: none;
    }
}

/* 减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        transition: none !important;
    }
}
