/* ============================================================================
   天机阁 - 统一设计规范样式表
   ============================================================================ */

/* 按钮样式规范
   ============================================================================ */

/* 主要按钮 - 金色渐变 (主要操作) */
.btn-custom-primary,
.btn-primary {
    background: linear-gradient(135deg, #D4AF37, #F4E4C1) !important;
    color: #483c32 !important;
    border: none !important;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
}

.btn-custom-primary:hover,
.btn-primary:hover {
    background: linear-gradient(135deg, #F4E4C1, #D4AF37) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(212, 175, 55, 0.4);
    color: #483c32 !important;
}

.btn-custom-primary:active,
.btn-primary:active {
    transform: translateY(0);
}

/* 次要按钮 - 棕色渐变 */
.btn-custom-secondary,
.btn-secondary {
    background: linear-gradient(135deg, #774936, #a47e3b) !important;
    color: white !important;
    border: none !important;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(119, 73, 54, 0.3);
}

.btn-custom-secondary:hover,
.btn-secondary:hover {
    background: linear-gradient(135deg, #a47e3b, #774936) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(119, 73, 54, 0.4);
    color: white !important;
}

/* 成功按钮 - 绿色 */
.btn-custom-success,
.btn-success {
    background: linear-gradient(135deg, #638464, #7a9a7c) !important;
    color: white !important;
    border: none !important;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(99, 132, 100, 0.3);
}

.btn-custom-success:hover,
.btn-success:hover {
    background: linear-gradient(135deg, #7a9a7c, #638464) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(99, 132, 100, 0.4);
    color: white !important;
}

/* 危险按钮 - 红色 */
.btn-custom-danger,
.btn-danger {
    background: linear-gradient(135deg, #B22222, #DC143C) !important;
    color: white !important;
    border: none !important;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(178, 34, 34, 0.3);
}

.btn-custom-danger:hover,
.btn-danger:hover {
    background: linear-gradient(135deg, #DC143C, #B22222) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(178, 34, 34, 0.4);
    color: white !important;
}

/* 信息按钮 - 蓝色 */
.btn-custom-info,
.btn-info {
    background: linear-gradient(135deg, #4A90E2, #6ba3e8) !important;
    color: white !important;
    border: none !important;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(74, 144, 226, 0.3);
}

.btn-custom-info:hover,
.btn-info:hover {
    background: linear-gradient(135deg, #6ba3e8, #4A90E2) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(74, 144, 226, 0.4);
    color: white !important;
}

/* 警告按钮 - 橙色 */
.btn-custom-warning,
.btn-warning {
    background: linear-gradient(135deg, #FFA500, #FFB733) !important;
    color: white !important;
    border: none !important;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(255, 165, 0, 0.3);
}

.btn-custom-warning:hover,
.btn-warning:hover {
    background: linear-gradient(135deg, #FFB733, #FFA500) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 165, 0, 0.4);
    color: white !important;
}

/* 轮廓按钮样式 */
.btn-outline-primary {
    border: 2px solid #D4AF37 !important;
    color: #D4AF37 !important;
    background: transparent !important;
    padding: 0.65rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: #D4AF37 !important;
    color: white !important;
    transform: translateY(-2px);
}

.btn-outline-secondary {
    border: 2px solid #774936 !important;
    color: #774936 !important;
    background: transparent !important;
    padding: 0.65rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    background: #774936 !important;
    color: white !important;
    transform: translateY(-2px);
}

.btn-outline-success {
    border: 2px solid #638464 !important;
    color: #638464 !important;
    background: transparent !important;
    padding: 0.65rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-success:hover {
    background: #638464 !important;
    color: white !important;
    transform: translateY(-2px);
}

.btn-outline-warning {
    border: 2px solid #FFA500 !important;
    color: #FFA500 !important;
    background: transparent !important;
    padding: 0.65rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-warning:hover {
    background: #FFA500 !important;
    color: white !important;
    transform: translateY(-2px);
}

.btn-outline-info {
    border: 2px solid #4A90E2 !important;
    color: #4A90E2 !important;
    background: transparent !important;
    padding: 0.65rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-info:hover {
    background: #4A90E2 !important;
    color: white !important;
    transform: translateY(-2px);
}

.btn-outline-danger {
    border: 2px solid #B22222 !important;
    color: #B22222 !important;
    background: transparent !important;
    padding: 0.65rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-danger:hover {
    background: #B22222 !important;
    color: white !important;
    transform: translateY(-2px);
}

/* 按钮尺寸 */
.btn-lg {
    padding: 1rem 2rem !important;
    font-size: 1.1rem !important;
}

.btn-sm {
    padding: 0.5rem 1rem !important;
    font-size: 0.9rem !important;
}

/* 卡片样式规范
   ============================================================================ */

.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    background-color: white;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
}

.card-header {
    background: linear-gradient(135deg, #774936, #a47e3b);
    color: white;
    padding: 1.5rem;
    border-bottom: none;
    font-family: 'Ma Shan Zheng', 'STKaiti', serif;
}

.card-body {
    padding: 2rem;
}

/* 表单样式规范
   ============================================================================ */

.form-label {
    font-weight: 600;
    color: #483c32;
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    border: 1px solid #ddb892;
    font-size: 1rem;
    transition: all 0.3s;
    background-color: rgba(255, 255, 255, 0.8);
}

.form-control:focus,
.form-select:focus {
    border-color: #774936;
    box-shadow: 0 0 0 0.2rem rgba(119, 73, 54, 0.25);
    background-color: white;
}

.form-check-input:checked {
    background-color: #774936;
    border-color: #774936;
}

/* 警告框样式
   ============================================================================ */

.alert {
    border-radius: 10px;
    border: 2px solid;
    padding: 1rem 1.5rem;
}

.alert-info {
    background: linear-gradient(135deg, #f9f4e8, #fff);
    border-color: #4A90E2;
    color: #483c32;
}

.alert-success {
    background: linear-gradient(135deg, #e8f5e9, #fff);
    border-color: #638464;
    color: #483c32;
}

.alert-warning {
    background: linear-gradient(135deg, #fff8e1, #fff);
    border-color: #FFA500;
    color: #483c32;
}

.alert-danger {
    background: linear-gradient(135deg, #ffebee, #fff);
    border-color: #B22222;
    color: #483c32;
}

/* 徽章样式
   ============================================================================ */

.badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
}

.badge.bg-primary {
    background: linear-gradient(135deg, #D4AF37, #F4E4C1) !important;
    color: #483c32 !important;
}

.badge.bg-secondary {
    background: linear-gradient(135deg, #774936, #a47e3b) !important;
    color: white !important;
}

.badge.bg-success {
    background: linear-gradient(135deg, #638464, #7a9a7c) !important;
    color: white !important;
}

.badge.bg-danger {
    background: linear-gradient(135deg, #B22222, #DC143C) !important;
    color: white !important;
}

.badge.bg-warning {
    background: linear-gradient(135deg, #FFA500, #FFB733) !important;
    color: white !important;
}

.badge.bg-info {
    background: linear-gradient(135deg, #4A90E2, #6ba3e8) !important;
    color: white !important;
}

/* 装饰元素
   ============================================================================ */

.decoration {
    position: fixed;
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

.decoration-top-right {
    top: 100px;
    right: 20px;
    width: 150px;
}

.decoration-bottom-left {
    bottom: 20px;
    left: 20px;
    width: 120px;
}

/* 响应式设计
   ============================================================================ */

@media (max-width: 768px) {
    .btn-lg {
        padding: 0.8rem 1.5rem !important;
        font-size: 1rem !important;
    }

    .decoration {
        display: none;
    }

    .card-body {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .btn {
        padding: 0.6rem 1rem !important;
        font-size: 0.9rem !important;
    }

    .btn-lg {
        padding: 0.7rem 1.2rem !important;
        font-size: 0.95rem !important;
    }
}
