/* ==========================================================================
   主题颜色变量定义
   ========================================================================== */
/* 定义整个网站使用的CSS变量，包括颜色、阴影、过渡效果等
   使用CSS变量可以方便地统一管理主题色彩和视觉效果 */

:root {
    /* 主背景色 - 深色主题 */
    --bg-primary: #0f121a;
    --bg-secondary: #111827;
    
    /* 卡片背景色 - 半透明白色 */
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-hover: rgba(255, 255, 255, 0.08);
    
    /* 文字颜色 - 白色系 */
    --text-primary: #f3f4f6;
    --text-secondary: #d1d5db;
    
    /* 强调色 - 橙色和绿色 */
    --accent-orange: #f97316;
    --accent-green: #14b8a6;
    
    /* 边框和阴影 */
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    
    /* 通用效果 */
    --transition: all 0.3s ease;
    --blur: blur(10px);
}

/* ==========================================================================
   基础样式重置
   ========================================================================== */
/* 统一设置所有元素的基础样式，消除浏览器默认差异 */

* {
    /* 清除所有元素的外边距和内边距 */
    margin: 0;
    padding: 0;
    /* 使用border-box盒模型，方便计算元素尺寸 */
    box-sizing: border-box;
}

/* ==========================================================================
   页面主体样式
   ========================================================================== */
/* 设置整个页面的基础字体、背景和排版 */

body {
    /* 字体栈 - 优先使用Inter字体，其次是系统字体 */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* 背景渐变 - 从主背景色到次背景色的对角渐变 */
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    background-size: cover;
    background-attachment: scroll;
    
    /* 文字颜色 */
    color: var(--text-primary);
    
    /* 布局设置 */
    min-height: 100vh; /* 最小高度占满整个视口 */
    line-height: 1.6; /* 行高设置为1.6，提高可读性 */
    overflow-x: hidden; /* 隐藏水平滚动条 */
}

/* ==========================================================================
   移动端优化
   ========================================================================== */
/* 针对移动设备的特殊样式优化 */

@media (max-width: 768px) {
    body {
        background-attachment: scroll; /* 移动端禁用背景固定，提升性能 */
        -webkit-overflow-scrolling: touch; /* iOS平滑滚动 */
    }
}

/* ==========================================================================
   导航栏样式
   ========================================================================== */
/* 固定在页面顶部的导航栏，包含品牌信息和操作按钮 */

.navbar {
    /* 固定定位，始终显示在页面顶部 */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000; /* 高层级，确保在其他内容之上 */
    
    /* 背景和视觉效果 */
    background: var(--card-bg); /* 半透明背景 */
    backdrop-filter: var(--blur); /* 毛玻璃效果 */
    border-bottom: 1px solid var(--border-color); /* 底部边框 */
    padding: 1rem 0; /* 上下内边距 */
    
    /* 性能优化 */
    will-change: transform; /* 提示浏览器该元素可能变化 */
}

/* ==========================================================================
   主内容区域
   ========================================================================== */
/* 页面主要内容区域，位于导航栏下方 */

.main-content {
    /* 性能优化 - 启用硬件加速 */
    transform: translateZ(0);
    will-change: scroll-position;
}

/* ==========================================================================
   导航栏容器
   ========================================================================== */
/* 导航栏内部容器，限制最大宽度并居中显示 */

.nav-container {
    max-width: 1200px; /* 最大宽度限制 */
    margin: 0 auto; /* 水平居中 */
    padding: 0 1rem; /* 左右内边距 */
    display: flex; /* 弹性布局 */
    align-items: center; /* 垂直居中对齐 */
    justify-content: space-between; /* 两端对齐 */
}

/* ==========================================================================
   品牌信息区域
   ========================================================================== */
/* 包含品牌图标和标题的区域 */

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem; /* 图标和标题之间的间距 */
}

/* ==========================================================================
   导航操作区域
   ========================================================================== */
/* 导航栏右侧的操作按钮区域 */

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem; /* 按钮之间的间距 */
}

/* ==========================================================================
   小程序按钮样式
   ========================================================================== */
/* 导航栏右侧的小程序入口按钮 */

.miniapp-btn {
    display: flex; /* 弹性布局 */
    align-items: center; /* 垂直居中对齐 */
    gap: 0.5rem; /* 图标和文字之间的间距 */
    
    /* 背景和颜色 */
    background: linear-gradient(135deg, var(--accent-green), #0d9488); /* 绿色渐变背景 */
    color: white;
    
    /* 边框和内边距 */
    border: none; /* 无边框 */
    padding: 0.6rem 1.2rem; /* 内边距 */
    border-radius: 25px; /* 圆角 */
    
    /* 字体和光标 */
    font-size: 0.9rem; /* 字体大小 */
    font-weight: 500; /* 字重 */
    cursor: pointer; /* 鼠标指针 */
    
    /* 动画和阴影 */
    transition: var(--transition); /* 过渡动画 */
    box-shadow: 0 2px 4px rgba(20, 184, 166, 0.3); /* 阴影效果 */
    text-decoration: none; /* 去除下划线 */
}

/* ==========================================================================
   小程序按钮悬停状态
   ========================================================================== */

.miniapp-btn:hover {
    /* 悬停时背景颜色变化 */
    background: linear-gradient(135deg, #0d9488, var(--accent-green));
    
    /* 悬停时上移效果 */
    transform: translateY(-2px);
    
    /* 悬停时增强阴影效果 */
    box-shadow: 0 4px 8px rgba(20, 184, 166, 0.4);
}

.miniapp-icon {
    font-size: 1.1rem;
}

.miniapp-text {
    font-weight: 600;
}

/* ==========================================================================
   品牌图标样式
   ========================================================================== */
/* 网站品牌图标，钓鱼主题 */

.brand-icon {
    font-size: 2rem; /* 图标大小 */
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)); /* 文字阴影 */
}

/* ==========================================================================
   品牌标题样式
   ========================================================================== */
/* 网站品牌标题，使用渐变色彩 */

.brand-title {
    font-size: 1.5rem; /* 标题字体大小 */
    font-weight: 600; /* 标题字重 */
    
    /* 渐变文字效果 - 从橙色到绿色 */
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-green));
    -webkit-background-clip: text; /* WebKit浏览器文字剪贴 */
    -webkit-text-fill-color: transparent; /* WebKit浏览器文字透明 */
    background-clip: text; /* 标准文字剪贴 */
}

/* ==========================================================================
   主内容区域样式
   ========================================================================== */
/* 页面主要内容区域，位于导航栏下方 */

.main-content {
    margin-top: 100px; /* 顶部留出导航栏空间 */
    padding: 2rem 0; /* 上下内边距 */
}

/* ==========================================================================
   页面容器
   ========================================================================== */
/* 页面内容的通用容器，限制最大宽度 */

.container {
    max-width: 1200px; /* 最大宽度 */
    margin: 0 auto; /* 水平居中 */
    padding: 0 1rem; /* 左右内边距 */
}

/* ==========================================================================
   页面标题区域
   ========================================================================== */
/* 页面标题和描述文字的容器 */

.section-title {
    text-align: center; /* 居中对齐 */
    margin-bottom: 3rem; /* 底部外边距 */
}

.section-title h2 {
    font-size: 2.5rem; /* 标题字体大小 */
    font-weight: 700; /* 标题字重 */
    margin-bottom: 0.5rem; /* 标题下方间距 */
    
    /* 渐变文字效果 */
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title p {
    font-size: 1.1rem; /* 描述文字大小 */
    color: var(--text-secondary); /* 描述文字颜色 */
    font-weight: 400; /* 描述文字字重 */
}

/* ==========================================================================
   搜索功能样式
   ========================================================================== */
/* 页面搜索区域，包含搜索输入框和按钮 */

/* 搜索区域容器 */
.search-section {
    margin-bottom: 2.5rem; /* 底部外边距，与下方内容分离 */
}

/* 搜索容器 - 限制搜索区域的最大宽度 */
.search-container {
    max-width: 600px; /* 最大宽度600px */
    margin: 0 auto; /* 水平居中 */
}

/* 搜索输入组 - 水平排列输入框和按钮 */
.search-input-group {
    display: flex; /* 弹性布局 */
    gap: 0.75rem; /* 输入框和按钮之间的间距 */
    margin-bottom: 1rem; /* 底部外边距 */
}

/* 确保搜索按钮在所有情况下都可见 */
.search-input-group .search-btn {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
}

/* ==========================================================================
   搜索输入框样式
   ========================================================================== */

.search-input {
    flex: 1; /* 占据剩余空间 */
    padding: 0.875rem 1rem; /* 内边距 */
    border: 1px solid var(--border-color); /* 边框颜色 */
    border-radius: 12px; /* 圆角 */
    background: rgba(255, 255, 255, 0.05); /* 半透明白色背景 */
    color: var(--text-primary); /* 文字颜色 */
    font-size: 1rem; /* 字体大小 */
    transition: var(--transition); /* 过渡动画 */
    backdrop-filter: var(--blur); /* 毛玻璃效果 */
}

/* 搜索输入框聚焦状态 */
.search-input:focus {
    outline: none; /* 去除默认聚焦边框 */
    border-color: var(--accent-orange); /* 聚焦时边框变为橙色 */
    background: rgba(255, 255, 255, 0.08); /* 聚焦时背景更亮 */
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1); /* 聚焦时阴影效果 */
}

/* 搜索输入框占位符样式 */
.search-input::placeholder {
    color: var(--text-secondary); /* 占位符文字颜色 */
}

/* ==========================================================================
   搜索按钮样式
   ========================================================================== */

.search-btn {
    padding: 0.875rem 1.5rem; /* 按钮内边距 */
    background: linear-gradient(135deg, var(--accent-orange), #ea580c); /* 橙色渐变背景 */
    border: none; /* 无边框 */
    border-radius: 12px; /* 圆角 */
    color: white; /* 文字颜色 */
    font-weight: 600; /* 字体粗细 */
    cursor: pointer; /* 鼠标指针 */
    transition: var(--transition); /* 过渡动画 */
    display: flex !important; /* 弹性布局 */
    align-items: center; /* 垂直居中对齐 */
    gap: 0.5rem; /* 图标和文字之间的间距 */
    min-width: 100px; /* 最小宽度 */
    justify-content: center; /* 水平居中对齐 */
    position: relative; /* 相对定位 */
    z-index: 1; /* 层级 */
    visibility: visible !important; /* 强制可见 */
    opacity: 1 !important; /* 强制不透明 */
}

/* ==========================================================================
   搜索按钮悬停状态
   ========================================================================== */

.search-btn:hover {
    background: linear-gradient(135deg, #ea580c, #dc2626); /* 悬停时更深的橙色 */
    transform: translateY(-1px); /* 悬停时上移 */
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.3); /* 悬停时阴影 */
}

/* ==========================================================================
   搜索按钮点击状态
   ========================================================================== */

.search-btn:active {
    transform: translateY(0); /* 点击时恢复位置 */
}

/* ==========================================================================
   搜索按钮禁用状态
   ========================================================================== */

.search-btn:disabled {
    background: var(--text-secondary); /* 禁用时灰色背景 */
    cursor: not-allowed; /* 禁用时鼠标指针 */
    transform: none !important; /* 禁用时无变换 */
    box-shadow: none !important; /* 禁用时无阴影 */
    opacity: 0.7; /* 禁用时半透明 */
    visibility: visible !important; /* 保持可见 */
    display: flex !important; /* 保持布局 */
}

/* ==========================================================================
   搜索按钮加载状态
   ========================================================================== */

.search-btn.loading {
    background: var(--text-secondary); /* 加载时灰色背景 */
    opacity: 0.7; /* 加载时半透明 */
    cursor: not-allowed; /* 加载时禁用鼠标 */
    visibility: visible !important; /* 保持可见 */
    display: flex !important; /* 保持布局 */
}

/* ==========================================================================
   搜索图标和文字样式
   ========================================================================== */

.search-icon {
    font-size: 1.1rem; /* 图标大小 */
}

.search-text {
    font-size: 0.95rem; /* 文字大小 */
}

/* ==========================================================================
   搜索提示文字样式
   ========================================================================== */

.search-tips {
    text-align: center; /* 居中对齐 */
}

.tips-text {
    font-size: 0.9rem; /* 提示文字大小 */
    color: var(--text-secondary); /* 提示文字颜色 */
    background: rgba(20, 184, 166, 0.1); /* 绿色半透明背景 */
    padding: 0.5rem 1rem; /* 内边距 */
    border-radius: 20px; /* 圆形边框 */
    display: inline-block; /* 行内块元素 */
    border: 1px solid rgba(20, 184, 166, 0.2); /* 绿色边框 */
}

/* 搜索状态样式 */
.search-loading {
    opacity: 0.7;
    pointer-events: none;
}

.search-results {
    margin-top: 1.5rem;
    text-align: center;
}

.search-results-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.no-search-results {
    text-align: center;
    padding: 3rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.no-results-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.no-results-text p {
    margin: 0.5rem 0;
    color: var(--text-secondary);
}

.no-results-text .no-results-hint {
    font-size: 0.9rem;
    opacity: 0.8;
}

.matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
    transition: all 0.3s ease;
    /* 优化滚动性能 */
    transform: translateZ(0);
    backface-visibility: hidden;
}

.matches-grid.scrollable {
    position: relative;
}

.matches-grid.scrollable::after {
    content: "滑动加载更多赛事";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(20, 184, 166, 0.1);
    color: #14b8a6;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    opacity: 0;
    animation: fadeInOut 2s infinite;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

.loading-indicator {
    text-align: center;
    padding: 20px;
    color: #f3f4f6;
    font-size: 14px;
    grid-column: 1 / -1;
}

.spinner {
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-top: 2px solid #14b8a6;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    margin: 10px auto;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (min-width: 768px) {
    .matches-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .matches-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.match-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    backdrop-filter: var(--blur);
    border: 1px solid var(--border-color);
    cursor: pointer;
    position: relative;
}

.match-card:hover {
    transform: translateY(-5px);
    background: var(--card-hover);
    box-shadow: var(--shadow-lg);
    border-color: rgba(249, 115, 22, 0.3);
}

.card-image {
    width: 100%;
    height: 0;
    padding-top: 150%;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-green));
}

.card-image img,
.match-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: var(--transition);
}

.match-card:hover .card-image img,
.match-card:hover .match-image {
    transform: scale(1.05);
}

/* 确保图片加载时显示良好的过渡效果 */
.card-image {
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-green));
}

.card-image img,
.match-image {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-image img.loaded,
.match-image.loaded {
    opacity: 1;
}

/* 处理图片加载失败的情况 */
.card-image::before {
    content: "🎣";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    opacity: 0.3;
    z-index: 0;
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.card-meta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.meta-icon {
    font-size: 1rem;
    width: 1.25rem;
    text-align: center;
}

.date-badge {
    background: linear-gradient(135deg, var(--accent-orange), #ea580c);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 2px 4px rgba(249, 115, 22, 0.3);
    animation: pulse 2s infinite;
}

.status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    backdrop-filter: blur(4px);
    z-index: 1;
}

.match-distance {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.distance-icon {
    font-size: 1rem;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.detail-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--accent-green), #0d9488);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-btn:hover {
    background: linear-gradient(135deg, #0d9488, #0f766e);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(20, 184, 166, 0.4);
}

.loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.detail-page {
    max-width: 800px;
    margin: 0 auto;
}

.detail-header {
    margin-bottom: 2rem;
}

.back-btn {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    backdrop-filter: var(--blur);
}

.back-btn:hover {
    background: var(--card-hover);
    border-color: var(--accent-orange);
    transform: translateX(-5px);
}

.back-icon {
    font-size: 1.2rem;
    font-weight: bold;
}

.detail-content {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: var(--blur);
    border: 1px solid var(--border-color);
}

.detail-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.detail-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.detail-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.rules-section {
    margin-top: 2rem;
}

.rules-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--accent-orange);
}

.rules-list {
    list-style: none;
    padding: 0;
}

.rules-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.rules-list li:before {
    content: "•";
    color: var(--accent-orange);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.rules-list li:last-child {
    border-bottom: none;
}

@media (max-width: 768px) {
    .matches-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .section-title {
        text-align: center;
        padding: 0 1rem;
        margin-top: 1rem;
    }
    
    .section-title h2 {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }
    
    .section-title p {
        font-size: 0.9rem;
    }
    
    .detail-content {
        padding: 1rem;
    }
    
    .detail-title {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .main-content {
        margin-top: 90px;
        padding: 1rem 0;
    }
    
    .nav-container {
        padding: 0 0.75rem;
    }
    
    .nav-brand .brand-title {
        font-size: 1.1rem;
    }
    
    .miniapp-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .miniapp-btn .miniapp-text {
        display: none;
    }
    
    .miniapp-btn .miniapp-icon {
        font-size: 1.2rem;
    }
    
    /* 移动端搜索框样式 */
    .search-section {
        margin-bottom: 2rem;
    }
    
    .search-container {
        max-width: 100%;
        padding: 0 0.5rem;
    }
    
    .search-input-group {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .search-input {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .search-btn {
        padding: 1rem;
        width: 100%;
    }
    
    .search-text {
        display: inline;
    }
}

@media (max-width: 480px) {
    .section-title {
        text-align: center;
        padding: 0 0.5rem;
        margin-top: 0.5rem;
    }
    
    .section-title h2 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .section-title p {
        font-size: 0.85rem;
    }
    
    .nav-brand {
        gap: 0.5rem;
    }
    
    .brand-title {
        font-size: 1rem;
    }
    
    .container {
        padding: 0 0.5rem;
    }
    
    .card-content {
        padding: 1rem;
    }
    
    .detail-meta {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .detail-meta-item {
        padding: 0.75rem;
    }
    
    .detail-meta-label {
        font-size: 0.8rem;
    }
    
    .detail-meta-value {
        font-size: 0.9rem;
    }
    
    .detail-images {
        margin: 1rem 0;
    }
    
    .detail-images img {
        width: 100%;
        height: auto;
        display: block;
        margin-bottom: 0;
    }
    
    .detail-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .main-content {
        margin-top: 80px;
        padding: 0.75rem 0;
    }
    
    .matches-grid {
        gap: 1rem;
        padding: 0 0.5rem;
    }
    
    .match-card {
        margin-bottom: 1rem;
    }
    
    .section-title h2 {
        font-size: 1.5rem;
    }
    
    .section-title p {
        font-size: 0.85rem;
    }
    
    .detail-content {
        padding: 0.75rem;
    }
    
    .detail-title {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
}

/* 小程序二维码模态框样式 */
.miniapp-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.miniapp-modal.show {
    opacity: 1;
    visibility: visible;
}

.miniapp-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.miniapp-modal-content {
    position: relative;
    background: var(--bg-secondary);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    max-width: 400px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.8) translateY(30px);
    transition: all 0.3s ease;
}

.miniapp-modal.show .miniapp-modal-content {
    transform: scale(1) translateY(0);
}

.miniapp-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.miniapp-modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.miniapp-modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.miniapp-modal-close:hover {
    background: var(--card-hover);
    color: var(--text-primary);
}

.miniapp-modal-body {
    padding: 2rem;
    text-align: center;
}

.miniapp-qrcode {
    width: 200px;
    height: 200px;
    border-radius: 12px;
    margin: 0 auto 1.5rem;
    display: block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.miniapp-instructions {
    margin-top: 1rem;
}

.miniapp-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.miniapp-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

/* 移动端适配 */
@media (max-width: 480px) {
    .miniapp-modal-content {
        width: 95%;
        max-width: none;
    }
    
    .miniapp-modal-header {
        padding: 1rem 1.5rem 0.75rem;
    }
    
    .miniapp-modal-body {
        padding: 1.5rem;
    }
    
    .miniapp-qrcode {
        width: 160px;
        height: 160px;
    }
    
    .miniapp-modal-title {
        font-size: 1.125rem;
    }
}