/**
 * 合肥三讯科技有限公司官网样式表
 * Author: MiniMax Agent
 */

/* ========== 基础重置 ========== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    padding-top: 70px;
    font-family: 'Microsoft YaHei', 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #0066cc;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

ul, ol {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* ========== 变量定义 ========== */
:root {
    --primary: #0066cc;
    --primary-dark: #0055aa;
    --primary-light: #e6f0fa;
    --secondary: #ff6600;
    --secondary-dark: #e55a00;
    --text-dark: #222;
    --text-body: #555;
    --text-light: #999;
    --border: #e5e5e5;
    --bg-gray: #f5f7fa;
    --bg-dark: #1a1a2e;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.1);
    --radius: 8px;
    --radius-sm: 4px;
    --radius-lg: 12px;
    --transition: all 0.3s ease;
}

/* ========== 通用容器 ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section {
    padding: 80px 0;
}

.section-gray {
    background: var(--bg-gray);
}

/* ========== 通用按钮 ========== */
.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius);
    font-size: 15px;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: #fff;
}

.btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    font-size: 15px;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--primary);
    color: #fff;
}

.btn-white {
    display: inline-block;
    padding: 12px 30px;
    background: #fff;
    color: var(--primary);
    border-radius: var(--radius);
    font-size: 15px;
    transition: var(--transition);
}

.btn-white:hover {
    background: var(--primary);
    color: #fff;
}

/* ========== 头部导航 ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: bold;
    color: var(--primary);
}

.logo img {
    height: 40px;
}

.nav {
    display: flex;
    gap: 35px;
}

.nav a {
    position: relative;
    padding: 5px 0;
    font-size: 15px;
    color: var(--text-body);
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}

.nav a:hover,
.nav a.active {
    color: var(--primary);
}

.header-tel {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--primary-light);
    border-radius: var(--radius);
}

.header-tel .tel-icon {
    color: var(--primary);
    font-size: 18px;
}

.header-tel a {
    font-size: 16px;
    font-weight: bold;
    color: var(--primary);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-body);
    border-radius: 2px;
    transition: var(--transition);
}

/* ========== Banner轮播 ========== */
.banner {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    
    position: relative;
    height: 500px;
    overflow: hidden;
}

.swiper-container {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    background-size: cover;
    background-position: center;
    background-color: var(--bg-dark);
    display: flex;
    align-items: center;
}

.banner-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
    color: #fff;
}

.banner-content h2 {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-content p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.banner .swiper-pagination {
    position: absolute;
    bottom: 30px;
}

.banner .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
}

.banner .swiper-pagination-bullet-active {
    background: var(--primary);
}

.banner .swiper-button-prev,
.banner .swiper-button-next {
    color: #fff;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
}

.banner .swiper-button-prev:hover,
.banner .swiper-button-next:hover {
    background: var(--primary);
}

/* ========== 核心优势 ========== */
.advantages {
    padding: 40px 0;
    background: #fff;
}

.advantage-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.advantage-item {
    text-align: center;
    padding: 30px 20px;
}

.advantage-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    border-radius: 50%;
    color: var(--primary);
    font-size: 24px;
    margin-bottom: 15px;
}

.advantage-item h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.advantage-item p {
    font-size: 14px;
    color: var(--text-light);
}

/* ========== 区块标题 ========== */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 36px;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-light);
}

.section-footer {
    text-align: center;
    margin-top: 40px;
}

/* ========== 服务项目 ========== */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    position: relative;
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: var(--primary-light);
    border-radius: 50%;
    margin-bottom: 20px;
}

.service-icon svg {
    width: 40px;
    height: 40px;
    color: var(--primary);
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.service-card p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.service-more {
    font-size: 14px;
    color: var(--primary);
}

/* ========== 关于我们简介 ========== */
.about-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-intro-content h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.about-intro-content p {
    font-size: 15px;
    color: var(--text-body);
    margin-bottom: 15px;
    line-height: 1.8;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin: 30px 0;
}

.stat-item {
    text-align: center;
}

.stat-num {
    display: block;
    font-size: 36px;
    font-weight: bold;
    color: var(--primary);
}

.stat-label {
    font-size: 14px;
    color: var(--text-light);
}

.about-intro-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.about-intro-image img {
    width: 100%;
    height: auto;
}

/* ========== 工程案例 ========== */
.case-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.case-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.case-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.case-card:hover .case-image img {
    transform: scale(1.1);
}

.case-region {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    background: var(--primary);
    color: #fff;
    font-size: 12px;
    border-radius: var(--radius-sm);
}

.case-content {
    padding: 20px;
}

.case-content h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--text-dark);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.case-content p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.case-more {
    display: inline-block;
    margin-top: 10px;
    font-size: 13px;
    color: var(--primary);
}

/* ========== 新闻资讯 ========== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.news-image {
    height: 200px;
    position: relative;

    position: relative;

    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-content {
    padding: 20px;
}

.news-date {
    font-size: 13px;
    color: var(--text-light);
}

.news-content h3 {
    font-size: 17px;
    margin: 8px 0;
    color: var(--text-dark);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-content p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========== 联系方式栏 ========== */
.contact-bar {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 50px 0;
}

.contact-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.contact-bar-text h3 {
    font-size: 28px;
    color: #fff;
    margin-bottom: 5px;
}

.contact-bar-text p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
}

.contact-bar-tel {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 32px;
    font-weight: bold;
    color: #fff;
}

.contact-bar-tel .tel-icon {
    font-size: 28px;
}

/* ========== 页脚 ========== */
.footer {
    background: var(--bg-dark);
    color: #ccc;
    padding: 60px 0 30px;
}

/* Footer布局 - 兼容新旧模板 */
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-logo img {
    height: 40px;
}

.footer-logo span {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
}

.footer-col p {
    font-size: 14px;
    line-height: 1.8;
    color: #999;
}

.footer-col h4 {
    font-size: 16px;
    color: #fff;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 14px;
    color: #999;
    transition: var(--transition);
}

.footer-links a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    margin-bottom: 12px;
    font-size: 14px;
}

.contact-label {
    color: #666;
    min-width: 50px;
}

.footer-contact a {
    color: #ccc;
}

.footer-contact a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-service-area {
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.footer-service-area a {
    color: #999;
    margin: 0 8px;
}

.footer-service-area a:hover {
    color: var(--primary);
}

.footer-copyright {
    text-align: center;
    font-size: 13px;
    color: #666;
}

/* ========== 悬浮客服 ========== */
.sidebar-float {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
}

.float-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    margin-bottom: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.float-item svg {
    width: 24px;
    height: 24px;
}

.float-item span {
    display: none;
}

.float-item:hover {
    width: auto;
    padding: 0 15px;
    border-radius: 25px;
    flex-direction: row;
    gap: 8px;
}

.float-item:hover span {
    display: block;
    white-space: nowrap;
    font-size: 13px;
}

.float-wechat {
    position: relative;
}

.float-wechat-qr {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    padding: 10px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.float-wechat-qr img {
    width: 120px;
    height: 120px;
}

.float-wechat:hover .float-wechat-qr {
    opacity: 1;
    visibility: visible;
}

/* ========== 内页通用 ========== */
.page-header {
    
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 80px 0;
    text-align: center;
    color: #fff;
}

.page-header h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 16px;
    opacity: 0.9;
}

.breadcrumb {
    padding: 15px 0;
    background: var(--bg-gray);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--text-light);
}

.breadcrumb span {
    color: var(--text-light);
    margin: 0 8px;
}

/* ========== 列表页通用 ========== */
.content-wrapper {
    padding: 50px 0;
}

.list-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.sidebar {
    width: 280px;
}

.sidebar-widget {
    background: #fff;
    border-radius: var(--radius);
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
}

.sidebar-widget h3 {
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}

.sidebar-widget ul li {
    padding: 8px 0;
    border-bottom: 1px dashed var(--border);
}

.sidebar-widget ul li:last-child {
    border-bottom: none;
}

.sidebar-widget ul li a {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-body);
}

.sidebar-widget ul li a:hover {
    color: var(--primary);
}

/* ========== 详情页通用 ========== */
.detail-header {
    padding: 30px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 30px;
}

.detail-header h1 {
    font-size: 28px;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.detail-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: var(--text-light);
}

.detail-content {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-body);
}

.detail-content p {
    margin-bottom: 15px;
}

.detail-content img {
    max-width: 100%;
    border-radius: var(--radius);
    margin: 15px 0;
}

/* ========== 联系我们页 ========== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    background: #fff;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.contact-info h2 {
    font-size: 24px;
    margin-bottom: 30px;
    color: var(--text-dark);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-item-icon {
    width: 45px;
    height: 45px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 18px;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 15px;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.contact-item p {
    font-size: 14px;
    color: var(--text-body);
}

.contact-item a {
    color: var(--primary);
}

.contact-form {
    background: #fff;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.contact-form h2 {
    font-size: 24px;
    margin-bottom: 30px;
    color: var(--text-dark);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-dark);
}

.form-group label .required {
    color: #f56c6c;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.form-btn:hover {
    background: var(--primary-dark);
}

.contact-map {
    margin-top: 40px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.contact-map iframe {
    width: 100%;
    height: 400px;
    border: none;
}

/* ========== 关于我们页 ========== */
.about-full {
    padding: 50px 0;
}

.about-section {
    margin-bottom: 60px;
}

.about-section h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.about-section p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-body);
    margin-bottom: 15px;
}

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary);
}

.timeline-item {
    position: relative;
    padding-bottom: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -35px;
    top: 5px;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
}

.timeline-date {
    font-size: 14px;
    color: var(--primary);
    font-weight: bold;
    margin-bottom: 5px;
}

.timeline-content h4 {
    font-size: 16px;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.timeline-content p {
    font-size: 14px;
    color: var(--text-light);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.team-card {
    text-align: center;
}

.team-avatar {
    width: 120px;
    height: 120px;
    background: var(--primary-light);
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: var(--primary);
}

.team-card h4 {
    font-size: 16px;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.team-card p {
    font-size: 14px;
    color: var(--text-light);
}

.honor-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.honor-item {
    background: var(--bg-gray);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
}

.honor-item svg {
    width: 50px;
    height: 50px;
    color: var(--primary);
    margin-bottom: 10px;
}

.honor-item p {
    font-size: 13px;
    color: var(--text-body);
}

/* ========== 分页 ========== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: var(--radius);
    font-size: 14px;
    transition: var(--transition);
}

.pagination a {
    background: #fff;
    color: var(--text-body);
    border: 1px solid var(--border);
}

.pagination a:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.pagination .current {
    background: var(--primary);
    color: #fff;
}

.pagination .prev,
.pagination .next {
    padding: 0 15px;
}

/* ========== 相关推荐 ========== */
.related-articles {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.related-articles h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.related-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-item {
    background: var(--bg-gray);
    padding: 15px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.related-item:hover {
    background: var(--primary-light);
}

.related-item a {
    font-size: 14px;
    color: var(--text-body);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-item a:hover {
    color: var(--primary);
}

/* ========== 筛选器 ========== */
.filter-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-item {
    padding: 8px 20px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-item:hover,
.filter-item.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ========== 响应式设计 ========== */
@media (max-width: 1024px) {
    .advantage-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .case-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-intro-grid {
        gap: 40px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .honor-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        box-shadow: var(--shadow);
    }

    .nav.active {
        display: flex;
    }

    .header-tel {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .banner {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
        height: 400px;
    }

    .banner-content h2 {
        font-size: 32px;
    }

    .advantage-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .advantage-item {
        padding: 20px 15px;
    }

    .section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 28px;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .case-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .about-intro-grid {
        grid-template-columns: 1fr;
    }

    .about-stats {
        justify-content: center;
    }

    .contact-bar-inner {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .contact-bar-tel {
        font-size: 28px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .honor-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .related-list {
        grid-template-columns: 1fr;
    }

    .sidebar-float {
        right: 10px;
    }

    .float-item {
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 480px) {
    .banner {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
        height: 300px;
    }

    .banner-content h2 {
        font-size: 24px;
    }

    .banner-content p {
        font-size: 16px;
    }

    .advantage-grid {
        grid-template-columns: 1fr;
    }

    .case-grid {
        grid-template-columns: 1fr;
    }

    .page-header {
        padding: 50px 0;
    }

    .page-header h1 {
        font-size: 28px;
    }

    .about-stats {
        flex-direction: column;
        gap: 20px;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .honor-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========== 动画 ========== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* ========== 打印样式 ========== */
@media print {
    .header,
    .footer,
    .sidebar-float,
    .contact-bar {
        display: none;
    }
}/* Banner fallback background */

/* Fix logo Chinese text display */
.logo span, .footer-logo span {
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
    display: inline-block;
}

/* Swiper wrapper core styles */
.swiper-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    transition-property: transform;
    box-sizing: content-box;
}
.swiper-slide {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
