/* =========================================================
   1. 基础变量与重置
   ========================================================= */
:root {
    --primary: #4f7cff;
    --primary-2: #6f8cff;
    --accent: #8b5cf6;
    --success: #10b981;
    --success-2: #34d399;
    --danger: #ef4444;
    --warning: #f59e0b;

    --text: #0f172a;
    --text-2: #334155;
    --muted: #64748b;
    --line: #e5e9f2;
    --bg: #f4f7ff;
    --card: #ffffff;

    --radius-lg: 24px;
    --radius: 16px;
    --radius-sm: 12px;

    --shadow-card: 0 24px 70px -34px rgba(24, 50, 120, .45), 0 0 0 1px rgba(229, 233, 242, .9);
    --shadow-soft: 0 10px 30px -18px rgba(24, 50, 120, .35);

    --ease: cubic-bezier(.22, 1, .36, 1);
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    line-height: 1.6;
}

/* 背景光斑 */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(680px 460px at 8% -8%, rgba(79, 124, 255, .20), transparent 70%),
    radial-gradient(620px 420px at 92% -4%, rgba(139, 92, 246, .18), transparent 70%),
    radial-gradient(900px 560px at 50% 108%, rgba(16, 185, 129, .10), transparent 70%);
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
}

/* --- 统一 SVG 图标 --- */
.icon {
    width: 1em;
    height: 1em;
    display: block;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* 滚动条 */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-thumb {
    background: #c8d3e6;
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
    background: #a9b8d3;
    background-clip: content-box;
}

/* =========================================================
   2. 顶部导航（全新简洁版）
   ========================================================= */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 30px -28px rgba(24, 50, 120, .85);
}

.nav-inner {
    position: relative; /* 作为移动端下拉菜单的定位参照 */
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* --- 品牌 Logo（全图片） --- */
.nav-brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    height: 40px;
    line-height: 0;
    transition: opacity .2s ease;
}

.nav-brand:hover {
    opacity: .82;
}

.nav-brand-img {
    display: block;
    height: 46px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
    object-position: left center;
    border: 0;
    -webkit-user-drag: none;
    user-select: none;
}

/* --- 页脚等复用品牌 Logo（原样式保留） --- */
.brand-logo {
    position: relative;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 10px 20px -12px rgba(79, 124, 255, 1),
    inset 0 1px 0 rgba(255, 255, 255, .3);
}

.brand-logo .icon {
    width: 17px;
    height: 17px;
}

/* --- 菜单 --- */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.nav-menu a {
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-2);
    white-space: nowrap;
    transition: color .2s ease, background .2s ease;
}

.nav-menu a:hover {
    color: var(--primary);
    background: rgba(79, 124, 255, .08);
}

/* --- 登录按钮 --- */
.nav-login {
    flex: 0 0 auto;
    height: 38px;
    padding: 0 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .2px;
    color: var(--primary);
    background: rgba(79, 124, 255, .10);
    border: 1px solid rgba(79, 124, 255, .22);
    cursor: pointer;
    white-space: nowrap;
    transition: transform .2s var(--ease), background .2s ease, box-shadow .2s ease;
}

.nav-login:hover {
    background: rgba(79, 124, 255, .17);
    transform: translateY(-1px);
    box-shadow: 0 10px 22px -16px rgba(79, 124, 255, 1);
}

.nav-login:active {
    transform: translateY(0);
}

/* --- 已登录用户 --- */
.nav-user {
    position: relative;
    flex: 0 0 auto;
}

.nav-user-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 12px 0 5px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #f8fafd;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-2);
    cursor: pointer;
    white-space: nowrap;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.nav-user-btn:hover {
    background: #fff;
    border-color: rgba(79, 124, 255, .4);
    box-shadow: 0 10px 22px -18px rgba(79, 124, 255, 1);
}

.nav-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

.nav-user-name {
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-user-caret {
    width: 14px;
    height: 14px;
    color: var(--muted);
    transition: transform .24s var(--ease);
}

.nav-user.open .nav-user-caret {
    transform: rotate(180deg);
}

.nav-user-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 152px;
    padding: 6px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 24px 50px -22px rgba(15, 23, 42, .55), 0 0 0 1px var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .22s ease, transform .22s var(--ease), visibility .22s;
    z-index: 120;
}

.nav-user.open .nav-user-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-user-menu a,
.nav-user-menu button {
    display: block;
    width: 100%;
    padding: 9px 12px;
    border: none;
    border-radius: 10px;
    background: none;
    text-align: left;
    font-size: 13.5px;
    font-family: inherit;
    color: var(--text-2);
    cursor: pointer;
    transition: background .18s ease, color .18s ease;
}

.nav-user-menu a:hover,
.nav-user-menu button:hover {
    background: rgba(79, 124, 255, .09);
    color: var(--primary);
}

/* --- 会员按钮 --- */
.nav-btn {
    display: inline-flex;
    align-items: center;
    height: 38px;
    padding: 0 20px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .2px;
    color: #fff;
    white-space: nowrap;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 10px 22px -14px rgba(79, 124, 255, 1);
    transition: transform .2s var(--ease), box-shadow .2s ease;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 26px -16px rgba(79, 124, 255, 1);
}

.nav-btn:active {
    transform: translateY(0);
}

/* =========================================================
   3. 主区域 / Hero
   ========================================================= */
.main {
    flex: 1;
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px 70px;
}

.hero {
    text-align: center;
    padding: 54px 0 26px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 32px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: #3b5bdb;
    background: rgba(79, 124, 255, .10);
    border: 1px solid rgba(79, 124, 255, .18);
    animation: fadeUp .6s var(--ease) both;
}

.hero-badge .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, .6);
    animation: pulse 2s infinite;
}

.hero h1 {
    margin: 18px 0 10px;
    font-size: clamp(26px, 4.4vw, 44px);
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -1px;
    animation: fadeUp .7s .05s var(--ease) both;
}

.hero h1 .grad {
    background: linear-gradient(120deg, var(--primary) 10%, var(--accent) 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    margin: 0 auto;
    max-width: 620px;
    font-size: clamp(13px, 2.6vw, 16px);
    color: var(--muted);
    animation: fadeUp .7s .12s var(--ease) both;
}

/* =========================================================
   4. 解析卡片
   ========================================================= */
.parse-card {
    margin-top: 30px;
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: 26px;
    box-shadow: var(--shadow-card);
    animation: cardIn .75s .16s var(--ease) both;
}

/* --- 输入行 --- */
.input-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.input-wrap {
    position: relative;
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    font-size: 17px;
    color: var(--muted);
    opacity: .75;
    pointer-events: none;
    transition: opacity .2s ease, color .2s ease;
}

#urlInput {
    width: 100%;
    height: 56px;
    padding: 0 16px 0 44px;
    font-size: 15px;
    color: var(--text);
    background: #f8fafd;
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    outline: none;
    transition: border-color .22s ease, box-shadow .22s ease, background .22s ease;
    font-family: inherit;
}

#urlInput::placeholder {
    color: #a3aec4;
}

#urlInput:hover {
    background: #f4f7fc;
}

#urlInput:focus {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 124, 255, .14);
}

.input-wrap:focus-within .input-icon {
    opacity: 1;
    color: var(--primary);
}

#button-addon2 {
    flex: 0 0 auto;
    height: 56px;
    padding: 0 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    background: #f1f5f9;
    border: 1.5px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background .2s ease, color .2s ease, transform .15s ease;
    white-space: nowrap;
}

#button-addon2:hover {
    background: #e6ecf6;
    color: var(--text-2);
}

#button-addon2:active {
    transform: scale(.97);
}

/* --- 内联提示（保留并优化） --- */
#inputPrompt {
    display: none;
    margin-top: 12px;
    font-size: 13.5px;
    line-height: 1.7;
    color: #b91c1c;
    background: rgba(239, 68, 68, .07);
    border: 1px solid rgba(239, 68, 68, .18);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
}

#inputPrompt a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
}

/* --- 按钮行 --- */
.btn-row {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.btn-row > * {
    flex: 1;
    min-width: 0;
}

/* --- 通用按钮 --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 50px;
    padding: 0 22px;
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .2px;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    transition: transform .18s var(--ease), box-shadow .22s ease,
    background .22s ease, opacity .22s ease, color .22s ease;
}

.btn .icon {
    width: 17px;
    height: 17px;
}

.btn:active:not(:disabled) {
    transform: scale(.975);
}

.btn:disabled {
    opacity: .55;
    cursor: not-allowed;
    transform: none !important;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    box-shadow: 0 12px 26px -14px rgba(79, 124, 255, 1);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 18px 32px -14px rgba(79, 124, 255, 1);
}

.btn-success {
    color: #fff;
    background: linear-gradient(135deg, var(--success), var(--success-2));
    box-shadow: 0 12px 26px -14px rgba(16, 185, 129, 1);
}

.btn-success:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 18px 32px -14px rgba(16, 185, 129, 1);
}

.btn-ghost {
    color: var(--text-2);
    background: #f1f5f9;
}

.btn-ghost:hover:not(:disabled) {
    background: #e6ecf6;
    transform: translateY(-2px);
}

/* --- 平台标签 --- */
.platforms {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px dashed var(--line);
}

.platforms .label {
    font-size: 13px;
    color: var(--muted);
    margin-right: 2px;
}

.platforms em,
.platforms a {
    font-style: normal;
    font-size: 12.5px;
    color: #56637a;
    padding: 4px 11px;
    border-radius: 999px;
    background: #f4f7fd;
    border: 1px solid #e8eef8;
    transition: all .2s ease;
    cursor: default;
    text-decoration: none;
}

/* 链接项：指针用 pointer，其他样式与 em 完全一致 */
.platforms a {
    cursor: pointer;
}

.platforms em:hover,
.platforms a:hover {
    color: var(--primary);
    background: rgba(79, 124, 255, .09);
    border-color: rgba(79, 124, 255, .22);
    transform: translateY(-1px);
}

/* =========================================================
   5. 状态提示（等待 / 进度 / 成功失败）
   ========================================================= */
.status-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    font-size: 14.5px;
    color: var(--muted);
    animation: fadeUp .35s var(--ease) both;
}

#waitAnimation {
    display: flex;
}

.spinner {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2.5px solid rgba(79, 124, 255, .22);
    border-top-color: var(--primary);
    animation: spin .75s linear infinite;
    flex: 0 0 auto;
}

#downloadProgress {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 20px;
    animation: fadeUp .35s var(--ease) both;
}

.progress {
    position: relative;
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: #eaf0fb;
    overflow: hidden;
}

.progress-bar {
    position: relative;
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width .25s ease;
    overflow: hidden;
}

.progress-bar::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(45deg,
    rgba(255, 255, 255, .35) 25%, transparent 25%,
    transparent 50%, rgba(255, 255, 255, .35) 50%,
    rgba(255, 255, 255, .35) 75%, transparent 75%, transparent);
    background-size: 18px 18px;
    animation: stripes .9s linear infinite;
}

.progress-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--muted);
}

.progress-meta b {
    color: var(--primary);
    font-weight: 700;
}

#downloadSuccess {
    color: var(--success);
    font-weight: 700;
}

#downloadFail {
    color: var(--danger);
    font-weight: 700;
}

.icon-circle {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 14px;
    font-style: normal;
    color: #fff;
    flex: 0 0 auto;
}

.icon-circle .icon {
    width: 13px;
    height: 13px;
    stroke-width: 3;
}

#successIcon {
    background: linear-gradient(135deg, var(--success), var(--success-2));
    box-shadow: 0 8px 18px -8px rgba(16, 185, 129, .95);
}

#failIcon {
    background: linear-gradient(135deg, #ef4444, #f87171);
    box-shadow: 0 8px 18px -8px rgba(239, 68, 68, .95);
}

/* =========================================================
   6. 下载区
   ========================================================= */
#downloadArea {
    margin-top: 22px;
    animation: fadeUp .45s var(--ease) both;
}

#shareLink {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 18px;
    font-size: 13.5px;
    font-weight: 600;
    color: #fff;
    text-align: center;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    background: linear-gradient(120deg, #ff6b6b, #ff8e53);
    box-shadow: 0 12px 26px -16px rgba(255, 107, 107, 1);
    transition: transform .2s var(--ease), box-shadow .2s ease, filter .2s ease;
}

#shareLink .icon {
    width: 16px;
    height: 16px;
}

#shareLink:hover {
    transform: translateY(-2px);
    filter: saturate(1.08);
    box-shadow: 0 18px 30px -16px rgba(255, 107, 107, 1);
}

#chooseButton {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
}

#chooseButton .btn {
    height: 44px;
    padding: 0 20px;
    font-size: 14px;
}

/* =========================================================
   7. 结果预览网格
   ========================================================= */
#preview {
    margin-top: 22px;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 14px;
    align-items: start;
}

.preview-unit {
    position: relative;
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .25s ease, transform .25s var(--ease);
    animation: pop .45s var(--ease) both;
}

.preview-unit:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px -20px rgba(24, 50, 120, .55);
}

.preview-unit.selected {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 124, 255, .16),
    0 18px 34px -20px rgba(24, 50, 120, .5);
}

.preview-unit.selected::after {
    content: "";
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"),
    linear-gradient(135deg, #4f7cff, #8b5cf6);
    background-size: 12px 12px, 100% 100%;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
    box-shadow: 0 6px 14px -6px rgba(79, 124, 255, 1);
    animation: pop .25s var(--ease) both;
}

.preview-unit .media-wrap {
    display: block;
    line-height: 0;
    background: #f7f9fc;
}

.preview-image {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: transform .5s var(--ease);
}

.preview-unit:hover .preview-image {
    transform: scale(1.06);
}

.preview-unit.is-video {
    grid-column: 1 / -1;
}

.preview-video {
    display: block;
    width: 100%;
    max-height: 420px;
    background: #0b1220;
    border-radius: 0;
    outline: none;
}

.checkbox {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
    accent-color: var(--primary);
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .25);
}

/* =========================================================
   8. 提示卡片（Notice）
   ========================================================= */
.notice {
    --n-color: var(--primary);
    --n-color-2: var(--primary-2);
    --n-bg: rgba(79, 124, 255, .07);
    --n-border: rgba(79, 124, 255, .16);
    --n-shadow: rgba(79, 124, 255, .9);
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 16px 18px;
    border-radius: 16px;
    background: var(--n-bg);
    border: 1px solid var(--n-border);
    animation: fadeUp .35s var(--ease) both;
}

.notice.is-info {
    --n-color: #4f7cff;
    --n-color-2: #6f8cff;
    --n-bg: rgba(79, 124, 255, .07);
    --n-border: rgba(79, 124, 255, .16);
    --n-shadow: rgba(79, 124, 255, .9);
}

.notice.is-error {
    --n-color: #ef4444;
    --n-color-2: #f87171;
    --n-bg: rgba(239, 68, 68, .06);
    --n-border: rgba(239, 68, 68, .16);
    --n-shadow: rgba(239, 68, 68, .9);
}

.notice.is-warning {
    --n-color: #f59e0b;
    --n-color-2: #fbbf24;
    --n-bg: rgba(245, 158, 11, .08);
    --n-border: rgba(245, 158, 11, .18);
    --n-shadow: rgba(245, 158, 11, .9);
}

.notice.is-success {
    --n-color: #10b981;
    --n-color-2: #34d399;
    --n-bg: rgba(16, 185, 129, .07);
    --n-border: rgba(16, 185, 129, .16);
    --n-shadow: rgba(16, 185, 129, .9);
}

.notice-icon {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--n-color), var(--n-color-2));
    box-shadow: 0 10px 20px -10px var(--n-shadow);
}

.notice-icon .icon {
    width: 18px;
    height: 18px;
    stroke-width: 2.4;
}

.notice-body {
    flex: 1;
    min-width: 0;
}

.notice-title {
    margin: 2px 0 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: -.2px;
    color: var(--text);
}

.notice-desc {
    margin: 5px 0 0;
    font-size: 13.5px;
    line-height: 1.75;
    color: var(--muted);
    word-break: break-word;
}

.notice-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 13px;
}

.notice-links a {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 13px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .1px;
    color: var(--n-color);
    background: #fff;
    border: 1px solid var(--n-border);
    border-radius: 999px;
    box-shadow: 0 4px 12px -8px rgba(15, 23, 42, .45);
    text-decoration: none;
    transition: transform .2s var(--ease), box-shadow .2s ease, background .2s ease;
}

.notice-links a:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px -12px rgba(15, 23, 42, .55);
}

.notice-links a:active {
    transform: translateY(0) scale(.97);
}

/* =========================================================
   9. 弹框 / Toast
   ========================================================= */
.modal-mask {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, .48);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity .25s ease;
}

.modal-mask.show {
    opacity: 1;
}

/* ---------- 弹框主体（重构） ---------- */
.modal-box {
    position: relative;
    width: min(452px, 100%);
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 40px 80px -30px rgba(15, 23, 42, .6),
    0 0 0 1px rgba(229, 233, 242, .9);
    transform: translateY(18px) scale(.97);
    transition: transform .32s var(--ease);
}

.modal-mask.show .modal-box {
    transform: translateY(0) scale(1);
}


/* ---------- 标题区 ---------- */
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 22px 22px 12px;
}

.modal-header h3 {
    position: relative;
    margin: 0;
    padding-left: 13px;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -.2px;
    line-height: 1.4;
    color: var(--text);
}

/* 标题左侧强调竖条 */
.modal-header h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 4px;
    height: 17px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--primary), var(--accent));
    transform: translateY(-50%);
}

.modal-x {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: none;
    border-radius: 10px;
    background: #f1f5f9;
    color: var(--muted);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, transform .3s var(--ease);
}

.modal-x:hover {
    background: rgba(79, 124, 255, .12);
    color: var(--primary);
    transform: rotate(90deg);
}

/* ---------- 内容区 ---------- */
.modal-body {
    padding: 4px 22px 22px;
    font-size: 14.5px;
    line-height: 1.85;
    color: var(--text-2);
    word-break: break-word;
}

.modal-body p {
    margin: 0 0 10px;
}

.modal-body p:last-child {
    margin-bottom: 0;
}

.modal-body a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    transition: opacity .2s ease;
}

.modal-body a:hover {
    opacity: .78;
}

/* ---------- 按钮区：与内容形成清晰边界 ---------- */
.modal-footer {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 22px 18px;
    background: #f8fafd;
}

/* 渐变分割线（两端渐隐，更细腻） */
.modal-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
    rgba(229, 233, 242, 0) 0%,
    rgba(229, 233, 242, 1) 10%,
    rgba(229, 233, 242, 1) 90%,
    rgba(229, 233, 242, 0) 100%);
}

/* 顶部的微光高光（营造层次） */
.modal-footer::after {
    content: "";
    position: absolute;
    top: 1px;
    left: 0;
    right: 0;
    height: 1px;
    pointer-events: none;
    background: linear-gradient(90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, .9) 50%,
    rgba(255, 255, 255, 0) 100%);
}

.modal-footer .btn {
    position: relative;
    z-index: 1;
    height: 42px;
    padding: 0 20px;
    font-size: 14px;
    border-radius: 12px;
}

/* 次级按钮在浅色底上更柔和 */
.modal-footer .btn-ghost {
    background: #fff;
    color: var(--text-2);
    box-shadow: 0 0 0 1px var(--line);
}

.modal-footer .btn-ghost:hover:not(:disabled) {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 0 0 1px rgba(79, 124, 255, .4),
    0 10px 20px -14px rgba(79, 124, 255, 1);
}

/* Toast */
.toast-container {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    z-index: 205;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: min(88vw, 420px);
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    background: rgba(30, 41, 59, .95);
    box-shadow: 0 20px 40px -20px rgba(15, 23, 42, .8);
    animation: toastIn .35s var(--ease) both;
    backdrop-filter: blur(8px);
}

.toast.toast-success {
    background: rgba(5, 150, 105, .96);
}

.toast.toast-error {
    background: rgba(220, 38, 38, .96);
}

.toast .toast-close {
    cursor: pointer;
    opacity: .7;
    font-size: 16px;
    line-height: 1;
}

.toast .toast-close:hover {
    opacity: 1;
}

/* =========================================================
   9.1 登录 / 注册 / 重置密码（全新设计）
   ========================================================= */
.auth-cover {
    position: fixed;
    inset: 0;
    z-index: 201;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
    background: rgba(15, 23, 42, .55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity .26s ease;
}

.auth-cover.show {
    opacity: 1;
}

.auth-panel {
    position: relative;
    width: min(432px, 100%);
    margin: auto;
    border-radius: 26px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 46px 90px -36px rgba(15, 23, 42, .72),
    0 0 0 1px rgba(255, 255, 255, .55);
    transform: translateY(24px) scale(.96);
    transition: transform .4s var(--ease);
}

.auth-cover.show .auth-panel {
    transform: translateY(0) scale(1);
}

/* ---------- 关闭按钮 ---------- */
.auth-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 6;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .34);
    border-radius: 11px;
    background: rgba(255, 255, 255, .18);
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: background .2s ease, transform .3s var(--ease);
}

.auth-close:hover {
    background: rgba(255, 255, 255, .34);
    transform: rotate(90deg);
}

.auth-close .icon {
    width: 15px;
    height: 15px;
    stroke-width: 2.4;
}

/* ---------- 渐变头部 ---------- */
.auth-hero {
    position: relative;
    padding: 28px 26px 30px;
    color: #fff;
    background: linear-gradient(135deg, #4f7cff 0%, #6f8cff 40%, #8b5cf6 100%);
    overflow: hidden;
}

.auth-hero::before,
.auth-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.auth-hero::before {
    width: 216px;
    height: 216px;
    top: -118px;
    right: -72px;
    background: rgba(255, 255, 255, .18);
}

.auth-hero::after {
    width: 150px;
    height: 150px;
    left: -76px;
    bottom: -96px;
    background: rgba(255, 255, 255, .12);
}

.auth-hero-inner {
    position: relative;
    z-index: 2;
}

.auth-hero .auth-logo {
    width: 50px;
    height: 50px;
    margin-bottom: 16px;
    border-radius: 16px;
    color: #fff;
    background: rgba(255, 255, 255, .22);
    border: 1px solid rgba(255, 255, 255, .4);
    box-shadow: 0 14px 26px -14px rgba(0, 0, 0, .65),
    inset 0 1px 0 rgba(255, 255, 255, .5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.auth-hero .auth-logo .icon {
    width: 24px;
    height: 24px;
}

.auth-title {
    margin: 0 0 6px;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -.4px;
    color: #fff;
}

.auth-sub {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.65;
    color: rgba(255, 255, 255, .84);
}

/* ---------- 表单主体 ---------- */
.auth-body {
    padding: 22px 26px 24px;
}

/* ---------- 标签切换 ---------- */
.auth-tabs-wrap {
    overflow: hidden;
    max-height: 70px;
    opacity: 1;
    margin-bottom: 18px;
    transition: max-height .34s var(--ease), opacity .22s ease, margin .34s var(--ease);
}

.auth-panel.is-modify .auth-tabs-wrap {
    max-height: 0;
    opacity: 0;
    margin-bottom: 0;
    pointer-events: none;
}

.auth-tabs {
    position: relative;
    display: flex;
    padding: 5px;
    border-radius: 15px;
    background: #eef2fa;
}

.auth-tab-indicator {
    position: absolute;
    top: 5px;
    left: 5px;
    width: calc(50% - 5px);
    height: calc(100% - 10px);
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 8px 18px -12px rgba(24, 50, 120, .95);
    transition: transform .34s var(--ease);
}

.auth-tabs[data-active="register"] .auth-tab-indicator {
    transform: translateX(100%);
}

.auth-tab {
    position: relative;
    z-index: 1;
    flex: 1;
    height: 38px;
    border: none;
    border-radius: 11px;
    background: transparent;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    transition: color .24s ease;
}

.auth-tab:hover {
    color: var(--text-2);
}

.auth-tab.active {
    color: var(--primary);
}

/* ---------- 表单 ---------- */
.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
    animation: authIn .34s var(--ease) both;
}

/* 返回登录（重置密码视图顶部） */
.auth-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 14px 0 10px;
    margin-bottom: 4px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #f7f9fd;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-2);
    cursor: pointer;
    transition: color .2s ease, background .2s ease, border-color .2s ease, transform .22s var(--ease);
}

.auth-back:hover {
    color: var(--primary);
    background: rgba(79, 124, 255, .08);
    border-color: rgba(79, 124, 255, .32);
    transform: translateX(-2px);
}

.auth-back .icon {
    width: 15px;
    height: 15px;
}

/* ---------- 输入框 ---------- */
.auth-field {
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;
    height: 54px;
    padding: 0 14px;
    margin-top: 12px;
    border: 1.5px solid #e7edf8;
    border-radius: 15px;
    background: #f6f8fd;
    transition: border-color .22s ease, box-shadow .22s ease, background .22s ease;
}

.auth-form :first-child.auth-field {
    margin-top: 0;
}

.auth-field::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 3px;
    height: 0;
    border-radius: 0 3px 3px 0;
    background: linear-gradient(180deg, var(--primary), var(--accent));
    transform: translateY(-50%);
    transition: height .28s var(--ease);
}

.auth-field:focus-within {
    background: #fff;
    border-color: rgba(79, 124, 255, .55);
    box-shadow: 0 0 0 4px rgba(79, 124, 255, .12),
    0 12px 24px -20px rgba(79, 124, 255, 1);
}

.auth-field:focus-within::before {
    height: 22px;
}

.field-icon {
    display: grid;
    place-items: center;
    color: var(--muted);
    transition: color .22s ease;
}

.auth-field:focus-within .field-icon {
    color: var(--primary);
}

.field-icon .icon {
    width: 17px;
    height: 17px;
}

.auth-field input {
    flex: 1;
    min-width: 0;
    height: 50px;
    padding: 0;
    border: none;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: 14.5px;
    color: var(--text);
}

.auth-field input::placeholder {
    color: #a3aec4;
}

.field-btn {
    flex: 0 0 auto;
    height: 34px;
    padding: 0 14px;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    background: rgba(79, 124, 255, .10);
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s ease, color .2s ease;
}

.field-btn:hover:not(.counting) {
    background: rgba(79, 124, 255, .2);
}

.field-btn.counting {
    color: var(--muted);
    background: #eef2f7;
    cursor: not-allowed;
}

.pwd-toggle {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transition: color .2s ease, background .2s ease;
}

.pwd-toggle:hover {
    color: var(--primary);
    background: rgba(79, 124, 255, .08);
}

.pwd-toggle .icon {
    width: 17px;
    height: 17px;
}

.pwd-toggle .icon-eye {
    display: none;
}

.pwd-toggle.on .icon-eye {
    display: block;
}

.pwd-toggle.on .icon-eye-off {
    display: none;
}

/* ---------- 提交按钮 ---------- */
.auth-submit {
    width: 100%;
    height: 52px;
    margin-top: 20px;
    border-radius: 15px;
    font-size: 15px;
    letter-spacing: .5px;
}

/* ---------- 底部链接 ---------- */
.auth-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 18px;
    font-size: 13.5px;
    color: var(--muted);
}

.auth-links button {
    padding: 0;
    border: none;
    background: none;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    transition: opacity .2s ease;
}

.auth-links button:hover {
    opacity: .75;
    text-decoration: underline;
}

.auth-tip {
    margin: 16px 0 0;
    padding: 11px 14px;
    font-size: 12.5px;
    line-height: 1.7;
    color: #92650b;
    background: rgba(245, 158, 11, .08);
    border: 1px solid rgba(245, 158, 11, .18);
    border-radius: 12px;
}

/* =========================================================
   10. SEO 内容区（重设计）
   ========================================================= */
.content-section {
    margin-top: 62px;
}

/* --- 区块标题 --- */
.section-head {
    max-width: 780px;
    margin: 0 auto 28px;
    text-align: center;
}

.section-head .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 30px;
    padding: 0 14px;
    margin-bottom: 15px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .5px;
    color: #3b5bdb;
    background: rgba(79, 124, 255, .10);
    border: 1px solid rgba(79, 124, 255, .18);
}

.section-head .eyebrow .icon {
    width: 13px;
    height: 13px;
    stroke-width: 2.4;
}

.section-head h2 {
    margin: 0 0 12px;
    font-size: clamp(21px, 3.6vw, 30px);
    font-weight: 800;
    letter-spacing: -.7px;
    line-height: 1.34;
}

.section-head h2 .grad {
    background: linear-gradient(120deg, var(--primary) 10%, var(--accent) 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-head p {
    margin: 0 auto;
    max-width: 700px;
    font-size: 14.5px;
    color: var(--muted);
    line-height: 1.85;
}

/* --- 内容卡片容器 --- */
.content-card {
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-card);
}

/* --- 核心优势 --- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
    gap: 16px;
}

.feature-item {
    --f: 79, 124, 255;
    position: relative;
    padding: 22px 20px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, #ffffff, #fafbff);
    overflow: hidden;
    transition: transform .28s var(--ease), box-shadow .28s ease, border-color .24s ease;
}

.feature-item:nth-child(2) {
    --f: 139, 92, 246;
}

.feature-item:nth-child(3) {
    --f: 245, 158, 11;
}

.feature-item:nth-child(4) {
    --f: 16, 185, 129;
}

.feature-item:nth-child(5) {
    --f: 6, 182, 212;
}

.feature-item:nth-child(6) {
    --f: 239, 68, 68;
}

/* 顶部渐变描边 */
.feature-item::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, rgb(var(--f)), rgba(var(--f), .30));
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .38s var(--ease);
}

/* 右上角柔光 */
.feature-item::after {
    content: "";
    position: absolute;
    top: -48px;
    right: -48px;
    width: 124px;
    height: 124px;
    border-radius: 50%;
    background: rgba(var(--f), .08);
    opacity: 0;
    pointer-events: none;
    transition: opacity .38s ease;
}

.feature-item:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--f), .34);
    box-shadow: 0 22px 40px -26px rgba(15, 23, 42, .55);
}

.feature-item:hover::before {
    transform: scaleX(1);
}

.feature-item:hover::after {
    opacity: 1;
}

.feature-icon {
    position: relative;
    z-index: 1;
    width: 44px;
    height: 44px;
    margin-bottom: 15px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    color: rgb(var(--f));
    background: rgba(var(--f), .10);
    border: 1px solid rgba(var(--f), .20);
    transition: color .28s ease, background .28s ease, border-color .28s ease,
    transform .28s var(--ease), box-shadow .28s ease;
}

.feature-icon .icon {
    width: 21px;
    height: 21px;
}

.feature-item:hover .feature-icon {
    color: #fff;
    background: linear-gradient(135deg, rgb(var(--f)), rgba(var(--f), .70));
    border-color: transparent;
    transform: translateY(-2px) rotate(-6deg);
    box-shadow: 0 14px 24px -14px rgba(var(--f), .95);
}

.feature-item h3 {
    position: relative;
    z-index: 1;
    margin: 0 0 7px;
    font-size: 15.5px;
    font-weight: 700;
    letter-spacing: -.2px;
}

.feature-item p {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.78;
}

/* --- 使用步骤 --- */
.steps {
    list-style: none;
    counter-reset: step;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(234px, 1fr));
    gap: 16px;
}

.step {
    position: relative;
    padding: 22px 20px 22px 70px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, #ffffff, #fafbff);
    counter-increment: step;
    transition: transform .28s var(--ease), box-shadow .28s ease, border-color .24s ease;
}

.step::before {
    content: counter(step);
    position: absolute;
    left: 20px;
    top: 22px;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 10px 20px -12px rgba(79, 124, 255, 1);
    transition: transform .28s var(--ease), box-shadow .28s ease;
}

.step:hover {
    transform: translateY(-4px);
    border-color: rgba(79, 124, 255, .34);
    box-shadow: 0 22px 40px -26px rgba(15, 23, 42, .55);
}

.step:hover::before {
    transform: scale(1.08) rotate(-6deg);
    box-shadow: 0 14px 26px -12px rgba(79, 124, 255, 1);
}

.step h3 {
    margin: 2px 0 7px;
    font-size: 15.5px;
    font-weight: 700;
    letter-spacing: -.2px;
}

.step p {
    margin: 0;
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.78;
}

/* --- 常见问题 --- */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    overflow: hidden;
    transition: border-color .24s ease, box-shadow .28s ease, background .24s ease;
}

.faq-item:hover {
    border-color: rgba(79, 124, 255, .32);
}

.faq-item[open] {
    border-color: rgba(79, 124, 255, .45);
    background: linear-gradient(180deg, #ffffff, #fafbff);
    box-shadow: 0 18px 34px -26px rgba(24, 50, 120, .55);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 17px 20px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: color .2s ease;
}

.faq-item summary:hover {
    color: var(--primary);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "";
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    border-radius: 8px;
    color: var(--primary);
    background-color: rgba(79, 124, 255, .10);
    background-image: linear-gradient(currentColor, currentColor),
    linear-gradient(currentColor, currentColor);
    background-size: 11px 2px, 2px 11px;
    background-position: center, center;
    background-repeat: no-repeat;
    transition: background-size .28s var(--ease), background-color .24s ease;
}

.faq-item[open] summary::after {
    background-size: 11px 2px, 0 0;
    background-color: rgba(79, 124, 255, .20);
}

.faq-answer {
    padding: 0 20px 18px;
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.85;
    animation: fadeUp .3s var(--ease) both;
}

.faq-answer p {
    margin: 0 0 8px;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
}

/* --- SEO 结尾说明 --- */
.seo-note {
    position: relative;
    margin-top: 22px;
    padding: 20px 22px 20px 26px;
    font-size: 13.5px;
    line-height: 1.9;
    color: var(--muted);
    background: linear-gradient(135deg, rgba(79, 124, 255, .07), rgba(139, 92, 246, .07));
    border: 1px solid rgba(79, 124, 255, .15);
    border-radius: var(--radius);
    overflow: hidden;
}

.seo-note::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary), var(--accent));
}

.seo-note strong {
    color: var(--text-2);
}

/* =========================================================
   11. 页脚
   ========================================================= */
.site-footer {
    position: relative;
    margin-top: auto;
    padding: 0;
    color: #94a3b8;
    font-size: 13px;
    background: linear-gradient(180deg, #0f172a 0%, #0b1220 100%);
    overflow: hidden;
}

.site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(620px 260px at 10% 0%, rgba(79, 124, 255, .20), transparent 70%),
    radial-gradient(560px 240px at 90% 8%, rgba(139, 92, 246, .16), transparent 70%);
}

.site-footer::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(79, 124, 255, .7), rgba(139, 92, 246, .7), transparent);
}

.footer-inner {
    position: relative;
    z-index: 1;
    max-width: 1140px;
    margin: 0 auto;
    padding: 38px 20px 24px;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(148, 163, 184, .16);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-brand .brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 13px;
    box-shadow: 0 12px 24px -12px rgba(79, 124, 255, .95),
    inset 0 1px 0 rgba(255, 255, 255, .3);
}

.footer-brand-text strong {
    display: block;
    font-size: 15.5px;
    font-weight: 800;
    letter-spacing: .2px;
    color: #e2e8f0;
}

.footer-brand-text span {
    display: block;
    margin-top: 3px;
    font-size: 12.5px;
    color: #7f8ea8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    padding: 7px 15px;
    font-size: 13px;
    color: #aab8cd;
    border-radius: 999px;
    background: rgba(148, 163, 184, .08);
    border: 1px solid rgba(148, 163, 184, .14);
    transition: color .22s ease, background .22s ease, border-color .22s ease, transform .22s var(--ease);
}

.footer-links a:hover {
    color: #fff;
    background: rgba(79, 124, 255, .2);
    border-color: rgba(79, 124, 255, .45);
    transform: translateY(-2px);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 24px;
    padding-top: 20px;
    font-size: 12.5px;
    line-height: 1.9;
    color: #7f8ea8;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom a {
    color: #a9b9d0;
    border-bottom: 1px dashed rgba(148, 163, 184, .35);
    transition: color .2s ease, border-color .2s ease;
}

.footer-bottom a:hover {
    color: #fff;
    border-bottom-color: rgba(79, 124, 255, .9);
}

/* =========================================================
   12. 动画
   ========================================================= */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(26px) scale(.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes pop {
    from {
        opacity: 0;
        transform: scale(.94) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes stripes {
    to {
        background-position: 18px 0;
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, .55);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes authIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================================
   13. 响应式
   ========================================================= */
@media (max-width: 860px) {
    /* 桌面横向菜单隐藏，改用汉堡按钮 + 下拉菜单 */
    .nav-menu,
    .site-nav .nav-btn {
        display: none;
    }

    .nav-login,
    .nav-user {
        margin-left: auto;
    }

    /* 关键修复：使用 .site-nav .nav-toggle（特异性高于 .nav-toggle），
       确保能覆盖后面基础样式里的 display: none */
    .site-nav .nav-toggle {
        display: grid;
    }
}

@media (max-width: 640px) {
    .nav-inner {
        height: 58px;
        padding: 0 14px;
        gap: 8px;
    }

    .nav-brand {
        height: 32px;
    }

    .nav-brand-img {
        height: 36px;
        max-width: 160px;
    }

    .nav-login {
        height: 34px;
        padding: 0 14px;
        font-size: 13px;
    }

    .nav-btn {
        height: 34px;
        padding: 0 16px;
        font-size: 13px;
    }

    .nav-user-btn {
        height: 34px;
        padding: 0 10px 0 4px;
    }

    .nav-user-avatar {
        width: 26px;
        height: 26px;
        font-size: 11px;
    }

    .nav-user-name {
        display: none;
    }

    /* 移动端菜单 */
    .nav-toggle {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    .mobile-menu {
        left: 10px;
        right: 10px;
        border-radius: 16px;
    }

    .mobile-menu a {
        height: 44px;
        font-size: 14px;
    }

    .main {
        padding: 0 14px 50px;
    }

    .hero {
        padding: 34px 0 18px;
    }

    .parse-card {
        padding: 18px 16px;
        border-radius: 20px;
        margin-top: 22px;
    }

    .input-row {
        flex-direction: column;
        gap: 10px;
    }

    #urlInput {
        height: 52px;
        font-size: 14px;
    }

    #button-addon2 {
        height: 44px;
        width: 100%;
        border-radius: var(--radius-sm);
    }

    /* ===== 移动端：解析链接 / 批量解析 两个按钮水平并排 ===== */
    .btn-row {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 10px;
    }

    .btn-row > * {
        flex: 1 1 0;
        min-width: 0;
    }

    .btn-row .btn {
        height: 48px;
        padding: 0 10px;
        font-size: 14px;
        gap: 6px;
        letter-spacing: 0;
    }

    .btn-row .btn .icon {
        width: 16px;
        height: 16px;
    }

    /* ===== 并排按钮样式结束 ===== */
    .btn {
        height: 48px;
        font-size: 14.5px;
    }

    .platforms {
        gap: 6px;
    }

    .platforms em {
        font-size: 12px;
        padding: 3px 9px;
    }

    .preview-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .preview-unit .preview-video {
        max-height: 260px;
    }

    #chooseButton .btn {
        flex: 1 1 calc(50% - 5px);
        min-width: 0;
        padding: 0 12px;
    }

    /* 登录 / 注册 / 重置密码 */
    .auth-cover {
        padding: 12px;
        align-items: flex-start;
    }

    .auth-panel {
        margin: 12px auto;
        border-radius: 22px;
    }

    .auth-hero {
        padding: 22px 20px 24px;
    }

    .auth-hero .auth-logo {
        width: 44px;
        height: 44px;
        border-radius: 14px;
        margin-bottom: 13px;
    }

    .auth-hero .auth-logo .icon {
        width: 21px;
        height: 21px;
    }

    .auth-title {
        font-size: 19px;
    }

    .auth-sub {
        font-size: 13px;
    }

    .auth-close {
        top: 14px;
        right: 14px;
        width: 32px;
        height: 32px;
    }

    .auth-body {
        padding: 18px 18px 20px;
    }

    .auth-field {
        height: 50px;
        border-radius: 14px;
    }

    .auth-field input {
        height: 46px;
        font-size: 14px;
    }

    .auth-submit {
        height: 48px;
        margin-top: 18px;
    }

    .field-btn {
        padding: 0 11px;
        font-size: 12.5px;
    }

    /* SEO 内容区 */
    .content-section {
        margin-top: 38px;
    }

    .section-head {
        margin-bottom: 20px;
    }

    .section-head .eyebrow {
        height: 28px;
        padding: 0 12px;
        margin-bottom: 12px;
        font-size: 12px;
    }

    .section-head h2 {
        font-size: 20px;
        letter-spacing: -.4px;
        margin-bottom: 10px;
    }

    .section-head p {
        font-size: 13.5px;
        line-height: 1.8;
    }

    .content-card {
        padding: 18px 16px;
        border-radius: 20px;
    }

    .feature-grid,
    .steps {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .feature-item {
        padding: 18px 16px;
    }

    .feature-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 12px;
        border-radius: 12px;
    }

    .feature-icon .icon {
        width: 19px;
        height: 19px;
    }

    .step {
        padding: 18px 16px 18px 62px;
    }

    .step::before {
        left: 16px;
        top: 18px;
        width: 32px;
        height: 32px;
        border-radius: 10px;
    }

    .faq-item summary {
        padding: 15px 16px;
        font-size: 14.5px;
    }

    .faq-answer {
        padding: 0 16px 16px;
        font-size: 13.5px;
    }

    .seo-note {
        padding: 16px 16px 16px 21px;
        font-size: 13px;
    }

    /* 页脚 */
    .footer-inner {
        padding: 30px 16px 20px;
    }

    .footer-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding-bottom: 18px;
    }

    .footer-links {
        width: 100%;
    }

    .footer-links a {
        flex: 1 1 calc(50% - 4px);
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding-top: 16px;
    }

    /* 提示卡片紧凑化 */
    .notice {
        padding: 14px 15px;
        gap: 11px;
        border-radius: 14px;
    }

    .notice-icon {
        width: 32px;
        height: 32px;
        border-radius: 10px;
    }

    .notice-icon .icon {
        width: 16px;
        height: 16px;
    }

    .notice-title {
        font-size: 14.5px;
    }

    .notice-desc {
        font-size: 13px;
    }

    /* 弹框 */
    .modal-mask {
        padding: 16px;
    }

    .modal-box {
        border-radius: 20px;
    }

    .modal-header {
        padding: 20px 18px 10px;
        gap: 10px;
    }

    .modal-header h3 {
        font-size: 16px;
        padding-left: 12px;
    }

    .modal-header h3::before {
        height: 15px;
    }

    .modal-x {
        width: 30px;
        height: 30px;
        font-size: 17px;
    }

    .modal-body {
        padding: 4px 18px 18px;
        font-size: 14px;
        line-height: 1.8;
    }

    .modal-footer {
        padding: 14px 18px 16px;
        gap: 8px;
    }

    .modal-footer .btn {
        flex: 1 1 auto;
        min-width: 0;
        height: 44px;
        padding: 0 16px;
        border-radius: 12px;
    }
}

@media (max-width: 380px) {
    .preview-grid {
        grid-template-columns: 1fr;
    }

    .auth-hero {
        padding: 20px 16px 22px;
    }

    .auth-body {
        padding: 16px 14px 18px;
    }
}

/* 减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
}


/* =========================================================
14. 补丁：下拉菜单 & 工具类（不依赖 Bootstrap）
========================================================= */

/* 14.1 补上 Bootstrap 的 d-none 工具类（master.js 中用到） */
.d-none {
    display: none !important;
}

/* 14.2 让下拉菜单可点击展开（由 JS 添加 .open 类触发） */
.nav-user.open .nav-user-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-user.open .nav-user-caret {
    transform: rotate(180deg);
}

/* 14.3 桌面端鼠标悬浮也能展开（移动端自动跳过） */
@media (hover: hover) and (pointer: fine) {
    .nav-user:hover .nav-user-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-user:hover .nav-user-caret {
        transform: rotate(180deg);
    }
}

/* 14.4 下拉菜单项在 hover 时的视觉反馈（微调，可选） */
.nav-user-menu a:hover,
.nav-user-menu button:hover {
    background: rgba(79, 124, 255, .09);
    color: var(--primary);
}

/* =========================================================
   15. 补丁：移动端导航（汉堡按钮 + 下拉菜单）
   ========================================================= */

/* 15.1 汉堡按钮（默认隐藏，仅移动端通过 .site-nav .nav-toggle 覆盖显示） */
.nav-toggle {
    display: none;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #f8fafd;
    color: var(--text-2);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s var(--ease);
}

.nav-toggle:hover {
    background: #fff;
    color: var(--primary);
    border-color: rgba(79, 124, 255, .4);
}

.nav-toggle:active {
    transform: scale(.94);
}

.nav-toggle .icon {
    width: 19px;
    height: 19px;
}

.nav-toggle .icon-close {
    display: none;
}

.nav-toggle.is-open .icon-menu {
    display: none;
}

.nav-toggle.is-open .icon-close {
    display: block;
}

/* 15.2 移动端下拉菜单 */
.mobile-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 14px;
    right: 14px;
    z-index: 99;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 28px 56px -28px rgba(15, 23, 42, .55),
    0 0 0 1px rgba(255, 255, 255, .6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(.98);
    transform-origin: top center;
    transition: opacity .22s ease, transform .28s var(--ease), visibility .22s;
}

.mobile-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.mobile-menu a {
    display: flex;
    align-items: center;
    height: 46px;
    padding: 0 14px;
    border-radius: 12px;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text-2);
    transition: background .18s ease, color .18s ease;
}

.mobile-menu a:hover,
.mobile-menu a:active {
    color: var(--primary);
    background: rgba(79, 124, 255, .09);
}

.mobile-menu a.mobile-menu-cta {
    justify-content: center;
    margin-top: 6px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 12px 24px -14px rgba(79, 124, 255, 1);
}

.mobile-menu a.mobile-menu-cta:hover,
.mobile-menu a.mobile-menu-cta:active {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    filter: brightness(1.06);
}

/* 15.3 桌面端强制隐藏（防止旋转屏幕后残留） */
@media (min-width: 861px) {
    .mobile-menu {
        display: none !important;
    }
}


/* =========================================================
   16. 页脚友情链接
   ========================================================= */
.footer-friendlinks {
    position: relative;
    z-index: 1;
    padding-top: 24px;
}

.friendlinks-title {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 13px;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: .3px;
    color: #cbd5e1;
}

.friendlinks-title .icon {
    width: 15px;
    height: 15px;
    color: #6f8cff;
    stroke-width: 2.2;
}

.friendlinks-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
}

.friendlinks-list a {
    display: inline-flex;
    align-items: center;
    height: 30px;
    padding: 0 13px;
    border-radius: 999px;
    font-size: 12.5px;
    line-height: 1;
    white-space: nowrap;
    color: #8f9fb8;
    background: rgba(148, 163, 184, .07);
    border: 1px solid rgba(148, 163, 184, .13);
    transition: color .22s ease, background .22s ease,
    border-color .22s ease, transform .22s var(--ease);
}

.friendlinks-list a:hover {
    color: #fff;
    background: rgba(79, 124, 255, .2);
    border-color: rgba(79, 124, 255, .45);
    transform: translateY(-2px);
}

/* 移动端微调 */
@media (max-width: 640px) {
    .footer-friendlinks {
        padding-top: 18px;
    }

    .friendlinks-list {
        gap: 7px 8px;
    }

    .friendlinks-list a {
        height: 28px;
        padding: 0 11px;
        font-size: 12px;
    }
}

/* =========================================================
修改点 4：图片下载按钮样式
文件：parse.css  →  追加到文件末尾（第 15 节之后）
========================================================= */

/* 图片右上角「下载」按钮 */
.preview-unit .img-download-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 4; /* 高于 .checkbox(3)，确保可点击 */

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;

    height: 30px;
    padding: 0 11px;

    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 999px;

    font-family: inherit;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;

    color: #fff;
    background: rgba(15, 23, 42, .62);

    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);

    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: scale(.86);

    transition: opacity .2s ease,
    transform .24s var(--ease),
    visibility .2s,
    background .2s ease,
    box-shadow .2s ease;
}

.preview-unit .img-download-btn .icon {
    width: 14px;
    height: 14px;
    stroke-width: 2.2;
}

/* 桌面端：悬停 / 聚焦时显示 */
.preview-unit:hover .img-download-btn,
.preview-unit:focus-within .img-download-btn {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.preview-unit .img-download-btn:hover {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-color: transparent;
    box-shadow: 0 10px 20px -10px rgba(79, 124, 255, 1);
}

.preview-unit .img-download-btn:active {
    transform: scale(.94);
}

/* 下载中 */
.preview-unit .img-download-btn.is-loading {
    cursor: wait;
    opacity: .65;
}

/* 触摸设备：无 hover，按钮常驻显示 */
@media (hover: none) {
    .preview-unit .img-download-btn {
        opacity: 1;
        visibility: visible;
        transform: scale(1);
    }
}

/* 移动端小尺寸微调 */
@media (max-width: 640px) {
    .preview-unit .img-download-btn {
        top: 8px;
        right: 8px;
        height: 27px;
        padding: 0 9px;
        font-size: 11.5px;
    }

    .preview-unit .img-download-btn .icon {
        width: 12px;
        height: 12px;
    }

    .platforms em,
    .platforms a {
        font-size: 12px;
        padding: 3px 9px;
    }
}


/* 开通会员按钮：未登录时隐藏 */
.nav-btn.is-hidden {
    display: none !important;
}

/* 可选：移动端菜单里的开通会员按钮 */
.mobile-menu-cta.is-hidden {
    display: none !important;
}