/* PC端专属高级样式 - 分项赛报名系统 */

body {
    background-color: #f4f6f9;
    font-family: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
}

/* 主容器，仿成绩查询页 */
.score-wrapper {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.05);
    min-height: 550px;
    margin: 40px auto;
    padding: 40px 50px;
    box-sizing: border-box;
}

/* 页面大标题 */
.score-header {
    text-align: center;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 25px;
    margin-bottom: 35px;
}
.score-header h1 {
    font-size: 30px;
    color: #222;
    letter-spacing: 2px;
    margin: 0;
    font-weight: 700;
}

/* 列表表格通用样式 */
.score-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0,0,0,0.02);
    margin: 20px 0;
}
.score-table th, .score-table td {
    padding: 18px 15px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}
.score-table th {
    background: #e74c3c;
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 1px;
}
.score-table td {
    font-size: 15px;
    color: #444;
}
.score-table tbody tr {
    transition: background 0.2s;
}
.score-table tbody tr:hover {
    background: #fdf2f1;
}

/* 按钮组件 */
.btn-primary {
    background: linear-gradient(90deg, #ff6b6b, #e74c3c);
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 12px 35px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(231,76,60,0.3);
    transition: all 0.3s;
    text-align: center;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(231,76,60,0.4);
}
.btn-primary:active {
    transform: translateY(0);
}
.btn-secondary {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
    border-radius: 30px;
    padding: 12px 35px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    text-align: center;
    box-sizing: border-box;
}
.btn-secondary:hover {
    background: #e2e8f0;
    color: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.btn-secondary:active {
    transform: translateY(0);
}

/* 暂无数据提示 */
.no-data {
    text-align: center;
    padding: 80px 20px;
}
.no-data i {
    font-size: 48px;
    color: #ccc;
    margin-bottom: 15px;
    display: block;
}
.no-data p {
    color: #8e8e93;
    font-size: 16px;
    margin: 0;
}

/* ================= 录入页双栏布局 ================= */
.enter-container {
    display: flex;
    gap: 40px;
}
.enter-left {
    flex: 1.2;
    background: #fafbfc;
    border-radius: 12px;
    padding: 30px;
    border: 1px solid #f0f0f0;
}
.enter-right {
    flex: 1;
    background: #fafbfc;
    border-radius: 12px;
    padding: 30px;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
}

.section-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 25px;
    border-left: 4px solid #e74c3c;
    padding-left: 12px;
    line-height: 1.2;
}

/* 表单输入控件 */
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-size: 15px;
    font-weight: 500;
    color: #555;
    margin-bottom: 8px;
}
.form-control {
    width: 100%;
    box-sizing: border-box;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 16px;
    color: #333;
    outline: none;
    transition: all 0.3s;
    background: #fff;
}
.form-control:focus {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231,76,60,0.1);
}

/* 足环多字段录入 */
.ring-inputs-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}
.ring-input-short {
    width: 80px;
    text-align: center;
}
.ring-input-mid {
    width: 70px;
    text-align: center;
}
.ring-input-long {
    flex: 1;
}
.ring-split {
    font-weight: bold;
    font-size: 18px;
    color: #a0aec0;
}

.ring-tip {
    font-size: 13px;
    color: #e74c3c;
    background: #fff5f5;
    border-left: 3px solid #e74c3c;
    padding: 10px 12px;
    border-radius: 0 6px 6px 0;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* 足环显示展示盒 */
.ring-display-box {
    background: #fff;
    border: 2px dashed #e2e8f0;
    border-radius: 8px;
    min-height: 180px;
    padding: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-content: flex-start;
    overflow-y: auto;
    max-height: 250px;
}
.ring-tag-item {
    background: #f1f5f9;
    color: #334155;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #e2e8f0;
}
.ring-tag-item .del-tag {
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.2s;
    font-size: 16px;
    line-height: 1;
}
.ring-tag-item .del-tag:hover {
    color: #e74c3c;
}

.enter-summary-bar {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.summary-text {
    font-size: 16px;
    color: #666;
}
.summary-text span {
    font-size: 24px;
    color: #e74c3c;
    font-weight: bold;
    margin: 0 4px;
}

/* ================= 矩阵选卡表格页面 ================= */
.matrix-container-pc {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.01);
    margin-bottom: 30px;
}
.matrix-table-pc {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}
.matrix-table-pc th, .matrix-table-pc td {
    border: 1px solid #e2e8f0;
    padding: 12px 10px;
    text-align: center;
    font-size: 14px;
}
.matrix-table-pc thead th {
    background: #f8fafc;
    font-weight: 600;
    color: #334155;
}
.matrix-table-pc thead tr:first-child th {
    font-size: 15px;
    background: #f1f5f9;
}
/* 列固定宽度 */
.matrix-table-pc .col-idx {
    width: 50px;
    font-weight: bold;
    color: #64748b;
    background: #f8fafc;
}
.matrix-table-pc .col-ring {
    min-width: 150px;
    font-weight: 600;
    color: #1e293b;
    background: #f8fafc;
}
.matrix-table-pc .col-subtotal {
    font-weight: bold;
    color: #e74c3c;
    background: #f8fafc;
    min-width: 80px;
}

/* 复选框美化 */
.matrix-table-pc .cell-checkbox {
    display: none;
}
.matrix-table-pc .cell-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
    color: transparent;
}
.matrix-table-pc .cell-checkbox:checked + .cell-label {
    background: #e74c3c;
    border-color: #e74c3c;
    color: #fff;
}
.matrix-table-pc .cell-label:hover {
    border-color: #94a3b8;
}
.matrix-table-pc .cell-label i {
    width: 16px;
    height: 16px;
}

/* 轮换背景色（组别第一层） */
.matrix-table-pc th.gc-0 { background: #fee2e2 !important; border-bottom: 2px solid #ef4444 !important; }
.matrix-table-pc th.gc-1 { background: #ffedd5 !important; border-bottom: 2px solid #f97316 !important; }
.matrix-table-pc th.gc-2 { background: #fef9c3 !important; border-bottom: 2px solid #eab308 !important; }
.matrix-table-pc th.gc-3 { background: #dcfce7 !important; border-bottom: 2px solid #22c55e !important; }
.matrix-table-pc th.gc-4 { background: #e0f2fe !important; border-bottom: 2px solid #3b82f6 !important; }
.matrix-table-pc th.gc-5 { background: #fae8ff !important; border-bottom: 2px solid #d946ef !important; }

/* 结算控制面板 */
.matrix-summary-panel {
    background: #fafbfc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
}
.summary-info {
    display: flex;
    gap: 40px;
}
.summary-info-item {
    display: flex;
    flex-direction: column;
}
.summary-info-item .label {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 5px;
}
.summary-info-item .val {
    font-size: 28px;
    font-weight: bold;
    color: #1e293b;
}
.summary-info-item .val.price {
    color: #e74c3c;
}

/* ================= iOS 弹窗在 PC 的兼容美化 ================= */
.ios-modal-wrap {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.ios-modal {
    background: #fff;
    border-radius: 12px;
    width: 380px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    overflow: hidden;
    animation: zoomIn 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.ios-modal-title {
    padding: 20px 20px 10px;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    color: #222;
}
.ios-modal-text {
    padding: 10px 25px 25px;
    font-size: 15px;
    color: #666;
    text-align: center;
    line-height: 1.5;
}
.ios-modal-footer {
    display: flex;
    border-top: 1px solid #f0f0f0;
}
.ios-modal-footer button {
    flex: 1;
    border: none;
    background: none;
    padding: 15px;
    font-size: 16px;
    cursor: pointer;
    outline: none;
    transition: background 0.2s;
    color: #007aff;
}
.ios-modal-footer button.bold {
    font-weight: bold;
}
.ios-modal-footer button:hover {
    background: #f9f9f9;
}
.ios-modal-footer button:active {
    background: #f0f0f0;
}

/* 核对账单抽屉/覆盖层 */
.ios-sheet-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.ios-sheet-card {
    background: #fff;
    border-radius: 12px;
    width: 500px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    overflow: hidden;
    animation: slideUp 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.ios-sheet-header {
    padding: 25px 25px 15px;
    border-bottom: 1px solid #f0f0f0;
}
.ios-sheet-header h3 {
    margin: 0 0 5px;
    font-size: 20px;
    color: #111;
    font-weight: bold;
}
.ios-sheet-header p {
    margin: 0;
    font-size: 14px;
    color: #8e8e93;
}
.ios-sheet-body {
    padding: 25px;
    max-height: 350px;
    overflow-y: auto;
    background: #fafbfc;
}
.ios-sheet-footer {
    padding: 15px 25px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: #fff;
}
.ios-btn {
    border: none;
    border-radius: 6px;
    padding: 10px 24px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
.ios-btn-cancel {
    background: #f1f5f9;
    color: #475569;
}
.ios-btn-cancel:hover {
    background: #e2e8f0;
}
.ios-btn-primary {
    background: #e74c3c;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(231,76,60,0.25);
}
.ios-btn-primary:hover {
    background: #d63031;
    box-shadow: 0 4px 12px rgba(231,76,60,0.35);
}

/* 结算单项目列表 */
.review-ring-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 12px;
}
.review-ring-title {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    color: #1e293b;
    border-bottom: 1px dashed #e2e8f0;
    padding-bottom: 8px;
    margin-bottom: 8px;
}
.review-ring-specs {
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
}
.ios-total-row {
    font-size: 18px;
    font-weight: bold;
    color: #e74c3c;
    text-align: right;
    margin-top: 20px;
}

/* 支付选项 */
.ios-pay-option {
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.2s;
}
.ios-pay-option.active {
    border-color: #007aff;
    background: #f0f7ff;
}
.ios-pay-option.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.ios-pay-icon {
    width: 40px;
    height: 40px;
    background: #e0f2fe;
    color: #0284c7;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 20px;
}
.ios-pay-icon.gray {
    background: #f1f5f9;
    color: #64748b;
}
.ios-pay-text h4 {
    margin: 0 0 3px;
    font-size: 16px;
    color: #1e293b;
}
.ios-pay-text p {
    margin: 0;
    font-size: 13px;
    color: #64748b;
}

/* 动画特效 */
@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
