/* 通知样式 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 5px;
    color: white;
    font-weight: 500;
    z-index: 10000;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    max-width: 300px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification.success {
    background-color: #27ae60;
    border-left: 4px solid #219653;
}

.notification.error {
    background-color: #e74c3c;
    border-left: 4px solid #c0392b;
}

.notification.info {
    background-color: #3498db;
    border-left: 4px solid #2980b9;
}

/* 重置错误信息样式 */
#resetError {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

/* 确保模态框正确显示 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(3px);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 25px;
    border: none;
    width: 90%;
    max-width: 600px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from {opacity: 0; transform: translateY(-30px);}
    to {opacity: 1; transform: translateY(0);}
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close:hover {
    color: #333;
}

/* 通知样式 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 5px;
    color: white;
    font-weight: 500;
    z-index: 10000;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    max-width: 300px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification.success {
    background-color: #27ae60;
    border-left: 4px solid #219653;
}

.notification.error {
    background-color: #e74c3c;
    border-left: 4px solid #c0392b;
}

.notification.info {
    background-color: #3498db;
    border-left: 4px solid #2980b9;
}

/* 确保模态框正确显示 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(3px);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 25px;
    border: none;
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from {opacity: 0; transform: translateY(-30px);}
    to {opacity: 1; transform: translateY(0);}
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close:hover {
    color: #333;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #2c3e50;
}

.form-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
}

.form-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.form-actions button {
    min-width: 100px;
}

/* 小组详情页特定样式 */
.team-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(0,0,0,0.1);
}

.team-header h1 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.8em;
}

.team-info-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.info-card {
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-align: center;
    background: white;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.info-card h3 {
    margin-top: 0;
    color: #7f8c8d;
    font-size: 1.1em;
}

.info-card p {
    margin: 8px 0;
    font-size: 1.1em;
}

.info-card .score {
    font-size: 1.8em;
    font-weight: bold;
    color: #2c3e50;
}

/* 图表区域 */
.charts-section {
    margin: 20px 0;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.period-selector {
    display: flex;
    margin-bottom: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 10px;
}

.period-btn {
    flex: 1;
    margin: 5px;
    padding: 10px;
    text-align: center;
    background: #e9ecef;
    color: #6c757d;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.period-btn.active {
    background: linear-gradient(145deg, #3498db, #2980b9);
    color: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.period-btn:hover {
    background: #dee2e6;
}

.period-btn.active:hover {
    background: linear-gradient(145deg, #2980b9, #3498db);
}

.chart-container {
    position: relative;
    height: 300px;
    margin: 15px 0;
}

/* 积分记录 */
.points-log {
    margin: 20px 0;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.table-container {
    overflow-x: auto;
    margin-top: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eaeaea;
}

th {
    background: linear-gradient(145deg, #2c3e50, #34495e);
    color: white;
    font-weight: 600;
    position: sticky;
    top: 0;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

tr:hover {
    background-color: #f1f8ff;
}

.positive {
    color: #27ae60;
    font-weight: bold;
}

.negative {
    color: #e74c3c;
    font-weight: bold;
}

/* 加减分区域 */
.points-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 30px;
}

.add-points, .subtract-points {
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.add-points h3 {
    color: #27ae60;
    border-bottom: 2px solid #27ae60;
    padding-bottom: 10px;
}

.subtract-points h3 {
    color: #e74c3c;
    border-bottom: 2px solid #e74c3c;
    padding-bottom: 10px;
}

.quick-level, .quick-basic {
    margin-bottom: 20px;
}

.quick-level h4, .quick-basic h4 {
    margin-bottom: 12px;
    color: #34495e;
    font-size: 1em;
}

.quick-level-buttons, .quick-basic-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.quick-level-buttons button, .quick-basic-buttons button {
    flex: 1;
    min-width: 80px;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    background: linear-gradient(145deg, #3498db, #2980b9);
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-level-buttons button:hover, .quick-basic-buttons button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.add-points .quick-level-buttons button,
.add-points .quick-basic-buttons button {
    background: linear-gradient(145deg, #27ae60, #219653);
}

.subtract-points .quick-level-buttons button,
.subtract-points .quick-basic-buttons button {
    background: linear-gradient(145deg, #e74c3c, #c0392b);
}

.custom-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.custom-section input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.custom-section button {
    flex: 0 0 auto;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    background: linear-gradient(145deg, #3498db, #2980b9);
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.custom-section button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.add-points .custom-section button {
    background: linear-gradient(145deg, #27ae60, #219653);
}

.subtract-points .custom-section button {
    background: linear-gradient(145deg, #e74c3c, #c0392b);
}

.undo-section {
    grid-column: 1 / span 2;
    text-align: center;
    margin-top: 20px;
}

#undoLast {
    background: linear-gradient(145deg, #e74c3c, #c0392b);
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

#undoLast:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .team-info-cards {
        grid-template-columns: 1fr 1fr;
    }

    .points-actions {
        grid-template-columns: 1fr;
    }

    .team-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .period-selector {
        flex-direction: column;
    }

    .quick-level-buttons, .quick-basic-buttons {
        flex-direction: column;
    }

    .custom-section {
        flex-direction: column;
        align-items: stretch;
    }

    .custom-section button {
        width: 100%;
    }
}

/* 通知样式 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 5px;
    color: white;
    font-weight: 500;
    z-index: 10000;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    max-width: 300px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification.success {
    background-color: #27ae60;
    border-left: 4px solid #219653;
}

.notification.error {
    background-color: #e74c3c;
    border-left: 4px solid #c0392b;
}

.notification.info {
    background-color: #3498db;
    border-left: 4px solid #2980b9;
}

/* 确保模态框正确显示 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(3px);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 25px;
    border: none;
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from {opacity: 0; transform: translateY(-30px);}
    to {opacity: 1; transform: translateY(0);}
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close:hover {
    color: #333;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #2c3e50;
}

.form-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
}

.form-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.form-actions button {
    min-width: 100px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .team-info-cards {
        grid-template-columns: 1fr 1fr;
    }

    .points-actions {
        grid-template-columns: 1fr;
    }

    .team-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .period-selector {
        flex-direction: column;
    }

    .quick-level-buttons, .quick-basic-buttons {
        flex-direction: column;
    }

    .custom-section {
        flex-direction: column;
        align-items: stretch;
    }

    .custom-section button {
        width: 100%;
    }
}

/* 全局样式 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 标题样式 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(0,0,0,0.1);
}

.header h1 {
    margin: 0;
    color: #2c3e50;
    font-size: 2em;
    font-weight: 600;
}

/* 按钮样式 */
button {
    padding: 10px 18px;
    margin: 6px;
    border: none;
    border-radius: 6px;
    background: linear-gradient(145deg, #3498db, #2980b9);
    color: white;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 3px 5px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 8px rgba(0,0,0,0.15);
}

button:active {
    transform: translateY(0);
    box-shadow: 0 2px 3px rgba(0,0,0,0.1);
}

/* 操作区域 */
.actions {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
}

/* 主页卡片样式 */
.teams-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.team-card {
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: rgba(255,255,255,0.5);
}

.team-card h2 {
    margin: 0;
    font-size: 1.3em;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.team-card p {
    margin: 5px 0;
    font-size: 0.9em;
}

.team-card .score {
    font-size: 2.2em;
    font-weight: bold;
    margin: 5px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.team-card button {
    padding: 6px 12px;
    font-size: 0.85em;
    margin-top: 5px;
}

/* 卡片颜色 */
.color-1 { background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%); }
.color-2 { background: linear-gradient(135deg, #48dbfb 0%, #0abde3 100%); }
.color-3 { background: linear-gradient(135deg, #feca57 0%, #ff9f43 100%); }
.color-4 { background: linear-gradient(135deg, #1dd1a1 0%, #10ac84 100%); }
.color-5 { background: linear-gradient(135deg, #00d2d3 0%, #54a0ff 100%); }
.color-6 { background: linear-gradient(135deg, #5f27cd 0%, #341f97 100%); }

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(3px);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 25px;
    border: none;
    width: 90%;
    max-width: 600px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from {opacity: 0; transform: translateY(-30px);}
    to {opacity: 1; transform: translateY(0);}
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close:hover {
    color: #333;
}

/* 小组选择样式 */
.team-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.team-selection-item {
    padding: 15px;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.team-selection-item:hover {
    border-color: #3498db;
    box-shadow: 0 3px 8px rgba(52, 152, 219, 0.1);
    transform: translateY(-2px);
}

.team-selection-item h3 {
    margin: 0 0 5px 0;
    color: #2c3e50;
}

.team-selection-item p {
    margin: 0;
    color: #7f8c8d;
    font-size: 0.9em;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #2c3e50;
}

.form-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
}

.form-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.form-actions button {
    min-width: 100px;
}


/* 小组详情页样式 */
.team-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(0,0,0,0.1);
}

.team-header h1 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.8em;
}

.team-info-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.info-card {
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-align: center;
    background: white;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.info-card h3 {
    margin-top: 0;
    color: #7f8c8d;
    font-size: 1.1em;
}

.info-card p {
    margin: 8px 0;
    font-size: 1.1em;
}

.info-card .score {
    font-size: 1.8em;
    font-weight: bold;
    color: #2c3e50;
}

/* 图表区域 */
.charts-section {
    margin: 20px 0;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.period-selector {
    display: flex;
    margin-bottom: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 10px;
}

.period-btn {
    flex: 1;
    margin: 5px;
    padding: 10px;
    text-align: center;
    background: #e9ecef;
    color: #6c757d;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.period-btn.active {
    background: linear-gradient(145deg, #3498db, #2980b9);
    color: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.chart-container {
    position: relative;
    height: 300px;
    margin: 15px 0;
}

/* 积分记录 */
.points-log {
    margin: 20px 0;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.table-container {
    overflow-x: auto;
    margin-top: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eaeaea;
}

th {
    background: linear-gradient(145deg, #2c3e50, #34495e);
    color: white;
    font-weight: 600;
    position: sticky;
    top: 0;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

tr:hover {
    background-color: #f1f8ff;
}

.positive {
    color: #27ae60;
    font-weight: bold;
}

.negative {
    color: #e74c3c;
    font-weight: bold;
}

/* 加减分区域 */
.points-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 30px;
}

.add-points, .subtract-points {
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.add-points h3 {
    color: #27ae60;
    border-bottom: 2px solid #27ae60;
    padding-bottom: 10px;
}

.subtract-points h3 {
    color: #e74c3c;
    border-bottom: 2px solid #e74c3c;
    padding-bottom: 10px;
}

.quick-level, .quick-basic {
    margin-bottom: 20px;
}

.quick-level h4, .quick-basic h4 {
    margin-bottom: 12px;
    color: #34495e;
    font-size: 1em;
}

.quick-level-buttons, .quick-basic-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.quick-level-buttons button, .quick-basic-buttons button {
    flex: 1;
    min-width: 80px;
}

.custom-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.custom-section input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.custom-section button {
    flex: 0 0 auto;
}

.undo-section {
    grid-column: 1 / span 2;
    text-align: center;
    margin-top: 20px;
}

#undoLast {
    background: linear-gradient(145deg, #e74c3c, #c0392b);
    padding: 10px 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .teams-container {
        grid-template-columns: 1fr;
    }

    .team-info-cards {
        grid-template-columns: 1fr 1fr;
    }

    .points-actions {
        grid-template-columns: 1fr;
    }

    .header, .team-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .container {
        padding: 10px;
    }

    h1 {
        font-size: 1.8em;
    }

    .team-selection {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions button {
        width: 100%;
    }
}

/* 优化返回教师工具箱按钮样式 - 调整到右下角 */
.home-btn {
    /* 关键修改：从右上角调整到右下角 */
    position: fixed;
    bottom: 15px; /* 距离底部的距离 */
    right: 15px;  /* 距离右侧的距离 */

    /* 保持紧凑尺寸 */
    padding: 6px 12px;
    font-size: 14px;

    background-color: #4a6fa5;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    z-index: 1000; /* 确保在其他内容上方 */
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* 增加轻微阴影提升辨识度 */
}

/* 悬停效果 */
.home-btn:hover {
    background-color: #3a5a8c;
    padding: 8px 16px;
    font-size: 15px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

/* 小屏幕适配 */
@media (max-width: 768px) {
    .home-btn {
        padding: 4px 8px;
        font-size: 12px;
        bottom: 10px;
        right: 10px;
    }
}

#cardVerificationModal .modal-content {
    max-width: 400px;
}

.verification-required {
    filter: blur(5px);
    pointer-events: none;
}