/* 全局样式 */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --info-color: #0dcaf0;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
}

/* 导航栏样式 */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color) !important;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    border-bottom: 2px solid var(--primary-color);
}

.dropdown-item:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

@media (min-width: 992px) {
    .navbar-nav {
        gap: 0.5rem;
    }
}

/* Hero区域样式 */
.hero {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    padding-top: 7rem;
    padding-bottom: 4rem;
}

.hero h1 {
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* 卡片样式 */
.card {
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* 表单样式 */
.form-control {
    border-radius: 0.5rem;
    border: 1px solid #ced4da;
    padding: 0.75rem 1rem;
}

.form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(13,110,253,0.25);
    border-color: var(--primary-color);
}

.btn {
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px);
}

/* 图标样式 */
.bi {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* 页脚样式 */
footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 4rem 0 2rem;
}

footer a {
    color: var(--light-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-color);
}

.social-links a {
    font-size: 1.5rem;
    margin-right: 1rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero {
        padding-top: 6rem;
        text-align: center;
    }
    
    .hero .btn {
        width: 100%;
        margin-bottom: 2rem;
    }
    
    .card {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    .hero {
        padding-top: 5rem;
    }
    
    .navbar-brand img {
        height: 30px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero, .card, .section {
    animation: fadeIn 1s ease-out;
}

/* 计算器页面特定样式 */
.calculator-section {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.info-tooltip {
    cursor: help;
    color: var(--secondary-color);
}

.result-card {
    transition: all 0.3s ease;
}

.result-card:hover {
    transform: translateY(-5px);
}

/* 面包屑导航样式 */
.breadcrumb {
    background-color: var(--light-color);
    padding: 0.75rem 1rem;
    border-radius: 0.25rem;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--secondary-color);
} 