/* 云兔运车商户后台 - 通用样式 */

/* CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
}

/* 容器 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 卡片样式 */
.card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(26, 43, 76, 0.1);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card:hover {
    box-shadow: 0 6px 30px rgba(26, 43, 76, 0.15);
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    background: #1a2b4c;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn:hover {
    background: #243a5e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 43, 76, 0.3);
}

.btn:active {
    transform: translateY(0);
}

.btn-outline {
    color: #1a2b4c;
    background: transparent;
    border: 2px solid #1a2b4c;
}

.btn-outline:hover {
    background: #1a2b4c;
    color: #fff;
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* 输入框样式 */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.form-label .required {
    color: #e74c3c;
    margin-left: 4px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    color: #333;
    background: #f8f9fa;
    border: 1px solid #e1e5eb;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #1a2b4c;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(26, 43, 76, 0.1);
}

.form-input::placeholder {
    color: #adb5bd;
}

.form-input.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.form-error {
    margin-top: 6px;
    font-size: 12px;
    color: #e74c3c;
}

/* 复选框样式 */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #1a2b4c;
    cursor: pointer;
}

.checkbox-wrapper a {
    color: #1a2b4c;
    text-decoration: none;
}

.checkbox-wrapper a:hover {
    text-decoration: underline;
}

/* 链接样式 */
.link {
    color: #1a2b4c;
    text-decoration: none;
    transition: color 0.3s ease;
}

.link:hover {
    color: #243a5e;
    text-decoration: underline;
}

/* 工具类 */
.text-center {
    text-align: center;
}

.mt-10 {
    margin-top: 10px;
}

.mt-20 {
    margin-top: 20px;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* 验证码按钮 */
.verify-code-btn {
    padding: 12px 16px;
    font-size: 13px;
    background: #f8f9fa;
    border: 1px solid #e1e5eb;
    border-radius: 8px;
    color: #1a2b4c;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.verify-code-btn:hover:not(:disabled) {
    background: #1a2b4c;
    color: #fff;
}

.verify-code-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 验证码输入组 */
.input-group {
    display: flex;
    gap: 10px;
}

.input-group .form-input {
    flex: 1;
}

/* 响应式 */
@media (max-width: 768px) {
    body {
        font-size: 13px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .form-input {
        padding: 10px 14px;
    }

    .input-group {
        flex-direction: column;
    }

    .verify-code-btn {
        width: 100%;
    }
}

/* 动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease;
}
