:root {
    --bg-main: #0a0a0c;
    --bg-card: rgba(20, 20, 25, 0.7);
    --primary-glow: #e2b49a;
    /* Rosy Champagne */
    --accent-gold: #d4af37;
    --accent-blue: #70a1ff;
    --text-pure: #ffffff;
    --text-dim: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Outfit', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-serif: 'Cormorant Garamond', 'Noto Serif SC', serif;
    --shadow-soft: 0 18px 60px rgba(0, 0, 0, 0.55);
    --radius-xl: 18px;
    --nav-height: 70px;
    --nav-safe: env(safe-area-inset-top, 0px);
    --nav-total: calc(var(--nav-height) + var(--nav-safe));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar - Premium Dark Theme */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.analyze-tabs,
.mobile-float-score,
.mobile-mode-bar {
    display: none;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: rgba(226, 180, 154, 0.35);
    border-radius: 3px;
    transition: background 0.3s;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(226, 180, 154, 0.55);
}

::-webkit-scrollbar-corner {
    background: transparent;
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(226, 180, 154, 0.35) rgba(0, 0, 0, 0.2);
}

body {
    background-color: var(--bg-main);
    color: var(--text-pure);
    font-family: var(--font-main);
    overflow: hidden;
    height: 100vh;
}

/* Background Silk Gradient */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(900px 600px at 18% 22%, rgba(226, 180, 154, 0.14), transparent 70%),
        radial-gradient(800px 540px at 74% 30%, rgba(112, 161, 255, 0.10), transparent 65%),
        radial-gradient(900px 700px at 62% 78%, rgba(212, 175, 55, 0.08), transparent 70%),
        radial-gradient(circle at center, #151526 0%, #0a0a0c 72%);
    z-index: -1;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.05) 1px, transparent 0);
    background-size: 28px 28px;
    opacity: 0.09;
    z-index: -1;
    pointer-events: none;
    mix-blend-mode: overlay;
}

/* High-End Header */
nav {
    min-height: var(--nav-total);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--nav-safe) 3rem 0;
    border-bottom: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    z-index: 100;
}

.brand {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    background: linear-gradient(135deg, #fff 0%, #e2b49a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-sub {
    font-size: 0.6rem;
    letter-spacing: 0.4em;
    color: var(--text-dim);
    text-transform: uppercase;
    line-height: 1.6;
    margin-top: 4px;
    padding-top: 2px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-pill {
    font-size: 0.72rem;
    color: var(--text-dim);
    border: 1px solid var(--glass-border);
    padding: 6px 12px;
    border-radius: 999px;
    backdrop-filter: blur(14px);
    background: rgba(255, 255, 255, 0.03);
    letter-spacing: 0.04em;
}

.nav-btn {
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-pure);
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    cursor: pointer;
    transition: 0.25s;
}

.nav-btn:hover {
    border-color: rgba(226, 180, 154, 0.5);
    background: rgba(226, 180, 154, 0.08);
}

.nav-btn:focus-visible,
.mode-btn:focus-visible,
.upload-pod:focus-visible,
.reset-link:focus-visible,
.profile-close-btn:focus-visible,
.btn-luxury:focus-visible,
.btn-save-card:focus-visible,
.btn-unlock-report:focus-visible {
    outline: 2px solid rgba(226, 180, 154, 0.85);
    outline-offset: 3px;
}

.upload-pod.is-dragover {
    border-color: rgba(226, 180, 154, 0.9);
    background: rgba(226, 180, 154, 0.08);
    box-shadow: 0 0 0 1px rgba(226, 180, 154, 0.18), 0 18px 60px rgba(0, 0, 0, 0.55);
}

/* Main Layout */
#app-root {
    height: calc(100vh - var(--nav-total));
    overflow: hidden;
    position: relative;
}

.view {
    position: absolute;
    inset: 0;
    display: none;
    overflow: auto;
}

.view[hidden] {
    display: none !important;
}

.view.is-active {
    display: block;
}

#view-analyze.view.is-active {
    display: flex;
    overflow: hidden;
}

/* Welcome Overlay */
#welcome-screen {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 12, 0.9);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(30px);
}

.welcome-content {
    max-width: 800px;
    text-align: center;
    padding: 4rem;
    animation: fadeIn 1.5s ease;
}

.welcome-content h1 {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 200;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #e2b49a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.welcome-content p {
    font-size: 1.1rem;
    color: var(--text-dim);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.upload-pod {
    position: relative;
    padding: 26px;
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: 0.5s cubic-bezier(0.2, 1, 0.3, 1);
    overflow: hidden;
    outline: none;
}

.upload-pod::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #e2b49a, transparent);
    transform: translateX(-100%);
    transition: 0.5s;
}

.upload-pod:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #e2b49a;
}

.upload-pod:hover::before {
    transform: translateX(100%);
}

/* Analysis Layout */
#view-analyze {
    flex: 1;
    display: flex;
    width: 100%;
    min-width: 0;
    overflow: hidden;
}

/* Left: Subject Info */
.aside-subject {
    width: 280px;
    min-width: 280px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    border-right: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.viewer-frame {
    width: 100%;
    aspect-ratio: 3/4;
    border: 1px solid var(--glass-border);
    padding: 10px;
    position: relative;
    background: rgba(0, 0, 0, 0.35);
    overflow: visible;
}

.viewer-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9) contrast(1.1);
}

.viewer-frame:not(.has-image)::before {
    content: '等待上传素颜正面照';
    position: absolute;
    inset: 10px;
    border-radius: 8px;
    border: 1px dashed rgba(226, 180, 154, 0.25);
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.72);
    letter-spacing: 0.08em;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.18));
    font-size: 0.78rem;
    text-transform: uppercase;
    text-align: center;
    padding: 14px;
}

.viewer-frame:not(.has-image) img {
    display: none;
}

.subject-tag {
    position: absolute;
    top: -12px;
    left: 1rem;
    background: #e2b49a;
    color: #000;
    padding: 4px 14px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    border-radius: 4px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.aesthetic-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
}

.breakdown-grid {
    display: grid;
    gap: 8px;
}

.bd-row {
    display: grid;
    grid-template-columns: 86px 1fr 44px;
    gap: 10px;
    align-items: center;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.72);
}

.bd-label {
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.9;
}

.bd-track {
    height: 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(0, 0, 0, 0.22);
    overflow: hidden;
}

.bd-fill {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(226, 180, 154, 0.95), rgba(112, 161, 255, 0.75));
    transition: 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.bd-val {
    text-align: right;
    color: rgba(226, 180, 154, 0.92);
    font-weight: 700;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-dim);
    text-transform: uppercase;
}

.stat-value {
    font-weight: 600;
    color: #e2b49a;
}

.meter-track {
    height: 2px;
    background: var(--glass-border);
    position: relative;
}

.meter-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    transition: 1.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.meter-fill--score {
    background: #e2b49a;
}

.meter-fill--skin {
    background: rgba(112, 161, 255, 0.9);
}

.meter-fill--quality {
    background: rgba(226, 180, 154, 0.9);
}

.metric-stack {
    margin-top: 12px;
}

.fine-text {
    margin-top: 10px;
    font-size: 0.72rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.62);
}

.fine-text--strong {
    color: rgba(255, 255, 255, 0.72);
}

/* Middle: Visualizer */
.visualizer-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    position: relative;
    min-width: 0;
    overflow: hidden;
}

.viewport-canvas {
    flex: 1;
    background: #0a0a0c;
    border-radius: 4px;
    position: relative;
    border: 1px solid var(--glass-border);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
}

#canvas-wrapper {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scan-line {
    position: absolute;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2b49a, transparent);
    box-shadow: 0 0 15px #e2b49a;
    z-index: 10;
    pointer-events: none;
    opacity: 0.6;
    animation: scanMove 4s ease-in-out infinite;
}

@keyframes scanMove {
    0% {
        top: 0;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

.corner-label {
    position: absolute;
    font-size: 0.6rem;
    color: var(--text-dim);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.c-tl {
    top: 20px;
    left: 20px;
}

.c-tr {
    top: 20px;
    right: 20px;
}

.c-bl {
    bottom: 20px;
    left: 20px;
}

.c-br {
    bottom: 20px;
    right: 20px;
}

canvas {
    display: block;
    filter: drop-shadow(0 0 20px rgba(226, 180, 154, 0.1));
    max-width: 100%;
    max-height: 100%;
}

#main-canvas {
    filter: drop-shadow(0 0 26px rgba(90, 220, 255, 0.08)) drop-shadow(0 0 36px rgba(226, 180, 154, 0.12));
}

#issue-canvas {
    filter: drop-shadow(0 0 18px rgba(112, 161, 255, 0.16));
}

/* Right: Report & Styles */
.aside-reports {
    width: 340px;
    min-width: 340px;
    background: rgba(15, 15, 20, 0.9);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--glass-border);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    overflow-y: auto;
    flex-shrink: 0;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--glass-border), transparent);
}

.mode-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.mode-btn {
    padding: 1rem;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    text-align: center;
    transition: 0.3s;
    border-radius: 8px;
    color: var(--text-pure);
    font: inherit;
}

.mode-btn:hover {
    background: rgba(226, 180, 154, 0.05);
}

.mode-btn.active {
    border-color: #e2b49a;
    background: rgba(226, 180, 154, 0.1);
    color: #e2b49a;
}

.style-dna-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

.dna-palette {
    display: flex;
    gap: 8px;
    height: 60px;
}

.dna-swatch {
    flex: 1;
    border-radius: 6px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
}

.dna-swatch:hover {
    flex: 1.5;
    z-index: 10;
}

.dna-hex {
    position: absolute;
    bottom: -18px;
    font-size: 0.55rem;
    width: 100%;
    text-align: center;
    color: var(--text-dim);
    font-family: 'Outfit';
    opacity: 0;
    transition: 0.3s;
}

.dna-swatch:hover .dna-hex {
    opacity: 1;
}

.season-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(226, 180, 154, 0.15);
    border: 1px solid var(--primary-glow);
    color: var(--primary-glow);
    font-size: 0.65rem;
    border-radius: 20px;
    margin-bottom: 10px;
}

.harmony-desc {
    font-size: 0.75rem;
    color: var(--text-dim);
    line-height: 1.5;
}

.diag-item {
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    margin-bottom: 1rem;
    transition: 0.28s;
}

.diag-item.is-focus {
    border-color: rgba(226, 180, 154, 0.55);
    background: rgba(226, 180, 154, 0.08);
    box-shadow: 0 18px 50px rgba(226, 180, 154, 0.10);
    transform: translateY(-1px);
}

.diag-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.8rem;
    color: #e2b49a;
    font-weight: 600;
    font-size: 0.9rem;
}

.diag-content {
    font-size: 0.8rem;
    line-height: 1.6;
    color: var(--text-dim);
}

/* Transformation CTA */
.cta-box {
    margin-top: auto;
    background: linear-gradient(135deg, rgba(226, 180, 154, 0.15), rgba(226, 180, 154, 0.05));
    border: 1px solid rgba(226, 180, 154, 0.3);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
}

.cta-box h4 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.cta-box p {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-bottom: 1.5rem;
}

.btn-luxury {
    flex: 1;
    padding: 1rem;
    background: #e2b49a;
    color: #000;
    border: none;
    font-weight: 800;
    letter-spacing: 0.1em;
    cursor: pointer;
    border-radius: 4px;
    transition: 0.3s;
}

.btn-luxury:hover {
    box-shadow: 0 0 30px rgba(226, 180, 154, 0.4);
    transform: translateY(-2px);
}

.btn-luxury.btn-luxury-secondary {
    background: transparent;
    color: rgba(226, 180, 154, 0.92);
    border: 1px solid rgba(226, 180, 154, 0.45);
    box-shadow: none;
}

.btn-luxury.btn-luxury-secondary:hover {
    background: rgba(226, 180, 154, 0.12);
    box-shadow: 0 0 28px rgba(226, 180, 154, 0.22);
    transform: translateY(-2px);
}

.btn-luxury.btn-luxury-secondary:active {
    transform: translateY(-1px);
}

.btn-luxury.btn-luxury-secondary[aria-disabled="true"] {
    opacity: 0.55;
    cursor: not-allowed;
}

.reset-link {
    font-size: 0.75rem;
    color: var(--text-dim);
    cursor: pointer;
    opacity: 0.6;
    transition: 0.2s;
    margin-left: 12px;
    white-space: nowrap;
    background: transparent;
    border: none;
    padding: 0;
    font: inherit;
}

.reset-link:hover {
    opacity: 1;
    text-decoration: underline;
}

.cta-box .btn-row {
    display: flex;
    align-items: stretch;
    gap: 12px;
}

.cta-box .btn-row .btn-luxury {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 56px;
    white-space: nowrap;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loading-shade {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 12, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    flex-direction: column;
}

.loader-iris {
    width: 60px;
    height: 60px;
    border: 2px solid rgba(226, 180, 154, 0.1);
    border-top: 2px solid #e2b49a;
    border-radius: 50%;
    animation: spin 1s cubic-bezier(0.19, 1, 0.22, 1) infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

.home-shell {
    min-height: calc(100vh - var(--nav-total));
    padding: 34px 42px;
    display: grid;
    grid-template-columns: 1.25fr 0.85fr;
    gap: 28px;
    align-items: start;
}

.home-hero {
    padding: 34px 34px 10px 34px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    position: relative;
}

.home-hero::before {
    content: '';
    position: absolute;
    inset: -120px -120px auto auto;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle at center, rgba(226, 180, 154, 0.22), transparent 60%);
    transform: rotate(14deg);
    pointer-events: none;
}

.hero-kicker {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    color: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.22);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
}

.hero-title {
    margin-top: 18px;
    font-family: var(--font-serif);
    font-size: 3.05rem;
    font-weight: 200;
    line-height: 1.05;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(226, 180, 154, 0.95) 45%, rgba(255, 255, 255, 0.92) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    margin-top: 16px;
    font-size: 1.02rem;
    color: var(--text-dim);
    line-height: 1.7;
}

.home-steps {
    margin-top: 26px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.step-card {
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 14px;
    padding: 14px 14px 16px;
    transition: 0.25s;
}

.step-card:hover {
    transform: translateY(-2px);
    border-color: rgba(226, 180, 154, 0.36);
    background: rgba(226, 180, 154, 0.06);
}

.step-no {
    font-size: 0.70rem;
    letter-spacing: 0.24em;
    color: rgba(226, 180, 154, 0.92);
    font-weight: 600;
}

.step-main {
    margin-top: 10px;
    font-size: 0.98rem;
    font-weight: 600;
}

.step-sub {
    margin-top: 6px;
    color: var(--text-dim);
    font-size: 0.78rem;
    line-height: 1.5;
}

.home-panel {
    padding: 34px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    background: rgba(0, 0, 0, 0.22);
    box-shadow: var(--shadow-soft);
}

.upload-layout {
    display: grid;
    grid-template-columns: 1fr 0.92fr;
    gap: 14px;
    align-items: start;
}

.upload-stack {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.photo-guide {
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    padding: 14px;
    position: relative;
    overflow: hidden;
}

.photo-guide::before {
    content: '';
    position: absolute;
    inset: -120px -120px auto auto;
    width: 340px;
    height: 340px;
    background: radial-gradient(circle at center, rgba(112, 161, 255, 0.12), transparent 60%);
    transform: rotate(12deg);
    pointer-events: none;
}

.photo-guide-head {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    z-index: 1;
}

.photo-guide-title {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 400;
    letter-spacing: 0.06em;
}

.photo-guide-sub {
    font-size: 0.78rem;
    color: var(--text-dim);
    line-height: 1.5;
}

.photo-guide-img {
    margin-top: 12px;
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    filter: contrast(1.06) brightness(0.94);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
    position: relative;
    z-index: 1;
}

.photo-guide-notes {
    margin-top: 12px;
    display: grid;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.photo-note {
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(0, 0, 0, 0.22);
    border-radius: 12px;
    padding: 10px 10px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.78rem;
    line-height: 1.4;
}

.compare-card {
    margin-top: 14px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(0, 0, 0, 0.22);
    border-radius: 16px;
    padding: 14px;
    position: relative;
    overflow: hidden;
}

.compare-card::before {
    content: '';
    position: absolute;
    inset: -120px auto auto -120px;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle at center, rgba(226, 180, 154, 0.16), transparent 62%);
    transform: rotate(-10deg);
    pointer-events: none;
}

.compare-head {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 6px;
}

.compare-title {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 400;
    letter-spacing: 0.06em;
}

.compare-sub {
    font-size: 0.78rem;
    color: var(--text-dim);
    line-height: 1.5;
}

.compare-grid {
    position: relative;
    z-index: 1;
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.compare-item {
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 14px;
    padding: 10px;
}

.compare-item.is-good {
    border-color: rgba(112, 161, 255, 0.35);
    background: rgba(112, 161, 255, 0.06);
}

.compare-item.is-bad {
    border-color: rgba(255, 110, 198, 0.26);
    background: rgba(255, 110, 198, 0.04);
}

.compare-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 6px 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    font-size: 0.70rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.25);
    color: rgba(255, 255, 255, 0.90);
}

.compare-frame {
    margin-top: 10px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.10);
    aspect-ratio: 4/5;
    background: rgba(0, 0, 0, 0.22);
}

.compare-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(1.04) brightness(0.95);
    transform: scale(1.02);
}

.compare-img.is-toplight {
    filter: contrast(1.18) brightness(0.88) saturate(0.85);
}

.compare-overlay.overlay-toplight {
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 70% at 50% 0%, rgba(255, 255, 255, 0.30), rgba(0, 0, 0, 0.0) 55%),
        radial-gradient(120% 90% at 50% 60%, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.0) 65%);
    mix-blend-mode: overlay;
    pointer-events: none;
}

.compare-img.is-side {
    transform: scale(1.18) translateX(10px) rotate(6deg);
    filter: contrast(1.06) brightness(0.92) saturate(0.9);
}

.compare-img.is-filter {
    filter: saturate(1.55) contrast(1.25) brightness(1.05) blur(0.5px);
}

.compare-caption {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.76rem;
    line-height: 1.45;
}

.upload-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.22);
    margin-bottom: 14px;
    font-size: 1.15rem;
    color: rgba(226, 180, 154, 0.95);
}

.upload-title {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    font-weight: 300;
    letter-spacing: 0.02em;
}

.upload-meta {
    margin-top: 10px;
    font-size: 0.78rem;
    color: var(--text-dim);
    line-height: 1.6;
}

.upload-hint {
    margin-top: 18px;
    font-size: 0.78rem;
    color: rgba(226, 180, 154, 0.92);
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

.tip-grid {
    margin-top: 16px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.tip {
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    padding: 14px;
}

.tip-title {
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.82);
}

.tip-body {
    margin-top: 10px;
    color: var(--text-dim);
    font-size: 0.84rem;
    line-height: 1.6;
}

.section-block {
    min-width: 0;
}

.btn-outline {
    width: 100%;
    padding: 1rem;
    margin-top: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(226, 180, 154, 0.35);
    color: rgba(226, 180, 154, 0.95);
    font-weight: 700;
    letter-spacing: 0.08em;
    cursor: pointer;
    border-radius: 4px;
    transition: 0.3s;
}

.btn-outline:hover {
    background: rgba(226, 180, 154, 0.10);
    border-color: rgba(226, 180, 154, 0.65);
}

.btn-ghost {
    width: 100%;
    padding: 0.9rem;
    margin-top: 10px;
    background: transparent;
    border: 1px solid var(--glass-border);
    color: #fff;
    cursor: pointer;
    border-radius: 4px;
    transition: 0.25s;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.06);
}

.report-shell {
    min-height: calc(100vh - var(--nav-total));
    padding: 26px 18px 50px;
    overflow: auto;
    background:
        radial-gradient(1200px 700px at 10% -10%, rgba(226, 180, 154, 0.16), rgba(0, 0, 0, 0) 65%),
        radial-gradient(900px 540px at 100% 0%, rgba(112, 161, 255, 0.12), rgba(0, 0, 0, 0) 60%),
        radial-gradient(900px 700px at 50% 120%, rgba(255, 110, 198, 0.08), rgba(0, 0, 0, 0) 58%),
        linear-gradient(180deg, rgba(10, 10, 12, 0.96), rgba(10, 10, 12, 0.98));
}

.report-topbar {
    max-width: 1040px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-end;
    padding: 18px 18px 16px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(0, 0, 0, 0.26);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 12px;
    z-index: 5;
    backdrop-filter: blur(14px);
}

.report-kicker {
    font-size: 0.78rem;
    color: rgba(226, 180, 154, 0.92);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.report-headline {
    margin-top: 10px;
    font-family: var(--font-serif);
    font-size: 1.85rem;
    font-weight: 300;
    letter-spacing: 0.04em;
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(226, 180, 154, 0.95) 45%, rgba(112, 161, 255, 0.88) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.report-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
}

.report-root {
    max-width: 1040px;
    margin: 18px auto 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.report-card {
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.03);
    padding: 18px;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.report-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(700px 360px at 15% 0%, rgba(226, 180, 154, 0.10), rgba(0, 0, 0, 0) 62%),
        radial-gradient(560px 320px at 100% 25%, rgba(112, 161, 255, 0.08), rgba(0, 0, 0, 0) 62%);
    pointer-events: none;
}

.report-card>* {
    position: relative;
    z-index: 1;
}

.report-card h2 {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 1.25rem;
    letter-spacing: 0.06em;
}

.report-card p {
    margin-top: 10px;
    color: var(--text-dim);
    line-height: 1.75;
    font-size: 0.92rem;
}

.report-meta {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.88rem;
    line-height: 1.65;
}

.report-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.dna-palette--report {
    height: 52px;
    margin-top: 12px;
}

.text-accent {
    color: rgba(226, 180, 154, 0.95);
}

.text-cool {
    color: rgba(112, 161, 255, 0.92);
}

.m-0 {
    margin: 0;
}

.mt-8 {
    margin-top: 8px;
}

.mt-10 {
    margin-top: 10px;
}

.mt-12 {
    margin-top: 12px;
}

.mt-14 {
    margin-top: 14px;
}

.mt-16 {
    margin-top: 16px;
}

.op-70 {
    opacity: 0.7;
}

.op-75 {
    opacity: 0.75;
}

.op-78 {
    opacity: 0.78;
}

.op-80 {
    opacity: 0.8;
}

.op-85 {
    opacity: 0.85;
}

.op-88 {
    opacity: 0.88;
}

.op-92 {
    opacity: 0.92;
}

.op-95 {
    opacity: 0.95;
}

.tag-row {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    border-radius: 999px;
    border: 1px solid rgba(226, 180, 154, 0.35);
    background: rgba(226, 180, 154, 0.10);
    padding: 6px 10px;
    font-size: 0.78rem;
    color: rgba(226, 180, 154, 0.95);
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.mini-list {
    margin-top: 10px;
    display: grid;
    gap: 8px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.92rem;
    line-height: 1.6;
}

.mini-item {
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.20);
}

.gauge-stack {
    display: grid;
    gap: 10px;
}

.gauge {
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(0, 0, 0, 0.22);
    border-radius: 14px;
    padding: 10px 12px;
}

.gauge-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.gauge-label {
    color: rgba(255, 255, 255, 0.88);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
}

.gauge-value {
    color: rgba(226, 180, 154, 0.92);
    font-size: 0.78rem;
}

.gauge-bar {
    height: 12px;
    border-radius: 999px;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.gauge-pin {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #e2b49a;
    box-shadow: 0 0 0 3px rgba(226, 180, 154, 0.18), 0 0 20px rgba(226, 180, 154, 0.28);
}

.look-grid {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.look-card {
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(0, 0, 0, 0.18);
    border-radius: 14px;
    padding: 10px 12px;
}

.look-title {
    color: rgba(255, 255, 255, 0.88);
    font-weight: 800;
    letter-spacing: 0.10em;
    font-size: 0.72rem;
    text-transform: uppercase;
}

.look-cols {
    margin-top: 10px;
    height: 44px;
    display: grid;
    grid-template-columns: 1.25fr 1fr 0.8fr;
    gap: 8px;
}

.look-col {
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
}

.look-note {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.74rem;
    line-height: 1.4;
}

.outfit-grid {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.outfit-card {
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: 0.3s;
}

.outfit-card:hover {
    background: rgba(226, 180, 154, 0.08);
    border-color: rgba(226, 180, 154, 0.35);
    transform: translateY(-4px);
}

.outfit-name {
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.04em;
}

.outfit-mannequin {
    width: 100%;
}

.outfit-photo-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.outfit-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9) contrast(1.1);
    transition: 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.outfit-card:hover .outfit-photo {
    transform: scale(1.08);
    filter: brightness(1.0) contrast(1.1);
}

.outfit-face {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 25%;
    max-width: 40px;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    background: #000;
    z-index: 2;
    pointer-events: none;
}

.style-toggle {
    display: flex;
    gap: 8px;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.style-btn {
    padding: 6px 14px;
    border-radius: var(--radius-md);
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.78rem;
    cursor: pointer;
    transition: 0.3s;
}

.style-btn.active {
    background: rgba(226, 180, 154, 0.9);
    color: #000;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(226, 180, 154, 0.3);
}

.style-btn:hover:not(.active) {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.tutorial-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 14px;
    align-items: start;
}

.tutorial-fig {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(0, 0, 0, 0.22);
    padding: 10px;
}

.tutorial-fig svg {
    width: 100%;
    height: auto;
    display: block;
}

.tutorial-text strong {
    color: rgba(255, 255, 255, 0.92);
}

.history-shell {
    min-height: calc(100vh - var(--nav-total));
    padding: 24px 18px;
    max-width: 1040px;
    margin: 0 auto;
}

.history-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 0.08em;
}

.history-sub {
    margin-top: 10px;
    color: var(--text-dim);
}

.history-list {
    margin-top: 18px;
    display: grid;
    gap: 12px;
}

.history-item {
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.03);
    padding: 18px;
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
}

@media (max-width: 600px) {
    .history-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .history-item .nav-btn {
        width: 100%;
        text-align: center;
    }
}

.history-item strong {
    font-weight: 700;
    color: rgba(226, 180, 154, 0.95);
}

.history-item .meta {
    color: var(--text-dim);
    font-size: 0.86rem;
    margin-top: 6px;
}

@media (max-width: 1100px) {
    .home-shell {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 20px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .home-hero {
        padding: 24px;
    }

    .home-steps {
        grid-template-columns: 1fr;
    }

    .upload-layout {
        grid-template-columns: 1fr;
    }

    .compare-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mobile-float-score {
        position: absolute;
        top: 12px;
        right: 12px;
        background: rgba(0, 0, 0, 0.45);
        backdrop-filter: blur(12px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        padding: 6px 12px;
        border-radius: 12px;
        display: flex;
        flex-direction: column;
        align-items: center;
        z-index: 60;
        pointer-events: none;
    }

    .m-score-val {
        font-size: 1.25rem;
        font-weight: 700;
        color: var(--primary-glow);
        font-family: var(--font-serif);
        line-height: 1.2;
    }

    .m-score-label {
        font-size: 0.55rem;
        color: var(--text-dim);
        letter-spacing: 0.1em;
        margin-top: -2px;
    }

    .mobile-mode-bar {
        position: absolute;
        bottom: 12px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(15, 15, 20, 0.85);
        backdrop-filter: blur(20px);
        border: 1px solid var(--glass-border);
        padding: 4px;
        border-radius: 999px;
        display: flex;
        gap: 4px;
        z-index: 60;
        width: fit-content;
        max-width: 95%;
    }

    .m-mode-btn {
        background: transparent;
        border: none;
        color: rgba(255, 255, 255, 0.65);
        padding: 7px 14px;
        border-radius: 999px;
        font-size: 0.72rem;
        cursor: pointer;
        transition: 0.3s;
        white-space: nowrap;
    }

    .m-mode-btn.active {
        background: #e2b49a;
        color: #000;
        font-weight: 600;
    }

    #view-analyze.view.is-active {
        flex-direction: column;
        overflow: hidden;
    }

    .aside-subject,
    .aside-reports {
        position: absolute;
        inset: 0;
        z-index: 50;
        width: 100%;
        min-width: 100%;
        background: var(--bg-main);
        display: none;
        padding-bottom: 80px;
        /* Safe space for tabs */
    }

    .aside-subject.is-active,
    .aside-reports.is-active {
        display: flex;
    }

    .visualizer-main {
        width: 100%;
        height: 100%;
        padding: 0;
        padding-bottom: 74px;
        /* Tab bar space */
        display: none;
        background: #000;
    }

    .visualizer-main.is-active {
        display: flex;
    }

    .viewport-canvas {
        flex: 1;
        border-radius: 0;
        border: none;
        background: #000;
        margin: 0;
        padding: 0;
    }

    #canvas-wrapper {
        position: relative;
        /* Remove explicit 100% to allow JS-calculated ratios to work */
        margin: auto;
    }

    .viewport-canvas {
        background: #000;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .scan-line {
        opacity: 0.4;
        filter: blur(1px);
    }

    .corner-label {
        opacity: 0.25;
        font-size: 0.52rem;
        letter-spacing: 0.05em;
    }

    .analyze-tabs {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 70px;
        background: rgba(15, 15, 20, 0.95);
        backdrop-filter: blur(20px);
        border-top: 1px solid var(--glass-border);
        z-index: 100;
        padding-bottom: env(safe-area-inset-bottom);
        align-items: center;
        justify-content: space-around;
    }

    .tab-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        background: transparent;
        border: none;
        color: var(--text-dim);
        cursor: pointer;
        padding: 8px;
        transition: 0.3s;
    }

    .tab-item.active {
        color: var(--primary-glow);
    }

    .tab-icon {
        font-size: 1.2rem;
    }

    .tab-label {
        font-size: 0.65rem;
        letter-spacing: 0.1em;
    }
}

@media (max-width: 600px) {
    .compare-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .compare-item {
        padding: 8px;
    }

    .compare-caption {
        font-size: 0.7rem;
        word-break: break-all;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .brand-name {
        font-size: 1.3rem;
    }

    .nav-pill {
        display: none;
    }

    .report-headline {
        font-size: 1.4rem;
    }

    .report-topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .two-col {
        grid-template-columns: 1fr;
    }

    .outfit-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 860px) {
    nav {
        padding: 0 18px;
    }

    .tutorial-row {
        grid-template-columns: 1fr;
    }

    .look-grid {
        grid-template-columns: 1fr;
    }
}

@media print {
    body {
        overflow: visible;
        background: #fff;
        color: #111;
    }

    nav,
    #view-home,
    #view-analyze,
    #view-history {
        display: none !important;
    }

    #view-report {
        display: block !important;
        position: static;
        inset: auto;
    }

    .report-topbar {
        box-shadow: none;
        background: #fff;
        border: none;
        padding: 0;
    }

    .report-root {
        margin-top: 12px;
    }

    .report-card {
        box-shadow: none;
        background: #fff;
        border: 1px solid #ddd;
    }

    .nav-btn {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==================== 档案卡预览弹窗 ==================== */
.profile-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.profile-modal {
    background: linear-gradient(145deg, rgba(25, 25, 30, 0.98), rgba(15, 15, 18, 0.98));
    border: 1px solid rgba(226, 180, 154, 0.25);
    border-radius: 24px;
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(226, 180, 154, 0.08);
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.4);
    color: rgba(255, 255, 255, 0.7);
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
}

.profile-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.profile-card-wrapper {
    padding: 24px 24px 16px;
    display: flex;
    justify-content: center;
}

.profile-card-wrapper canvas {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.profile-share-guide {
    padding: 20px 24px 28px;
    border-top: 1px solid rgba(226, 180, 154, 0.15);
    text-align: center;
}

.share-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #e2b49a;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.share-desc {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 18px;
}

.share-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.share-steps .step {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(226, 180, 154, 0.12);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(226, 180, 154, 0.2);
}

.share-steps .step-arrow {
    color: rgba(226, 180, 154, 0.5);
    font-size: 0.85rem;
}

.share-btns {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-save-card {
    padding: 12px 24px;
    border-radius: 25px;
    border: 1px solid rgba(226, 180, 154, 0.5);
    background: transparent;
    color: #e2b49a;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-save-card:hover {
    background: rgba(226, 180, 154, 0.15);
    border-color: #e2b49a;
}

.btn-unlock-report {
    padding: 12px 28px;
    border-radius: 25px;
    border: none;
    background: linear-gradient(135deg, #e2b49a 0%, #d4a088 100%);
    color: #0a0a0c;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(226, 180, 154, 0.35);
}

.btn-unlock-report:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(226, 180, 154, 0.5);
}

.share-tip {
    margin-top: 16px;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
}

/* 移动端适配 */
@media (max-width: 520px) {
    .profile-modal {
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        max-height: 95vh;
    }

    .profile-card-wrapper {
        padding: 16px 16px 12px;
    }

    .profile-share-guide {
        padding: 16px 16px 24px;
    }

    .share-btns {
        flex-direction: column;
    }

    .btn-save-card,
    .btn-unlock-report {
        width: 100%;
    }
}