/* ============================================
   云浮睿航项目管理有限公司 - PbootCMS 模板样式
   配色方案：
     主色：祥云红 #C43A31（取自LOGO）
     辅色：金色 #D4A017、深红 #8B0000
     文字：深灰 #333、白 #FFF
     背景：白 #FFF、浅灰 #F8F6F3
   字体：思源宋体（标题）、微软雅黑（正文）
   ============================================ */

/* === 变量定义 === */
:root {
    --primary: #C43A31;
    --primary-dark: #A02020;
    --primary-light: #E86050;
    --gold: #D4A017;
    --gold-light: #E8C84A;
    --gold-dark: #B8860B;
    --white: #FFFFFF;
    --gray-100: #F8F6F3;
    --gray-200: #E8E5E0;
    --gray-300: #CCCCCC;
    --gray-500: #666666;
    --gray-700: #444444;
    --gray-900: #222222;
    --font-title: 'SimSun', 'Noto Serif SC', serif;
    --font-body: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    --header-height: 100px;
}

/* === 全局重置 === */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-body); color: var(--gray-700); font-size: 15px; line-height: 1.8; background: #fff; }
a { color: var(--primary); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; }
ul, ol { list-style: none; }
.container { width: 1200px; margin: 0 auto; max-width: 100%; padding: 0 15px; }
.clearfix::after { content: ''; display: table; clear: both; }

/* === 顶部工具栏 === */
.top-bar {
    background: var(--gray-900);
    color: #ccc;
    font-size: 13px;
    padding: 6px 0;
    line-height: 28px;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar a { color: #ccc; }
.top-bar a:hover { color: var(--gold); }
.top-bar .tel { color: var(--gold); font-weight: bold; font-size: 15px; }

/* === 头部 === */
.header {
    background: var(--white);
    border-bottom: 3px solid var(--primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.header .container { display: flex; align-items: center; justify-content: space-between; height: var(--header-height); }
.logo { display: flex; align-items: center; }
.logo img { height: 60px; margin-right: 15px; }
.logo .sitename { font-size: 22px; font-weight: bold; color: var(--gray-900); font-family: var(--font-title); }
.logo .sitename small { display: block; font-size: 12px; font-weight: normal; color: var(--gray-500); font-family: var(--font-body); }

/* === 导航 === */
.nav { display: flex; align-items: center; }
.nav > li { position: relative; }
.nav > li > a {
    display: block;
    padding: 0 18px;
    height: var(--header-height);
    line-height: var(--header-height);
    font-size: 15px;
    color: var(--gray-700);
    font-weight: 500;
    transition: all 0.3s;
}
.nav > li > a:hover,
.nav > li.active > a { color: var(--primary); background: var(--gray-100); }
.nav > li > a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--primary);
    transition: width 0.3s;
}
.nav > li > a:hover::after,
.nav > li.active > a::after { width: 80%; }

/* 下拉菜单 */
.nav .sub-menu {
    position: absolute;
    top: 100%; left: 0;
    min-width: 180px;
    background: var(--white);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    opacity: 0; visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    z-index: 999;
    border-top: 3px solid var(--primary);
}
.nav > li.has-sub:hover .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav .sub-menu li { border-bottom: 1px solid var(--gray-200); }
.nav .sub-menu li:last-child { border-bottom: none; }
.nav .sub-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    color: var(--gray-700);
    transition: all 0.3s;
}
.nav .sub-menu a:hover { background: var(--primary); color: var(--white); padding-left: 28px; }

/* 有子菜单的导航项 */
.nav > li.has-sub > a { padding-right: 12px; }
.nav > li.has-sub .arrow {
    font-size: 10px;
    margin-left: 4px;
    display: inline-block;
    transition: transform 0.3s;
}
.nav > li.has-sub:hover .arrow { transform: rotate(180deg); }

/* === Banner === */
.carousel-wrapper {
    width: 100%;
    height: 450px;
    overflow: hidden;
    position: relative;
    background: var(--primary-dark);
}
.carousel { width: 100%; height: 100%; position: relative; }
.carousel-slide {
    width: 100%; height: 100%;
    position: absolute; top: 0; left: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
    z-index: 1;
}
.carousel-slide.active { opacity: 1; z-index: 2; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel-slide .slide-text {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white);
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    width: 80%; max-width: 800px;
}
.carousel-slide .slide-text h2 { font-size: 42px; font-weight: bold; margin-bottom: 15px; font-family: var(--font-title); }
.carousel-slide .slide-text p { font-size: 18px; opacity: 0.9; }

/* 轮播指示点 */
.carousel-dots {
    position: absolute; bottom: 20px; left: 50%;
    transform: translateX(-50%); z-index: 10;
    display: flex; gap: 8px;
}
.carousel-dots span {
    width: 12px; height: 12px; border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer; transition: all 0.3s;
}
.carousel-dots span.active {
    background: var(--white);
    transform: scale(1.2);
}

/* 轮播箭头 */
.carousel-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    z-index: 10; width: 48px; height: 48px;
    background: rgba(0,0,0,0.3); color: var(--white);
    border: none; border-radius: 50%;
    font-size: 28px; cursor: pointer;
    transition: background 0.3s;
    display: flex; align-items: center; justify-content: center;
    line-height: 1;
}
.carousel-btn:hover { background: rgba(0,0,0,0.6); }
.carousel-prev { left: 20px; }
.carousel-next { right: 20px; }

/* 内部页面banner */
.page-banner {
    position: relative;
    height: 250px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}
.page-banner h2 { font-size: 36px; font-weight: bold; font-family: var(--font-title); margin-bottom: 8px; }
.page-banner p { font-size: 16px; opacity: 0.85; }

/* === 页面通用区域标题 === */
.section { padding: 70px 0; }
.section-title {
    text-align: center;
    margin-bottom: 50px;
}
.section-title h2 {
    font-size: 30px;
    font-family: var(--font-title);
    color: var(--gray-900);
    position: relative;
    padding-bottom: 18px;
    display: inline-block;
}
.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary);
}
.section-title h2 small {
    display: block;
    font-size: 14px;
    font-weight: normal;
    color: var(--gray-500);
    font-family: var(--font-body);
    margin-top: 8px;
}
.section-bg { background: var(--gray-100); }

/* === 关于我们首页摘要 === */
.about-summary { display: flex; gap: 50px; align-items: center; }
.about-summary .about-img { flex: 0 0 480px; border-radius: 8px; overflow: hidden; box-shadow: 0 5px 20px rgba(0,0,0,0.1); }
.about-summary .about-text { flex: 1; }
.about-summary .about-text h3 { font-size: 24px; color: var(--gray-900); margin-bottom: 20px; font-family: var(--font-title); }
.about-summary .about-text p { margin-bottom: 15px; text-indent: 2em; }
.about-summary .about-text .more-btn {
    display: inline-block;
    padding: 10px 32px;
    background: var(--primary);
    color: var(--white);
    border-radius: 4px;
    font-size: 15px;
    transition: background 0.3s;
    margin-top: 10px;
}
.about-summary .about-text .more-btn:hover { background: var(--primary-dark); }

/* === 业务范围 === */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.service-card {
    background: var(--white);
    padding: 40px 30px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(196,58,49,0.15);
    border-bottom-color: var(--primary);
}
.service-card .icon {
    width: 70px; height: 70px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 30px;
}
.service-card h3 { font-size: 20px; color: var(--gray-900); margin-bottom: 12px; font-family: var(--font-title); }
.service-card p { font-size: 14px; color: var(--gray-500); line-height: 1.7; }

/* === 新闻/公告列表 === */
.news-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.news-item {
    display: flex;
    padding: 20px;
    background: var(--white);
    border-radius: 6px;
    transition: all 0.3s;
    border: 1px solid var(--gray-200);
}
.news-item:hover { box-shadow: 0 3px 15px rgba(0,0,0,0.08); border-color: var(--primary); }
.news-item .news-date {
    flex: 0 0 70px;
    text-align: center;
    margin-right: 20px;
    border-right: 2px solid var(--primary);
}
.news-item .news-date .day { font-size: 28px; font-weight: bold; color: var(--primary); line-height: 1.2; }
.news-item .news-date .ym { font-size: 12px; color: var(--gray-500); }
.news-item .news-info { flex: 1; }
.news-item .news-info h4 { font-size: 16px; margin-bottom: 8px; }
.news-item .news-info h4 a { color: var(--gray-900); }
.news-item .news-info h4 a:hover { color: var(--primary); }
.news-item .news-info p { font-size: 13px; color: var(--gray-500); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* === 2×2 新闻卡片 === */
.news-grid-2x2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}
.news-card-column {
    background: var(--white);
    border-radius: 8px;
    padding: 25px;
    border: 1px solid var(--gray-200);
    transition: all 0.3s;
}
.news-card-column:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    border-color: var(--primary);
}
.news-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--primary);
}
.news-card-header h3 {
    font-size: 18px;
    color: var(--gray-900);
    font-family: var(--font-title);
    font-weight: bold;
}
.news-card-header .more-link {
    font-size: 13px;
    color: var(--primary);
}
.news-card-header .more-link:hover { color: var(--primary-dark); }
.news-card-list li {
    padding: 8px 0;
    border-bottom: 1px dashed var(--gray-200);
    font-size: 14px;
    line-height: 1.6;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.news-card-list li:last-child { border-bottom: none; }
.news-card-list li a { color: var(--gray-700); }
.news-card-list li a:hover { color: var(--primary); }
.news-card-date {
    color: var(--gray-500);
    font-size: 12px;
    margin-right: 8px;
    white-space: nowrap;
}

/* === 底部 === */
.footer {
    background: var(--gray-900);
    color: #bbb;
    padding: 60px 0 0;
    font-size: 14px;
}
.footer .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 2fr; gap: 40px; }
.footer h4 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 20px;
    font-family: var(--font-title);
    position: relative;
    padding-bottom: 12px;
}
.footer h4::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 40px;
    height: 2px;
    background: var(--gold);
}
.footer p { margin-bottom: 8px; line-height: 1.8; }
.footer a { color: #bbb; }
.footer a:hover { color: var(--gold); }
.footer .footer-contact p { padding-left: 25px; position: relative; }
.footer .contact-icon { margin-right: 8px; }
.footer .copyright {
    margin-top: 40px;
    padding: 15px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 13px;
}
.footer .copyright .admin-link a {
    color: rgba(255,255,255,0.35);
    font-size: 12px;
}
.footer .copyright .admin-link a:hover {
    color: rgba(255,255,255,0.6);
}

/* === 面包屑 === */
.breadcrumb {
    padding: 12px 0;
    background: var(--gray-100);
    border-bottom: 1px solid var(--gray-200);
    font-size: 13px;
}
.breadcrumb a { color: var(--gray-500); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .current { color: var(--primary); font-weight: bold; }

/* === 侧边栏 === */
.page-wrapper { display: flex; gap: 40px; padding: 40px 0; }
.page-sidebar { flex: 0 0 260px; }
.page-main { flex: 1; min-width: 0; }

.sidebar-box { margin-bottom: 30px; }
.sidebar-box h3 {
    background: var(--primary);
    color: var(--white);
    padding: 12px 20px;
    font-size: 18px;
    font-family: var(--font-title);
}
.sidebar-box .sidebar-menu li { border-bottom: 1px solid var(--gray-200); }
.sidebar-box .sidebar-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--gray-700);
    font-size: 14px;
    transition: all 0.3s;
    position: relative;
}
.sidebar-box .sidebar-menu a::before {
    content: '›';
    margin-right: 8px;
    color: var(--primary);
    font-weight: bold;
}
.sidebar-box .sidebar-menu a:hover,
.sidebar-box .sidebar-menu li.active a {
    background: var(--gray-100);
    color: var(--primary);
    padding-left: 28px;
}

/* === 联系我们侧边栏小卡片 === */
.sidebar-contact {
    background: var(--gray-100);
    padding: 25px 20px;
    border-radius: 6px;
}
.sidebar-contact p { margin-bottom: 10px; font-size: 14px; }
.sidebar-contact .tel { font-size: 20px; color: var(--primary); font-weight: bold; }

/* === 内容页面 === */
.content-page h1 { font-size: 26px; color: var(--gray-900); margin-bottom: 20px; font-family: var(--font-title); }
.content-page .meta { font-size: 13px; color: var(--gray-500); margin-bottom: 25px; padding-bottom: 15px; border-bottom: 1px solid var(--gray-200); }
.content-page .article-body { font-size: 15px; line-height: 2; }
.content-page .article-body p { margin-bottom: 15px; text-indent: 2em; }
.content-page .article-body img { display: block; margin: 20px auto; max-width: 100%; border-radius: 4px; }

/* === 联系我们页面 === */
.contact-info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; margin-bottom: 40px; }
.contact-card {
    background: var(--gray-100);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--gray-200);
}
.contact-card .icon { font-size: 36px; margin-bottom: 10px; }
.contact-card h4 { font-size: 16px; color: var(--gray-900); margin-bottom: 8px; }
.contact-card p { font-size: 14px; color: var(--gray-500); }

/* === 分页 === */
.pagination {
    text-align: center;
    padding: 30px 0 40px;
}
.pagination a,
.pagination .page-num,
.pagination .page-status,
.pagination .page-index,
.pagination .page-pre,
.pagination .page-next,
.pagination .page-last {
    display: inline-block;
    min-width: 38px;
    height: 38px;
    line-height: 38px;
    padding: 0 12px;
    margin: 0 3px;
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    font-size: 14px;
    color: var(--gray-700);
    background: #fff;
    transition: all 0.3s;
    text-align: center;
    vertical-align: middle;
}
.pagination a:hover,
.pagination .page-num:hover,
.pagination .page-index a:hover,
.pagination .page-pre a:hover,
.pagination .page-next a:hover,
.pagination .page-last a:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}
.pagination .page-num.current,
.pagination span.page-num {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}
.pagination .page-status {
    color: var(--gray-500);
    border: none;
    background: none;
    font-size: 13px;
    min-width: auto;
}
.pagination .page-index a,
.pagination .page-pre a,
.pagination .page-next a,
.pagination .page-last a {
    display: inline-block;
    min-width: 38px;
    height: 38px;
    line-height: 38px;
    padding: 0 12px;
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    font-size: 14px;
    color: var(--gray-700);
    background: #fff;
    transition: all 0.3s;
    text-decoration: none;
}
.pagination .page-index a:hover,
.pagination .page-pre a:hover,
.pagination .page-next a:hover,
.pagination .page-last a:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}
.pagination .page-index a[href="javascript:;"],
.pagination .page-pre a[href="javascript:;"],
.pagination .page-next a[href="javascript:;"],
.pagination .page-last a[href="javascript:;"] {
    color: var(--gray-300);
    cursor: not-allowed;
    background: var(--gray-100);
}
.pagination .page-index a[href="javascript:;"]:hover,
.pagination .page-pre a[href="javascript:;"]:hover,
.pagination .page-next a[href="javascript:;"]:hover,
.pagination .page-last a[href="javascript:;"]:hover {
    background: var(--gray-100);
    color: var(--gray-300);
    border-color: var(--gray-300);
}

/* === 响应式 === */
@media (max-width: 768px) {
    .header .container { flex-wrap: wrap; height: auto; padding: 15px; }
    .logo img { height: 40px; }
    .nav { display: none; } /* 移动端需配合汉堡菜单js */
    .carousel-wrapper { height: 250px; }
    .carousel-slide .slide-text h2 { font-size: 26px; }
    .page-banner { height: 150px; }
    .page-banner h2 { font-size: 24px; }
    .about-summary { flex-direction: column; }
    .about-summary .about-img { flex: none; width: 100%; }
    .services-grid { grid-template-columns: 1fr; }
    .news-list { grid-template-columns: 1fr; }
    .footer .footer-grid { grid-template-columns: 1fr; }
    .page-wrapper { flex-direction: column; }
    .page-sidebar { flex: none; width: 100%; }
    .contact-info-grid { grid-template-columns: 1fr; }
    .news-grid-2x2 { grid-template-columns: 1fr; }
