* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    /* 禁用双击缩放 */
    touch-action: manipulation;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', sans-serif;
    background: #f0f2f5;
    color: #333;
    /* 禁用双击缩放 */
    touch-action: manipulation;
}

.header {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.logo {
    font-size: 20px;
    font-weight: 600;
    color: #1890ff;
}

.header-right {
    color: #666;
    font-size: 14px;
}

.main-container {
    margin-top: 64px;
    padding: 8px 4px;
    /* 移除最小高度，让内容自适应 */
}

.content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
}

.tabs {
    background: #fff;
    border-radius: 2px;
    margin-bottom: 16px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.tab-list {
    display: flex;
    border-bottom: 1px solid #f0f0f0;
}

.tab-item {
    padding: 16px 24px;
    cursor: pointer;
    color: #666;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
    font-size: 14px;
}

.tab-item:hover { color: #1890ff; }
.tab-item.active {
    color: #1890ff;
    border-bottom-color: #1890ff;
}

.tab-content { display: none; }
.tab-content.active { display: block; }

.card {
    background: #fff;
    border-radius: 2px;
    padding: 12px 4px;
    margin-bottom: 12px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.card-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 16px;
    color: #262626;
}

.mode-card-small {
    padding: 8px 20px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    color: #666;
}

.mode-card-small:hover {
    border-color: #1890ff;
    color: #1890ff;
}

.mode-card-small.active {
    border-color: #1890ff;
    background: #1890ff;
    color: #fff;
}

.upload-wrapper {
    margin-bottom: 12px;
}

.upload-label {
    display: block;
    font-size: 12px;
    color: #8c8c8c;
    margin-bottom: 8px;
}

.upload-area {
    border: 1px dashed #d9d9d9;
    border-radius: 2px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #fafafa;
}

.upload-area:hover {
    border-color: #1890ff;
    background: #fff;
}

.upload-text { font-size: 14px; color: #8c8c8c; }

.upload-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid #d9d9d9;
    border-radius: 2px;
    background: #fff;
}

.upload-preview img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 2px;
}

.form-item {
    margin-bottom: 12px;
}

.form-label {
    display: block;
    font-size: 14px;
    color: #262626;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #d9d9d9;
    border-radius: 2px;
    font-size: 14px;
    transition: all 0.3s;
}

.form-input:hover { border-color: #40a9ff; }
.form-input:focus {
    border-color: #40a9ff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(24,144,255,0.1);
}

.btn {
    height: 40px;
    padding: 0 24px;
    border: none;
    border-radius: 2px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: #1890ff;
    color: #fff;
}

.btn-primary:hover { background: #40a9ff; }

.btn-success {
    background: #52c41a;
    color: #fff;
}

.btn-success:hover { background: #73d13d; }

.btn-block {
    width: 100%;
    height: 48px;
    font-size: 16px;
}

.list-item {
    padding: 16px;
    border: 1px solid #f0f0f0;
    border-radius: 2px;
    margin-bottom: 8px;
    transition: all 0.3s;
    background: #fff;
}

.list-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.list-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.list-item-title {
    font-size: 14px;
    font-weight: 500;
    color: #262626;
}

.list-item-content {
    font-size: 14px;
    color: #595959;
}

.match-card {
    border: 1px solid #f0f0f0;
    border-radius: 2px;
    padding: 20px;
    margin-bottom: 16px;
    background: #fff;
}

.match-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.match-card-title {
    font-size: 16px;
    font-weight: 500;
    color: #262626;
}

.match-card-total {
    font-size: 14px;
    color: #52c41a;
    font-weight: 500;
}

.match-member {
    padding: 12px;
    background: #fafafa;
    border-radius: 2px;
    margin-bottom: 8px;
    font-size: 14px;
}

.match-member-name {
    color: #262626;
    font-weight: 500;
    margin-bottom: 4px;
}

.match-member-link {
    color: #1890ff;
    text-decoration: none;
    word-break: break-all;
    font-size: 12px;
}

.match-member-link:hover {
    text-decoration: underline;
}

.empty {
    text-align: center;
    padding: 64px 0;
}

.empty-text {
    font-size: 14px;
    color: #8c8c8c;
    margin-bottom: 16px;
}

.alert {
    padding: 12px 16px;
    border-radius: 2px;
    margin-bottom: 16px;
    font-size: 14px;
}

.alert-info {
    background: #e6f7ff;
    border: 1px solid #91d5ff;
    color: #0050b3;
}

.alert-list {
    margin: 8px 0 0 20px;
    line-height: 1.8;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.stat-card {
    background: #fff;
    padding: 20px;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.stat-label {
    font-size: 14px;
    color: #8c8c8c;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 32px;
    font-weight: 500;
    color: #262626;
}

.hall-section {
    margin-bottom: 24px;
}

.hall-section-title {
    font-size: 14px;
    font-weight: 500;
    color: #8c8c8c;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.45);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #fff;
    border-radius: 2px;
    width: 90%;
    max-width: 520px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    padding: 16px 24px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 16px;
    font-weight: 500;
    color: #262626;
}

.modal-close {
    cursor: pointer;
    font-size: 20px;
    color: #8c8c8c;
    line-height: 1;
}

.modal-close:hover { color: #262626; }

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 10px 16px;
    border-top: 1px solid #f0f0f0;
    text-align: right;
}

.modal-footer .btn {
    margin-left: 8px;
}

.match-success-header {
    text-align: center;
    font-size: 24px;
    font-weight: 500;
    color: #52c41a;
    margin-bottom: 16px;
}

.match-success-info {
    text-align: center;
    font-size: 16px;
    color: #262626;
    margin-bottom: 24px;
}

.match-members {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.match-member-card {
    background: #fafafa;
    padding: 16px;
    border-radius: 2px;
    border-left: 3px solid #1890ff;
}

.match-member-score {
    font-size: 18px;
    font-weight: 500;
    color: #262626;
    margin-bottom: 8px;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #8c8c8c;
}

.hall-tabs {
    display: flex;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 16px;
}

.hall-tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    color: #666;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
    font-size: 14px;
}

.hall-tab:hover { color: #1890ff; }
.hall-tab.active {
    color: #1890ff;
    border-bottom-color: #1890ff;
}

.hall-tab-content { display: none; }
.hall-tab-content.active { display: block; }

.score-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
    margin-bottom: 16px;
}

.score-btn {
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    padding: 10px 6px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.score-btn:hover {
    border-color: #1890ff;
    box-shadow: 0 2px 8px rgba(24,144,255,0.15);
    transform: translateY(-2px);
}

.score-id {
    font-size: 10px;
    color: #8c8c8c;
    margin-bottom: 4px;
}

.score-number {
    font-size: 22px;
    font-weight: 600;
    color: #1890ff;
    margin-bottom: 4px;
}

.score-time {
    font-size: 10px;
    color: #8c8c8c;
}

.duo-score-btn {
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    padding: 10px 6px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.duo-score-btn:hover {
    border-color: #fa8c16;
    box-shadow: 0 2px 8px rgba(250,140,22,0.15);
    transform: translateY(-2px);
}

.duo-score-number {
    font-size: 16px;
    font-weight: 600;
    color: #fa8c16;
    margin-bottom: 4px;
}

.duo-score-need {
    font-size: 13px;
    color: #ff4d4f;
    margin-bottom: 4px;
    font-weight: 500;
}

.duo-score-time {
    font-size: 10px;
    color: #8c8c8c;
}

.footer {
    background: #fff;
    border-top: 1px solid #f0f0f0;
    margin-top: 0;
    padding: 20px 20px 15px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-section {
    margin-bottom: 20px;
}

.footer-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: #262626;
    margin-bottom: 10px;
}

.footer-section p {
    font-size: 12px;
    color: #8c8c8c;
    line-height: 1.8;
    margin: 0;
}

.footer-copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    margin-top: 20px;
}

.footer-copyright p {
    font-size: 12px;
    color: #8c8c8c;
    margin: 5px 0;
}

.hall-rect-btn {
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    padding: 8px 4px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    min-height: 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hall-rect-btn:hover {
    border-color: #1890ff;
    box-shadow: 0 2px 8px rgba(24,144,255,0.15);
    transform: translateY(-2px);
}

.hall-rect-btn.duo:hover {
    border-color: #ff4d4f;
    box-shadow: 0 2px 8px rgba(255,77,79,0.15);
}

@media (max-width: 768px) {
    .score-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}

@media (max-width: 480px) {
    .score-grid {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    }
}


/* 广告区样式 */
.ad-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    animation: adPulse 2s ease-in-out infinite;
}

@keyframes adPulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    }
    50% {
        box-shadow: 0 4px 16px rgba(102, 126, 234, 0.5);
    }
}

.ad-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.ad-icon {
    font-size: 32px;
    animation: adBounce 1s ease-in-out infinite;
}

@keyframes adBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.ad-text {
    color: #fff;
}

.ad-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.ad-desc {
    font-size: 12px;
    opacity: 0.9;
}

.ad-button {
    background: #fff;
    color: #667eea;
    border: none;
    padding: 10px 24px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s;
}

.ad-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.ad-button:active {
    transform: translateY(0);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .ad-banner {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .ad-content {
        flex-direction: column;
        gap: 8px;
    }
    
    .ad-button {
        width: 100%;
    }
}
