
        /* 浅绿色风格 CSS */
        :root {
            --stats-primary: #10b981;
            /* Emerald 500 */
            --stats-primary-dark: #059669;
            /* Emerald 600 */
            --stats-bg: #ecfdf5;
            /* Emerald 50 */
            --stats-card-bg: #ffffff;
            --stats-text: #1f2937;
            --stats-text-light: #6b7280;
            --stats-border: #d1fae5;
            /* Emerald 100 */
            --stats-link: #059669;
        }

        .abv2fi-stats-page {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
            color: var(--stats-text);
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }

        .abv2fi-stats-page a.stats-tag-link {
            color: var(--stats-text);
            text-decoration: none;
            border-bottom: 1px dotted var(--stats-text-light);
            transition: color 0.2s;
        }

        .abv2fi-stats-page a.stats-tag-link:hover {
            color: var(--stats-link);
            border-bottom-style: solid;
        }

        /* 仪表盘 */
        .stats-dashboard {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }

        .dashboard-details {
            margin-bottom: 40px;
        }

        .stat-card {
            background: var(--stats-card-bg);
            border: 1px solid var(--stats-border);
            border-radius: 12px;
            padding: 20px;
            display: flex;
            align-items: center;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
            transition: transform 0.2s;
        }

        /* 链接卡片样式 */
        a.detail-card-link {
            text-decoration: none;
            display: flex;
            /* 保持 flex 布局以对齐内容 */
            color: inherit;
            /* 确保 grid item 行为正常 */
            width: 100%;
            box-sizing: border-box;
        }

        a.detail-card-link:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 16px rgba(16, 185, 129, 0.15);
            border-color: var(--stats-primary);
        }

        .stat-card:not(.hover-card):hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }

        .stat-card .icon {
            font-size: 32px;
            margin-right: 16px;
            background: var(--stats-bg);
            width: 50px;
            height: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
        }

        .stat-card .info {
            display: flex;
            flex-direction: column;
            width: 100%;
        }

        .stat-card .label {
            font-size: 14px;
            color: var(--stats-text-light);
        }

        .stat-card .value {
            font-size: 24px;
            font-weight: bold;
            color: var(--stats-primary-dark);
        }

        .sub-text {
            font-size: 12px;
            color: #9ca3af;
            margin-top: 2px;
        }

        .detail-card .value {
            font-size: 28px;
        }

        /* 布局网格 */
        .stats-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 30px;
            margin-bottom: 30px;
        }

        @media (max-width: 768px) {
            .stats-grid {
                grid-template-columns: 1fr;
            }
        }

        .stats-box {
            background: var(--stats-card-bg);
            border: 1px solid var(--stats-border);
            border-radius: 12px;
            padding: 24px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
            height: 100%;
            /* 让左右两栏等高 */
        }

        .stats-box h3 {
            margin: 0 0 20px 0;
            font-size: 18px;
            color: var(--stats-primary-dark);
            border-bottom: 2px solid var(--stats-bg);
            padding-bottom: 10px;
        }

        /* Detail Row Styles */
        tr.main-row {
            cursor: pointer;
        }

        tr.main-row:hover {
            background-color: var(--stats-bg);
        }

        tr.main-row.expanded td {
            border-bottom: none;
            background-color: var(--stats-bg);
        }

        tr.detail-row td {
            padding: 0 20px 20px 20px;
            background-color: #fafafa;
            border-top: none;
            box-shadow: inset 0 3px 6px -3px rgba(0, 0, 0, 0.1);
        }

        .detail-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 15px;
        }

        .sub-stat-item {
            background: #fff;
            border: 1px solid #e5e7eb;
            border-radius: 6px;
            padding: 10px;
            text-align: center;
        }

        .sub-head {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 6px;
            font-size: 12px;
        }

        .sub-label {
            color: #6b7280;
        }

        .sub-val {
            font-weight: bold;
        }

        .sub-bar-bg {
            height: 6px;
            background: #f3f4f6;
            border-radius: 3px;
            overflow: hidden;
            margin-bottom: 4px;
        }

        .sub-bar-fill {
            height: 100%;
            border-radius: 3px;
        }

        .sub-count {
            font-size: 11px;
            color: #9ca3af;
            text-align: right;
        }

        @media (max-width: 640px) {
            .detail-grid {
                grid-template-columns: 1fr 1fr;
            }
        }

        /* 表格样式 */
        .table-responsive {
            overflow-x: auto;
        }

        .stats-table {
            width: 100%;
            border-collapse: collapse;
        }

        .stats-table th,
        .stats-table td {
            padding: 10px;
            text-align: left;
            border-bottom: 1px solid #f3f4f6;
            font-size: 14px;
        }

        .stats-table th {
            background: var(--stats-bg);
            color: var(--stats-primary-dark);
            font-weight: 600;
        }

        .accuracy-bar-wrap {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .accuracy-text {
            font-size: 12px;
            width: 35px;
        }

        .accuracy-bar {
            height: 6px;
            background: var(--stats-primary);
            border-radius: 3px;
        }

        /* 搜索表单 */
        .search-section {
            height: auto;
        }

        .team-search-form {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
            max-width: 600px;
        }

        .team-search-form input {
            flex: 1;
            padding: 10px;
            border: 1px solid #d1d5db;
            border-radius: 6px;
        }

        .team-search-form button {
            padding: 10px 20px;
            background: var(--stats-primary);
            color: white;
            border: none;
            border-radius: 6px;
            cursor: pointer;
        }

        .team-search-form button:hover {
            background: var(--stats-primary-dark);
        }

        .team-search-form button:disabled {
            background: #9ca3af;
            cursor: not-allowed;
        }

        /* 球队结果 */
        .team-stats-row {
            display: flex;
            justify-content: space-around;
            background: var(--stats-bg);
            padding: 15px;
            border-radius: 8px;
            margin-bottom: 20px;
            max-width: 600px;
        }

        .ts-item {
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .ts-label {
            font-size: 12px;
            color: var(--stats-text-light);
        }

        .ts-val {
            font-size: 18px;
            font-weight: bold;
        }

        .ts-val.highlight {
            color: var(--stats-primary);
        }

        .team-history-list {
            max-width: 800px;
        }

        .team-history-list ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .team-history-list li {
            display: flex;
            padding: 8px 0;
            border-bottom: 1px solid #f3f4f6;
            font-size: 13px;
        }

        .team-history-list li.correct {
            color: var(--stats-primary);
        }

        .team-history-list li.wrong {
            color: #ef4444;
        }

        .team-history-list .date {
            width: 50px;
            color: #9ca3af;
        }

        .team-history-list .match {
            flex: 1;
        }

        .team-history-list .res {
            font-weight: bold;
        }
    
/* v27.80：标题样式对齐原站 DUX——原站 .article-content h3 是 padding:0、无边条无底色，
   基础样式表的绿色左边条/缩进不得漏进统计页区块标题（走势/球队查询/联赛排名）。 */
.article-content .abv2fi-stats-page h3,
.article-content .abv2fi-stats-page h2,
.article-content .abv2fi-stats-page h4 {
    border-left: 0;
    padding-left: 0;
    background: transparent;
}

/* v27.81：全局 qxc_v5_global.css 的 body.tpl-v5 .stats-box 深绿渐变（0,2,1）盖掉了本页白底，
   原站无 tpl-v5 类所以是白底深绿字。此处用更高特异性恢复白底，保证阅读对比度。 */
body.tpl-v5 .abv2fi-stats-page .stats-box {
    background: #ffffff !important;
}
body.tpl-v5 .abv2fi-stats-page .search-placeholder p {
    color: var(--stats-text-light) !important;
}
