/* 通用样式文件 - common.css */

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: Arial, sans-serif;
    background: #0f1419;
    color: #ffffff;
    line-height: 1.6;
    padding-top: 70px;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1f2e;
}

::-webkit-scrollbar-thumb {
    background: #ffd700;
    border-radius: 10px;
}

/* 布局容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.col {
    flex: 1;
    padding: 0 10px;
    min-width: 0;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #ffd700;
    color: #000;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background: #e6c200;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #2a2d3a;
    color: #fff;
    border: 1px solid #333;
}

.btn-secondary:hover {
    background: #1a1f2e;
    border-color: #ffd700;
}

.btn-outline {
    background: transparent;
    color: #ffd700;
    border: 2px solid #ffd700;
}

.btn-outline:hover {
    background: #ffd700;
    color: #000;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-lg {
    padding: 15px 30px;
    font-size: 18px;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 5px;
    color: #b8bcc8;
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: 12px;
    background: #2a2d3a;
    border: 1px solid #333;
    border-radius: 5px;
    color: #fff;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.2);
}

.form-control::placeholder {
    color: #6b7280;
}

.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.form-check-input {
    margin-right: 8px;
    accent-color: #ffd700;
}

/* 卡片样式 */
.card {
    background: #2a2d3a;
    border-radius: 10px;
    border: 1px solid #333;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.card-header {
    padding: 20px;
    background: #1a1f2e;
    border-bottom: 1px solid #333;
}

.card-body {
    padding: 20px;
}

.card-footer {
    padding: 15px 20px;
    background: #1a1f2e;
    border-top: 1px solid #333;
}

/* 工具类 */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: #ffd700; }
.text-secondary { color: #b8bcc8; }
.text-muted { color: #6b7280; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-inline-flex { display: inline-flex; }

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.m-0 { margin: 0; }
.mb-1 { margin-bottom: 5px; }
.mb-2 { margin-bottom: 10px; }
.mb-3 { margin-bottom: 20px; }
.mb-4 { margin-bottom: 30px; }

.mt-1 { margin-top: 5px; }
.mt-2 { margin-top: 10px; }
.mt-3 { margin-top: 20px; }
.mt-4 { margin-top: 30px; }

.p-0 { padding: 0; }
.p-1 { padding: 5px; }
.p-2 { padding: 10px; }
.p-3 { padding: 20px; }

.rounded { border-radius: 5px; }
.rounded-lg { border-radius: 10px; }
.rounded-xl { border-radius: 15px; }

/* 响应式工具类 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .btn-lg {
        padding: 12px 24px;
        font-size: 16px;
    }
} 