@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Noto+Sans+SC:wght@400;500;700;900&display=swap');
:root {
    --bg-color: #f6f8fb;
    --card-bg: #ffffff;
    --text-main: #1d1d1f;
    --text-body: #374151;
    --text-muted: #6b7280;
    --dragon-gold: #f59e0b;
    --dragon-pure: #ec4899;
    --dragon-legend: #8b5cf6;
    --border: rgba(245, 158, 11, 0.1);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', 'Noto Sans SC', system-ui, sans-serif;
}
body {
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(at 80% 10%, rgba(245, 158, 11, 0.05) 0px, transparent 50%),
        radial-gradient(at 20% 80%, rgba(139, 92, 246, 0.04) 0px, transparent 50%),
        url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgdmlld0JveD0iMCAwIDQwIDQwIj48ZyBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxnIGZpbGw9IiNkMWQ1ZGIiIGZpbGwtb3BhY2l0eT0iMC4xNSI+PHBhdGggZD0iTTAgMGg0MHY0MEgwVjB6bTIwIDIwaDIwdjIwSDIWMjB6TTAgMjBoMjB2MjBIMFYyMHoyMCAwaDIwdjIwSDIwVjB6Ii8+PC9nPjwvZz48L3N2Zz4=');
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
body.article-page {
    background-image: 
        radial-gradient(at 0% 0%, rgba(245, 158, 11, 0.03) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(139, 92, 246, 0.03) 0px, transparent 50%);
    color: var(--text-body);
    line-height: 1.8;
}
#progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--dragon-gold), var(--dragon-pure));
    width: 0%;
    z-index: 2000;
    transition: width 0.1s ease-out;
}
.bg-deco-left,
.bg-deco-right {
    position: fixed;
    bottom: -20px;
    width: 35vw;
    height: auto;
    min-width: 300px;
    max-width: 600px;
    z-index: 0;
    pointer-events: none;
    opacity: 0.8;
    object-fit: contain;
}
.bg-deco-left {
    left: -5vw;
}
.bg-deco-right {
    right: -5vw;
    transform: scaleX(-1);
}
body.article-page .bg-deco-left {
    opacity: 0.15; 
}
body.article-page .bg-deco-right {
    opacity: 0.25; 
}
.container, 
.article-container, 
footer,
.wall-list {
    position: relative;
    z-index: 2;
}
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 24px 64px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(246, 248, 251, 0.7);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    z-index: 1000;
    border-bottom: 1px solid transparent;
    transition: 0.4s ease;
}
header.scrolled {
    padding: 12px 64px; 
    background: rgba(246, 248, 251, 0.95);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}
.logo {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.05em;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.logo-icon {
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, var(--dragon-gold), #b45309);
    transform: rotate(45deg);
    border-radius: 4px;
    position: relative;
}
.logo-icon::after {
    content: '';
    position: absolute;
    inset: 4px;
    background: var(--bg-color);
    border-radius: 2px;
}
nav {
    display: flex;
    gap: 40px;
}
nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    transition: 0.3s ease;
    position: relative;
}
nav a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--dragon-gold);
    transition: 0.3s ease;
    transform: translateX(-50%);
}
nav a:hover {
    color: var(--dragon-gold);
}
nav a:hover::after {
    width: 100%;
}
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 32px;
}
.hero {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 150px;
}
.version-badge {
    padding: 10px 20px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    color: var(--dragon-gold);
    margin-bottom: 32px;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.1);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
h1 {
    font-size: clamp(3.5rem, 8vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--text-main) 60%, var(--dragon-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 580px;
    margin-bottom: 48px;
    font-weight: 500;
}
.btn {
    display: inline-flex;
    align-items: center;
    padding: 18px 40px;
    background: linear-gradient(135deg, #1f2937, #000);
    color: #fff;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.02em;
    transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(245, 158, 11, 0.2);
}
section {
    padding: 100px 0;
}
.section-head {
    margin-bottom: 64px;
    display: flex;
    align-items: center;
    gap: 20px;
}
.section-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, var(--border), transparent);
}
h2 {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--text-main);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 12px;
}
h2::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--dragon-gold);
    border-radius: 50%;
}
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}
.card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 48px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.01);
    border: 1px solid rgba(245, 158, 11, 0.05);
    transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}
.card::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.03) 0%, transparent 70%);
    border-radius: 50%;
}
.card:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: rgba(245, 158, 11, 0.2);
    box-shadow: 0 20px 50px rgba(245, 158, 11, 0.05);
}
.card-type {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 10px;
    font-weight: 700;
    color: rgba(245, 158, 11, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.card-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.05));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    border: 1px solid rgba(245, 158, 11, 0.1);
}
.card-icon svg {
    color: var(--dragon-gold);
}
.card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.03em;
}
.card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 500;
}
.video-wrap {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 16px;
    background: linear-gradient(135deg, #e5e7eb, #d1d5db);
    margin-bottom: 24px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.03);
}
.video-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.2), transparent);
    opacity: 0;
    transition: 0.3s ease;
}
.video-wrap:hover::after {
    opacity: 1;
}
.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.play-btn svg {
    width: 20px;
    height: 20px;
    fill: var(--text-main);
    margin-left: 4px;
}
.video-wrap:hover .play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
.wall-list {
    background: var(--card-bg);
    border-radius: 20px;
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.01);
}
.wall-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    padding: 40px;
    border-bottom: 1px solid var(--border);
    align-items: start;
    transition: 0.3s ease;
}
.wall-item:hover {
    background: rgba(245, 158, 11, 0.01);
}
.wall-item:last-child {
    border-bottom: none;
}
.wasted-rank {
    font-family: serif;
    font-style: italic;
    font-size: 1.5rem;
    font-weight: 800;
    color: rgba(239, 68, 68, 0.2);
    margin-top: 2px;
}
.wall-content h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.wall-content p {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 650px;
    font-weight: 500;
}
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
footer {
    padding: 60px 0 40px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    border-top: 1px solid var(--border);
    margin-top: 60px;
}
.card-actions {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    border-top: 1px dashed rgba(0,0,0,0.05);
    padding-top: 12px;
}
.action-btn {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 6px 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
    outline: none;
}
.action-btn svg {
    transition: transform 0.3s ease;
}
.action-btn:hover svg {
    transform: scale(1.1);
}
.upvote-btn:hover {
    background: rgba(245, 158, 11, 0.1);
    border-color: var(--dragon-gold);
    color: var(--dragon-gold);
}
.upvote-btn.active {
    background: var(--dragon-gold);
    border-color: var(--dragon-gold);
    color: #ffffff;
}
.upvote-btn.active svg {
    stroke: #ffffff;
}
.article-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 160px 32px 80px; 
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 64px;
    align-items: start;
}
.toc-sidebar {
    position: sticky;
    top: 100px;
}
.toc-title {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.toc-title::before {
    content: '';
    width: 4px;
    height: 12px;
    background: var(--dragon-gold);
    border-radius: 2px;
}
.toc-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-left: 2px solid rgba(0,0,0,0.05);
    padding-left: 16px;
}
.toc-list a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    transition: 0.3s;
    display: block;
    line-height: 1.4;
}
.toc-list a:hover, .toc-list a.active {
    color: var(--dragon-gold);
    transform: translateX(4px);
}
.article-wrapper {
    max-width: 760px;
}
.article-meta {
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}
.tag {
    padding: 4px 12px;
    background: rgba(245, 158, 11, 0.1);
    color: var(--dragon-gold);
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}
.article-title {
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 900;
    color: var(--text-main);
    line-height: 1.3;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}
.article-lead {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 48px;
    line-height: 1.7;
    font-weight: 500;
}
.article-content {
    font-size: 1.05rem;
}
.article-content h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 64px 0 24px;
    letter-spacing: -0.02em;
    position: relative;
    padding-bottom: 12px;
}
.article-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--dragon-gold);
    border-radius: 2px;
}
.article-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 40px 0 16px;
}
.article-content p {
    margin-bottom: 20px;
}
.article-content ul {
    margin: 0 0 32px 24px;
    padding: 0;
}
.article-content li {
    margin-bottom: 12px;
    padding-left: 8px;
}
.article-content li::marker {
    color: var(--dragon-gold);
}
.article-content strong {
    color: var(--text-main);
    font-weight: 700;
    background: linear-gradient(to top, rgba(245, 158, 11, 0.2) 30%, transparent 30%);
}
.article-content blockquote {
    margin: 40px 0;
    padding: 24px 32px;
    background: linear-gradient(to right, rgba(245, 158, 11, 0.05), transparent);
    border-left: 4px solid var(--dragon-gold);
    border-radius: 0 16px 16px 0;
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-main);
}
.highlight-warning {
    color: #ef4444;
    font-weight: 700;
}
.article-footer {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.author-card {
    display: flex;
    align-items: center;
    gap: 16px;
}
.author-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--dragon-gold), var(--dragon-pure));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 1.2rem;
}
.author-info h4 {
    color: var(--text-main);
    font-weight: 700;
    font-size: 1.1rem;
}
.author-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
}
.section-desc {
    color: #ef4444;
    font-size: 0.95rem;
    font-weight: 700;
    margin-top: 10px;
    background: #fef2f2;
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid #fca5a5;
    display: inline-block;
}
.trade-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}
.post-trade-btn {
    background: var(--dragon-gold);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
    transition: 0.3s;
}
.post-trade-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}
.trade-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.trade-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.trade-card:hover {
    border-color: var(--dragon-gold);
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.1);
}
.trade-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed var(--border);
    padding-bottom: 10px;
}
.trade-id {
    font-family: monospace;
    font-weight: 800;
    color: var(--text-muted);
}
.trade-author {
    font-weight: 700;
    color: var(--text-main);
    background: rgba(0,0,0,0.04);
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.85rem;
}
.trade-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
}
.trade-label {
    color: var(--text-muted);
    font-weight: 600;
}
.trade-value {
    font-weight: 700;
    color: var(--text-main);
}
.trade-highlight {
    color: var(--dragon-pure);
}
.trade-tags {
    display: flex;
    gap: 8px;
    margin-top: 5px;
}
.t-tag {
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 4px;
}
.tag-potion {
    background: #e0f2fe;
    color: #0284c7;
}
.tag-ratio {
    background: #fef3c7;
    color: #d97706;
}
.tag-expire {
    background: #f1f5f9;
    color: #64748b;
    margin-left: auto;
}
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    z-index: 3000;
    display: none;
    justify-content: center;
    align-items: center;
}
.modal-overlay.active {
    display: flex;
}
.modal-content {
    background: #fff;
    width: 90%;
    max-width: 450px;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    animation: modalIn 0.3s ease;
}
@keyframes modalIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 800;
}
.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}
.form-group {
    margin-bottom: 15px;
}
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 5px;
}
.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    outline: none;
    transition: 0.3s;
}
.form-control:focus {
    border-color: var(--dragon-gold);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}
.form-row {
    display: flex;
    gap: 15px;
}
.submit-btn {
    width: 100%;
    background: var(--text-main);
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.3s;
}
.submit-btn:hover {
    background: var(--dragon-gold);
}
@media (max-width: 1024px) {
    .article-container { grid-template-columns: 1fr; gap: 40px; }
    .toc-sidebar { display: none; }
    .article-title { font-size: 2.2rem; }
}
@media (max-width: 768px) {
    header { padding: 20px 32px; }
    header.scrolled { padding: 12px 32px; }
    nav { display: none; }
    .grid-2 { grid-template-columns: 1fr; }
    .card { padding: 32px; }
    .wall-item { grid-template-columns: 1fr; gap: 10px; padding: 32px; }
    .wasted-rank { font-size: 1.2rem; }
    .bg-deco-left, .bg-deco-right { opacity: 0.3; }
    .bg-deco-left, .bg-deco-right {
        width: 50vw;          
        min-width: 0;
        max-width: 250px;     
    }
    .bg-deco-right {
        height: 200vw;
    }
    .article-page header { padding: 16px 24px; }
    .article-page header.scrolled { padding: 16px 24px; }
    .article-container { padding: 120px 24px 60px; }
    .trade-header-bar { flex-direction: column; gap: 15px; align-items: stretch; }
}