/* ========================================
   子页面样式 - 赛博朋克风格
   统一trading-mastery和okx-talks页面
   ======================================== */

:root {
    /* 赛博朋克配色 - 与首页一致 */
    --bg: #050507;
    --bg-card: #0d0d11;
    --bg-sidebar: #08080a;

    --text: #ffffff;
    --text-muted: #888899;

    --accent-green: #00FF88;
    --accent-purple: #B829DD;

    --border: rgba(255, 255, 255, 0.06);
    --border-strong: rgba(255, 255, 255, 0.12);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'SF Pro Display', 'Helvetica Neue', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

/* ========================================
   BACKGROUND
   ======================================== */

.grid-background {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(0, 255, 136, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(184, 41, 221, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(0, 255, 136, 0.02) 0%, transparent 70%),
        #050507;
    pointer-events: none;
    z-index: -1;
}

/* ========================================
   NAVIGATION
   ======================================== */

.navbar {
    background: rgba(5, 5, 7, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-menu a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.nav-menu a:hover {
    color: var(--text);
    background: rgba(0, 255, 136, 0.1);
}

.nav-menu a.active {
    color: var(--bg);
    background: var(--accent-green);
}

/* ========================================
   CONTENT PAGE LAYOUT
   ======================================== */

.content-page {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 40px;
    position: relative;
    gap: 80px;
    min-height: 100vh;
}

/* ========================================
   SIDEBAR
   ======================================== */

.content-sidebar {
    width: 280px;
    flex-shrink: 0;
    position: sticky;
    top: 20px;
    align-self: flex-start;
    z-index: 100;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.content-sidebar::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.sidebar-title {
    font-size: 11px;
    font-weight: 800;
    color: var(--accent-green);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 24px;
}

.toc-list {
    list-style: none;
}

.toc-list li {
    margin-bottom: 4px;
}

.toc-list a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    line-height: 1.6;
    display: block;
    padding: 6px 0;
    padding-left: 12px;
    border-left: 2px solid transparent;
    transition: all 0.3s ease;
}

.toc-list a:hover,
.toc-list a.active {
    color: #00FF88 !important;
    border-left-color: #00FF88 !important;
}

/* ========================================
   MAIN CONTENT
   ======================================== */

.content-main {
    flex: 1;
    min-width: 0;
    max-width: 800px;
}

.article-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 32px;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--text) 0%, rgba(255, 255, 255, 0.6) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.article-meta {
    display: flex;
    gap: 24px;
    margin-bottom: 48px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
}

.meta-item strong {
    color: var(--accent-green);
}

.article-content {
    font-size: 17px;
    line-height: 1.9;
}

.article-content h2 {
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 800;
    margin-top: 80px;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    color: #00FF88 !important;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.article-content h2:first-of-type {
    margin-top: 0;
}

.article-content h3 {
    font-size: clamp(20px, 3vw, 24px);
    font-weight: 700;
    margin-top: 48px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.95) !important;
    letter-spacing: -0.01em;
}

.article-content h4 {
    font-size: 18px;
    font-weight: 700;
    margin-top: 32px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.9) !important;
}

.article-content p {
    margin-bottom: 24px;
    color: #888899 !important;
}

.article-content strong,
.article-content b {
    color: #00FF88 !important;
    font-weight: 600;
}

.article-content em,
.article-content i {
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
}

.article-content a {
    color: #00FF88 !important;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.article-content a:hover {
    border-bottom-color: #00FF88;
}

.article-content ul,
.article-content ol {
    margin: 24px 0;
    padding-left: 28px;
}

.article-content li {
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.85) !important;
    line-height: 1.7;
}

.article-content li strong {
    color: #00FF88 !important;
}

.article-content blockquote {
    border-left: 3px solid #B829DD !important;
    padding: 24px 28px;
    margin: 40px 0;
    background: rgba(184, 41, 221, 0.05) !important;
    border-radius: 0 12px 12px 0;
    font-size: 18px;
    line-height: 1.7;
    color: #ffffff !important;
    font-style: italic;
}

/* ========================================
   FINAL NOTE
   ======================================== */

.final-note {
    margin-top: 60px;
    padding: 48px;
    background: #0d0d11 !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.final-note blockquote {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: none !important;
    font-style: normal;
}

.final-note p {
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.85) !important;
}

.final-note strong {
    color: #00FF88 !important;
    font-size: 20px;
    display: block;
    margin-bottom: 16px;
}

/* ========================================
   DISCIPLINES PAGE
   ======================================== */

.disciplines-hero {
    padding: 120px 40px 80px;
    text-align: center;
    background: linear-gradient(
        180deg,
        rgba(5, 5, 7, 0) 0%,
        rgba(0, 255, 136, 0.03) 50%,
        rgba(5, 5, 7, 0) 100%
    );
}

.disciplines-title {
    font-size: clamp(48px, 8vw, 72px);
    font-weight: 900;
    letter-spacing: -0.03em;
    color: #00FF88 !important;
    margin-bottom: 24px;
    line-height: 1.1;
}

.disciplines-subtitle {
    font-size: 18px;
    color: #888899 !important;
    max-width: 600px;
    margin: 0 auto;
}

.disciplines-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px 120px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.discipline-card {
    position: relative;
    padding: 60px 50px;
    background: #0d0d11 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.discipline-card:hover {
    border-color: rgba(0, 255, 136, 0.4) !important;
    transform: translateY(-8px);
    box-shadow: 0 24px 48px rgba(0, 255, 136, 0.1);
}

.discipline-number {
    position: absolute;
    top: 24px;
    left: 24px;
    font-size: 72px;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, #00FF88 0%, rgba(0, 255, 136, 0.15) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.25;
    letter-spacing: -0.03em;
}

.discipline-content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding-left: 80px;
}

.discipline-content p {
    font-size: 19px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9) !important;
    margin: 0;
    font-weight: 400;
}

.article-content code {
    background: var(--bg-card);
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 0.9em;
    color: var(--accent-green);
}

.article-content pre {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 24px 0;
    border: 1px solid var(--border);
}

.article-content pre code {
    background: none;
    padding: 0;
    color: var(--text-muted);
}

.article-content hr {
    border: none;
    height: 1px;
    background: var(--border);
    margin: 64px 0;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 32px 0;
    font-size: 15px;
}

.article-content th,
.article-content td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.article-content th {
    font-weight: 700;
    color: var(--text);
    background: var(--bg-card);
}

.article-content td {
    color: var(--text-muted);
}

.article-content tr:hover td {
    background: var(--bg-card);
}

/* ========================================
   BACK BUTTON
   ======================================== */

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 32px;
    transition: all 0.3s ease;
}

.back-button:hover {
    background: var(--bg-card);
    border-color: var(--accent-green);
    color: var(--accent-green);
    transform: translateX(-4px);
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background: #0d0d11;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
    padding: 100px 60px 40px;
    margin-top: 120px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 80px;
    margin-bottom: 60px;
}

.footer-col h4 {
    font-size: 12px;
    font-weight: 700;
    color: #888899 !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.footer-col p {
    font-size: 14px;
    color: #888899 !important;
    line-height: 1.7;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-link:hover {
    background: rgba(0, 255, 136, 0.15);
    color: #00FF88 !important;
    transform: translateY(-2px);
}

.footer-link svg {
    transition: transform 0.3s ease;
}

.footer-link:hover svg {
    transform: scale(1.1);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: #888899 !important;
}

/* Legacy structure support */
.footer .container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 80px;
    margin-bottom: 60px;
}

.footer-section h4 {
    font-size: 12px;
    font-weight: 700;
    color: #888899 !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.footer-section p {
    font-size: 14px;
    color: #888899 !important;
    line-height: 1.7;
}

/* ========================================
   SCROLLBAR
   ======================================== */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-green);
}

::selection {
    background: var(--accent-green);
    color: var(--bg);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
    .content-page {
        flex-direction: column;
        padding: 40px 24px;
        gap: 40px;
    }

    .content-sidebar {
        width: 100%;
        position: static;
        height: auto;
        padding-right: 0;
        padding-bottom: 24px;
        border-bottom: 1px solid var(--border);
    }

    .toc-list {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 8px;
    }

    .toc-list li {
        margin-bottom: 0;
    }

    .content-main {
        max-width: 100%;
    }

    .nav-container {
        padding: 0 24px;
    }

    .nav-menu {
        gap: 2px;
    }

    .nav-menu a {
        font-size: 10px;
        padding: 6px 8px;
    }

    .footer {
        padding: 60px 24px 32px;
    }

    .disciplines-container {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    .article-title {
        font-size: clamp(28px, 8vw, 40px);
    }

    .article-content {
        font-size: 16px;
    }

    .article-content h2 {
        font-size: clamp(24px, 6vw, 28px);
        margin-top: 48px;
    }

    .article-content h3 {
        font-size: clamp(18px, 5vw, 20px);
        margin-top: 32px;
    }

    .article-content blockquote {
        font-size: 16px;
        padding: 20px;
    }

    .footer {
        padding: 40px 24px 24px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}
