/* ===== Article Page ===== */
.article-page {
    position: relative;
    z-index: 1;
}

/* Article Hero */
.article-hero {
    position: relative;
    height: 420px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}
.article-hero-bg {
    position: absolute;
    inset: 0;
}
.article-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.article-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10,10,15,0.3) 0%, rgba(10,10,15,0.85) 70%, var(--bg-primary) 100%);
}
.article-hero-content {
    position: relative;
    z-index: 2;
    max-width: 860px;
    margin: 0 auto;
    padding: 0 24px 48px;
    width: 100%;
}
.article-category {
    display: inline-block;
    padding: 5px 16px;
    background: var(--accent-purple);
    border-radius: 50px;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 16px;
}
.article-hero-content h1 {
    font-family: var(--font-title);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 12px;
    color: #fff;
}
.article-meta {
    display: flex;
    gap: 20px;
    color: var(--text-muted);
    font-size: 0.88rem;
}
.article-meta span::before {
    content: '·';
    margin-right: 20px;
}
.article-meta span:first-child::before { content: ''; margin: 0; }

/* Article Body */
.article-body {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 24px 80px;
}
.article-section {
    margin-bottom: 48px;
}
.article-section h2 {
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-subtle);
}
.article-section h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 24px 0 12px;
    color: var(--accent-purple-light);
}
.article-section p {
    color: var(--text-secondary);
    font-size: 1.02rem;
    line-height: 1.9;
    margin-bottom: 14px;
}

/* Lists */
.article-list {
    list-style: none;
    padding: 0;
}
.article-list li {
    padding: 10px 0 10px 24px;
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.8;
    position: relative;
}
.article-list li::before {
    content: '';
    position: absolute;
    left: 0; top: 18px;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent-purple);
}
ol.article-list { counter-reset: list; }
ol.article-list li::before {
    counter-increment: list;
    content: counter(list);
    position: absolute;
    left: 0; top: 11px;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.2);
    color: var(--accent-purple-light);
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
ol.article-list li { padding-left: 30px; }

/* Highlight Box */
.article-highlight {
    padding: 18px 22px;
    background: linear-gradient(135deg, rgba(139,92,246,0.12), rgba(212,168,67,0.08));
    border: 1px solid rgba(139,92,246,0.2);
    border-radius: var(--radius-md);
    margin-bottom: 18px;
}
.article-highlight p {
    color: var(--text-primary);
    margin: 0;
    font-size: 1rem;
}
.article-warning {
    padding: 18px 22px;
    background: rgba(239,71,111,0.1);
    border: 1px solid rgba(239,71,111,0.25);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* Full image */
.article-image-full {
    margin: 24px 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}
.article-image-full img {
    width: 100%;
    display: block;
}

/* Grid layouts */
.article-grid-2, .article-grid-3 { display: grid; gap: 20px; margin: 20px 0; }
.article-grid-2 { grid-template-columns: repeat(2, 1fr); }
.article-grid-3 { grid-template-columns: repeat(3, 1fr); }

/* Article Card */
.article-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}
.article-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}
.article-card-img {
    aspect-ratio: 16/10;
    overflow: hidden;
}
.article-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.article-card:hover .article-card-img img { transform: scale(1.05); }
.article-card h4 {
    padding: 14px 16px 4px;
    font-size: 1rem;
    color: var(--text-primary);
}
.article-card p {
    padding: 0 16px 16px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Benefit Card */
.article-benefit-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: border-color 0.3s;
}
.article-benefit-card:hover { border-color: var(--accent-gold); }
.benefit-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}
.article-benefit-card h4 {
    font-size: 1.05rem;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.article-benefit-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* Tips */
.article-tips {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 20px 0;
}
.tip-item {
    display: flex;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 20px;
    transition: border-color 0.3s;
}
.tip-item:hover { border-color: var(--border-glow); }
.tip-num {
    flex-shrink: 0;
    width: 36px; height: 36px;
    background: var(--gradient-cta);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
    color: #fff;
}
.tip-item h4 {
    font-size: 1.02rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.tip-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* Class Section */
.article-class-hero {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 36px;
    margin-bottom: 48px;
}
.class-intro-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.class-intro-header h2 {
    border: none;
    padding: 0;
    margin: 0;
}
.class-tags {
    display: flex;
    gap: 8px;
}
.class-tags span {
    padding: 4px 12px;
    background: rgba(139,92,246,0.15);
    border: 1px solid rgba(139,92,246,0.2);
    border-radius: 50px;
    color: var(--accent-purple-light);
    font-size: 0.78rem;
    font-weight: 600;
}

/* Class Branch */
.class-branch {
    background: rgba(139,92,246,0.06);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 20px;
}
.class-branch-single { grid-column: 1 / -1; }
.class-branch h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.branch-tag {
    display: inline-block;
    padding: 3px 10px;
    font-size: 0.75rem;
    border-radius: 50px;
    background: rgba(6,214,240,0.12);
    color: var(--accent-cyan);
    margin-bottom: 10px;
    font-weight: 600;
}
.class-branch p {
    font-size: 0.9rem;
    margin: 0 0 10px;
}

/* Class Stats */
.class-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}
.stat-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.stat-label {
    width: 72px;
    flex-shrink: 0;
    text-align: right;
}
.stat-fill {
    flex: 1;
    height: 8px;
    background: var(--accent-purple);
    border-radius: 4px;
    max-width: 300px;
}
.stat-fill.low { background: var(--accent-green); }
.stat-fill.high { background: var(--accent-red); }

/* Compare Cards */
.article-compare {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 20px;
}
.compare-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    transition: border-color 0.3s, transform 0.3s;
}
.compare-card:hover {
    border-color: var(--accent-gold);
    transform: translateY(-2px);
}
.compare-card h4 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.compare-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Article Nav */
.article-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 32px 0;
    border-top: 1px solid var(--border-subtle);
    margin-top: 48px;
}
.article-nav a {
    text-decoration: none;
    color: var(--text-secondary);
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    transition: border-color 0.3s, color 0.3s;
    display: block;
}
.article-nav a:hover {
    border-color: var(--accent-purple);
    color: var(--text-primary);
}
.article-nav-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}
.article-nav-next { text-align: right; }
.article-nav-placeholder {
    display: block;
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-size: 0.88rem;
}

/* Responsive */
@media (max-width: 768px) {
    .article-hero { height: 320px; }
    .article-body { padding: 0 20px 60px; }
    .article-section h2 { font-size: 1.3rem; }
    .article-grid-2, .article-grid-3, .article-compare { grid-template-columns: 1fr; }
    .article-class-hero { padding: 24px 20px; }
    .class-tags { margin-top: 8px; }
    .class-stats .stat-fill { max-width: none; }
    .article-nav { grid-template-columns: 1fr; }
    .article-nav-next, .article-nav-prev { text-align: left; }
    .article-meta { flex-wrap: wrap; gap: 8px; }
}
@media (max-width: 480px) {
    .article-hero { height: 280px; }
    .article-hero-content h1 { font-size: 1.4rem; }
}
