/* ============================================
   app.css - 全站公共样式
   配色源自 Logo 蓝橙双色 + Banner 深蓝科技风
   所有自定义类名加 zh_ 前缀
   ============================================ */

/* --- CSS 变量 --- */
:root {
    /* 品牌色（源自 Logo） */
    --zh-blue: #0056B8;
    --zh-dark-blue: #0D1F3C;
    --zh-orange: #E87A20;
    --zh-light-blue: #2E8BC9;
    --zh-cyan: #66CCFF;

    /* 渐变 */
    --zh-gradient: linear-gradient(135deg, #0056B8, #2E8BC9);
    --zh-gradient-dark: linear-gradient(180deg, #0D1F3C, #091428);
    --zh-gradient-light: linear-gradient(180deg, #F5F8FC, #FFFFFF);
    --zh-gradient-accent: linear-gradient(135deg, #E87A20, #F5A623);

    /* 中性色 */
    --zh-text: #2D3748;
    --zh-text-secondary: #5A6A7E;
    --zh-border: #E2E8F0;
    --zh-bg-light: #F5F8FC;
    --zh-white: #FFFFFF;
    --zh-bg-dark: #0D1F3C;

    /* 功能色 */
    --zh-success: #16A34A;
    --zh-warning: #EAB308;
    --zh-danger: #DC2626;
    --zh-info: #0EA5E9;

    /* 兼容别名 */
    --zh-primary: #0056B8;
    --zh-primary-light: #2E8BC9;
    --zh-primary-bg: #EAF2FB;
    --zh-primary-hover: #003D82;
    --zh-accent: #E87A20;
    --zh-accent-dark: #C96510;
    --zh-accent-light: #FFF3E6;
    --zh-gradient-hero: linear-gradient(135deg, #0D1F3C 0%, #153560 50%, #0D1F3C 100%);
    --zh-gradient-primary: linear-gradient(135deg, #0056B8, #2E8BC9);
    --zh-text-primary: #2D3748;
    --zh-text-muted: #94A3B8;
    --zh-radius-md: 8px;
    --zh-radius-sm: 6px;
    --zh-shadow-sm: 0 2px 8px rgba(13,31,60,0.06);
    --zh-shadow-md: 0 4px 16px rgba(13,31,60,0.10);
    --zh-shadow-lg: 0 8px 30px rgba(13,31,60,0.14);
    --zh-font: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;

    /* 圆角 */
    --zh-radius: 8px;
    --zh-radius-lg: 12px;
    --zh-radius-xl: 16px;

    /* 阴影 */
    --zh-shadow: 0 2px 8px rgba(13,31,60,0.06);
    --zh-shadow-hover: 0 8px 24px rgba(13,31,60,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-accent);
    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_inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.zh_topbar_item {
    margin-right: 20px;
    color: #A0AEC0;
    font-size: 13px;
}
.zh_topbar_item i {
    margin-right: 5px;
    color: var(--zh-accent);
}
.zh_topbar_link {
    color: #A0AEC0;
    font-size: 13px;
    transition: color 0.3s;
}
.zh_topbar_link:hover {
    color: var(--zh-white);
}
.zh_topbar_link i {
    margin-right: 4px;
}
.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-primary);
    background: var(--zh-primary-bg);
}
.zh_nav_link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: var(--zh-accent);
    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-primary);
    background: var(--zh-primary-bg);
}

/* 导航右侧操作区 */
.zh_nav_actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 15px;
}
.zh_nav_publish_btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    background: var(--zh-gradient-accent);
    color: var(--zh-white);
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s;
    white-space: nowrap;
}
.zh_nav_publish_btn:hover {
    color: var(--zh-white);
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(232,122,32,0.4);
}

/* 搜索框展开 */
.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);
}
.zh_mobile_menu_close {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--zh-text-secondary);
    cursor: pointer;
}

/* 移动端用户区 */
.zh_mobile_user {
    padding: 15px 20px;
    border-bottom: 1px solid var(--zh-border);
}
.zh_mobile_user_info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--zh-text);
    font-size: 15px;
    font-weight: 500;
}
.zh_mobile_user_icon {
    font-size: 28px;
    color: var(--zh-primary);
}
.zh_mobile_user_btns {
    display: flex;
    gap: 10px;
}
.zh_mobile_login_btn {
    flex: 1;
    display: block;
    text-align: center;
    padding: 10px 0;
    border: 2px solid var(--zh-primary);
    color: var(--zh-primary);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}
.zh_mobile_login_btn:hover {
    background: var(--zh-primary);
    color: var(--zh-white);
}
.zh_mobile_register_btn {
    flex: 1;
    display: block;
    text-align: center;
    padding: 10px 0;
    background: var(--zh-gradient-accent);
    color: var(--zh-white);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}
.zh_mobile_register_btn:hover {
    opacity: 0.9;
    color: var(--zh-white);
}

/* 移动端搜索 */
.zh_mobile_search {
    display: flex;
    padding: 10px 20px 15px;
    gap: 0;
    border-bottom: 1px solid var(--zh-border);
}
.zh_mobile_search input {
    flex: 1;
    border: 1px solid var(--zh-border);
    border-right: none;
    border-radius: 6px 0 0 6px;
    padding: 10px 14px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}
.zh_mobile_search input:focus {
    border-color: var(--zh-primary);
}
.zh_mobile_search button {
    background: var(--zh-gradient);
    color: var(--zh-white);
    border: none;
    padding: 10px 16px;
    border-radius: 0 6px 6px 0;
    font-size: 14px;
    cursor: pointer;
    transition: opacity 0.3s;
}
.zh_mobile_search button:hover {
    opacity: 0.9;
}

/* 移动端导航分组 */
.zh_mobile_nav_group {
    padding: 10px 0;
    border-bottom: 1px solid var(--zh-border);
}
.zh_mobile_nav_group:last-child {
    border-bottom: none;
}
.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 i {
    width: 20px;
    text-align: center;
    margin-right: 8px;
    color: var(--zh-text-secondary);
    font-size: 14px;
}
.zh_mobile_nav_link:hover,
.zh_mobile_nav_link.active {
    color: var(--zh-primary);
    background: var(--zh-primary-bg);
    padding-left: 25px;
}
.zh_mobile_nav_link:hover i,
.zh_mobile_nav_link.active i {
    color: var(--zh-primary);
}
.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: 24px;
    height: 2px;
    background: var(--zh-accent);
    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-accent);
    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(0,86,184,0.4);
}
.zh_back_top.zh_show {
    opacity: 1;
    visibility: visible;
}
.zh_back_top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,86,184,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: 40px;
    height: 3px;
    background: var(--zh-accent);
    margin: 12px auto;
    border-radius: 2px;
}
.zh_section_subtitle {
    font-size: 15px;
    color: var(--zh-text-secondary);
    margin: 0;
}

/* ============================================
   页面顶部条（列表页公用）
   ============================================ */
.zh_page_header {
    background: var(--zh-gradient-hero);
    padding: 32px 0;
    position: relative;
    overflow: hidden;
}
.zh_page_header::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
    top: -80px;
    right: 10%;
}
.zh_page_header_inner {
    position: relative;
    z-index: 1;
}
.zh_page_header .zh_breadcrumb {
    margin-bottom: 12px;
}
.zh_page_header .zh_breadcrumb a,
.zh_page_header .zh_breadcrumb span {
    color: rgba(255,255,255,0.7);
}
.zh_page_header .zh_breadcrumb a:hover {
    color: #fff;
}
.zh_page_header .zh_breadcrumb .zh_breadcrumb_divider {
    color: rgba(255,255,255,0.4);
}
.zh_page_header_title {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px;
}
.zh_page_header_desc {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    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: var(--zh-primary-bg);
    color: var(--zh-primary);
    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(0,86,184,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-accent);
}
.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_actions {
        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;
    }
}
