/* 全局样式 */
:root {
    --primary-color: #16a34a;
    --secondary-color: #64748b;
    --success-color: #22c55e;
    --info-color: #34d399;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --light-color: #f8f9fa;
    --dark-color: #0f172a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
}

/* 导航栏样式 */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* 玻璃拟态导航增强 */
.glass-nav {
    background: rgba(5, 150, 105, 0.85) !important;
    backdrop-filter: saturate(140%) blur(12px);
}

.navbar-scrolled.glass-nav {
    background: rgba(5, 150, 105, 0.78) !important;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Hero区域样式 */
.hero-section {
    background: #ffffff;
    color: var(--dark-color);
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: none;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-section .lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-image {
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.25));
}

.headline-underline { position: relative; display: inline-block; padding-bottom: .35rem; }
.headline-underline::after {
            content: '';
            position: absolute;
            left: 0;
            right: 0;
            bottom: 0;
            height: 8px;
            background: linear-gradient(90deg, #22c55e 0%, #0ea5e9 60%, #6366f1 100%);
            border-radius: 6px;
            opacity: .9;
            box-shadow: 0 6px 16px rgba(99,102,241,.25);
        }

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* 装饰光斑与粒子动画 */
.orb, .spark {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.6;
}

.orb {
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(74, 222, 128, 0.6), rgba(16, 185, 129, 0.2));
    filter: blur(8px);
    animation: drift 12s ease-in-out infinite;
}

.spark {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.85);
    filter: blur(1px);
    animation: floatUp 6s ease-in-out infinite;
}

@keyframes drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, -30px) scale(1.1); }
}

@keyframes floatUp {
    0% { transform: translateY(0); opacity: 0; }
    20% { opacity: 0.9; }
    100% { transform: translateY(-120px); opacity: 0; }
}

/* 功能特性区域 */
.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.card:hover .feature-icon {
    transform: scale(1.1);
}

.card {
    transition: all 0.3s ease;
    border-radius: 15px;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15) !important;
}

/* 关于我们区域 */
.about-stats .stat-card {
    transition: all 0.3s ease;
    border-radius: 15px;
}

.about-stats .stat-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.about-stats h3 {
    font-size: 2.5rem;
    font-weight: 800;
}

/* 联系我们区域 */
.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-info {
    padding: 2rem;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.contact-info:hover {
    background-color: rgba(22, 163, 74, 0.12);
    transform: translateY(-5px);
}

/* 按钮样式 */
.btn {
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: #ffffff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(22, 163, 74, 0.12);
}

.btn-primary:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(22, 163, 74, 0.25);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* 导航中的浅色按钮在深色背景上保持对比度 */
.navbar .btn-light {
    color: #065f46;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.navbar .btn-light:hover {
    background: #f3f4f6;
}

/* 页脚样式 */
footer {
    background: linear-gradient(135deg, #064e3b 0%, #065f46 100%);
}

footer a {
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-color) !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .feature-icon {
        font-size: 2.5rem;
    }
    
    .about-stats h3 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .btn {
        padding: 0.5rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
}

/* 滚动动画 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(.22,.61,.36,1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 加载动画 */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #065f46;
}

/* 工具提示样式 */
.tooltip {
    font-size: 0.875rem;
}

/* 模态框样式 */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    border-bottom: 1px solid #dee2e6;
    border-radius: 15px 15px 0 0;
}

.modal-footer {
    border-top: 1px solid #dee2e6;
    border-radius: 0 0 15px 15px;
}

/* 表单样式 */
.form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* 表格样式 */
.table {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.table thead th {
    background: linear-gradient(45deg, var(--primary-color), #065f46);
    color: white;
    border: none;
    font-weight: 600;
}

/* 徽章样式 */
.badge {
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-weight: 500;
}

/* 进度条样式 */
.progress {
    height: 10px;
    border-radius: 5px;
    background-color: #e9ecef;
}

.progress-bar {
    border-radius: 5px;
    background: linear-gradient(45deg, var(--primary-color), #065f46);
}

/* 警告框样式 */
.alert {
    border-radius: 10px;
    border: none;
    padding: 1rem 1.5rem;
}

/* 面包屑导航样式 */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: var(--secondary-color);
}

/* 分页样式 */
.pagination .page-link {
    border-radius: 50%;
    margin: 0 2px;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px) scale(1.05);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
} 