/* ============================================================
   wwwroot/assets/css/base/site.css
   云禾农业 - 站点基础样式（修正版）
   ============================================================ */

:root {
    --primary: #198754;
    --primary-light: #d4edda;
    --text: #333;
    --text-muted: #6c757d;
    --border: #e9ecef;
}

* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text);
    background: #fafafa;
}

a {
    color: var(--primary);
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 导航 */
.navbar {
    padding: 0.75rem 0;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.navbar-brand {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
}

.nav-link {
    color: var(--text);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.2s;
}

    .nav-link:hover {
        background: var(--primary-light);
        color: var(--primary);
    }

/* 卡片 */
.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

    .card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    }

.card-body {
    padding: 1.5rem;
}

/* 按钮 */
.btn {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

    .btn-primary:hover {
        background: #157347;
    }

.btn-success {
    background: #28a745;
    color: #fff;
}

.btn-outline-success {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-lg {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
}

/* 提示框 */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid transparent;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

/* 页脚 */
footer {
    background: #fff;
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    margin-top: 3rem;
}

/* 首页特定样式 */
.hero-section {
    background: linear-gradient(135deg, #f8fff9 0%, #e8f5e9 100%);
    padding: 4rem 0;
    margin-bottom: 3rem;
}

.display-4 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 2rem;
    color: var(--text-muted);
}

/* 图标 */
.icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.icon-wrapper-primary {
    background-color: rgba(25, 135, 84, 0.1);
    color: var(--primary);
}

/* 工具类 */
.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mt-5 {
    margin-top: 3rem;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.p-3 {
    padding: 1.5rem;
}

.p-4 {
    padding: 2rem;
}

.p-5 {
    padding: 3rem;
}

.rounded-3 {
    border-radius: 1rem;
}

.d-flex {
    display: flex;
}

.gap-2 {
    gap: 1rem;
}

.gap-3 {
    gap: 1.5rem;
}

/* 表单 */
.form-control {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: border-color 0.2s;
}

    .form-control:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.25);
        outline: none;
    }

/* 动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* 响应式 */
@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }

    .display-4 {
        font-size: 2.5rem;
    }

    .hero-section {
        padding: 2rem 0;
/* 统计数据 */
.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.25rem;
}
.stat-label {
    color: var(--text-muted);
    font-size: 0.8rem;
}
.text-warning { color: #fd7e14 !important; }

/* 背景透明度 */
.bg-success.bg-opacity-10 {
    background: rgba(25, 135, 84, 0.10) !important;
}

/* 弹性布局 */
.flex-wrap { flex-wrap: wrap; }
.h-100 { height: 100%; }
.mx-auto { margin-left: auto; margin-right: auto; 
    }
}
