/* ==========================================================================
   公共基础样式（common.css）
   提取自各子页样式中重复的：基础变量 / 导航栏 / 页面小 Banner / 页脚。
   供没有独立页面样式（或位于子目录）的页面使用，如 evaluation/t01.html。
   加载顺序：bootstrap → icons/fonts → common.css → theme-green.css（主题覆盖最后）。
   ========================================================================== */

:root {
    --primary-color: #22b18c;
    --secondary-color: #4ccfa8;
    --accent-color: #2ec4a0;
    --text-dark: #16332c;
    --text-light: #5d7b74;
    --bg-light: #f5fbf9;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, #22b18c 0%, #4ccfa8 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

/* ---- 导航栏 ---- */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar-brand {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    margin: 0 10px;
    transition: color 0.3s ease;
}

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

.navbar-nav .nav-item.ms-3 {
    margin-left: 1rem !important;
}

@media (max-width: 1199.98px) {
    .navbar-nav .nav-link {
        padding: 0.5rem 0.5rem;
        font-size: 14px;
    }

    .navbar-nav .btn {
        font-size: 14px;
        padding: 0.35rem 0.8rem;
    }
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ---- 子页小 Banner ---- */
.page-header {
    background: var(--gradient-primary);
    padding: 150px 0 100px;
    color: white;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" patternUnits="userSpaceOnUse" width="20" height="20"><circle cx="10" cy="10" r="2" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: white;
}

/* ---- 页脚 ---- */
.footer {
    background: var(--gradient-primary);
    color: white;
    padding: 80px 0 30px;
}

.footer h5 {
    color: white;
    margin-bottom: 20px;
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: white;
}

/* ---- 响应式 ---- */
@media (max-width: 768px) {
    .page-header {
        padding: 120px 0 80px;
    }

    .page-header h1 {
        font-size: 2rem;
    }
}

/* ---- 滚动渐入动画（custom.js 会添加 .visible） ---- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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