/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #3685ff;
    --primary-green: green;
    --primary-white: white;
    --primary-price: #e67e22;
    --primary-orange: orange;
    --primary-light: #e6f0ff;
    --secondary-color: #64748b;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --border: 1px solid #e6f0ff;
    /*--shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);*/
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    --radius: 8px;

    --primary: #4361ee;
    --secondary: #3a0ca3;
    --accent: #4cc9f0;
    --dark: #212529;
    --success: #4bb543;
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}


/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-blue);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-blue);
    border: 1px solid var(--primary-blue);
}

.btn-secondary:hover {
    background-color: rgba(54, 133, 255, 0.1);
}

.btn-full {
    width: 100%;
}


/* 通用操作按钮 */
.action-btn {
    background: none;
    border: none;
    font-size: 16px;
    color: var(--text-dark);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.action-btn:hover {
    background-color: var(--primary-blue);
    color: var(--primary-blue);
}

/* 基础模态框样式 */
.base-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.base-modal-content {
    background-color: white;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 0;
    width: 90%;
    max-width: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    animation: base-modalFadeIn 0.3s;
}

@keyframes base-modalFadeIn {
    from { opacity: 0; transform: translate(-50%, -60%); /* 从上方一点点进入 */ }
    to { opacity: 1; transform: translate(-50%, -50%); /* 回到中心位置 */ }
}

.base-modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.base-modal-title {
    margin: 0;
    color: #333;
    font-size: 18px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
}

.base-close-btn {
    cursor: pointer;
    font-size: 24px;
    color: #999;
    line-height: 1;
    margin-left: auto;
    visibility: hidden;      /* 隐藏但保留空间 */
    pointer-events: none;    /* 彻底禁用所有交互 */
    user-select: none;       /* 防止意外选中 */
}

.base-close-btn:hover {
    color: #333;
}

.base-modal-body {
    padding: 25px 20px;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 16px;
    line-height: 1.5;
}
.base-modal-body p {
    letter-spacing: 0.8px; /* 推荐值，适中的字间距 */
}

.base-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* 单个按钮时的样式 */
.base-modal-footer.single-button {
    justify-content: center;
}

.base-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    min-width: 80px;
}

.base-btn-primary {
    background-color: #007bff;
    color: white;
}

.base-btn-primary:hover {
    background-color: #0056b3;
}

.base-btn-secondary {
    background-color: #6c757d;
    color: white;
}

.base-btn-secondary:hover {
    background-color: #545b62;
}

.base-btn:focus {
    outline: 2px solid rgba(0,123,255,0.3);
    outline-offset: 2px;
}