/* ==========================================================================
   公共基础样式（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;
}

/* ---- 页面滚动进度条（固定于视口最顶端，宽度由 JS 按滚动进度更新） ---- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: #17876a;
    z-index: 1001;
    pointer-events: none;
}

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

/* 页面下滑后：导航栏变为半透明毛玻璃效果 */
.navbar.navbar-scrolled {
    background: rgba(255, 255, 255, 0.75);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.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: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.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 80px;
}

.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;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* 页脚 CC 协议 / 归属 / 技术支持 等强调链接：浅黄色系，区分普通页脚链接 */
.footer a.footer-cc-link {
    color: #ffe082;
    text-decoration: none;
    transition: color 0.25s ease, text-decoration 0.25s ease;
}
.footer a.footer-cc-link:hover {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.footer a.footer-cc-link:visited {
    color: #ffe082;
}
.footer a.footer-cc-link:visited:hover {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---- 页脚前 FAQ 区块 ---- */
.footer-faq {
    /* 顶部极浅天蓝，与上方白色自然衔接（无分界线），向下渐深 */
    background: linear-gradient(180deg, #ecf8ff 0%, #8fd4f7 45%, #017ACF 100%);
    padding: 0 0 64px;
    position: relative;
}
.footer-faq-inner {
    max-width: 960px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.footer-faq .faq-hero-img {
    margin: 0 0 44px;
    position: relative;
    z-index: 1;
}
.footer-faq .faq-hero-img img {
    display: block;
    width: 100%;
    height: auto;
}
.footer-faq .faq-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #073a5f;
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.6;
}
.footer-faq .faq-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.footer-faq .faq-item {
    background: #fff;
    border: 1px solid #d4e8f7;
    border-radius: 16px;
    padding: 24px 28px;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.footer-faq .faq-item:hover {
    box-shadow: 0 10px 28px rgba(1, 80, 140, 0.22);
    border-color: #7fb8e6;
}
.footer-faq .faq-item h3 {
    font-size: 1.08rem;
    font-weight: 600;
    color: #017ACF;
    margin-bottom: 12px;
}
.footer-faq .faq-item h3 i {
    color: #017ACF;
}
.footer-faq .faq-item p {
    color: #4f6070;
    font-size: 0.94rem;
    line-height: 1.8;
    margin-bottom: 10px;
}
.footer-faq .btn-outline-primary {
    --bs-btn-color: #ffffff;
    --bs-btn-border-color: #ffffff;
    --bs-btn-hover-bg: #ffffff;
    --bs-btn-hover-border-color: #ffffff;
    --bs-btn-hover-color: #017ACF;
    --bs-btn-active-bg: #eaf6ff;
    --bs-btn-active-border-color: #ffffff;
    /* 直接声明颜色，避免变量未生效时出现非白色 */
    color: #ffffff;
    border-color: #ffffff;
    border-radius: 99px;
    padding: 8px 28px;
    font-weight: 600;
}

/* 悬停/按下态必须显式声明：仅靠 CSS 变量会被上方常态 color:#fff 与各页面 css 的
   .btn-outline-primary:hover 覆盖，导致白底白字或绿底白字，全站表现不一致 */
.footer-faq .btn-outline-primary:hover,
.footer-faq .btn-outline-primary:focus-visible {
    background-color: #ffffff;
    border-color: #ffffff;
    color: #017ACF;
}
.footer-faq .btn-outline-primary:active {
    background-color: #eaf6ff;
    border-color: #ffffff;
    color: #017ACF;
}

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

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

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

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