/* 全局重置与基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "微软雅黑", "Helvetica Neue", Arial, sans-serif;
}
body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}
.container {
    width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
a {
    text-decoration: none;
    color: inherit;
}
ul {
    list-style: none;
}
/* 容器：让内部元素水平排列 */
.header-logo {
  display: flex;
  align-items: center; /* 垂直居中，避免文字上下错位 */
}
/* 副标题：缩小与主文字的间距 */
.brand-subtitle {
  margin-left: 8px; /* 原间距可能较大，改为8px（可按需调整为6px/4px） */
  font-size: 14px; /* 确保字号比主文字小一号 */
  color: #666; /* 颜色微浅，与主文字区分 */
}
.subtitle {
    display: block;
    margin-top: 25px; /* 可根据需要调整数值，控制与主标题的间距 */
    margin-left: -55px; /* 可根据需要调整数值，控制水平位置 */
    color: #666; /* 颜色微浅，与主文字区分 */
    font-size: 12px; /* 确保字号比主文字小一号 */
}
/* 首页style标签内修改：同行显示副标题 */
.logo {
    position: relative;
    display: inline-flex; /* 弹性布局，让主文字和副标题同行且垂直居中 */
    align-items: center; /* 垂直居中对齐（避免副标题上下偏移） */
    gap: 8px; /* 主文字和副标题的间距（8px适中，可改成6px/10px） */
    text-decoration: none; /* 取消链接下划线（如果原有已取消可忽略） */
}
/* 只控制副标题，右侧布局完全不动 */
.logo-subtitle {
    margin-left: 155px !important; /* 关键：向左拉近距离，数值越大越近（可改-8px/-10px） */
    font-size: 12px; /* 保持比主文字小一号 */
    color: #666; /* 颜色微浅 */
    display: inline-block; /* 确保同行显示，不换行 */
    position: relative; /* 相对自身定位 */
    top: 15px; /* 向下移2px（可按需调整） */
}
/* 头部导航（全站统一） */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
}
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}
.logo {
    font-size: 35px;
    font-weight: bold;
    color: #007bff;
    letter-spacing: 5px; /* 字符间距拉开2px，数值越大间距越宽 */
}
.nav-menu {
    display: flex;
    gap: 35px;
}
.nav-menu a {
    font-size: 16px;
    color: #555;
    transition: color 0.3s;
    padding: 5px 0;
}
.nav-menu a.active {
    color: #007bff;
    border-bottom: 2px solid #007bff;
    font-weight: 600;
}
.nav-menu a:hover {
    color: #007bff;
}

/* 主体标题（全站统一） */
.section-title {
    text-align: center;
    margin-bottom: 60px;
    padding-top: 100px; /* 避开固定头部 */
}
.section-title h2 {
    font-size: 30px;
    color: #222;
    margin-bottom: 15px;
    display: inline-block;
    border-bottom: 3px solid #007bff;
    padding-bottom: 10px;
}
.section-title p {
    font-size: 16px;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

/* 按钮样式（全站统一） */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 14px;
}
.btn:hover {
    background-color: #0056b3;
}

/* 筛选栏样式（全站统一） */
.filter-bar {
    background-color: #fff;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    gap: 15px;
}
.filter-btn {
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 14px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    transition: all 0.3s;
}
.filter-btn.active {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}
.filter-btn:hover:not(.active) {
    background-color: #f0f7ff;
    color: #007bff;
    border-color: #007bff;
}

/* 卡片样式（全站统一） */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}
.card:hover {
    transform: translateY(-8px);
}
.card-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
}
.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.card-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #007bff;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
}
.card-info {
    padding: 20px;
}
.card-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #222;
}
.card-info p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

/* 价格卡片样式（服务价格页专用，继承通用卡片） */
.price-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    text-align: center;
}
.price-card:hover {
    transform: translateY(-8px);
}
.price-header {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
}
.price-tag {
    display: inline-block;
    background-color: #6c757d;
    color: #fff;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 10px;
}
.price-amount {
    font-size: 36px;
    font-weight: bold;
    color: #222;
    margin-bottom: 5px;
}
.price-desc {
    font-size: 14px;
    color: #666;
}
.price-features {
    padding: 20px;
    text-align: left;
}
.price-features ul {
    padding-left: 0;
}
.price-features li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
    color: #555;
}
.price-features li::before {
    content: "√";
    color: #007bff;
    margin-right: 8px;
}
/* 导航容器样式 */
.nav-container {
    width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 导航项样式 */
.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-list li {
    margin: 0 5px;
}

.nav-list a {
    display: inline-block;
    padding: 18px 15px;
    font-size: 16px;
    color: #333;
    text-decoration: none;
    box-sizing: border-box;
    white-space: nowrap; /* 防止文字换行 */
}
.slideshow .section-title {
    padding-top: 0 !important;
    margin-bottom: 0 !important;
}
/* 确保幻灯片内部没有多余间距 */
.slideshow > div {
    height: 100% !important;
}

/* 导航选中态（与列表页按钮颜色统一） */
.nav-list a.active,
.nav-list a[href*="news.asp"],
.nav-list a[href*="news_detail.asp"] {
    color: #007bff !important;
    border-bottom: 2px solid #007bff;
    padding-bottom: 16px;
}
.main-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
/* 导航栏强制横向排列 */
.header {
    width: 100% !important;
    border-bottom: 1px solid #eee !important;
    padding: 0 20px !important;
    box-sizing: border-box !important;
}

/* 导航容器固定宽度，与内容区对齐 */
.header-inner {
    width: 1000px !important;
    margin: 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

/* 导航链接强制不换行 */
.nav-links {
    display: flex !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.nav-links li {
    margin: 0 8px !important;
    white-space: nowrap !important; /* 防止导航项换行 */
}

.nav-links a {
    display: inline-block !important;
    padding: 18px 12px !important;
    font-size: 16px !important;
    color: #333 !important;
    text-decoration: none !important;
}

.nav-links a.active,
.nav-links a[href*="news.asp"] {
    color: #0066cc !important;
    border-bottom: 2px solid #0066cc !important;
    padding-bottom: 16px !important;
}

/* 内容区容器样式 */
.section {
    width: 1000px !important;
    margin: 30px auto !important;
    padding: 0 !important;
}

/* 筛选栏样式 */
.filter-bar {
    margin: 20px 0 !important;
    padding: 10px !important;
    background: #f9f9f9 !important;
    border-radius: 4px !important;
}

.filter-btn {
    margin: 0 5px !important;
    padding: 6px 12px !important;
    border: 1px solid #ddd !important;
    background: #fff !important;
    cursor: pointer !important;
}

.filter-btn.active {
    background: #0066cc !important;
    color: white !important;
    border-color: #0066cc !important;
}

/* 资讯卡片网格 */
.card-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
    margin-top: 20px !important;
}

.news-card {
    border: 1px solid #eee !important;
    border-radius: 6px !important;
    overflow: hidden !important;
}

.card-img {
    height: 180px !important;
    overflow: hidden !important;
}

.card-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.card-info {
    padding: 15px !important;
}
/* 响应式适配（全站统一） */
@media (max-width: 1200px) {
    .container {
        width: 95%;
    }
    .card-grid, .price-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .nav-menu {
        gap: 20px;
    }
    .card-grid, .price-card-grid {
        grid-template-columns: 1fr;
    }
    .filter-bar {
        flex-wrap: wrap;
    }
}