body {
    margin: 0;
    font-family: Arial, "Microsoft YaHei", sans-serif;
    background: #f4f5f7;
    color: #222;
}

a {
    color: #b30000;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.page {
    width: 980px;
    margin: 0 auto;
    padding: 16px 0 32px;
}

.hero {
    background: linear-gradient(135deg, #b30000, #ff6b4a);
    color: #fff;
    border-radius: 14px;
    padding: 24px 28px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.hero h1 {
    margin: 0 0 8px;
    font-size: 34px;
}

.hero p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.hero-meta span {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 14px;
}

.nav {
    display: flex;
    flex-wrap: nowrap;
    margin: 18px 0;
    gap: 0;
    align-items: stretch;
}

.nav a {
    flex: 1 1 0;
    min-width: 0;
    display: block;
    padding: 10px 2px;
    background: #fff;
    border: 1px solid #ffd0d0;
    font-weight: 700;
    font-size: 12px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-radius: 0;
    margin-left: -1px;
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

.nav a:hover {
    text-decoration: none;
    background: #fff4f4;
}

.nav a:first-child {
    margin-left: 0;
    border-radius: 10px 0 0 10px;
}

.nav a:last-child {
    border-radius: 0 10px 10px 0;
}

.nav a.active {
    background: #b30000;
    border-color: #b30000;
    color: #fff;
    z-index: 2;
}

.panel {
    background: #fff;
    border-radius: 14px;
    padding: 18px 20px;
    margin-top: 18px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.panel h2 {
    margin: 0 0 14px;
    font-size: 22px;
    color: #b30000;
}

.panel h3 {
    margin: 0 0 10px;
    font-size: 18px;
    color: #8f0000;
}

.panel p,
.panel li {
    line-height: 1.8;
}

.notice-strip {
    padding: 14px 18px;
    border-radius: 12px;
    background: #fff4cc;
    color: #7a4300;
    border: 1px solid #f3d37a;
    font-weight: 700;
}

.notice-strip marquee {
    margin-top: 6px;
    font-weight: 400;
    color: #7a4300;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.action-card,
.content-card,
.stat-card {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 14px;
    padding: 18px;
}

.action-card strong,
.stat-card strong {
    display: block;
    margin-bottom: 8px;
    color: #8f0000;
    font-size: 18px;
}

.stat-card ul,
.content-card ul {
    margin: 0;
    padding-left: 18px;
}

.banner-image,
.content-image {
    width: 100%;
    border-radius: 14px;
    display: block;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.iframe-panel {
    padding: 0;
    overflow: hidden;
}

.live-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 18px;
}

.frame-box iframe {
    width: 100%;
    border: 0;
    border-radius: 10px;
    background: #fff;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 66px;
    padding: 10px 8px;
    border-radius: 12px;
    background: #fff4f4;
    border: 1px solid #ffd2d2;
    font-weight: 700;
}

.chip .num {
    font-size: 24px;
    color: #b30000;
}

.chip .zodiac {
    margin-top: 4px;
    font-size: 14px;
    color: #444;
}

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

.records-table th,
.records-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #ececec;
    vertical-align: top;
    text-align: left;
}

.records-table th {
    background: #fff7f7;
    color: #8f0000;
}

.toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.toolbar select,
.toolbar button {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #d8d8d8;
    font-size: 14px;
}

.toolbar button {
    background: #b30000;
    border-color: #b30000;
    color: #fff;
    cursor: pointer;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.gallery-item {
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 14px;
    background: #fff;
}

.gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}

.year-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.year-links a {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: #fff4f4;
    border: 1px solid #ffd2d2;
    font-weight: 700;
}

.year-links a.active {
    background: #b30000;
    border-color: #b30000;
    color: #fff;
}

.record-block {
    border: 1px solid #ececec;
    border-radius: 14px;
    padding: 16px;
    margin-top: 14px;
}

.record-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    font-weight: 700;
}

.ball-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.ball {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 999px;
    background: #fff7f7;
}

.ball img {
    width: 32px;
    height: 32px;
}

.plus {
    font-size: 24px;
    color: #b30000;
    font-weight: 700;
}

.date-table,
.info-table {
    width: 100%;
    border-collapse: collapse;
}

.date-table th,
.date-table td,
.info-table th,
.info-table td {
    padding: 12px 10px;
    border: 1px solid #ececec;
    text-align: left;
    vertical-align: top;
}

.date-table th,
.info-table th {
    background: #fff7f7;
    color: #8f0000;
}

.site-footer {
    text-align: center;
    color: #777;
    font-size: 14px;
}

.muted {
    color: #777;
}

.empty {
    padding: 20px 0;
    color: #888;
    text-align: center;
}

.info-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    max-height: 120px;
    overflow-y: auto;
}

.info-nav-item {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #ffd2d2;
    font-weight: 700;
    color: #b30000;
    font-size: 13px;
    line-height: 1.4;
}

.info-nav-item:hover {
    text-decoration: none;
    background: #ffe8e8;
}

.info-nav-item.active {
    background: #b30000;
    border-color: #b30000;
    color: #fff;
}

#info-recommend-preview {
    margin-top: 14px;
}

#info-recommend-panel {
    padding: 0;
    overflow: hidden;
}

#info-recommend-panel > h2 {
    margin: 0;
    padding: 14px 20px;
    background: linear-gradient(135deg, #b30000, #ff6b4a);
    color: #fff;
    font-size: 20px;
    border-radius: 14px 14px 0 0;
}

#info-recommend-list {
    padding: 16px;
}

.info-class-block {
    margin-bottom: 18px;
    border: 2px solid #b30000;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 12px rgba(179, 0, 0, 0.08);
}

.info-class-block:last-child {
    margin-bottom: 0;
}

.info-class-title {
    padding: 12px 16px;
    background: linear-gradient(90deg, #ffe082, #ffca28);
    color: #7a0000;
    font-size: 17px;
    font-weight: 700;
    text-align: center;
    border-bottom: 2px solid #b30000;
    letter-spacing: 1px;
}

.info-class-body {
    background: #fff;
    padding: 0;
}

.info-row {
    display: grid;
    grid-template-columns: 68px minmax(80px, auto) 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid #f0e0e0;
    font-size: 15px;
    line-height: 1.5;
}

.info-row:nth-child(even) {
    background: #fffaf8;
}

.info-row:last-child {
    border-bottom: 0;
}

.info-row-issue {
    font-weight: 700;
    color: #fff;
    background: #b30000;
    border-radius: 4px;
    padding: 3px 6px;
    font-size: 13px;
    text-align: center;
    white-space: nowrap;
}

.info-row-title {
    font-weight: 700;
    color: #333;
    white-space: nowrap;
}

.info-row-text {
    color: #222;
    font-weight: 700;
    word-break: break-all;
}

.info-row-text span:not(.info-highlight) {
    color: #222;
}

.info-row-text .info-highlight {
    display: inline-block;
    padding: 1px 4px;
    margin: 0 1px;
    background: #fff176;
    border: 1px solid #f9a825;
    border-radius: 3px;
    color: #222;
}

.info-row-result-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    justify-self: end;
}

.info-row-result {
    font-weight: 700;
    color: #2e7d32;
    font-size: 14px;
}

.info-row-badge {
    display: inline-block;
    min-width: 28px;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    color: #fff;
}

.info-row-badge-win {
    background: #2e7d32;
}

.info-row-badge-lose {
    background: #c62828;
}

.info-row-badge-pending {
    background: #757575;
}

.info-row-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, #b30000, transparent);
    margin: 0;
}

@media (max-width: 1000px) {
    .page {
        width: auto;
        padding: 12px;
    }

    .nav a {
        font-size: 11px;
        padding: 8px 1px;
    }

    .info-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .info-row-result-wrap {
        justify-self: start;
    }

    .live-grid,
    .gallery,
    .grid-2,
    .grid-3,
    .action-grid {
        grid-template-columns: 1fr;
    }
}
