/* roulang page: index */
:root {
            --bg-base: #151713;
            --bg-panel: #1F241C;
            --bg-panel-light: #262C21;
            --bg-elevated: #2A3125;
            --primary: #7CC94A;
            --primary-glow: #D5F24A;
            --danger: #E5484D;
            --danger-glow: rgba(229, 72, 77, 0.35);
            --text-main: #F4F6EF;
            --text-secondary: #A9B19F;
            --text-muted: #7D8672;
            --border: rgba(213, 242, 74, 0.18);
            --border-strong: rgba(213, 242, 74, 0.32);
            --radius-sm: 10px;
            --radius-md: 16px;
            --radius-lg: 20px;
            --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.25);
            --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.35);
            --shadow-glow: 0 4px 16px rgba(213, 242, 74, 0.18);
            --font-sans: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans CJK SC', sans-serif;
            --font-mono: ui-monospace, 'SFMono', 'Roboto Mono', 'Cascadia Mono', monospace;
            --content-width: 1200px;
            --content-width-md: 960px;
            --section-gap: 56px;
            --section-gap-mobile: 36px;
        }

        *,
        *::before,
        *::after {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        html {
            scroll-behavior: smooth;
            -webkit-text-size-adjust: 100%;
        }

        body {
            font-family: var(--font-sans);
            font-size: 15px;
            line-height: 1.7;
            color: var(--text-main);
            background-color: var(--bg-base);
            background-image: radial-gradient(ellipse at 20% 10%, rgba(124, 201, 74, 0.06) 0%, transparent 55%),
                radial-gradient(ellipse at 85% 30%, rgba(213, 242, 74, 0.04) 0%, transparent 50%);
            min-height: 100vh;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        img {
            max-width: 100%;
            height: auto;
            display: block;
            border: 0;
        }

        a {
            color: var(--primary-glow);
            text-decoration: none;
            transition: color 0.2s ease, opacity 0.2s ease;
        }

        a:hover {
            color: var(--primary);
            text-decoration: none;
        }

        button,
        input,
        select,
        textarea {
            font-family: inherit;
            font-size: inherit;
            line-height: inherit;
            color: inherit;
        }

        button {
            cursor: pointer;
            border: none;
            background: none;
        }

        input {
            border: none;
            outline: none;
        }

        ::selection {
            background: rgba(213, 242, 74, 0.3);
            color: var(--text-main);
        }

        :focus-visible {
            outline: 2px solid var(--primary-glow);
            outline-offset: 2px;
            border-radius: 4px;
        }

        .container {
            width: 100%;
            max-width: var(--content-width);
            margin: 0 auto;
            padding-left: 24px;
            padding-right: 24px;
        }

        /* ========== Header / Navigation ========== */
        .site-header {
            position: sticky;
            top: 0;
            z-index: 100;
            height: 64px;
            background: rgba(21, 23, 19, 0.88);
            backdrop-filter: blur(14px);
            -webkit-backdrop-filter: blur(14px);
            border-bottom: 1px solid var(--border);
            display: flex;
            align-items: center;
        }

        .site-header .container {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 32px;
        }

        .brand-logo {
            display: flex;
            align-items: center;
            gap: 10px;
            font-weight: 700;
            font-size: 18px;
            color: var(--text-main);
            white-space: nowrap;
            letter-spacing: 0.02em;
        }

        .brand-logo .logo-mark {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 32px;
            height: 32px;
            border-radius: 8px;
            background: linear-gradient(135deg, var(--primary-glow), var(--primary));
            color: #151713;
            font-weight: 800;
            font-size: 16px;
            flex-shrink: 0;
        }

        .main-nav {
            display: flex;
            align-items: center;
            gap: 24px;
            list-style: none;
        }

        .main-nav a {
            font-size: 14px;
            font-weight: 500;
            color: var(--text-secondary);
            transition: color 0.2s ease, border-color 0.2s ease;
            padding: 6px 0;
            border-bottom: 2px solid transparent;
            white-space: nowrap;
        }

        .main-nav a:hover,
        .main-nav a.active {
            color: var(--primary-glow);
            border-bottom-color: var(--primary-glow);
        }

        .nav-cta {
            background: var(--primary-glow);
            color: #151713;
            font-weight: 700;
            font-size: 14px;
            padding: 10px 20px;
            border-radius: var(--radius-sm);
            transition: transform 0.2s ease, box-shadow 0.2s ease;
            white-space: nowrap;
            flex-shrink: 0;
        }

        .nav-cta:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 16px rgba(213, 242, 74, 0.35);
            color: #151713;
        }

        .hamburger {
            display: none;
            flex-direction: column;
            gap: 4px;
            padding: 10px;
            border-radius: 8px;
            border: 1px solid var(--border);
            background: var(--bg-panel);
        }

        .hamburger span {
            display: block;
            width: 20px;
            height: 2px;
            background: var(--text-main);
            border-radius: 2px;
            transition: all 0.3s ease;
        }

        .hamburger.active span:nth-child(1) {
            transform: translateY(6px) rotate(45deg);
        }
        .hamburger.active span:nth-child(2) {
            opacity: 0;
        }
        .hamburger.active span:nth-child(3) {
            transform: translateY(-6px) rotate(-45deg);
        }

        .mobile-panel {
            display: none;
            position: absolute;
            top: 64px;
            left: 0;
            right: 0;
            background: rgba(21, 23, 19, 0.97);
            border-bottom: 1px solid var(--border);
            padding: 16px 24px 24px;
            z-index: 99;
        }

        .mobile-panel.open {
            display: block;
        }

        .mobile-panel ul {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .mobile-panel a {
            display: block;
            padding: 12px 16px;
            font-size: 15px;
            color: var(--text-main);
            border-radius: 8px;
            transition: background 0.2s ease;
        }

        .mobile-panel a:hover {
            background: var(--bg-panel-light);
            color: var(--primary-glow);
        }

        .mobile-panel .nav-cta {
            display: inline-block;
            margin-top: 12px;
            text-align: center;
            padding: 12px 20px;
        }

        /* ========== Hero Calculator Section ========== */
        .hero-calculator {
            padding: 56px 0 48px;
            position: relative;
            background-image: url('/assets/images/550c17698d5ca0cf.webp');
            background-size: cover;
            background-position: center;
            border-bottom: 1px solid var(--border);
         background-size: cover !important;}

        .hero-calculator::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(180deg, rgba(21, 23, 19, 0.82) 0%, rgba(21, 23, 19, 0.94) 100%);
            z-index: 0;
        }

        .hero-calculator .container {
            position: relative;
            z-index: 1;
        }

        .hero-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 32px;
            align-items: stretch;
        }

        .hero-left {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        .hero-left h1 {
            font-size: 42px;
            font-weight: 700;
            line-height: 1.15;
            color: var(--text-main);
            letter-spacing: 0.01em;
            margin-bottom: 4px;
        }

        .hero-left h1 .accent {
            color: var(--primary-glow);
        }

        .hero-subtitle {
            font-size: 16px;
            color: var(--text-secondary);
            line-height: 1.6;
            max-width: 520px;
        }

        .calc-form {
            display: flex;
            flex-direction: column;
            gap: 14px;
            background: var(--bg-panel);
            border: 1px solid var(--border);
            border-radius: var(--radius-md);
            padding: 20px;
            margin-top: 8px;
            box-shadow: var(--shadow-sm);
        }

        .calc-form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 14px;
        }

        .calc-field {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .calc-field label {
            font-size: 13px;
            font-weight: 600;
            color: var(--text-secondary);
            letter-spacing: 0.03em;
        }

        .calc-field .field-hint {
            font-size: 11px;
            color: var(--text-muted);
            font-weight: 400;
        }

        .calc-field input {
            background: var(--bg-base);
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
            padding: 11px 14px;
            font-family: var(--font-mono);
            font-size: 15px;
            color: var(--text-main);
            transition: border-color 0.2s ease, box-shadow 0.2s ease;
            width: 100%;
        }

        .calc-field input::placeholder {
            color: var(--text-muted);
            font-family: var(--font-mono);
            font-size: 13px;
        }

        .calc-field input:focus {
            border-color: var(--primary-glow);
            box-shadow: 0 0 0 3px rgba(213, 242, 74, 0.12);
        }

        .calc-field input.error {
            border-color: var(--danger);
            box-shadow: 0 0 0 3px rgba(229, 72, 77, 0.15);
        }

        .calc-actions {
            display: flex;
            gap: 12px;
            margin-top: 4px;
            flex-wrap: wrap;
        }

        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 12px 24px;
            border-radius: var(--radius-sm);
            font-weight: 700;
            font-size: 14px;
            transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
            white-space: nowrap;
        }

        .btn-primary {
            background: var(--primary-glow);
            color: #151713;
            box-shadow: var(--shadow-sm);
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(213, 242, 74, 0.35);
            color: #151713;
        }

        .btn-secondary {
            background: transparent;
            color: var(--primary-glow);
            border: 1px solid var(--border-strong);
        }

        .btn-secondary:hover {
            background: rgba(213, 242, 74, 0.08);
            border-color: var(--primary-glow);
            transform: translateY(-1px);
            color: var(--primary-glow);
        }

        .btn-danger {
            background: var(--danger);
            color: #fff;
            box-shadow: var(--shadow-sm);
        }

        .btn-danger:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px var(--danger-glow);
        }

        .btn-sm {
            padding: 8px 16px;
            font-size: 13px;
            border-radius: 8px;
        }

        .hero-right {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        .result-card {
            background: var(--bg-panel);
            border: 1px solid var(--border);
            border-radius: var(--radius-md);
            padding: 20px;
            box-shadow: var(--shadow-sm);
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        .result-card .result-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            flex-wrap: wrap;
        }

        .result-card .result-title {
            font-size: 16px;
            font-weight: 700;
            color: var(--text-main);
        }

        .risk-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 6px 14px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 700;
            letter-spacing: 0.04em;
        }

        .risk-badge.low {
            background: rgba(124, 201, 74, 0.18);
            color: var(--primary);
            border: 1px solid rgba(124, 201, 74, 0.4);
        }

        .risk-badge.medium {
            background: rgba(213, 242, 74, 0.15);
            color: var(--primary-glow);
            border: 1px solid rgba(213, 242, 74, 0.35);
        }

        .risk-badge.high {
            background: rgba(229, 72, 77, 0.18);
            color: var(--danger);
            border: 1px solid rgba(229, 72, 77, 0.4);
        }

        .metric-grid {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            gap: 12px;
        }

        .metric-item {
            background: var(--bg-base);
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
            padding: 14px 16px;
            text-align: center;
        }

        .metric-item .metric-label {
            font-size: 12px;
            color: var(--text-muted);
            font-weight: 500;
            letter-spacing: 0.02em;
            margin-bottom: 4px;
        }

        .metric-item .metric-value {
            font-family: var(--font-mono);
            font-size: 20px;
            font-weight: 700;
            color: var(--primary-glow);
            line-height: 1.3;
            word-break: break-all;
        }

        .metric-item .metric-value.small {
            font-size: 16px;
        }

        .result-detail-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 8px 0;
            border-bottom: 1px solid var(--border);
            font-size: 14px;
        }

        .result-detail-row:last-child {
            border-bottom: none;
        }

        .result-detail-row .label {
            color: var(--text-secondary);
        }

        .result-detail-row .value {
            font-family: var(--font-mono);
            color: var(--text-main);
            font-weight: 600;
        }

        .trend-placeholder {
            background: var(--bg-panel);
            border: 1px dashed var(--border-strong);
            border-radius: var(--radius-md);
            padding: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            color: var(--text-muted);
            font-size: 13px;
            min-height: 60px;
        }

        .trend-placeholder svg {
            flex-shrink: 0;
        }

        /* ========== Ticker Bar ========== */
        .ticker-section {
            padding: 20px 0;
            background: var(--bg-panel);
            border-bottom: 1px solid var(--border);
            overflow: hidden;
        }

        .ticker-section .container {
            position: relative;
        }

        .ticker-title {
            font-size: 13px;
            font-weight: 700;
            color: var(--text-muted);
            letter-spacing: 0.06em;
            text-transform: uppercase;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .ticker-title .live-dot {
            display: inline-block;
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: var(--danger);
            animation: pulse-live 1.5s ease-in-out infinite;
        }

        @keyframes pulse-live {
            0%,
            100% {
                opacity: 1;
                transform: scale(1);
            }
            50% {
                opacity: 0.5;
                transform: scale(1.4);
            }
        }

        .ticker-track {
            display: flex;
            gap: 12px;
            overflow-x: auto;
            padding-bottom: 6px;
            scrollbar-width: thin;
            scrollbar-color: var(--border-strong) transparent;
        }

        .ticker-track::-webkit-scrollbar {
            height: 4px;
        }

        .ticker-track::-webkit-scrollbar-track {
            background: transparent;
        }

        .ticker-track::-webkit-scrollbar-thumb {
            background: var(--border-strong);
            border-radius: 4px;
        }

        .ticker-item {
            flex-shrink: 0;
            background: var(--bg-base);
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
            padding: 12px 18px;
            display: flex;
            align-items: center;
            gap: 16px;
            font-size: 13px;
            white-space: nowrap;
            transition: border-color 0.2s ease, background 0.2s ease;
        }

        .ticker-item:hover {
            border-color: var(--border-strong);
            background: var(--bg-elevated);
        }

        .ticker-item .match-name {
            font-weight: 600;
            color: var(--text-main);
            font-size: 13px;
            min-width: 100px;
        }

        .ticker-item .odds {
            font-family: var(--font-mono);
            color: var(--primary-glow);
            font-weight: 600;
            font-size: 13px;
        }

        .ticker-item .odds span {
            display: inline-block;
            margin: 0 6px;
        }

        .ticker-item .return-rate {
            color: var(--text-muted);
            font-size: 12px;
        }

        .ticker-item .update-time {
            color: var(--text-muted);
            font-size: 12px;
            font-family: var(--font-mono);
        }

        /* ========== General Section Styles ========== */
        .main-section {
            padding: var(--section-gap) 0;
            border-bottom: 1px solid rgba(213, 242, 74, 0.06);
        }

        .main-section.alt-bg {
            background: var(--bg-panel);
            border-bottom: 1px solid var(--border);
            border-top: 1px solid var(--border);
        }

        .section-header {
            margin-bottom: 28px;
        }

        .section-header h2 {
            font-size: 28px;
            font-weight: 700;
            line-height: 1.25;
            color: var(--text-main);
            letter-spacing: 0.01em;
        }

        .section-header .section-sub {
            font-size: 15px;
            color: var(--text-secondary);
            margin-top: 8px;
            max-width: 640px;
        }

        .section-tag {
            display: inline-block;
            font-size: 12px;
            font-weight: 700;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: var(--primary-glow);
            background: rgba(213, 242, 74, 0.1);
            border: 1px solid var(--border);
            padding: 4px 12px;
            border-radius: 20px;
            margin-bottom: 10px;
        }

        /* ========== Function Matrix ========== */
        .func-matrix {
            display: grid;
            grid-template-columns: 2fr 1fr 1fr 1fr 1fr 2fr;
            gap: 14px;
        }

        .func-card {
            background: var(--bg-panel);
            border: 1px solid var(--border);
            border-radius: var(--radius-md);
            padding: 20px;
            transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
            display: flex;
            flex-direction: column;
            gap: 10px;
            min-height: 140px;
        }

        .func-card:hover {
            transform: translateY(-3px);
            box-shadow: var(--shadow-md), inset 0 0 0 1px rgba(213, 242, 74, 0.2);
            border-color: var(--border-strong);
            background: var(--bg-elevated);
        }

        .func-card .func-icon {
            width: 40px;
            height: 40px;
            border-radius: 10px;
            background: rgba(213, 242, 74, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            flex-shrink: 0;
        }

        .func-card h3 {
            font-size: 17px;
            font-weight: 700;
            color: var(--text-main);
            line-height: 1.3;
        }

        .func-card p {
            font-size: 13px;
            color: var(--text-secondary);
            line-height: 1.5;
            flex: 1;
        }

        .func-card .arrow-link {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 13px;
            font-weight: 700;
            color: var(--primary-glow);
            transition: gap 0.2s ease;
        }

        .func-card:hover .arrow-link {
            gap: 10px;
        }

        /* ========== Conversion Tools ========== */
        .conversion-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 28px;
            align-items: start;
        }

        .conversion-panel {
            background: var(--bg-panel);
            border: 1px solid var(--border);
            border-radius: var(--radius-md);
            padding: 24px;
            box-shadow: var(--shadow-sm);
        }

        .conversion-panel h3 {
            font-size: 18px;
            font-weight: 700;
            color: var(--text-main);
            margin-bottom: 16px;
        }

        .conversion-output {
            display: flex;
            flex-direction: column;
            gap: 10px;
            margin-top: 16px;
        }

        .conversion-output .output-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 14px;
            background: var(--bg-base);
            border-radius: var(--radius-sm);
            border: 1px solid var(--border);
            font-size: 14px;
        }

        .conversion-output .output-row .label {
            color: var(--text-secondary);
        }

        .conversion-output .output-row .value {
            font-family: var(--font-mono);
            font-weight: 700;
            color: var(--primary-glow);
        }

        .bar-chart {
            display: flex;
            flex-direction: column;
            gap: 8px;
            margin-top: 16px;
        }

        .bar-row {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 13px;
        }

        .bar-row .bar-label {
            min-width: 50px;
            color: var(--text-secondary);
            text-align: right;
        }

        .bar-row .bar-track {
            flex: 1;
            height: 8px;
            background: var(--bg-base);
            border-radius: 4px;
            overflow: hidden;
            border: 1px solid var(--border);
        }

        .bar-row .bar-fill {
            height: 100%;
            border-radius: 4px;
            background: linear-gradient(90deg, var(--primary), var(--primary-glow));
            transition: width 0.6s ease;
        }

        .bar-row .bar-value {
            font-family: var(--font-mono);
            color: var(--text-main);
            min-width: 48px;
            font-size: 12px;
        }

        /* ========== Return Rate Panel ========== */
        .return-rate-table {
            width: 100%;
            border-collapse: collapse;
            background: var(--bg-panel);
            border-radius: var(--radius-md);
            overflow: hidden;
            border: 1px solid var(--border);
            box-shadow: var(--shadow-sm);
        }

        .return-rate-table th {
            background: var(--bg-elevated);
            font-size: 13px;
            font-weight: 700;
            color: var(--text-secondary);
            padding: 14px 18px;
            text-align: right;
            letter-spacing: 0.03em;
            border-bottom: 1px solid var(--border);
        }

        .return-rate-table th:first-child {
            text-align: left;
        }

        .return-rate-table td {
            padding: 12px 18px;
            text-align: right;
            font-family: var(--font-mono);
            font-size: 14px;
            color: var(--text-main);
            border-bottom: 1px solid rgba(213, 242, 74, 0.06);
            transition: background 0.2s ease;
        }

        .return-rate-table td:first-child {
            text-align: left;
            font-family: var(--font-sans);
            color: var(--text-secondary);
            font-weight: 600;
        }

        .return-rate-table tr:hover td {
            background: rgba(213, 242, 74, 0.04);
        }

        .return-rate-table tr:last-child td {
            border-bottom: none;
        }

        .heat-tag {
            display: inline-block;
            padding: 3px 10px;
            border-radius: 12px;
            font-size: 12px;
            font-weight: 700;
            font-family: var(--font-sans);
        }

        .heat-tag.hot {
            background: rgba(229, 72, 77, 0.18);
            color: var(--danger);
            border: 1px solid rgba(229, 72, 77, 0.35);
        }

        .heat-tag.warm {
            background: rgba(213, 242, 74, 0.15);
            color: var(--primary-glow);
            border: 1px solid rgba(213, 242, 74, 0.3);
        }

        .heat-tag.cool {
            background: rgba(124, 201, 74, 0.15);
            color: var(--primary);
            border: 1px solid rgba(124, 201, 74, 0.35);
        }

        /* ========== Kelly & EV Panel ========== */
        .kelly-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 28px;
            align-items: start;
        }

        .kelly-form {
            background: var(--bg-panel);
            border: 1px solid var(--border);
            border-radius: var(--radius-md);
            padding: 24px;
            box-shadow: var(--shadow-sm);
        }

        .threshold-scale {
            margin-top: 16px;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .threshold-scale .scale-track {
            height: 10px;
            background: linear-gradient(90deg, rgba(124, 201, 74, 0.4), rgba(213, 242, 74, 0.6), rgba(229, 72, 77, 0.5));
            border-radius: 5px;
            position: relative;
            border: 1px solid var(--border);
        }

        .threshold-scale .scale-marker {
            position: absolute;
            top: -4px;
            width: 4px;
            height: 18px;
            background: var(--text-main);
            border-radius: 2px;
            transform: translateX(-50%);
            transition: left 0.4s ease;
        }

        .threshold-scale .scale-labels {
            display: flex;
            justify-content: space-between;
            font-size: 11px;
            color: var(--text-muted);
            font-family: var(--font-mono);
        }

        .risk-note {
            font-size: 13px;
            color: var(--text-muted);
            background: rgba(213, 242, 74, 0.06);
            border-left: 3px solid var(--primary-glow);
            padding: 10px 14px;
            border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
            margin-top: 14px;
        }

        /* ========== Odds Fluctuation ========== */
        .fluctuation-chart {
            background: var(--bg-panel);
            border: 1px solid var(--border);
            border-radius: var(--radius-md);
            padding: 24px;
            box-shadow: var(--shadow-sm);
            min-height: 220px;
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        .chart-legend {
            display: flex;
            gap: 18px;
            flex-wrap: wrap;
            font-size: 13px;
            color: var(--text-secondary);
        }

        .chart-legend .legend-item {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .chart-legend .legend-dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
        }

        .chart-area {
            position: relative;
            flex: 1;
            min-height: 140px;
            background: var(--bg-base);
            border-radius: var(--radius-sm);
            border: 1px dashed var(--border-strong);
            display: flex;
            align-items: flex-end;
            justify-content: space-around;
            padding: 16px 12px;
            overflow: hidden;
        }

        .chart-area .chart-line {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            top: 0;
            display: flex;
            align-items: flex-end;
            justify-content: space-around;
            padding: 16px 12px;
        }

        .chart-area .line-segment {
            width: 100%;
            height: 2px;
            background: var(--primary-glow);
            opacity: 0.7;
            position: relative;
        }

        .chart-area .line-point {
            position: absolute;
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: var(--primary-glow);
            top: -3px;
        }

        .chart-time-labels {
            display: flex;
            justify-content: space-between;
            font-size: 11px;
            color: var(--text-muted);
            font-family: var(--font-mono);
            padding: 8px 12px 0;
        }

        /* ========== Topic Entrance Section ========== */
        .topic-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 14px;
        }

        .topic-entry {
            background: var(--bg-panel);
            border: 1px solid var(--border);
            border-radius: var(--radius-md);
            padding: 18px;
            display: flex;
            flex-direction: column;
            gap: 8px;
            transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
        }

        .topic-entry:hover {
            transform: translateY(-2px);
            border-color: var(--border-strong);
            background: var(--bg-elevated);
            box-shadow: var(--shadow-md);
        }

        .topic-entry .topic-title {
            font-size: 15px;
            font-weight: 700;
            color: var(--text-main);
            line-height: 1.35;
        }

        .topic-entry .topic-desc {
            font-size: 13px;
            color: var(--text-muted);
            line-height: 1.5;
            flex: 1;
        }

        .topic-entry .topic-arrow {
            font-size: 13px;
            font-weight: 700;
            color: var(--primary-glow);
            display: flex;
            align-items: center;
            gap: 4px;
        }

        /* ========== Match List ========== */
        .match-list {
            display: flex;
            flex-direction: column;
            gap: 1px;
            background: var(--border);
            border: 1px solid var(--border);
            border-radius: var(--radius-md);
            overflow: hidden;
            box-shadow: var(--shadow-sm);
        }

        .match-row {
            display: grid;
            grid-template-columns: 1.5fr 0.8fr 0.8fr 0.8fr 0.8fr 0.8fr 0.8fr;
            gap: 8px;
            align-items: center;
            background: var(--bg-panel);
            padding: 14px 16px;
            transition: background 0.2s ease;
        }

        .match-row:hover {
            background: var(--bg-elevated);
        }

        .match-row.header-row {
            background: var(--bg-elevated);
            font-size: 12px;
            font-weight: 700;
            color: var(--text-muted);
            letter-spacing: 0.04em;
            text-transform: uppercase;
            padding: 10px 16px;
        }

        .match-row .match-name {
            font-weight: 600;
            font-size: 14px;
            color: var(--text-main);
        }

        .match-row .match-time {
            font-size: 12px;
            color: var(--text-muted);
            font-family: var(--font-mono);
        }

        .match-row .odds {
            font-family: var(--font-mono);
            font-size: 14px;
            color: var(--text-main);
            text-align: right;
            font-weight: 600;
        }

        .match-row .return-rate {
            font-family: var(--font-mono);
            font-size: 13px;
            color: var(--primary-glow);
            text-align: right;
        }

        .match-row .btn-sm {
            justify-self: end;
        }

        /* ========== Content List ========== */
        .content-list {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
        }

        .content-item {
            display: flex;
            gap: 16px;
            background: var(--bg-panel);
            border: 1px solid var(--border);
            border-radius: var(--radius-md);
            padding: 16px;
            transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
        }

        .content-item:hover {
            border-color: var(--border-strong);
            background: var(--bg-elevated);
            box-shadow: var(--shadow-sm);
        }

        .content-item .thumb {
            width: 90px;
            height: 70px;
            border-radius: 10px;
            object-fit: cover;
            flex-shrink: 0;
            border: 1px solid var(--border);
        }

        .content-item .content-body {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .content-item .content-title {
            font-size: 15px;
            font-weight: 700;
            color: var(--text-main);
            line-height: 1.4;
        }

        .content-item .content-excerpt {
            font-size: 13px;
            color: var(--text-secondary);
            line-height: 1.55;
            flex: 1;
        }

        .content-item .content-tags {
            display: flex;
            gap: 6px;
            flex-wrap: wrap;
        }

        .content-item .content-tags span {
            font-size: 11px;
            padding: 3px 10px;
            border-radius: 12px;
            background: rgba(213, 242, 74, 0.08);
            border: 1px solid var(--border);
            color: var(--text-secondary);
        }

        /* ========== Steps ========== */
        .steps-bar {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 0;
            position: relative;
            counter-reset: step-counter;
        }

        .steps-bar::before {
            content: '';
            position: absolute;
            top: 28px;
            left: 40px;
            right: 40px;
            height: 2px;
            background: var(--border);
            z-index: 0;
        }

        .step-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 10px;
            text-align: center;
            position: relative;
            z-index: 1;
        }

        .step-item .step-number {
            width: 56px;
            height: 56px;
            border-radius: 50%;
            background: var(--bg-panel);
            border: 2px solid var(--border-strong);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            font-weight: 700;
            color: var(--primary-glow);
            font-family: var(--font-mono);
            transition: background 0.2s ease, border-color 0.2s ease;
        }

        .step-item:hover .step-number {
            background: var(--bg-elevated);
            border-color: var(--primary-glow);
        }

        .step-item .step-title {
            font-size: 15px;
            font-weight: 700;
            color: var(--text-main);
        }

        .step-item .step-desc {
            font-size: 13px;
            color: var(--text-muted);
            max-width: 180px;
            line-height: 1.5;
        }

        /* ========== FAQ ========== */
        .faq-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
            max-width: 800px;
        }

        .faq-item {
            background: var(--bg-panel);
            border: 1px solid var(--border);
            border-radius: var(--radius-md);
            overflow: hidden;
            transition: border-color 0.2s ease;
        }

        .faq-item:hover {
            border-color: var(--border-strong);
        }

        .faq-item.active {
            border-color: var(--primary-glow);
        }

        .faq-question {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 16px;
            padding: 16px 20px;
            font-size: 15px;
            font-weight: 700;
            color: var(--text-main);
            cursor: pointer;
            user-select: none;
            transition: color 0.2s ease;
            width: 100%;
            text-align: left;
        }

        .faq-question:hover {
            color: var(--primary-glow);
        }

        .faq-question .faq-arrow {
            font-size: 18px;
            color: var(--text-muted);
            transition: transform 0.3s ease;
            flex-shrink: 0;
        }

        .faq-item.active .faq-arrow {
            transform: rotate(90deg);
            color: var(--primary-glow);
        }

        .faq-answer {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.35s ease, padding 0.3s ease;
            padding: 0 20px;
            color: var(--text-secondary);
            font-size: 14px;
            line-height: 1.7;
        }

        .faq-item.active .faq-answer {
            max-height: 300px;
            padding: 0 20px 16px;
        }

        /* ========== Simulation ========== */
        .simulation-panel {
            background: var(--bg-panel);
            border: 1px solid var(--border);
            border-radius: var(--radius-md);
            padding: 24px;
            box-shadow: var(--shadow-sm);
        }

        .simulation-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 24px;
            align-items: start;
        }

        .simulation-inputs {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .simulation-results {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .simulation-results .result-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 16px;
            background: var(--bg-base);
            border-radius: var(--radius-sm);
            border: 1px solid var(--border);
            font-size: 14px;
        }

        .simulation-results .result-row .label {
            color: var(--text-secondary);
        }

        .simulation-results .result-row .value {
            font-family: var(--font-mono);
            font-weight: 700;
            color: var(--primary-glow);
        }

        .simulation-results .result-row .value.danger {
            color: var(--danger);
        }

        /* ========== Warning Section ========== */
        .warning-section {
            background: rgba(229, 72, 77, 0.08);
            border: 1px solid rgba(229, 72, 77, 0.25);
            border-radius: var(--radius-md);
            padding: 20px 24px;
            display: flex;
            gap: 16px;
            align-items: flex-start;
        }

        .warning-section .warning-icon {
            font-size: 28px;
            flex-shrink: 0;
            line-height: 1.2;
        }

        .warning-section .warning-content h3 {
            font-size: 16px;
            font-weight: 700;
            color: var(--danger);
            margin-bottom: 8px;
        }

        .warning-section .warning-content p {
            font-size: 14px;
            color: var(--text-secondary);
            line-height: 1.7;
        }

        /* ========== Data Specs ========== */
        .specs-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
        }

        .spec-card {
            background: var(--bg-panel);
            border: 1px solid var(--border);
            border-radius: var(--radius-md);
            padding: 20px;
        }

        .spec-card h3 {
            font-size: 16px;
            font-weight: 700;
            color: var(--text-main);
            margin-bottom: 10px;
        }

        .spec-card .formula {
            font-family: var(--font-mono);
            font-size: 14px;
            color: var(--primary-glow);
            background: var(--bg-base);
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
            padding: 10px 14px;
            margin-bottom: 8px;
            overflow-x: auto;
            white-space: nowrap;
        }

        .spec-card p {
            font-size: 13px;
            color: var(--text-secondary);
            line-height: 1.6;
        }

        /* ========== CTA Section ========== */
        .cta-section {
            padding: var(--section-gap) 0;
            background: var(--bg-panel);
            border-top: 1px solid var(--border);
            border-bottom: 1px solid var(--border);
        }

        .cta-box {
            background: var(--bg-base);
            border: 1px solid var(--border-strong);
            border-radius: var(--radius-lg);
            padding: 32px;
            text-align: center;
            box-shadow: var(--shadow-sm);
            max-width: 600px;
            margin: 0 auto;
        }

        .cta-box h2 {
            font-size: 24px;
            font-weight: 700;
            color: var(--text-main);
            margin-bottom: 8px;
        }

        .cta-box p {
            font-size: 15px;
            color: var(--text-secondary);
            margin-bottom: 20px;
        }

        .cta-form {
            display: flex;
            gap: 12px;
            align-items: center;
            justify-content: center;
            flex-wrap: wrap;
        }

        .cta-form input {
            background: var(--bg-panel);
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
            padding: 12px 18px;
            font-size: 15px;
            color: var(--text-main);
            width: 280px;
            max-width: 100%;
            transition: border-color 0.2s ease, box-shadow 0.2s ease;
        }

        .cta-form input:focus {
            border-color: var(--primary-glow);
            box-shadow: 0 0 0 3px rgba(213, 242, 74, 0.12);
        }

        .cta-form input::placeholder {
            color: var(--text-muted);
        }

        /* ========== Footer ========== */
        .site-footer {
            background: var(--bg-base);
            border-top: 1px solid var(--border);
            padding: 32px 0 24px;
        }

        .footer-grid {
            display: grid;
            grid-template-columns: 1.2fr 1fr 1fr;
            gap: 32px;
            margin-bottom: 24px;
        }

        .footer-brand {
            font-size: 18px;
            font-weight: 700;
            color: var(--text-main);
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 8px;
        }

        .footer-brand .logo-mark {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 28px;
            height: 28px;
            border-radius: 6px;
            background: linear-gradient(135deg, var(--primary-glow), var(--primary));
            color: #151713;
            font-weight: 800;
            font-size: 14px;
        }

        .footer-desc {
            font-size: 13px;
            color: var(--text-muted);
            line-height: 1.6;
            max-width: 360px;
        }

        .footer-col h4 {
            font-size: 14px;
            font-weight: 700;
            color: var(--text-main);
            margin-bottom: 12px;
        }

        .footer-col ul {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .footer-col ul a {
            font-size: 13px;
            color: var(--text-secondary);
            transition: color 0.2s ease;
        }

        .footer-col ul a:hover {
            color: var(--primary-glow);
        }

        .footer-bottom {
            border-top: 1px solid var(--border);
            padding-top: 16px;
            display: flex;
            flex-direction: column;
            gap: 8px;
            align-items: center;
            text-align: center;
        }

        .footer-bottom .copyright {
            font-size: 13px;
            color: var(--text-muted);
        }

        .footer-bottom .beian {
            font-size: 12px;
            color: var(--text-muted);
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
            justify-content: center;
        }

        .footer-bottom .footer-links {
            font-size: 13px;
            color: var(--text-muted);
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
            justify-content: center;
        }

        .footer-bottom .footer-links a {
            color: var(--text-secondary);
        }

        .footer-bottom .footer-links a:hover {
            color: var(--primary-glow);
        }

        /* ========== Responsive ========== */
        @media (max-width: 1279px) {
            .container {
                max-width: var(--content-width-md);
            }

            .hero-grid {
                grid-template-columns: 1.2fr 1fr;
                gap: 24px;
            }

            .func-matrix {
                grid-template-columns: 1fr 1fr 1fr 1fr;
            }

            .func-card:first-child,
            .func-card:last-child {
                grid-column: span 2;
            }

            .topic-grid {
                grid-template-columns: repeat(3, 1fr);
            }

            .match-row {
                grid-template-columns: 1.2fr 0.7fr 0.7fr 0.7fr 0.7fr 0.7fr auto;
                font-size: 13px;
            }
        }

        @media (max-width: 767px) {
            :root {
                --section-gap: var(--section-gap-mobile);
            }

            .container {
                padding-left: 16px;
                padding-right: 16px;
            }

            .site-header {
                height: 56px;
            }

            .main-nav {
                display: none;
            }

            .hamburger {
                display: flex;
            }

            .mobile-panel {
                top: 56px;
            }

            .hero-calculator {
                padding: 36px 0 32px;
            }

            .hero-grid {
                grid-template-columns: 1fr;
                gap: 20px;
            }

            .hero-left h1 {
                font-size: 30px;
            }

            .calc-form-row {
                grid-template-columns: 1fr;
            }

            .metric-grid {
                grid-template-columns: 1fr 1fr;
            }

            .metric-grid .metric-item:last-child {
                grid-column: span 2;
            }

            .func-matrix {
                grid-template-columns: 1fr 1fr;
                gap: 10px;
            }

            .func-card:first-child,
            .func-card:last-child {
                grid-column: span 1;
            }

            .conversion-grid {
                grid-template-columns: 1fr;
                gap: 16px;
            }

            .kelly-grid {
                grid-template-columns: 1fr;
                gap: 16px;
            }

            .topic-grid {
                grid-template-columns: 1fr 1fr;
                gap: 10px;
            }

            .match-row {
                grid-template-columns: 1fr 0.6fr 0.6fr 0.6fr auto;
                font-size: 12px;
                padding: 10px 12px;
                gap: 4px;
            }

            .match-row .match-time,
            .match-row .return-rate {
                display: none;
            }

            .content-list {
                grid-template-columns: 1fr;
            }

            .steps-bar {
                grid-template-columns: 1fr 1fr;
                gap: 20px;
            }

            .steps-bar::before {
                display: none;
            }

            .simulation-grid {
                grid-template-columns: 1fr;
            }

            .specs-grid {
                grid-template-columns: 1fr;
            }

            .footer-grid {
                grid-template-columns: 1fr;
                gap: 20px;
            }

            .section-header h2 {
                font-size: 22px;
            }

            .cta-box {
                padding: 24px 20px;
            }
        }

        @media (max-width: 479px) {
            .hero-left h1 {
                font-size: 26px;
            }

            .metric-grid {
                grid-template-columns: 1fr;
            }

            .metric-grid .metric-item:last-child {
                grid-column: span 1;
            }

            .func-matrix {
                grid-template-columns: 1fr;
            }

            .topic-grid {
                grid-template-columns: 1fr;
            }

            .match-row {
                grid-template-columns: 1fr auto;
                font-size: 12px;
                gap: 6px;
            }

            .match-row .odds {
                display: none;
            }

            .steps-bar {
                grid-template-columns: 1fr;
            }

            .cta-form input {
                width: 100%;
            }

            .cta-form .btn {
                width: 100%;
                justify-content: center;
            }

            .footer-bottom .beian {
                flex-direction: column;
                gap: 4px;
            }
        }
