/* ========================================
   工友杯大赛官网 — 全站样式系统 v2
   精确匹配 https://www.hbzgh.org.cn/gyb/ 视觉风格
   ======================================== */

/* ----- CSS Variables ----- */
:root {
    --color-nav-bg: #1764e6;
    --color-nav-hover: #ffffff;
    --color-primary: #1764e6;
    --color-primary-dark: #0d47a1;
    --color-accent: #d4a017;
    --color-bg: #ededef;
    --color-white: #ffffff;
    --color-text: #383838;
    --color-text-light: #666666;
    --color-text-lighter: #999999;
    --color-border: #e0e0e0;
    --color-footer-text: #c0c1c2;
    --color-footer-heading: #ffffff;
    --color-header-bg: #ffffff;
    --font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    --container-width: 1200px;
    --transition: all 0.3s ease;
    --nav-height: 42px;
    --header-height: 100px;
}

/* ----- Reset & Base ----- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-family);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
a:hover { opacity: 0.85; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.3; }

/* ----- Layout ----- */
.container { width: 100%; max-width: var(--container-width); margin: 0 auto; padding: 0 15px; }
.container-fluid { width: 100%; }
.container-1200 { max-width: 1200px; margin: 0 auto; }

/* ====================================
   HEADER
   ==================================== */
.site-header {
    background: var(--color-header-bg);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.navbar-top {
    display: flex;
    align-items: center;
    padding: 8px 0;
    height: var(--header-height);
}
.site-logo .navbar-brand { display: inline-block; }
.site-logo img { height: 84px; width: auto; }

/* ----- Navigation Bar (blue #1764e6) ----- */
.navbar-nav-main {
    width: 100%;
    height: var(--nav-height);
    background-color: #1764e6;
}
.navbar-nav-main .navbar {
    height: var(--nav-height);
}
.navbar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
.nav-item {
    line-height: 1;
    border-right: 1px solid rgba(255,255,255,0.5);
    flex: auto;
    text-align: center;
}
.nav-item:last-child { border-right: none; }
.nav-item .nav-link {
    display: block;
    padding: 0 20px;
    line-height: var(--nav-height);
    color: #fff;
    font-size: 18px;
    text-align: center;
    transition: var(--transition);
    white-space: nowrap;
}
.nav-item .nav-link:hover,
.nav-item .nav-link.active {
    color: #fff;
    font-weight: 600;
    background: rgba(255,255,255,0.08);
}

/* ----- Spacer (for fixed header) ----- */
.nav-spacer { height: calc(var(--header-height) + var(--nav-height)); }

/* ====================================
   MOBILE MENU
   ==================================== */
.menu-btn {
    display: none;
    position: absolute;
    top: 70px;
    right: 0;
    z-index: 599;
    width: 50px;
    height: 50px;
    background: transparent;
    border: none;
    cursor: pointer;
}
.menu-btn > span {
    position: absolute;
    left: 0; right: 0;
    width: 22px;
    height: 2px;
    margin: 0 auto;
    background: #048;
    border-radius: 2px;
    transition: .25s;
}
.menu-btn > span:nth-child(1) { top: 18px; }
.menu-btn > span:nth-child(2) { top: 24px; }
.menu-btn > span:nth-child(3) { top: 30px; }
.menu-btn.is-active span { background: #048; }
.menu-btn.is-active span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-btn.is-active span:nth-child(2) { opacity: 0; }
.menu-btn.is-active span:nth-child(3) { top: 21px; transform: rotate(135deg); }

.mobile-drawer {
    display: none;
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background: #fff;
    z-index: 2000;
    padding: 80px 20px 30px;
    transition: right 0.35s ease;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    overflow-y: auto;
}
.mobile-drawer.is-open { right: 0; }
.mobile-drawer li { border-bottom: 1px solid var(--color-border); }
.mobile-drawer li a {
    display: block;
    padding: 14px 16px;
    font-size: 16px;
    color: var(--color-text);
}
.mobile-drawer li a:hover {
    background: #f0f6ff;
    color: var(--color-nav-bg);
    padding-left: 20px;
}

/* ----- Mask ----- */
.mask {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.75);
    z-index: 1500;
    opacity: 0;
    transition: opacity .2s;
}
.mask.is-visible { display: block; opacity: 1; }

@media (max-width: 1023px) {
    .navbar-nav { display: none; }
    .menu-btn { display: block; }
    .nav-item { border-right: none; }
    .mobile-drawer { display: block; right: -280px; }
    .mobile-drawer.is-open { right: 0; }
    .navbar-nav-main { height: 0; overflow: visible; }
    .nav-spacer { height: var(--header-height); }
}
@media (min-width: 1024px) {
    .mobile-drawer { display: none !important; }
}

/* ====================================
   HERO CAROUSEL
   ==================================== */
.hero-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #ddd;
}
.hero-carousel .carousel-inner { position: relative; width: 100%; }
.hero-carousel .carousel-inner img { width: 100%; height: auto; display: block; }

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.3);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: #fff;
    transition: var(--transition);
}
.carousel-control:hover { background: rgba(0,0,0,0.6); }
.carousel-control-prev { left: 20px; }
.carousel-control-next { right: 20px; }
.carousel-icon {
    display: inline-block;
    width: 20px; height: 20px;
    border-style: solid;
    border-color: #fff;
}
.carousel-icon-prev { border-left-width: 3px; border-bottom-width: 3px; transform: rotate(45deg); }
.carousel-icon-next { border-right-width: 3px; border-bottom-width: 3px; transform: rotate(-45deg); }

/* ====================================
   INTRO SECTION
   ==================================== */
.bgmargin { background: var(--color-bg); }
.intro-section { padding: 0; }
.intro-main {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    height: 306px;
    margin: 30px auto;
    background: url("https://gyb.jgcj.cn/assets/img/gyb-js.jpg") no-repeat center;
    background-size: contain;
    border-radius: 0;
    position: relative;
    overflow: hidden;
}
/* Image placeholder overlay */
.intro-main::before {
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #999;
    background: rgba(255,255,255,0.7);
    padding: 8px 16px;
    border-radius: 4px;
    border: 2px dashed #ccc;
}
.intro-main p {
    width: 810px;
    margin: 0;
    padding-right: 36px;
    line-height: 36px;
    font-size: 16px;
    color: #383838;
    text-indent: 2em;
    text-align: justify;
}

/* ====================================
   BLOCK INFO TITLE (共用模块标题)
   ==================================== */
.block-info { width: 100%; margin: 0px auto;background-color: #FFF; padding: 30px 0; }
.block-info-title {
    height: 37px;
    margin-bottom: 36px;
    display: flex;
    justify-content: space-between;
    position: relative;
	background: url("https://gyb.jgcj.cn/assets/img/tips-bg.jpg") no-repeat center;
	background-size: contain;
	padding-left: 30px;
}
.block-info-title::before {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: rgba(255,255,255,0.4);
	
}
.block-info-title h5 {
    line-height: 37px;
    text-indent: 28px;
    color: #fff;
    font-size: 18px;
    letter-spacing: 2px;
}
.block-info-title .btn-more {
    margin-right: 18px;
    line-height: 37px;
    font-size: 12px;
    color: #fff;
}

/* ====================================
   SIGNUP / 即刻报名（单图跳转）
   ==================================== */
.signup-section { padding: 10px 0; }

.block-baoming {
    /* margin: 0 auto; */
    position: relative;
    /* background: url("https://gyb.jgcj.cn/assets/images/2.jpg") no-repeat center; */
    /* background-size: contain; */
    border-radius: 12px;
    /* overflow: hidden; */
	width: 100%;
	/* height: 360px; */
	/* position: relative; */
}

.block-baoming .btn-baoming {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
	display: flex;
	justify-content: center;
}

.block-baoming .btn-about-link {
    display: block;
    width: 288px;
    height: 72px;
    position: absolute;
    bottom: 59px;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
}

/* ====================================
   SERVICE GRID (双创服务)
   ==================================== */
.service-section { padding: 0px 0 0px; }
.service-grid {
    display: grid;
    grid-template-columns: 485px 485px;
    gap: 20px;
    justify-content: center;
}

.block-list { width: 100%; }
.block-list .info-title ul {
    font-size: 22px;
    color: #fff;
}
.block-list .info-title li {
    display: flex;
    align-items: center;
    width: 100%;
    height: 37px;
    margin-bottom: 12px;
    border-radius: 0;
    transition: var(--transition);
}
.block-list .info-title li:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.block-list .info-title li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    letter-spacing: 2px;
    font-weight: bold;
    color: #fff;
    gap: 10px;
}
.block-list .info-title li a::before {
    display: inline-block;
    content: '';
    width: 8px;
    height: 8px;
    background-color: #fff;
    border-radius: 100%;
    flex-shrink: 0;
}
.block-list .info-title li a span:last-child {
    font-size: 20px;
    font-weight: 700;
}

/* Service card colors — exact match to original */
.c1 { background-color: #4e75d2; }  /* 金融服务 - blue */
.c2 { background-color: #f8a21b; }  /* 人才服务 - orange */
.c3 { background-color: #18bcc6; }  /* 管理服务 - cyan */
.c4 { background-color: #6c6dc7; }  /* 科创服务 - purple */
.c5 { background-color: #4aa5eb; }  /* 合作服务 - light blue */
.c6 { background-color: #ab82d0; }  /* 推广服务 - lavender */

/* ====================================
   SUB-PAGE LAYOUT
   ==================================== */
.breadcrumb-bar {
    background: var(--color-white);
    padding: 14px 0;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 0;
}
.breadcrumb { font-size: 14px; color: var(--color-text-lighter); }
.breadcrumb a { color: var(--color-text-lighter); }
.breadcrumb a:hover { color: var(--color-nav-bg); }
.breadcrumb .separator { margin: 0 8px; color: #ccc; }
.breadcrumb .current { color: var(--color-nav-bg); }

.subpage-content {
    background: var(--color-white);
    padding: 30px;
    margin: 30px auto 50px;
    border-radius: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    min-height: 400px;
}
.subpage-layout { display: grid; grid-template-columns: 292px 1fr; gap: 30px; }

/* Left sidebar */
.left-nav {
    background: #fafafa;
    border: 1px solid var(--color-border);
	width: 292px;
}
.left-nav-title {
    color: #fff;
    /* padding: 20px; */
    text-align: center;
	display: block;
	width: 100%;
	height: 171px;
}
.left-nav-title h3 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.left-nav-title span { font-size: 12px; opacity: 0.8; letter-spacing: 4px; }
.left-nav-list li { border-bottom: 1px solid var(--color-border); }
.left-nav-list li a {
    display: block;
    padding: 12px 20px;
    font-size: 14px;
    color: var(--color-text);
    transition: var(--transition);
    border-left: 3px solid transparent;
}
.left-nav-list li a:hover {
    background: #f0f6ff;
    color: var(--color-nav-bg);
    border-left-color: var(--color-nav-bg);
}
.left-nav-list li.active a {
    background: #f0f6ff;
    color: var(--color-nav-bg);
    font-weight: 600;
    /* border-left-color: var(--color-nav-bg); */
	width: 100%;
}

/* Content area */
.content-header {
    padding-bottom: 15px;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--color-primary);
}
.content-header h3 {
    font-size: 22px;
    color: var(--color-primary);
    font-weight: 700;
}
.content-body { font-size: 15px; line-height: 2; }
.content-body p { margin-bottom: 16px; text-indent: 0em; }

/* ====================================
   NEWS LIST
   ==================================== */
.news-list { display: flex; flex-direction: column; }
.news-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px dashed var(--color-border);
    transition: var(--transition);
}
.news-item:hover { padding-left: 10px; background: #fafafa; }
.news-item .news-title { font-size: 15px; flex: 1; }
.news-item .news-title:hover { color: var(--color-nav-bg); }
.news-item .news-date { font-size: 13px; color: var(--color-text-lighter); flex-shrink: 0; margin-left: 20px; }

.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 30px 0 10px;
}
.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-size: 14px;
    color: var(--color-text);
    transition: var(--transition);
}
.pagination a:hover, .pagination .current {
    background: var(--color-nav-bg);
    color: #fff;
    border-color: var(--color-nav-bg);
}

/* ====================================
   FOOTER
   ==================================== */
.site-footer { background: #1a1a2e; }
.footer { padding: 50px 0; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }

.footer-grid_section h3 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-grid_section h3::after {
    content: '';
    display: block;
    width: 100%;
    height: 10px;
    margin-top: 12px;
    background: linear-gradient(90deg, rgba(62,62,63,1), rgba(62,62,63,0));
}

.footer-text p {
    display: flex;
    align-items: center;
    color: #c0c1c2;
    margin-bottom: 14px;
    gap: 12px;
}
.footer-text p img { width: 24px; height: auto; flex-shrink: 0; }
.footer-text p span {
    font-size: 18px;
    padding: 0 35px 0 15px;
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}
.footer-links a {
    display: block;
    padding: 6px 0;
    font-size: 18px;
    color: #c0c1c2;
    transition: var(--transition);
    list-style: disc;
    margin-left: 20px;
}
.footer-links a::before {
    content: "• ";
    color: #c0c1c2;
}
.footer-links a:hover { color: #fff; }
.footer-links li { margin-bottom: 20px; }

.footer-qr img {
    width: 110px;
    height: 110px;
    border-radius: 6px;
    background: #fff;
    padding: 4px;
}



.sidebar-n {
    display: block;
    width: 100%;
    height: calc(100% - 187px);
    padding-bottom: 190px;
    margin-bottom: 15px;
    background-color: #fff;
}
.sidebar-n li {
    width: 100%;
    height: 75px;
    border-bottom: #cfcfd1 1px solid;
}
.sidebar-n li a {
    display: flex;
    align-items: center;
    height: 100%;
    color: #000;
    font-size: 18px;
	padding: 0;
	width: 100%;
}
.sidebar-n li a span.left {
    width: 90px;
    height: 100%;
    display: flex;
    justify-content: end;
    align-items: center;
}
.sidebar-n li a span.left i.sidebar-icon {
    width: 32px;
    height: 32px;
    margin-right: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    color: #cdcdcd;
}
.sidebar-n li a.active span.left i.sidebar-icon {
    color: #115bd9;
}
.sidebar-n li a span.right {
    flex: 1;
    display: flex;
    height: 100%;
    align-items: center;
    padding-left: 10px;
}
.sidebar-n li a.active {
    font-weight: bold;
    color: #e72228;
}
.sidebar-n li a.active span.left {
    border-bottom: #115bd9 4px solid;
}
.sidebar-n li a.active span.right {
    border-bottom: #e52e34 4px solid;
}
.sidebar-n li:nth-child(1) a span.left i.sidebar-icon {
    background: url("https://gyb.jgcj.cn/assets/img/sidebar_icon.png") no-repeat 0 0;
}
.sidebar-n li:nth-child(1) a.active span.left i.sidebar-icon {
    background: url("https://gyb.jgcj.cn/assets/img/sidebar_icon.png") no-repeat 0 -32px;
}

.sidebar-n li:nth-child(2) a span.left i.sidebar-icon {
    background: url("https://gyb.jgcj.cn/assets/img/sidebar_icon.png") no-repeat -32px 0;
}
.sidebar-n li:nth-child(2) a.active span.left i.sidebar-icon {
    background: url("https://gyb.jgcj.cn/assets/img/sidebar_icon.png") no-repeat -32px -32px;
}
.sidebar-n li:nth-child(3) a span.left i.sidebar-icon {
    background: url("https://gyb.jgcj.cn/assets/img/sidebar_icon.png") no-repeat -64px 0;
}
.sidebar-n li:nth-child(3) a.active span.left i.sidebar-icon {
    background: url("https://gyb.jgcj.cn/assets/img/sidebar_icon.png") no-repeat -64px -32px;
}
.sidebar-n li:nth-child(4) a span.left i.sidebar-icon {
    background: url("https://gyb.jgcj.cn/assets/img/sidebar_icon.png") no-repeat -96px 0;
}
.sidebar-n li:nth-child(4) a.active span.left i.sidebar-icon {
    background: url("https://gyb.jgcj.cn/assets/img/sidebar_icon.png") no-repeat -96px -32px;
}
.sidebar-n li:nth-child(5) a span.left i.sidebar-icon {
    background: url("https://gyb.jgcj.cn/assets/img/sidebar_icon.png") no-repeat -128px 0;
}
.sidebar-n li:nth-child(5) a.active span.left i.sidebar-icon {
    background: url("https://gyb.jgcj.cn/assets/img/sidebar_icon.png") no-repeat -128px -32px;
}
.sidebar-n li:nth-child(6) a span.left i.sidebar-icon {
    background: url("https://gyb.jgcj.cn/assets/img/sidebar_icon.png") no-repeat -160px 0;
}
.sidebar-n li:nth-child(6) a.active span.left i.sidebar-icon {
    background: url("https://gyb.jgcj.cn/assets/img/sidebar_icon.png") no-repeat -160px -32px;
}
.sidebar-n li:nth-child(7) a span.left i.sidebar-icon {
    background: url("https://gyb.jgcj.cn/assets/img/sidebar_icon.png") no-repeat -192px 0;
}
.sidebar-n li:nth-child(7) a.active span.left i.sidebar-icon {
    background: url("https://gyb.jgcj.cn/assets/img/sidebar_icon.png") no-repeat -192px -32px;
}
.sidebar-n li:nth-child(8) a span.left i.sidebar-icon {
    background: url("https://gyb.jgcj.cn/assets/img/sidebar_icon.png") no-repeat -224px 0;
}
.sidebar-n li:nth-child(8) a.active span.left i.sidebar-icon {
    background: url("https://gyb.jgcj.cn/assets/img/sidebar_icon.png") no-repeat -224px -32px;
}



/* ====================================
   COPYRIGHT BAR
   ==================================== */
.copyright-bar {
    background: #0e0e1a;
    padding: 16px 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.copyright-text { font-size: 13px; color: #c0c1c2; }
.copyright-text span { display: inline-block; margin-right: 10px; }
.icp-link { color: #c0c1c2; margin-left: 5px; }
.icp-link:hover { color: #fff; }

/* ====================================
   RESPONSIVE
   ==================================== */
@media (max-width: 1200px) {
    .service-grid { grid-template-columns: 1fr 1fr; gap: 15px; }
    .intro-main p { width: 60%; padding-right: 20px; }
}
@media (max-width: 991px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .subpage-layout { grid-template-columns: 1fr; }
    .left-nav { display: none; }
    .service-grid { grid-template-columns: 1fr; }
    .block-list .info-title li { height: 42px; }
}
@media (max-width: 768px) {
    .site-logo img { height: 60px; }
    .navbar-top { height: 70px; }
    .nav-spacer { height: 70px; }
    .footer-grid { grid-template-columns: 1fr; }
    .signup-panel { flex-direction: column; align-items: center; }
    .intro-main { height: auto; flex-direction: column; padding: 30px 20px; }
    .intro-main::before { display: none; }
    .intro-main p { width: 100%; padding: 0; }
    .carousel-control { width: 36px; height: 36px; }
    .carousel-control-prev { left: 10px; }
    .carousel-control-next { right: 10px; }
    .footer-text p span { font-size: 14px; padding: 0 10px; }
    .block-baoming { height: 200px; }
}
@media (max-width: 480px) {
    .copyright-text { font-size: 12px; }
    .copyright-text span { display: block; margin-bottom: 4px; }
}

/* ====================================
   ACCESSIBILITY
   ==================================== */
:focus-visible { outline: 2px solid var(--color-nav-bg); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media print {
    .site-header, .site-footer, .copyright-bar, .left-nav,
    .menu-btn, .mobile-drawer, .mask { display: none !important; }
    .subpage-content { box-shadow: none; margin: 0; padding: 20px; }
}
