@font-face {
    font-family: 'Gordita';
    src: url('../static/fonts/gordita-regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Gordita';
    src: url('../static/fonts/gordita-medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Gordita';
    src: url('../static/fonts/gordita-bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Gordita';
    src: url('../static/fonts/gordita-black.woff') format('woff');
    font-weight: 900;
    font-style: normal;
}

@font-face {
    font-family: 'Gordita';
    src: url('../static/fonts/gordita-ultra.woff') format('woff');
    font-weight: 950;
    font-style: normal;
}

@font-face {
    font-family: 'Gordita';
    src: url('../static/fonts/gordita-light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
}

:root {
    --bs-primary: #F9842A;
    --bs-primary-rgb: 249, 132, 42;
    --bs-secondary: #8D6E63;
    --bs-secondary-rgb: 141, 110, 99;
    --bs-success: #A85C2E;
    --bs-info: #5B7E9F;
    --bs-warning: #ffc107;
    --bs-danger: #dc3545;
    --bs-light: #f8f9fa;
    --bs-dark: #212529;
    --bs-font-sans-serif: 'Gordita', sans-serif;
    --bs-body-font-family: var(--bs-font-sans-serif);
    --bs-body-color: #333;
    
    /* 添加与header.css统一的颜色变量 */
    --primary-color: #F9842A;
    --primary-dark: #d46d1f;
    --gradient-primary: linear-gradient(45deg, #F9842A, #FAA864);
}

body {
    font-family: 'Gordita', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--bs-body-color);
    letter-spacing: 0.01em;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Gordita', sans-serif;
    font-weight: 700;
    color: var(--bs-dark);
    line-height: 1.3;
    margin-bottom: 0.5em;
}

.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-weight: 800;
    letter-spacing: -0.02em;
}

h1, .h1 { font-size: 2.5rem; }
h2, .h2 { font-size: 2.1rem; }
h3, .h3 { font-size: 1.75rem; }
h4, .h4 { font-size: 1.5rem; }
h5, .h5 { font-size: 1.25rem; }
h6, .h6 { font-size: 1.1rem; }

.lead {
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.6;
}

a {
    color: var(--bs-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

a:hover {
    color: #d46d1f;
    text-decoration: none;
}

/* 导航链接特定样式 */
.navbar-nav .nav-link {
    color: var(--bs-dark);
    font-weight: 600;
    font-size: 1.05rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .dropdown-item:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* Programs部分的标题文字颜色 */
#programs .card h5.fw-bold,
.programs-section .card h5.fw-bold {
    color: var(--bs-primary) !important;
    font-weight: 700 !important;
}

/* Footer组件中的图标标题文字颜色 */
footer .icon-box h5,
footer .icon-box-alt h5 {
    color: var(--bs-primary) !important;
}

/* Footer链接悬停效果 */
footer a.hover-link:hover {
    color: var(--bs-primary) !important;
    text-decoration: none;
}

/* About部分的卡片样式 */
#about .card .d-flex.flex-column.align-items-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#about .card .d-flex.flex-column.align-items-center .card-title {
    margin-top: 1rem;
}

/* 将绿色背景改为主题次要色调 */
.bg-success {
    background-color: var(--bs-secondary) !important;
}

/* 装饰线条样式 */
.decorative-line {
    width: 100px; 
    height: 1px; 
    background: linear-gradient(45deg, var(--bs-info), #7694AF);
    border-radius: 2px;
    margin-left: auto;
    margin-right: auto;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.btn {
    border-radius: 8px;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    border: none;
    letter-spacing: 0.02em;
}
.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1.15rem;
    font-weight: 600;
}
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.btn-primary {
    background: linear-gradient(45deg, #F9842A, #FAA864);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(249, 132, 42, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 132, 42, 0.3);
    color: white;
}

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

.btn-outline-primary:hover {
    background: var(--bs-primary);
    color: white;
    border-color: var(--bs-primary);
}

.btn-outline-primary.active {
    background: var(--bs-primary);
    color: white;
    border-color: var(--bs-primary);
}

.btn.rounded-pill {
    border-radius: 50px;
}

.card {
    border-radius: 16px;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 6px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.card-title {
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.card-text {
    font-weight: 500;
    line-height: 1.6;
}

.badge {
    padding: 0.5em 0.75em;
    font-size: 0.85rem;
    font-weight: 600;
}

.bg-primary {
    background-color: var(--bs-primary) !important;
}

.text-primary {
    color: var(--bs-primary) !important;
}

/* 辅助文字样式 */
.text-muted {
    font-weight: 400;
    color: #6c757d;
}

.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0,0,0,.1) !important;
}

.form-control {
    border-radius: 8px;
    border-color: #ced4da;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.625rem 0.875rem;
}
.form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
}

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

.pagination .page-link {
    color: var(--bs-primary);
    font-weight: 500;
}
.pagination .page-link:hover {
    color: #d46d1f;
}

/* 覆盖Bootstrap的fw-bold类，使其不那么粗 */
.fw-bold {
    font-weight: 600 !important;
}

/* Custom Scrollbar Styles */
body::-webkit-scrollbar {
    width: 5px !important;
    height: 5px !important;
    display: block !important;
}

body::-webkit-scrollbar-track {
    background: transparent !important;
}

body::-webkit-scrollbar-thumb {
    background-color: rgba(var(--bs-primary-rgb), 0) !important;
    border-radius: 10px !important;
    transition: background-color 0.3s ease-in-out !important;
}

body:hover::-webkit-scrollbar-thumb {
    background-color: rgba(var(--bs-primary-rgb), 0.6) !important;
}

body::-webkit-scrollbar-thumb:active {
    background-color: rgba(var(--bs-primary-rgb), 0.8) !important;
}

body::-webkit-scrollbar-button {
    display: none !important;
} 