/* Global Styles */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #64748b;
    --success-color: #22c55e;
    --background-color: #f8fafc;
    --card-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --card-hover-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --navbar-height: 72px;
}

body {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    color: #1e293b;
    background-color: var(--background-color);
}

/* Navbar Styles */
.navbar {
    backdrop-filter: blur(8px);
    background-color: rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
    padding: 0.75rem 0;
}

.navbar-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color) !important;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.navbar-brand:hover {
    color: var(--primary-dark) !important;
}

.nav-link {
    font-weight: 500;
    color: #475569 !important;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.75rem 1rem !important;
}

.nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-link:hover:after {
    width: 80%;
}

.nav-link.active {
    color: var(--primary-color) !important;
}

.nav-link.active:after {
    width: 80%;
}

.dropdown-menu {
    border: none;
    box-shadow: var(--card-shadow);
    border-radius: 8px;
    padding: 0.5rem;
    min-width: 200px;
}

.dropdown-item {
    border-radius: 6px;
    padding: 0.75rem 1rem;
    font-weight: 500;
    color: #475569;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: #f1f5f9;
    color: var(--primary-color);
    transform: translateX(5px);
}

.dropdown-divider {
    margin: 0.5rem 0;
    opacity: 0.1;
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: white;
        padding: 1rem;
        border-radius: 8px;
        box-shadow: var(--card-shadow);
        margin-top: 1rem;
    }
    
    .nav-link:after {
        display: none;
    }
    
    .dropdown-menu {
        box-shadow: none;
        border-left: 2px solid var(--primary-color);
        margin-left: 1rem;
    }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(37,99,235,0.1) 0%, rgba(37,99,235,0.05) 100%);
    padding: 100px 0 80px;
    margin-top: 0;
}

.hero-section h1 {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.hero-section .lead {
    font-size: 1.25rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

/* Card Styles */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    background: white;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover-shadow);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    color: var(--primary-color);
    font-weight: 600;
}

/* Form Styles */
.form-label {
    font-weight: 500;
    color: #475569;
}

.form-control {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.input-group-text {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
}

/* Button Styles */
.btn {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border: none;
    box-shadow: 0 1px 3px 0 rgb(37 99 235 / 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgb(37 99 235 / 0.4);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

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

/* Section Styles */
section {
    padding: 80px 0;
}

section h2 {
    font-weight: 700;
    margin-bottom: 3rem;
    color: #1e293b;
}

/* Accordion Styles */
.accordion-button {
    font-weight: 500;
    padding: 1.25rem;
    background-color: white;
}

.accordion-button:not(.collapsed) {
    background-color: #f8fafc;
    color: var(--primary-color);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(37,99,235,0.1);
}

/* Footer Styles */
footer {
    background-color: #1e293b;
    padding: 60px 0 30px;
}

footer h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

footer a {
    color: #cbd5e1 !important;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    margin-bottom: 0.75rem;
}

footer a:hover {
    color: white !important;
    transform: translateX(5px);
}

/* Animation */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0 60px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .card {
        margin-bottom: 20px;
    }
}

/* Custom Utilities */
.text-gradient {
    background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-gradient-light {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

/* List Styles */
.list-unstyled li {
    margin-bottom: 0.5rem;
}

/* Result Alert Styles */
.alert-success {
    background-color: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
    border-radius: 12px;
    padding: 1.5rem;
}

.alert-success hr {
    border-top-color: #86efac;
    opacity: 0.2;
}

/* Table Styles */
.table {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.table th {
    background-color: #f8fafc;
    font-weight: 600;
    color: #475569;
}

/* Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Benefits Section Styles */
.benefits-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.benefit-card {
    border: 1px solid rgba(37, 99, 235, 0.1);
    background: white;
    transition: all 0.4s ease;
}

.benefit-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.benefit-card .icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.benefit-card:hover .icon-wrapper {
    background: var(--primary-color);
}

.benefit-card:hover .icon-wrapper i {
    color: white !important;
}

.benefit-card .card-title {
    font-weight: 600;
    color: #1e293b;
}

.benefit-card .card-text {
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Breadcrumb Styles */
.breadcrumb {
    margin: 0;
    padding: 1rem 0;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--primary-dark);
}

.breadcrumb-item.active {
    color: var(--secondary-color);
}

/* 修复面包屑被导航栏遮挡的问题 */
.bg-light.py-2.mt-5 {
    margin-top: var(--navbar-height) !important;
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
    border-bottom: 1px solid rgba(0,0,0,0.05);
} 