
:root {
    --qwen-purple: #615ced;
    --qwen-purple-dark: #4a3fd4;
    --qwen-purple-light: #a7a2f7;
    --qwen-purple-bg: #f0eeff;
    --qwen-violet: #7c5cfc;
    --qwen-violet-dark: #5a3bc4;
    --qwen-white: #ffffff;
    --qwen-gray: #f5f5fa;
    --qwen-text: #1a1a2e;
    --qwen-text-light: #6b6b8a;
    --qwen-accent: #e8e5ff;
    --qwen-gradient: linear-gradient(135deg, #615ced 0%, #7c5cfc 50%, #a78bfa 100%);
    --qwen-gradient-soft: linear-gradient(135deg, #f0eeff 0%, #e8e5ff 100%);
}

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

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    background: var(--qwen-gray);
    color: var(--qwen-text);
    line-height: 1.6;
}

/* Header */
.header {
    background: var(--qwen-gradient);
    color: white;
    padding: 60px 40px 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 70%, rgba(255,255,255,0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(255,255,255,0.08) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(2%, -2%) rotate(1deg); }
    66% { transform: translate(-1%, 1%) rotate(-1deg); }
}

.header-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.header .tag {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.header h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.header .subtitle {
    font-size: 18px;
    opacity: 0.9;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

/* Container */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Stats bar */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: -35px auto 40px;
    position: relative;
    z-index: 2;
    max-width: 1000px;
    padding: 0 24px;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
    box-shadow: 0 4px 24px rgba(97, 92, 237, 0.1);
    border: 1px solid rgba(97, 92, 237, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(97, 92, 237, 0.18);
}

.stat-card .value {
    font-size: 32px;
    font-weight: 800;
    color: var(--qwen-purple);
    margin-bottom: 4px;
}

.stat-card .label {
    font-size: 13px;
    color: var(--qwen-text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Sections */
.section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 24px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.04);
    border: 1px solid rgba(97, 92, 237, 0.06);
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--qwen-purple-dark);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title .icon {
    width: 36px;
    height: 36px;
    background: var(--qwen-gradient-soft);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.section-desc {
    color: var(--qwen-text-light);
    font-size: 15px;
    margin-bottom: 28px;
    padding-left: 48px;
}

/* Specs table */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1px;
    background: var(--qwen-purple-bg);
    border-radius: 14px;
    overflow: hidden;
}

.spec-item {
    background: white;
    padding: 18px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.spec-item .spec-label {
    font-size: 14px;
    color: var(--qwen-text-light);
    font-weight: 500;
}

.spec-item .spec-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--qwen-text);
    text-align: right;
}

.spec-item .spec-value.highlight {
    color: var(--qwen-purple);
}

/* Viz CTA */
.viz-cta {
    margin: 24px 0 28px;
    padding-left: 48px;
}

.viz-cta-link {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--qwen-gradient);
    color: white;
    text-decoration: none;
    border-radius: 14px;
    padding: 20px 28px;
    box-shadow: 0 4px 20px rgba(97, 92, 237, 0.25);
    transition: transform 0.2s, box-shadow 0.2s;
}

.viz-cta-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(97, 92, 237, 0.35);
}

.viz-cta-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.viz-cta-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.viz-cta-title {
    font-size: 16px;
    font-weight: 700;
}

.viz-cta-sub {
    font-size: 13px;
    opacity: 0.85;
}

.viz-cta-arrow {
    font-size: 22px;
    font-weight: bold;
    flex-shrink: 0;
}

/* Architecture diagram */
.arch-diagram {
    background: var(--qwen-gradient-soft);
    border-radius: 14px;
    padding: 32px;
    margin: 24px 0;
    text-align: center;
}

.arch-diagram .arch-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--qwen-purple-dark);
    margin-bottom: 20px;
}

.arch-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.arch-block {
    background: white;
    border-radius: 10px;
    padding: 14px 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--qwen-purple-dark);
    box-shadow: 0 2px 8px rgba(97, 92, 237, 0.1);
    border: 2px solid var(--qwen-purple-light);
    white-space: nowrap;
}

.arch-block.active {
    background: var(--qwen-purple);
    color: white;
    border-color: var(--qwen-purple);
}

.arch-arrow {
    color: var(--qwen-purple-light);
    font-size: 20px;
    font-weight: bold;
}

.arch-note {
    font-size: 13px;
    color: var(--qwen-text-light);
    margin-top: 12px;
}

/* Benchmarks */
.bench-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.bench-card {
    border: 1px solid rgba(97, 92, 237, 0.1);
    border-radius: 14px;
    padding: 20px;
    background: white;
    transition: box-shadow 0.2s;
}

.bench-card:hover {
    box-shadow: 0 4px 20px rgba(97, 92, 237, 0.12);
}

.bench-card .bench-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--qwen-text);
    margin-bottom: 6px;
}

.bench-card .bench-desc {
    font-size: 12px;
    color: var(--qwen-text-light);
    margin-bottom: 14px;
}

.bench-bar-container {
    background: var(--qwen-purple-bg);
    border-radius: 8px;
    height: 12px;
    overflow: hidden;
    margin-bottom: 8px;
}

.bench-bar {
    height: 100%;
    border-radius: 8px;
    background: var(--qwen-gradient);
    transition: width 0.6s ease;
}

.bench-score {
    font-size: 20px;
    font-weight: 800;
    color: var(--qwen-purple);
}

.bench-score .bench-unit {
    font-size: 13px;
    font-weight: 500;
    color: var(--qwen-text-light);
    margin-left: 4px;
}

/* Comparison table */
.compare-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(97, 92, 237, 0.1);
}

.compare-table th {
    background: var(--qwen-purple);
    color: white;
    padding: 14px 18px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

.compare-table th:first-child {
    text-align: left;
}

.compare-table td {
    padding: 12px 18px;
    font-size: 14px;
    border-bottom: 1px solid rgba(97, 92, 237, 0.06);
    text-align: center;
}

.compare-table td:first-child {
    text-align: left;
    font-weight: 600;
    color: var(--qwen-text);
}

.compare-table tr:last-child td {
    border-bottom: none;
}

.compare-table tr:hover td {
    background: var(--qwen-purple-bg);
}

.compare-table .qwen-col {
    background: rgba(97, 92, 237, 0.06);
    font-weight: 700;
    color: var(--qwen-purple-dark);
}

/* Quantization table */
.quant-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(97, 92, 237, 0.1);
    font-size: 14px;
}

.quant-table th {
    background: var(--qwen-purple);
    color: white;
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quant-table td {
    padding: 10px 16px;
    border-bottom: 1px solid rgba(97, 92, 237, 0.06);
}

.quant-table tr:last-child td {
    border-bottom: none;
}

.quant-table tr:hover td {
    background: var(--qwen-purple-bg);
}

.quant-table .recommended td {
    background: var(--qwen-accent);
    font-weight: 600;
}

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-best {
    background: var(--qwen-purple);
    color: white;
}

.badge-good {
    background: var(--qwen-purple-light);
    color: var(--qwen-purple-dark);
}

.badge-low {
    background: #e0e0e0;
    color: #666;
}

/* Feature cards */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.feature-card {
    border: 1px solid rgba(97, 92, 237, 0.1);
    border-radius: 14px;
    padding: 24px;
    background: white;
}

.feature-card .feature-icon {
    width: 44px;
    height: 44px;
    background: var(--qwen-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 14px;
    color: white;
}

.feature-card .feature-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--qwen-text);
    margin-bottom: 8px;
}

.feature-card .feature-desc {
    font-size: 13px;
    color: var(--qwen-text-light);
    line-height: 1.7;
}

/* Run section */
.run-section {
    background: var(--qwen-gradient);
    border-radius: 20px;
    padding: 40px;
    color: white;
    margin-bottom: 24px;
}

.run-section h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.run-section .run-subtitle {
    opacity: 0.85;
    font-size: 15px;
    margin-bottom: 24px;
}

.run-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.run-card {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    padding: 24px;
    border: 1px solid rgba(255,255,255,0.15);
}

.run-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.run-card .run-desc {
    font-size: 13px;
    opacity: 0.85;
    margin-bottom: 14px;
}

.run-card code {
    display: block;
    background: rgba(0,0,0,0.25);
    border-radius: 8px;
    padding: 12px 16px;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 13px;
    color: #e0e0ff;
    overflow-x: auto;
    white-space: pre;
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px;
    color: var(--qwen-text-light);
    font-size: 13px;
}

.footer a {
    color: var(--qwen-purple);
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    .header h1 { font-size: 30px; }
    .stats-bar { grid-template-columns: repeat(2, 1fr); margin-top: -25px; }
    .section { padding: 28px 22px; }
    .bench-grid { grid-template-columns: 1fr; }
    .feature-grid { grid-template-columns: 1fr; }
    .run-cards { grid-template-columns: 1fr; }
    .compare-table { font-size: 12px; }
    .compare-table th, .compare-table td { padding: 10px 12px; }
}

@media (max-width: 480px) {
    .stats-bar { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .stat-card { padding: 18px 14px; }
    .stat-card .value { font-size: 26px; }
    .header { padding: 40px 20px 40px; }
}
