/* ========== 组件样式文件 ========== */

/* 工具类 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.d-flex { display: flex; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

/* 按钮组件 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    outline: none;
}

.btn-primary {
    background: #00bfb3;
    color: #ffffff;
}

.btn-primary:hover {
    background: #4cd9cc;
    transform: translateY(-2px);
}

/* 卡片组件 */
.card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #00bfb3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 颜色工具类 */
.text-primary { color: #00bfb3; }
.text-secondary { color: #666; }
.text-white { color: #ffffff; }
.text-dark { color: #333; }

.bg-primary { background-color: #00bfb3; }
.bg-light { background-color: #f8f9fa; }
.bg-white { background-color: #ffffff; }
.bg-dark { background-color: #333; }

/* 阴影 */
.shadow-sm { box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); }
.shadow { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); }
.shadow-lg { box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15); }

/* 过渡动画 */
.transition { transition: all 0.3s ease; }

/* 响应式工具类 */
@media (max-width: 768px) {
    .d-md-none { display: none !important; }
    .d-md-block { display: block !important; }
    
    .container {
        padding: 0 15px;
    }
}

