/* ==========================================
   比赛详情页完整S段
   重新编写 - 2025
   ========================================== */

/* ==========================================
   第一部分：主容器和基础布局
   ========================================== */
.main-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.main-content {
    width: 100%;
}

.sidebar {
    width: 100%;
}

/* ==========================================
   第二部分：成功/错误消息
   ========================================== */
.success-message {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.error-message {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.errors {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

/* ==========================================
   第三部分：比赛头部
   ========================================== */
.match-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.competition-logo-small {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.competition-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.inline-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.inline-link:hover {
    color: #007bff;
}

.wx-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #07C160;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    margin-left: auto;
    flex-shrink: 0;
    transition: background 0.2s;
}
.wx-share-btn:hover {
    background: #06AD56;
}

.display-contents-link {
    display: contents;
    color: inherit;
    text-decoration: none;
}

/* ==========================================
   第四部分：比赛比分容器
   ========================================== */
.match-score-container {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
    text-align: center;
}

.match-info-header {
    width: 100%;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.match-info-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.match-info-item {
    background-color: #f8f9fa;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #495057;
    font-weight: 500;
    border: 1px solid #dee2e6;
    white-space: nowrap;
}

.match-info-item.group-info,
.match-info-item.placement-info {
    background-color: #e3f2fd;
    border-color: #bbdefb;
    color: #1565c0;
    font-weight: 600;
}

.match-info-row-centered {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    padding: 15px 0 0;
    margin-top: 15px;
    border-top: 1px solid #e9ecef;
}

/* ==========================================
   第五部分：球队和比分水平布局
   ========================================== */
.teams-horizontal-layout {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 25px 20px;
    background-color: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    gap: 25px;
}

.team-name-display {
    flex: 1;
    display: flex;
    align-items: center;
    max-width: 250px;
}

.home-team-name {
    justify-content: flex-end;
    text-align: right;
}

.away-team-name {
    justify-content: flex-start;
    text-align: left;
}

.team-logo-display {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-logo-large {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.team-name-large {
    font-size: 1.35rem;
    font-weight: 700;
    color: #333;
    margin: 0;
    line-height: 1.3;
}

.score-center {
    flex: 0 0 auto;
    min-width: 140px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.match-status {
    font-size: 0.95rem;
    color: #666;
    font-weight: 500;
    display: block;
}

.match-countdown {
    text-align: center;
}

.countdown-label {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 8px;
}

.countdown-time {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 4px;
}

.countdown-item {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.countdown-num {
    font-size: 1.8rem;
    font-weight: 700;
    color: #007bff;
    line-height: 1;
}

.countdown-unit {
    font-size: 0.9rem;
    color: #666;
}

.score-large {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.regular-score {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 1.5rem;
    font-weight: bold;
}

.home-score-large,
.away-score-large {
    font-size: 3.2rem;
    font-weight: 800;
    color: #333;
    line-height: 1;
    min-width: 60px;
}

.vs-large {
    font-size: 1.5rem;
    color: #999;
    font-weight: 400;
}

.penalty-score-container {
    font-size: 0.95rem;
    color: #666;
    margin-top: 5px;
}

.penalty-score {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

.penalty-icon-inline {
    color: #ffc107;
}


/* ==========================================
   第六部分：进球球员信息
   ========================================== */
.goal-scorers-container {}

.goal-scorers-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 50px;
}

.home-goal-scorers,
.away-goal-scorers {
    flex: 1;
    text-align: center;
}

.home-goal-scorers {
    text-align: right;
    padding-right: 10px;
}

.away-goal-scorers {
    text-align: left;
    padding-left: 10px;
}

.goal-scorer-item {
    margin: 6px 0;
    font-size: 0.9rem;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: nowrap;
}

.away-goal-scorers .goal-scorer-item {
    justify-content: flex-start;
}

.scorer-info {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-wrap: nowrap;
}

.scorer-name {
    font-weight: 600;
    color: #333;
}

.jersey-number {
    color: #888;
    font-size: 0.85rem;
}

.goals-count {
    color: #dc3545;
    font-weight: 700;
    margin-left: 5px;
    flex-shrink: 0;
}

.football-score-small {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.football-score-small .football-icon {
    font-size: 0.85rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    color: #333;
    filter: grayscale(100%);
}

.football-score-small .football-icon.own-goal {
    color: #dc3545;
    filter: none;
    font-size: 0.95rem;
    margin-left: 3px;
}

.football-score-small .football-icon.own-goal:hover {
    transform: scale(1.2);
    transition: transform 0.2s ease;
}

/* ==========================================
   第七部分：裁判信息
   ========================================== */
.match-referees {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.match-referee-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
}

.match-referee-role-inline {
    color: #888;
    font-size: 0.85rem;
}

.match-venue {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.icon-location::before {
    content: '📍';
    margin-right: 5px;
}

/* 观众人数样式 - PC端 */
.match-attendant {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.icon-users::before {
    content: '👥';
    margin-right: 5px;
}

/* ==========================================
   第一阶段结束第(第1-500))
   ========================================== */

/* ==========================================
   第二阶段开始（第 501-1000 行）
   ========================================== */

/* ==========================================
   第八部分：相关资讯
   ========================================== */
.news-section {
    margin: 25px 0;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.section-title {
    font-size: 1.4rem;
    color: #333;
    margin: 0 0 20px;
    font-weight: 700;
}

.news-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.news-item-card {
    background-color: white;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.news-item-card:hover {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.1);
}

.news-title-link {
    text-decoration: none;
    color: #2c3e50;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
    display: block;
    transition: color 0.2s ease;
}

.news-title-link:hover {
    color: #007bff;
}

/* ==========================================
   第九部分：区块样式
   ========================================== */
.section-block {
    background-color: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.section-subtitle {
    font-size: 1.3rem;
    color: #333;
    margin: 0 0 25px;
    padding-bottom: 12px;
    border-bottom: 2px solid #007bff;
    font-weight: 700;
}

/* ==========================================
   第十部分：比赛事件
   ========================================== */
.events-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.event-item-full {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
    gap: 0;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.event-item-full:hover {
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.event-team-column {
    flex: 0 0 40%;
    max-width: 40%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.event-home-column {
    align-items: flex-start;
}

.event-away-column {
    align-items: flex-end;
}

.event-time-column {
    flex: 0 0 20%;
    max-width: 20%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-team-content {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.event-home-column .event-team-content {
    justify-content: flex-start;
}

.event-away-column .event-team-content {
    justify-content: flex-end;
}

.event-team-content-stacked {
    margin-top: 6px;
}

.event-team-name {
    font-size: 0.85rem;
    color: #666;
    font-weight: 600;
}

.event-person-info {
    font-size: 0.9rem;
    color: #333;
    font-weight: 500;
}

.event-type {
    font-size: 0.9rem;
    color: #333;
    font-weight: 500;
}

.event-substitution-info {
    font-size: 0.9rem;
    color: #333;
    font-weight: 500;
}

.event-substitution-down {
    color: #dc3545;
    font-weight: 700;
}

.event-substitution-arrow {
    color: #666;
    margin: 0 3px;
}

.event-substitution-up {
    color: #28a745;
    font-weight: 700;
}

.event-time-display {
    font-weight: 700;
    color: #007bff;
    font-size: 1rem;
    background-color: #e3f2fd;
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-block;
}

.event-icon-display {
    font-size: 1.3rem;
}

/* ==========================================
   第十一部分：出场阵容 - 双列布局
   ========================================== */
.lineups-container {
    display: flex;
    gap: 30px;
    flex-direction: row;
}

.lineup-team {
    flex: 1;
}

.lineup-team-header {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
    font-size: 1.15rem;
    font-weight: 700;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

/* ==========================================
   第十二部分：教练区域
   ========================================== */
.coach-section {
    margin-bottom: 20px;
}

.coach-section-title {
    color: #666;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.coach-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
}

.coach-link {
    text-decoration: none;
    color: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.coach-link:hover {
    color: #007bff;
}

.coaches-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.coach-role {
    font-size: 0.8rem;
    color: #888;
    background: #f5f5f5;
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 8px;
    white-space: nowrap;
}

/* ==========================================
   第十三部分：首发阵容
   ========================================== */
.starters-section {
    margin-bottom: 20px;
}

.starters-section-title {
    color: #666;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.players-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.player-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.player-item:hover {
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.player-number {
    font-weight: 700;
    color: #007bff;
    font-size: 1rem;
    min-width: 35px;
    margin-right: 10px;
    text-align: center;
    background-color: #e3f2fd;
    padding: 3px 8px;
    border-radius: 4px;
}

.player-link {
    text-decoration: none;
    color: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    flex: 1;
    transition: color 0.2s ease;
}

.player-link:hover {
    color: #007bff;
}

.captain-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background-color: #dc3545;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 3px;
    margin-left: 6px;
    vertical-align: middle;
}

.position-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 16px;
    background-color: #28a745;
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 3px;
    margin-left: 6px;
    vertical-align: middle;
    padding: 0 4px;
}

.player-position {
    color: #888;
    font-size: 0.85rem;
    margin-left: 10px;
}

/* ==========================================
   第十四部分：替补阵容
   ========================================== */
.substitutes-section {
    margin-bottom: 15px;
}

.substitutes-section-title {
    color: #666;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.player-number-sub {
    font-weight: 700;
    color: #6c757d;
    font-size: 0.95rem;
    min-width: 35px;
    margin-right: 10px;
    text-align: center;
    background-color: #e9ecef;
    padding: 3px 8px;
    border-radius: 4px;
}

.player-link-sub {
    text-decoration: none;
    color: inherit;
    font-weight: 500;
    font-size: 0.9rem;
    flex: 1;
    transition: color 0.2s ease;
}

.player-link-sub:hover {
    color: #007bff;
}

.player-position-sub {
    color: #999;
    font-size: 0.8rem;
    margin-left: 10px;
}

.no-lineup-message {
    text-align: center;
    color: #888;
    width: 100%;
    padding: 30px;
    font-size: 1rem;
    background-color: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

/* ==========================================
   第二阶段结束（第 501-1000 行）
   ========================================== */

/* ==========================================
   第三阶段开始（第 1001 行+）
   ========================================== */

/* ==========================================
   第十五部分：评论区域
   ========================================== */
.comment-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.comment-section-header h4 {
    font-size: 1.1rem;
    color: #333;
    margin: 0;
    font-weight: 600;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid #007bff;
    color: #007bff;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-outline:hover {
    background-color: #007bff;
    color: white;
}

.comment-form-container {
    margin-bottom: 25px;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    width: 100%;
}

.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.btn-primary {
    background-color: #007bff;
    border: none;
    color: white;
    padding: 10px 25px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: #6c757d;
    border: none;
    color: white;
    padding: 10px 25px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-item {
    background-color: #f8f9fa;
    padding: 18px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.comment-author {
    font-weight: 700;
    color: #333;
    font-size: 0.95rem;
}

.comment-time {
    color: #888;
    font-size: 0.85rem;
}

.comment-content {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 12px;
}

.comment-actions {
    display: flex;
    gap: 10px;
}

.reply-btn {
    background-color: transparent;
    border: none;
    color: #007bff;
    padding: 5px 0;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s ease;
}

.reply-btn:hover {
    color: #0056b3;
    text-decoration: underline;
}

.reply-form {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #dee2e6;
}

.reply-form-inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.replies-list {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.reply-item {
    background-color: white;
    padding: 12px 15px;
    border-radius: 8px;
    border-left: 3px solid #007bff;
}

.reply-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.reply-author {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.reply-time {
    color: #888;
    font-size: 0.8rem;
}

.reply-content {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.5;
}

.no-comments {
    text-align: center;
    color: #888;
    padding: 40px;
    background-color: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.no-comments p {
    margin: 0;
    font-size: 1rem;
}

/* ==========================================
   第十六部分：响应式设计 - 平板设备
   ========================================== */
@media (max-width: 768px) {
    .main-container {
        padding: 15px;
        gap: 18px;
    }

    .match-header {
        flex-direction: row;
        gap: 10px;
        text-align: center;
        padding: 15px;
    }

    .competition-name {
        font-size: 1.15rem;
    }

    .match-score-container {
        padding: 22px 18px;
        margin-bottom: 22px;
    }

    .countdown-num {
        font-size: 1.5rem;
    }

    .countdown-unit {
        font-size: 0.8rem;
    }

    .match-info-row {
        gap: 10px;
    }

    .match-info-item {
        font-size: 0.9rem;
        padding: 6px 14px;
    }

    .teams-horizontal-layout {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 18px;
        padding: 20px 18px;
    }

    .team-name-display {
        max-width: 160px;
    }

    .home-team-name {
        justify-content: flex-end;
        text-align: right;
    }

    .away-team-name {
        justify-content: flex-start;
        text-align: left;
    }

    .team-logo-large {
        width: 65px;
        height: 65px;
    }

    .team-name-large {
        font-size: 1.1rem;
    }

    .score-large {
        gap: 6px;
    }

    .regular-score {
        gap: 14px;
        font-size: 1.4rem;
    }

    .home-score-large,
    .away-score-large {
        font-size: 2.7rem;
        min-width: 55px;
    }

    .vs-large {
        font-size: 1.4rem;
    }

    .penalty-score-container {
        font-size: 0.95rem;
        margin-top: 4px;
    }

    .goal-scorers-container {}

    .goal-scorers-row {
        flex-direction: row;
        justify-content: center;
        gap: 25px;
    }

    .home-goal-scorers {
        padding: 0;
        text-align: right;
    }

    .away-goal-scorers {
        padding: 0;
        text-align: left;
    }

    .home-goal-scorers .goal-scorer-item {
        justify-content: flex-end;
    }

    .away-goal-scorers .goal-scorer-item {
        justify-content: flex-start;
    }

    .goal-scorer-item {
        font-size: 0.9rem;
        margin: 5px 0;
        gap: 7px;
    }

    .scorer-info {
        gap: 5px;
    }

    .match-info-row-centered {
        flex-direction: row;
        gap: 12px;
        padding: 14px 0 0;
        margin-top: 14px;
    }

    .match-referees {
        gap: 15px;
        flex-direction: row;
    }

    .match-referee-item {
        font-size: 0.9rem;
    }

    .match-venue {
        font-size: 0.9rem;
    }

    .news-section {
        margin: 22px 0;
        padding: 18px;
    }

    .section-title {
        font-size: 1.25rem;
        margin-bottom: 18px;
    }

    .news-grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .news-item-card {
        padding: 12px 14px;
    }

    .news-title-link {
        font-size: 0.95rem;
    }

    .section-block {
        padding: 20px 18px;
        margin: 22px 0;
        border-radius: 10px;
    }

    .section-subtitle {
        font-size: 1.2rem;
        margin-bottom: 20px;
        padding-bottom: 12px;
    }

    .events-container {
        gap: 12px;
    }

    .event-item-full {
        padding: 14px 18px;
        gap: 0;
        align-items: center;
        flex-direction: row;
    }

    .event-team-column {
        flex: 0 0 40%;
        max-width: 40%;
    }

    .event-time-column {
        flex: 0 0 20%;
        max-width: 20%;
    }

    .event-team-name {
        font-size: 0.8rem;
    }

    .event-person-info,
    .event-type,
    .event-substitution-info {
        font-size: 0.85rem;
    }

    .event-time-display {
        font-size: 0.95rem;
        padding: 4px 10px;
    }

    .event-icon-display {
        font-size: 1.2rem;
    }

    .lineups-container {
        flex-direction: row;
        gap: 30px;
    }

    .lineup-team-header {
        font-size: 1.1rem;
        margin-bottom: 18px;
        padding-bottom: 10px;
    }

    .coach-section-title,
    .starters-section-title,
    .substitutes-section-title {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }

    .player-item {
        padding: 8px 12px;
        gap: 10px;
    }

    .player-number,
    .player-number-sub {
        min-width: 32px;
        font-size: 0.95rem;
        margin-right: 10px;
        padding: 3px 8px;
    }

    .player-link,
    .player-link-sub {
        font-size: 0.95rem;
    }

    .player-position,
    .player-position-sub {
        font-size: 0.8rem;
        margin-left: 10px;
    }

    .no-lineup-message {
        padding: 30px;
        font-size: 1rem;
    }

    .comment-section-header {
        flex-direction: row;
        align-items: center;
        gap: 15px;
    }

    .comment-section-header h4 {
        font-size: 1.05rem;
    }

    .btn-outline {
        padding: 8px 18px;
        font-size: 0.9rem;
        border-radius: 20px;
    }

    .comment-form {
        gap: 14px;
    }

    .form-group textarea {
        padding: 12px 15px;
        font-size: 0.95rem;
        min-height: 90px;
        border-radius: 10px;
    }

    .form-actions {
        gap: 12px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 9px 22px;
        font-size: 0.95rem;
        border-radius: 20px;
    }

    .comments-list {
        gap: 18px;
    }

    .comment-item {
        padding: 18px;
        border-radius: 10px;
    }

    .comment-header {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        margin-bottom: 10px;
    }

    .comment-author {
        font-size: 0.95rem;
    }

    .comment-time {
        font-size: 0.85rem;
    }

    .comment-content {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 12px;
    }

    .reply-btn {
        font-size: 0.85rem;
    }

    .reply-item {
        padding: 12px 15px;
    }

    .reply-header {
        flex-direction: row;
        align-items: center;
        gap: 8px;
        margin-bottom: 8px;
    }

    .reply-author {
        font-size: 0.9rem;
    }

    .reply-time {
        font-size: 0.8rem;
    }

    .reply-content {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .no-comments {
        padding: 35px;
    }

    .no-comments p {
        font-size: 1rem;
    }
}

/* ==========================================
   第十七部分：响应式设计 - 手机设备
   ========================================== */
@media (max-width: 480px) {
    .main-container {
        padding: 10px;
        gap: 12px;
    }

    .match-header {
        padding: 10px 12px;
    }

    .competition-name {
        font-size: 1rem;
    }

    .match-score-container {
        padding: 15px 12px;
        margin-bottom: 15px;
    }

    .countdown-num {
        font-size: 1.3rem;
    }

    .countdown-unit {
        font-size: 0.75rem;
    }

    .match-info-row {
        gap: 6px;
    }

    .match-info-item {
        font-size: 0.8rem;
        padding: 4px 10px;
    }

    .teams-horizontal-layout {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
        padding: 15px 12px;
    }

    .team-name-display {
        max-width: none;
        order: 2;
        width: 45%;
    }

    .home-team-name {
        justify-content: center;
        text-align: right;
        order: 1;
    }

    .away-team-name {
        justify-content: center;
        text-align: left;
        order: 4;
    }

    .team-logo-display {
        order: 2;
    }

    .away-team-logo {
        order: 3;
    }

    .score-center {
        min-width: auto;
        order: 3;

    }

    .team-logo-large {
        width: 50px;
        height: 50px;
    }

    .team-name-large {
        font-size: 0.95rem;
    }

    .score-large {
        gap: 4px;
    }

    .regular-score {
        gap: 10px;
        font-size: 1.2rem;
    }

    .home-score-large,
    .away-score-large {
        font-size: 2.2rem;
        min-width: 45px;
    }

    .vs-large {
        font-size: 1.2rem;
    }

    .penalty-score-container {
        font-size: 0.85rem;
        margin-top: 2px;
    }

    .goal-scorers-container {}

    .goal-scorers-row {
        flex-direction: row;
        justify-content: center;
        gap: 50px;
    }

    .home-goal-scorers,
    .away-goal-scorers {
        flex: 1;
    }

    .home-goal-scorers {
        text-align: right;
        padding-right: 10px;
    }

    .away-goal-scorers {
        text-align: left;
        padding-left: 10px;
    }



    .home-goal-scorers .goal-scorer-item {
        justify-content: flex-end;
    }

    .away-goal-scorers .goal-scorer-item {
        justify-content: flex-start;
    }


    .goal-scorer-item {
        font-size: 0.8rem;
        margin: 3px 0;
        gap: 5px;
    }

    .scorer-info {
        gap: 3px;
    }

    .match-info-row-centered {
        flex-direction: column;
        gap: 8px;
        padding: 10px 0 0;
        margin-top: 10px;
    }

    .match-referees {
        gap: 5px;
        flex-direction: row;
    }

    .match-referee-item {
        font-size: 0.8rem;
    }

    .match-venue {
        font-size: 0.8rem;
    }

    .match-attendant {
        font-size: 0.8rem;
    }

    .news-section {
        margin: 15px 0;
        padding: 12px;
    }

    .section-title {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }

    .news-grid-container {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .news-item-card {
        padding: 8px 10px;
    }

    .news-title-link {
        font-size: 0.85rem;
    }

    .section-block {
        padding: 15px 12px;
        margin: 15px 0;
        border-radius: 8px;
    }

    .section-subtitle {
        font-size: 1.1rem;
        margin-bottom: 15px;
        padding-bottom: 8px;
    }

    .events-container {
        gap: 8px;
    }

    .event-item-full {
        padding: 0px 4px;
        gap: 0;
        align-items: center;
        flex-direction: row;
        font-size: 0.70rem;
    }

    .event-team-column {
        flex: 0 0 40%;
        max-width: 40%;
    }

    .event-time-column {
        flex: 0 0 20%;
        max-width: 20%;
    }

    .event-team-name {
        font-size: 0.70rem;
    }

    .event-person-info,
    .event-type,
    .event-substitution-info {
        font-size: 0.70rem;
    }

    .event-time-display {
        font-size: 0.80rem;
        padding: 3px 8px;
    }

    .event-icon-display {
        font-size: 0.75rem;
    }

    .event-team-content {
        gap: 3px;
    }

    .lineups-container {
        flex-direction: row;
        gap: 20px;
    }

    .lineup-team-header {
        font-size: 1rem;
        margin-bottom: 12px;
        padding-bottom: 6px;
    }

    .coach-section-title,
    .starters-section-title,
    .substitutes-section-title {
        font-size: 0.8rem;
        margin-bottom: 6px;
    }

    .player-item {
        padding: 2px 6px;
        gap: 6px;
    }

    .player-number,
    .player-number-sub {
        min-width: 28px;
        font-size: 0.75rem;
        margin-right: 6px;
        padding: 2px 5px;
    }

    .player-link,
    .player-link-sub {
        font-size: 0.75rem;
    }

    .player-position,
    .player-position-sub {
        font-size: 0.7rem;
        margin-left: 6px;
    }

    .no-lineup-message {
        padding: 20px;
        font-size: 0.9rem;
    }

    .comment-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .comment-section-header h4 {
        font-size: 0.95rem;
    }

    .btn-outline {
        padding: 6px 14px;
        font-size: 0.8rem;
        border-radius: 16px;
    }

    .comment-form {
        gap: 10px;
    }

    .form-group textarea {
        padding: 8px 10px;
        font-size: 0.85rem;
        min-height: 70px;
        border-radius: 6px;
    }

    .form-actions {
        gap: 8px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 7px 18px;
        font-size: 0.85rem;
        border-radius: 16px;
    }

    .comments-list {
        gap: 12px;
    }

    .comment-item {
        padding: 12px;
        border-radius: 6px;
    }

    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        margin-bottom: 6px;
    }

    .comment-author {
        font-size: 0.85rem;
    }

    .comment-time {
        font-size: 0.75rem;
    }

    .comment-content {
        font-size: 0.85rem;
        line-height: 1.4;
        margin-bottom: 8px;
    }

    .reply-btn {
        font-size: 0.75rem;
    }

    .reply-item {
        padding: 8px 10px;
    }

    .reply-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
        margin-bottom: 5px;
    }

    .reply-author {
        font-size: 0.8rem;
    }

    .reply-time {
        font-size: 0.7rem;
    }

    .reply-content {
        font-size: 0.8rem;
        line-height: 1.3;
    }

    .no-comments {
        padding: 25px;
    }

    .no-comments p {
        font-size: 0.9rem;
    }
}

/* ==========================================
   第十八部分：辅助样式
   ========================================== */
@media print {
    .main-container {
        max-width: 100%;
        padding: 0;
    }

    .comment-section,
    .news-section,
    .btn-outline,
    .btn-primary,
    .btn-secondary,
    .reply-btn {
        display: none;
    }

    .section-block {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

@media (prefers-contrast: high) {

    .event-item-full,
    .player-item,
    .news-item-card,
    .comment-item,
    .reply-item {
        border-width: 2px;
    }
}

.btn-outline:focus,
.btn-primary:focus,
.btn-secondary:focus,
.reply-btn:focus,
.form-group textarea:focus {
    outline: 3px solid #007bff;
    outline-offset: 2px;
}

::selection {
    background-color: #007bff;
    color: white;
}

::-moz-selection {
    background-color: #007bff;
    color: white;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* ==========================================
   CSS 文件结束
   ========================================== */