/* ============================================
   app.css - 全站公共样式
   配色源自 Logo 蓝紫渐变 + Banner 深蓝科技风
   所有自定义类名加 zh_ 前缀
   ============================================ */

/* --- CSS 变量 --- */
:root {
    /* 主色 */
    --zh-blue: #2B6CB0;
    --zh-dark-blue: #1A365D;
    --zh-purple: #6B46C1;
    --zh-cyan: #00B5D8;
    --zh-light-blue: #63B3ED;

    /* 渐变 */
    --zh-gradient: linear-gradient(135deg, #2B6CB0, #6B46C1);
    --zh-gradient-dark: linear-gradient(180deg, #1A365D, #0F2340);
    --zh-gradient-light: linear-gradient(180deg, #EBF8FF, #FFFFFF);
    --zh-gradient-cyan: linear-gradient(135deg, #00B5D8, #2B6CB0);

    /* 中性色 */
    --zh-text: #2D3748;
    --zh-text-secondary: #718096;
    --zh-border: #E2E8F0;
    --zh-bg-light: #F7FAFC;
    --zh-white: #FFFFFF;
    --zh-bg-dark: #0F2340;

    /* 功能色 */
    --zh-success: #38A169;
    --zh-warning: #D69E2E;
    --zh-danger: #E53E3E;
    --zh-info: #3182CE;

    /* 兼容别名 — 旧模板引用的变量映射到新配色 */
    --zh-primary: #2B6CB0;
    --zh-primary-light: #63B3ED;
    --zh-primary-bg: #EBF8FF;
    --zh-primary-hover: #1E5A9E;
    --zh-accent: #6B46C1;
    --zh-gradient-hero: linear-gradient(135deg, #2B6CB0, #6B46C1);
    --zh-gradient-accent: linear-gradient(135deg, #2B6CB0, #6B46C1);
    --zh-gradient-primary: linear-gradient(135deg, #2B6CB0, #6B46C1);
    --zh-text-primary: #2D3748;
    --zh-text-muted: #A0AEC0;
    --zh-radius-md: 8px;
    --zh-radius-sm: 6px;
    --zh-shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --zh-shadow-md: 0 4px 16px rgba(0,0,0,0.1);
    --zh-shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --zh-font: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;

    /* 圆角 */
    --zh-radius: 8px;
    --zh-radius-lg: 12px;

    /* 阴影 */
    --zh-shadow: 0 2px 8px rgba(0,0,0,0.06);
    --zh-shadow-hover: 0 8px 24px rgba(0,0,0,0.12);
    --zh-shadow-nav: 0 2px 10px rgba(0,0,0,0.08);
}

/* --- 全局基础 --- */
* { box-sizing: border-box; }

body {
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: var(--zh-text);
    background: var(--zh-white);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--zh-blue);
    text-decoration: none;
    transition: color 0.3s;
}
a:hover {
    color: var(--zh-purple);
    text-decoration: none;
}

img { max-width: 100%; height: auto; }

.zh_container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ============================================
   顶部信息条
   ============================================ */
.zh_topbar {
    background: var(--zh-bg-dark);
    height: 36px;
    line-height: 36px;
    font-size: 13px;
    color: #A0AEC0;
}
.zh_topbar a {
    color: #A0AEC0;
    margin-left: 15px;
    transition: color 0.3s;
}
.zh_topbar a:hover {
    color: var(--zh-white);
}
.zh_topbar_inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.zh_topbar_left i {
    margin-right: 5px;
    color: var(--zh-cyan);
}
.zh_topbar_right a + a {
    margin-left: 0;
}
.zh_topbar_divider {
    margin: 0 10px;
    color: #4A5568;
}

/* ============================================
   主导航栏
   ============================================ */
.zh_navbar {
    background: var(--zh-white);
    height: 70px;
    box-shadow: var(--zh-shadow-nav);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s;
}
.zh_navbar.zh_scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}
.zh_navbar_inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}
.zh_logo img {
    height: 40px;
    object-fit: contain;
}
.zh_nav_menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
}
.zh_nav_link {
    display: inline-block;
    padding: 8px 16px;
    color: var(--zh-text);
    font-size: 15px;
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
    border-radius: 6px;
}
.zh_nav_link:hover,
.zh_nav_link.active {
    color: var(--zh-blue);
    background: #EBF8FF;
}
.zh_nav_link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: var(--zh-gradient);
    border-radius: 2px;
}
.zh_nav_search_btn {
    background: none;
    border: none;
    color: var(--zh-text-secondary);
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s;
}
.zh_nav_search_btn:hover {
    color: var(--zh-blue);
    background: #EBF8FF;
}

/* 搜索框展开 */
.zh_search_overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    align-items: flex-start;
    justify-content: center;
    padding-top: 120px;
}
.zh_search_overlay.zh_show {
    display: flex;
}
.zh_search_box {
    background: var(--zh-white);
    border-radius: var(--zh-radius-lg);
    padding: 8px;
    display: flex;
    width: 600px;
    max-width: 90vw;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.zh_search_box input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: var(--zh-radius);
}
.zh_search_box button {
    background: var(--zh-gradient);
    color: var(--zh-white);
    border: none;
    padding: 12px 28px;
    border-radius: var(--zh-radius);
    font-size: 15px;
    cursor: pointer;
    transition: opacity 0.3s;
}
.zh_search_box button:hover {
    opacity: 0.9;
}

/* 移动端汉堡菜单 */
.zh_hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    color: var(--zh-text);
    cursor: pointer;
    padding: 8px;
}

/* 移动端菜单 */
.zh_mobile_menu {
    display: none;
    position: fixed;
    top: 0; right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--zh-white);
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    z-index: 3000;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 20px 0;
}
.zh_mobile_menu.zh_show {
    right: 0;
}
.zh_mobile_menu_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px 15px;
    border-bottom: 1px solid var(--zh-border);
    margin-bottom: 10px;
}
.zh_mobile_menu_close {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--zh-text-secondary);
    cursor: pointer;
}
.zh_mobile_nav_link {
    display: block;
    padding: 12px 20px;
    color: var(--zh-text);
    font-size: 15px;
    border-bottom: 1px solid #F7FAFC;
    transition: all 0.3s;
}
.zh_mobile_nav_link:hover,
.zh_mobile_nav_link.active {
    color: var(--zh-blue);
    background: #EBF8FF;
    padding-left: 25px;
}
.zh_mobile_overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 2500;
}
.zh_mobile_overlay.zh_show {
    display: block;
}

/* ============================================
   提示消息
   ============================================ */
.zh_alert {
    padding: 12px 20px;
    border-radius: var(--zh-radius);
    margin: 15px 0;
    font-size: 14px;
}
.zh_alert_success {
    background: #F0FFF4;
    color: #276749;
    border: 1px solid #C6F6D5;
}
.zh_alert_error {
    background: #FFF5F5;
    color: #9B2C2C;
    border: 1px solid #FED7D7;
}

/* ============================================
   公共底部 Footer
   ============================================ */
.zh_footer {
    background: var(--zh-gradient-dark);
    padding: 60px 0 0;
    color: rgba(255,255,255,0.6);
    font-size: 14px;
}
.zh_footer_grid {
    display: grid;
    grid-template-columns: 3fr 2fr 2fr 3fr;
    gap: 40px;
}
.zh_footer_brand img {
    height: 36px;
    margin-bottom: 15px;
}
.zh_footer_slogan {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
    color: rgba(255,255,255,0.5);
}
.zh_footer_title {
    color: var(--zh-white);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}
.zh_footer_title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--zh-gradient);
    border-radius: 1px;
}
.zh_footer_links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.zh_footer_links li {
    margin-bottom: 10px;
}
.zh_footer_links a {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    transition: all 0.3s;
}
.zh_footer_links a:hover {
    color: var(--zh-white);
    padding-left: 5px;
}
.zh_footer_contact_item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 10px;
}
.zh_footer_contact_item i {
    color: var(--zh-cyan);
    font-size: 16px;
    margin-top: 3px;
    width: 20px;
    text-align: center;
}
.zh_copyright {
    background: #0A1628;
    text-align: center;
    padding: 15px 0;
    margin-top: 40px;
    color: rgba(255,255,255,0.4);
    font-size: 13px;
}
.zh_copyright a {
    color: rgba(255,255,255,0.5);
}
.zh_copyright a:hover {
    color: rgba(255,255,255,0.8);
}

/* ============================================
   回到顶部
   ============================================ */
.zh_back_top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: var(--zh-gradient);
    color: var(--zh-white);
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 900;
    box-shadow: 0 4px 15px rgba(43,108,176,0.4);
}
.zh_back_top.zh_show {
    opacity: 1;
    visibility: visible;
}
.zh_back_top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(43,108,176,0.5);
}

/* ============================================
   板块标题组件
   ============================================ */
.zh_section_header {
    text-align: center;
    margin-bottom: 45px;
}
.zh_section_title {
    font-size: 28px;
    font-weight: 700;
    color: var(--zh-dark-blue);
    margin-bottom: 0;
}
.zh_section_line {
    width: 60px;
    height: 3px;
    background: var(--zh-gradient);
    margin: 12px auto;
    border-radius: 2px;
}
.zh_section_subtitle {
    font-size: 15px;
    color: var(--zh-text-secondary);
    margin: 0;
}

/* ============================================
   通用信息卡片
   ============================================ */
.zh_info_card {
    background: var(--zh-white);
    border-radius: var(--zh-radius);
    border: 1px solid var(--zh-border);
    box-shadow: var(--zh-shadow);
    overflow: hidden;
    transition: all 0.3s ease;
}
.zh_info_card:hover {
    transform: translateY(-4px);
    box-shadow: var(--zh-shadow-hover);
}
.zh_info_thumb {
    width: 100%;
    height: 160px;
    background: #F0F4F8;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.zh_info_thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.zh_info_thumb_placeholder {
    font-size: 40px;
    color: #CBD5E0;
}
.zh_info_body {
    padding: 15px;
}
.zh_info_tag {
    display: inline-block;
    padding: 2px 10px;
    background: #EBF8FF;
    color: var(--zh-blue);
    font-size: 12px;
    border-radius: 20px;
    margin-bottom: 8px;
}
.zh_info_title {
    font-size: 16px;
    font-weight: 600;
    color: var(--zh-text);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}
.zh_info_title a {
    color: inherit;
}
.zh_info_title a:hover {
    color: var(--zh-blue);
}
.zh_info_desc {
    font-size: 14px;
    color: var(--zh-text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
    margin-bottom: 10px;
}
.zh_info_meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #A0AEC0;
    padding-top: 10px;
    border-top: 1px solid var(--zh-border);
}
.zh_info_meta i {
    margin-right: 4px;
}

/* ============================================
   按钮
   ============================================ */
.zh_btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    line-height: 1.4;
}
.zh_btn_primary {
    background: var(--zh-gradient);
    color: var(--zh-white);
}
.zh_btn_primary:hover {
    opacity: 0.9;
    color: var(--zh-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(43,108,176,0.4);
}
.zh_btn_outline {
    background: transparent;
    color: var(--zh-blue);
    border: 2px solid var(--zh-blue);
}
.zh_btn_outline:hover {
    background: var(--zh-blue);
    color: var(--zh-white);
}
.zh_btn_ghost {
    background: transparent;
    color: var(--zh-white);
    border: 2px solid var(--zh-white);
}
.zh_btn_ghost:hover {
    background: var(--zh-white);
    color: var(--zh-blue);
}
.zh_btn_text {
    background: none;
    border: none;
    color: var(--zh-blue);
    padding: 0;
    font-weight: 500;
}
.zh_btn_text:hover {
    color: var(--zh-purple);
}
.zh_btn_text i {
    transition: transform 0.3s;
}
.zh_btn_text:hover i {
    transform: translateX(4px);
}

/* ============================================
   响应式
   ============================================ */
@media (max-width: 991px) {
    .zh_nav_menu {
        display: none;
    }
    .zh_nav_search_btn {
        display: none;
    }
    .zh_hamburger {
        display: block;
    }
    .zh_mobile_menu {
        display: block;
    }
    .zh_footer_grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    .zh_section_title {
        font-size: 24px;
    }
}

@media (max-width: 767px) {
    .zh_topbar_left {
        display: none;
    }
    .zh_topbar_right {
        width: 100%;
        text-align: center;
    }
    .zh_navbar {
        height: 60px;
    }
    .zh_navbar_inner {
        height: 60px;
    }
    .zh_logo img {
        height: 32px;
    }
    .zh_footer_grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .zh_section_title {
        font-size: 22px;
    }
    .zh_section_header {
        margin-bottom: 30px;
    }
    .zh_back_top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}
