/* CSS Design System for OKX Depot */
:root {
    --bg-main: #07090E;
    --bg-card: rgba(16, 22, 33, 0.55);
    --bg-card-hover: rgba(22, 30, 45, 0.7);
    --bg-header: rgba(7, 9, 14, 0.7);
    
    --primary: #00F587;
    --primary-hover: #02d476;
    --primary-glow: rgba(0, 245, 135, 0.25);
    
    --secondary: #1F2837;
    --secondary-hover: #2B384E;
    
    --text-main: #E2E8F0;
    --text-muted: #8E9BAE;
    --text-white: #FFFFFF;
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(0, 245, 135, 0.4);
    
    --accent-red: #FF5A5F;
    --accent-yellow: #FFB800;
    --accent-blue: #00B2FF;
    --accent-green: #00F587;
    
    --font-outfit: 'Outfit', sans-serif;
    --font-inter: 'Inter', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-inter);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    max-width: 100vw;
}

/* Background Glow Blobs */
.glow-blob {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(130px);
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
}

.blob-1 {
    top: 5%;
    left: 10%;
    background: var(--primary);
}

.blob-2 {
    top: 40%;
    right: 5%;
    background: var(--accent-blue);
}

.blob-3 {
    bottom: 10%;
    left: 25%;
    background: var(--accent-yellow);
}

/* Scrollbar Style */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Typography Utilities */
.Outfit {
    font-family: var(--font-outfit);
}

h1, h2, h3, h4, h5 {
    color: var(--text-white);
    font-weight: 600;
}

.text-center { text-align: center; }
.mt-4 { margin-top: 1.5rem; }
.block { display: block; }
.text-gradient {
    background: linear-gradient(135deg, #FFF 30%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.text-green { color: var(--accent-green); }
.text-red { color: var(--accent-red); }
.text-yellow { color: var(--accent-yellow); }
.text-blue { color: var(--accent-blue); }
.text-muted { color: var(--text-muted); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--font-inter);
    font-size: 0.95rem;
    font-weight: 550;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary);
    color: #07090E;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 0 20px var(--primary-glow);
    transform: translateY(-2px);
}

.btn-blue {
    background-color: var(--accent-blue);
    color: #07090E;
}

.btn-blue:hover {
    background-color: #009ce0;
    box-shadow: 0 0 20px rgba(0, 178, 255, 0.3);
    transform: translateY(-2px);
}

.btn-amber {
    background-color: var(--accent-yellow);
    color: #07090E;
}

.btn-amber:hover {
    background-color: #e0a000;
    box-shadow: 0 0 20px rgba(255, 184, 0, 0.35);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--text-main);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-hover);
    color: var(--text-white);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-success {
    background-color: #10B981;
    color: var(--text-white);
}
.btn-success:hover {
    background-color: #059669;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1.05rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 245, 135, 0.05);
}

/* Header & Navigation */
.glass-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: var(--bg-header);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-outfit);
    font-size: 1.4rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-accent {
    background: linear-gradient(135deg, var(--primary) 0%, #00B2FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-img {
    height: 30px;
    width: 30px;
    object-fit: cover;
    border-radius: 6px;
    border: 1.5px solid rgba(0, 245, 135, 0.25);
}

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-tab {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-inter);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-tab:hover, .nav-tab.active {
    color: var(--primary);
    background: rgba(0, 245, 135, 0.06);
}

/* Main Layout */
.main-container {
    max-width: 1200px;
    margin: 100px auto 40px auto;
    padding: 0 24px;
    min-height: calc(100vh - 210px);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ================= HOME PAGE STYLES ================= */
.hero-section {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
    padding: 40px 0;
}

.badge-container {
    margin-bottom: 20px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(0, 245, 135, 0.08);
    border: 1px solid rgba(0, 245, 135, 0.2);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
}

.hero-brand-wrap {
    display: inline-block;
    width: max-content;
}

.hero-title {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 0;
    white-space: nowrap;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-top: 20px;
    margin-bottom: 30px;
    max-width: 580px;
}

/* Hero Header Row (Logo + Socials) */
.hero-header-row {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* logo贴左，pills组靠gap后撑满剩余 */
    width: 100%;
    margin-bottom: 24px;
    gap: 24px; /* logo与按钮组之间的舒适固定间距 */
}

.hero-logo {
    height: 94px;
    width: 94px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid rgba(0, 245, 135, 0.25);
    box-shadow: 0 0 20px rgba(0, 245, 135, 0.1);
}

.hero-social-pills-row {
    display: flex;
    flex-direction: column;
    align-items: stretch; /* 让按钮拉伸填满容器宽度 */
    gap: 10px;
    flex: 1; /* 撑满logo右侧所有剩余空间，实现右侧贴边 */
}

.social-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
    width: 100%; /* 填满父容器(.hero-social-pills-row)的宽度 */
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.social-pill:hover {
    transform: translateY(-2px);
}

.twitter-pill {
    color: #ffffff;                         /* 白色文字 */
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.x-icon {
    font-size: 1.1rem;
    font-weight: 900;
    font-style: normal;
    line-height: 1;
    font-family: 'Georgia', serif;
}

.twitter-pill:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.telegram-pill {
    color: var(--accent-blue);
    background: rgba(0, 178, 255, 0.05);
    border-color: rgba(0, 178, 255, 0.15);
}

.telegram-pill:hover {
    border-color: var(--accent-blue);
    background: rgba(0, 178, 255, 0.12);
    box-shadow: 0 0 15px rgba(0, 178, 255, 0.15);
    color: #FFF;
}

.hero-actions-group {
    display: flex;
    gap: 16px;
}

/* Benefit Card (Glow card) */
.benefit-card {
    padding: 32px;
    border-color: rgba(0, 245, 135, 0.15);
    background: linear-gradient(145deg, rgba(16, 22, 33, 0.7) 0%, rgba(7, 9, 14, 0.8) 100%);
    text-align: left;
}

.benefit-card:hover {
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(0, 245, 135, 0.1);
}

.benefit-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
}

.text-amber { color: var(--accent-yellow); }

.benefit-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;
}

.feat-item {
    display: flex;
    gap: 14px;
}

.feat-icon {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 0.95rem;
    flex-shrink: 0;
}

.feat-info h4 {
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.feat-info p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.invite-action-area {
    background: rgba(7, 9, 14, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 16px;
}

.invite-code-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

.invite-code-box .label {
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: nowrap; /* 防止"专属邀请码："换行 */
}

.invite-code-box .code-val {
    font-family: var(--font-outfit);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 1px;
}

.copy-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    padding: 6px;
    border-radius: 4px;
    transition: var(--transition);
}

.copy-btn:hover {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
}

.glass-btn {
    border: 1px solid var(--primary);
    background: rgba(0, 245, 135, 0.05);
    color: var(--primary);
}
.glass-btn:hover {
    background: var(--primary);
    color: #07090E;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.feature-box {
    text-align: left;
}

.f-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 20px;
}

.feature-box h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.feature-box p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ================= TUTORIALS PAGE STYLES ================= */
.section-header {
    margin-bottom: 40px;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
}

.tutorials-layout {
    display: grid;
    grid-template-columns: 0.3fr 0.7fr;
    gap: 24px;
    align-items: start;
}

.tut-nav-list {
    list-style: none;
}

.tut-nav-item {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-muted);
    font-weight: 550;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tut-nav-item:hover, .tut-nav-item.active {
    color: var(--primary);
    background: rgba(0, 245, 135, 0.05);
}

.tut-nav-item .delete-tut-btn {
    color: var(--accent-red);
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 0.8rem;
    padding: 4px;
    opacity: 0;
    transition: var(--transition);
}

.tut-nav-item:hover .delete-tut-btn {
    opacity: 0.6;
}
.tut-nav-item .delete-tut-btn:hover {
    opacity: 1;
}

.tutorials-content {
    min-height: 450px;
    padding: 32px;
}

.tut-article-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.tut-article-body h3 {
    font-size: 1.25rem;
    margin: 24px 0 12px 0;
}

.tut-article-body p {
    margin-bottom: 16px;
    color: var(--text-main);
    font-size: 0.95rem;
}

.tut-article-body ul, .tut-article-body ol {
    margin-left: 20px;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.tut-article-body li {
    margin-bottom: 6px;
}

/* ================= TOOLS PAGE STYLES ================= */
.tools-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.tool-card {
    padding: 28px;
}

.tool-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
}

.tool-card-header h3 {
    font-size: 1.2rem;
}

.tool-body {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.input-group label {
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 500;
}

.form-input {
    width: 100%;
    background: rgba(7, 9, 14, 0.8);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-white);
    padding: 12px 16px;
    font-family: var(--font-inter);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(0, 245, 135, 0.1);
}

.input-helper {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.fee-results-box {
    background: rgba(7, 9, 14, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.res-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.res-item .res-label {
    color: var(--text-muted);
}

.res-item .res-val {
    font-weight: 600;
    color: var(--text-white);
}

.res-item.accent-green .res-val {
    color: var(--accent-green);
}

.res-divider {
    height: 1px;
    background: var(--border-color);
    margin: 4px 0;
}

.res-item.highlight {
    font-size: 1.05rem;
}
.res-item.highlight .res-label {
    color: var(--text-white);
    font-weight: 600;
}
.res-item.highlight .res-val {
    font-family: var(--font-outfit);
    font-size: 1.25rem;
    font-weight: 800;
}

.res-item.text-muted {
    font-size: 0.78rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    line-height: 1.4;
}

.res-item.text-muted .res-val {
    font-size: 1rem;
    align-self: flex-end;
}

/* Margin Calc Specifics */
.risk-meter-wrapper {
    display: flex;
    flex-direction: column;
    margin-top: 8px;
}

.risk-label-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.risk-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 600;
}

.risk-safe { background: rgba(16, 185, 129, 0.2); color: #10B981; }
.risk-normal { background: rgba(245, 158, 11, 0.2); color: #F59E0B; }
.risk-high { background: rgba(239, 68, 68, 0.2); color: #EF4444; }

.risk-progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
}

.risk-progress-fill {
    height: 100%;
    width: 0;
    transition: width 0.3s ease-out, background 0.3s ease-out;
}

/* ================= BENEFITS PAGE STYLES ================= */
.benefits-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 30px;
}

.benefit-large-card {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tag-vip {
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 12px;
    display: inline-block;
}

.benefit-large-card h2 {
    font-size: 2.2rem;
    line-height: 1.3;
    margin-bottom: 20px;
}

.benefit-large-card p {
    color: var(--text-muted);
    font-size: 0.98rem;
    margin-bottom: 32px;
}

.advantages-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.adv-item {
    display: flex;
    gap: 14px;
}

.adv-item i {
    font-size: 1.4rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.adv-item h4 {
    font-size: 1rem;
    margin-bottom: 6px;
}

.adv-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.benefits-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.steps-card h3, .contact-card h3 {
    font-size: 1.15rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vertical-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step-item {
    display: flex;
    gap: 16px;
}

.step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--secondary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.step-text h4 {
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.step-text p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.highlight-code {
    font-family: var(--font-outfit);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
    background: rgba(0, 245, 135, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
}

.btn-copy-inline {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.82rem;
    margin-left: 4px;
}
.btn-copy-inline:hover { color: var(--primary); }

.contact-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.social-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.btn-tg {
    background: #229ED9;
    color: var(--text-white);
    font-size: 0.85rem;
}
.btn-tg:hover { background: #1b82b3; transform: translateY(-2px); }

.btn-wx {
    background: #07C160;
    color: var(--text-white);
    font-size: 0.85rem;
}
.btn-wx:hover { background: #059b4c; transform: translateY(-2px); }

/* ================= FOOTER ================= */
footer {
    border-top: 1px solid var(--border-color);
    padding: 30px 0;
    margin-top: 60px;
    background: rgba(7, 9, 14, 0.9);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.footer-container p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-hint {
    font-size: 0.78rem !important;
    opacity: 0.7;
}

.admin-login-entry {
    font-size: 0.8rem;
    color: var(--text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    margin-top: 10px;
    opacity: 0.5;
}

.admin-login-entry:hover {
    color: var(--primary);
    opacity: 1;
}

/* ================= FLOATING ADMIN BAR ================= */
.admin-bar {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    height: 60px;
    background: rgba(16, 22, 33, 0.95);
    border: 1px dashed var(--primary);
    box-shadow: 0 0 30px rgba(0, 245, 135, 0.2);
    border-radius: var(--radius-sm);
    z-index: 1000;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    padding: 0 20px;
    animation: slideUp 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes slideUp {
    from { bottom: -80px; opacity: 0; }
    to { bottom: 24px; opacity: 1; }
}

.admin-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.admin-status {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-white);
}

.pulse-indicator {
    width: 10px;
    height: 10px;
    background-color: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(0, 245, 135, 0.7);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 245, 135, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(0, 245, 135, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 245, 135, 0);
    }
}

.admin-actions {
    display: flex;
    gap: 10px;
}

/* ================= ADMIN LOGIN MODAL ================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 9, 14, 0.8);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.modal-content {
    width: 90%;
    max-width: 450px;
    padding: 30px;
    border-color: rgba(255, 255, 255, 0.15);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.modal-header h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.15rem;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}
.modal-close:hover { color: var(--accent-red); }

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

.hidden {
    display: none !important;
}

/* Toast */
.toast {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(16, 22, 33, 0.95);
    border: 1px solid var(--primary);
    color: var(--text-white);
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    z-index: 100000;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    animation: toastIn 0.3s ease;
}

@keyframes toastIn {
    from { top: -20px; opacity: 0; }
    to { top: 30px; opacity: 1; }
}

/* ================= EDIT MODE STYLES (ACTIVE) ================= */
body.admin-mode-active .editable {
    position: relative;
    outline: none;
    border-bottom: 1.5px dashed var(--accent-yellow) !important;
    cursor: text !important;
    padding: 1px 2px;
}

body.admin-mode-active .editable:hover {
    background: rgba(255, 184, 0, 0.08);
}

body.admin-mode-active .editable:focus {
    background: rgba(255, 184, 0, 0.15);
    border-bottom-style: solid !important;
}

body.admin-mode-active .editable-btn {
    border: 1.5px dashed var(--accent-yellow) !important;
    cursor: pointer;
}

body.admin-mode-active .admin-only {
    display: inline-flex !important;
}

.admin-only-btn-wrap {
    margin-top: 12px;
}

/* Custom styles for article title/body inputs in edit mode */
.tut-title-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1.5px dashed var(--accent-yellow);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-white);
    font-family: var(--font-inter);
    outline: none;
    margin-bottom: 20px;
    padding-bottom: 12px;
}

.tut-body-textarea {
    width: 100%;
    min-height: 350px;
    background: rgba(7, 9, 14, 0.5);
    border: 1.5px dashed var(--accent-yellow);
    border-radius: var(--radius-sm);
    color: var(--text-white);
    font-family: var(--font-inter);
    font-size: 0.95rem;
    line-height: 1.6;
    padding: 16px;
    outline: none;
    resize: vertical;
}

/* Mobile Bottom Sheet & FAB Styles Defaults (Desktop Hidden) */
.sidebar-header-mobile {
    display: none;
}

.fab-toc {
    display: none;
}

.sheet-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(7, 9, 14, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10000;
    transition: opacity 0.3s ease;
}

/* ================= RESPONSIVE STYLES ================= */
@media (max-width: 1024px) {
    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 20px 0;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-brand-wrap {
        display: flex;
        flex-direction: column;
        align-items: center;    /* 子元素全部水平居中 */
        width: 100%;
    }

    .hero-title {
        font-size: 1.9rem;
        white-space: nowrap;
        text-align: center;
    }

    .hero-header-row {
        display: inline-flex;   /* 宽度由内容决定，不撑满全屏 */
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 14px;
        margin-bottom: 16px;
        max-width: 100%;        /* 绝不超出屏幕 */
    }

    .hero-logo {
        height: 80px;
        width: 80px;
        flex-shrink: 0;
    }

    .hero-social-pills-row {
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
        width: 200px;           /* 固定宽度，在任何手机上都能稳定显示 */
    }

    .social-pill {
        font-size: 0.85rem;     /* 移动端字号稍小，确保不换行 */
        padding: 10px 16px;
        white-space: nowrap;
    }

    .hero-actions-group {
        justify-content: center;
        gap: 8px;
    }

    /* 三个按钮移动端紧凑显示 */
    .hero-actions-group .btn-lg {
        padding: 11px 14px;
        font-size: 0.9rem;
        white-space: nowrap;
    }


    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .tools-container {
        grid-template-columns: 1fr;
    }
    
    .benefits-layout {
        grid-template-columns: 1fr;
    }
    
    .tutorials-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .tutorials-sidebar {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: auto;
        max-height: 75vh;
        background: rgba(16, 22, 33, 0.98);
        border-radius: var(--radius-md) var(--radius-md) 0 0;
        z-index: 10001;
        transform: translateY(100%);
        transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        padding: 24px;
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
        border: 1px solid var(--border-color);
        border-bottom: none;
        overflow: visible;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }
    
    .tutorials-sidebar.active {
        transform: translateY(0);
    }
    
    .sidebar-header-mobile {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
        padding-bottom: 12px;
        border-bottom: 1px solid var(--border-color);
    }
    
    .sidebar-header-mobile h3 {
        font-size: 1.1rem;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .btn-close-sheet {
        background: transparent;
        border: none;
        color: var(--text-muted);
        font-size: 1.8rem;
        cursor: pointer;
        line-height: 1;
    }
    
    .tut-nav-list {
        display: flex;
        flex-direction: column;
        gap: 6px;
        overflow-y: auto;
        max-height: calc(75vh - 100px);
        list-style: none;
    }
    
    .tut-nav-item {
        margin-bottom: 0;
        padding: 12px 16px;
        font-size: 0.95rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: rgba(255, 255, 255, 0.02);
        border-radius: var(--radius-sm);
    }

    /* 移动端悬浮目录按钮样式 */
    .fab-toc {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        position: fixed;
        bottom: 24px;
        right: 24px;
        background: var(--primary);
        color: #07090E;
        border: none;
        padding: 12px 20px;
        border-radius: 50px;
        font-weight: 600;
        font-size: 0.95rem;
        box-shadow: 0 4px 15px rgba(0, 245, 135, 0.3), 0 0 20px rgba(0, 245, 135, 0.1);
        z-index: 999;
        cursor: pointer;
        transition: var(--transition);
        transform: scale(0);
        opacity: 0;
        pointer-events: none;
    }
    
    .fab-toc.show {
        transform: scale(1);
        opacity: 1;
        pointer-events: auto;
    }
    
    .fab-toc:hover {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(0, 245, 135, 0.4);
    }

}

/* 回到顶部按钮基础样式 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 245, 135, 0.12); /* 明显一些的极客绿微弱透底 */
    border: 1px solid rgba(0, 245, 135, 0.45); /* 明显边框颜色 */
    color: var(--primary); /* 主题绿色文字/图标 */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    cursor: pointer;
    z-index: 998;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 245, 135, 0.15), 0 0 15px rgba(0, 245, 135, 0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    opacity: 0;
    transform: scale(0.8) translateY(10px);
    pointer-events: none;
}

.back-to-top.show {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: auto;
}

.back-to-top:hover {
    background: var(--primary);
    color: #07090E;
    border-color: var(--primary);
    box-shadow: 0 0 25px rgba(0, 245, 135, 0.5);
    transform: translateY(-3px);
}

/* 移动端回到顶部按钮微调，避开右下角目录按钮（级联顺序在后） */
@media (max-width: 1024px) {
    .back-to-top {
        bottom: 90px;
        right: 24px;
        width: 44px;
        height: 44px;
        font-size: 1rem;
        background: rgba(0, 245, 135, 0.18); /* 移动端背景稍微加深 */
    }
}


@media (max-width: 768px) {
    /* ── 导航栏移动端适配 ── */
    .glass-header {
        height: 56px; /* 移动端header稍矮 */
    }

    .main-container {
        margin-top: 76px; /* 配合矮header调整主内容区top偏移 */
    }

    .header-container {
        padding: 0 16px;
        flex-wrap: nowrap;        /* 绝对禁止换行 */
        overflow: hidden;
    }

    .logo {
        font-size: 1.05rem;       /* 缩小logo字号防止换行 */
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* 右侧OKX + 徽章区域 */
    .header-actions {
        flex-shrink: 1;
        min-width: 0;
        gap: 5px !important;
    }

    /* 移动端全部保留，通过缩小尺寸使其在一行显示 */
    .okx-label {
        display: inline !important;
        font-size: 0.85rem !important;
    }

    #editable-header-badge {
        display: inline;
    }

    .badge {
        padding: 4px 7px;
        font-size: 0.65rem;
        gap: 4px;
    }

    .nav-links {
        display: none;
    }

    /* ── Hero区域移动端微调 ── */
    .hero-title {
        font-size: 1.9rem;
    }

    .benefit-large-card {
        padding: 24px;
    }

    .advantages-row {
        grid-template-columns: 1fr;
    }

    .social-buttons {
        grid-template-columns: 1fr;
    }
}

/* ── 必备军火库折叠指南动效 ── */
details summary::-webkit-details-marker {
    display: none;
}
details[open] summary .fa-chevron-down {
    transform: rotate(180deg);
}
details[open] {
    border-color: rgba(0, 245, 135, 0.4) !important;
    background: rgba(16, 22, 33, 0.75) !important;
}
