/*
Theme Name: XStie - 科技企业通用主题
Theme URI: https://example.com/xstie-theme
Author: SEO/GEO 专业开发团队
Author URI: https://example.com
Description: 一款专为咨询、设计、电子科技类企业打造的响应式WordPress主题。严格遵循百度SEO算法规则，内置GEO生成式引擎优化支持，蓝白配色简洁大气。包含首页轮播图、业务中心、公司简介、新闻中心、合作伙伴五大核心模块，支持自定义Banner、完善的SEO基础设置、可视化后台主题配置。
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: xstie
Domain Path: /languages
Tags: 企业, 科技, 响应式, SEO优化, GEO优化, 蓝白色调, 咨询公司, 设计公司
*/

/* ==========================================================
   基础重置与变量定义
   ========================================================== */
:root {
    --primary-color: #1a6dff;
    --primary-dark: #0d4fc7;
    --primary-light: #e8f1ff;
    --secondary-color: #00b4d8;
    --text-color: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    --bg-white: #ffffff;
    --bg-gray: #f5f7fa;
    --bg-dark: #1a1a2e;
    --border-color: #e8ecf1;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
    --transition: all 0.3s ease;
    --radius: 6px;
    --container-width: 1200px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
    font-size: 15px;
    line-height: 1.75;
    color: var(--text-color);
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* ==========================================================
   头部导航
   ========================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 1px 10px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-logo img {
    max-height: 42px;
    width: auto;
}

.site-logo-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.site-logo-text span {
    color: var(--secondary-color);
}

/* 主导航 */
.main-nav {
    display: flex;
    align-items: center;
}

.main-nav > ul {
    display: flex;
    align-items: center;
    gap: 0;
}

.main-nav > ul > li {
    position: relative;
}

.main-nav > ul > li > a {
    display: block;
    padding: 0 20px;
    font-size: 15px;
    color: var(--text-color);
    font-weight: 500;
    line-height: 72px;
    position: relative;
}

.main-nav > ul > li > a::after {
    content: "";
    position: absolute;
    bottom: 18px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.main-nav > ul > li:hover > a,
.main-nav > ul > li.current-menu-item > a,
.main-nav > ul > li.current-menu-parent > a {
    color: var(--primary-color);
}

.main-nav > ul > li:hover > a::after,
.main-nav > ul > li.current-menu-item > a::after {
    transform: scaleX(1);
}

/* 下拉菜单 */
.main-nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--bg-white);
    box-shadow: var(--shadow-hover);
    border-radius: var(--radius);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
}

.main-nav > ul > li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-nav .sub-menu li a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    color: var(--text-color);
    white-space: nowrap;
}

.main-nav .sub-menu li a:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

/* 移动端菜单按钮 */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    cursor: pointer;
    background: none;
    border: none;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-color);
    transition: var(--transition);
}

/* ==========================================================
   Banner区域
   ========================================================== */
.page-banner {
    position: relative;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    margin-top: 72px;
}

.page-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26,109,255,0.85), rgba(0,180,216,0.75));
}

.page-banner-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
}

.page-banner-content h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.page-banner-content .breadcrumb {
    font-size: 14px;
    opacity: 0.9;
}

.page-banner-content .breadcrumb a {
    color: rgba(255,255,255,0.85);
}

.page-banner-content .breadcrumb a:hover {
    color: #fff;
}

.page-banner-content .breadcrumb span {
    margin: 0 8px;
    opacity: 0.6;
}

/* ==========================================================
   首页轮播图
   ========================================================== */
.hero-slider {
    position: relative;
    height: 580px;
    overflow: hidden;
    margin-top: 72px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
}

.hero-slide-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    padding: 0 20px;
}

.hero-slide-content h2 {
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.3;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-slide-content p {
    font-size: 18px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;
    line-height: 1.7;
}

.btn-primary {
    display: inline-block;
    padding: 14px 36px;
    background: var(--primary-color);
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    border-radius: var(--radius);
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26,109,255,0.35);
}

.btn-outline {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    border: 2px solid rgba(255,255,255,0.6);
    border-radius: var(--radius);
    transition: var(--transition);
    margin-left: 12px;
}

.btn-outline:hover {
    background: #fff;
    color: var(--primary-color);
    border-color: #fff;
}

/* 轮播指示器 */
.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.hero-dot.active {
    background: #fff;
    width: 30px;
    border-radius: 5px;
}

/* ==========================================================
   通用区块标题
   ========================================================== */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 8px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    margin: 12px auto 0;
    border-radius: 2px;
}

.section-header .subtitle {
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 8px;
    display: block;
}

.section-header p {
    font-size: 15px;
    color: var(--text-light);
    max-width: 600px;
    margin: 15px auto 0;
}

/* ==========================================================
   首页业务中心模块
   ========================================================== */
.section-services {
    padding: 80px 0;
    background: var(--bg-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 35px 25px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: var(--transition);
}

.service-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
    border-color: transparent;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--primary-color);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--primary-color);
    color: #fff;
    transform: rotateY(360deg);
}

.service-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-color);
}

.service-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
}

/* ==========================================================
   首页公司简介模块
   ========================================================== */
.section-about {
    padding: 80px 0;
    background: var(--bg-gray);
}

.about-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
}

.about-image::before {
    content: "";
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary-color);
    border-radius: var(--radius);
    z-index: -1;
    opacity: 0.3;
}

.about-content h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-color);
}

.about-content h2 span {
    color: var(--primary-color);
}

.about-content p {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.stat-item h4 {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.stat-item span {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 6px;
    display: block;
}

/* ==========================================================
   首页新闻中心模块
   ========================================================== */
.section-news {
    padding: 80px 0;
    background: var(--bg-white);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.news-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.news-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
    border-color: transparent;
}

.news-thumb {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-thumb img {
    transform: scale(1.08);
}

.news-category {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary-color);
    color: #fff;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 20px;
}

.news-body {
    padding: 20px;
}

.news-body h3 {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-body h3 a {
    color: var(--text-color);
}

.news-body h3 a:hover {
    color: var(--primary-color);
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    color: var(--text-muted);
}

.news-meta i {
    margin-right: 4px;
}

/* ==========================================================
   首页合作伙伴模块
   ========================================================== */
.section-partners {
    padding: 60px 0;
    background: var(--bg-gray);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    align-items: center;
}

.partner-item {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    filter: grayscale(100%);
    opacity: 0.7;
}

.partner-item:hover {
    filter: grayscale(0%);
    opacity: 1;
    box-shadow: var(--shadow);
    border-color: transparent;
}

.partner-item img {
    max-height: 50px;
    width: auto;
    object-fit: contain;
}

/* ==========================================================
   页脚
   ========================================================== */
.site-footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

.footer-main {
    padding: 60px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
}

.footer-brand .site-logo-text {
    color: #fff;
    font-size: 22px;
    margin-bottom: 15px;
    display: block;
}

.footer-brand p {
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.footer-contact i {
    color: var(--primary-color);
    margin-top: 3px;
    font-size: 14px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.footer-bottom a {
    color: rgba(255,255,255,0.7);
}

.footer-bottom a:hover {
    color: #fff;
}

/* ==========================================================
   内容页面通用样式
   ========================================================== */
.main-content {
    padding: 60px 0;
    min-height: 400px;
}

.content-area {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

.content-area.no-sidebar {
    grid-template-columns: 1fr;
}

.entry-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-color);
    line-height: 1.4;
}

.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.entry-meta a {
    color: var(--text-muted);
}

.entry-meta a:hover {
    color: var(--primary-color);
}

.entry-content {
    font-size: 15px;
    line-height: 1.85;
    color: var(--text-color);
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin: 30px 0 15px;
    font-weight: 600;
    color: var(--text-color);
}

.entry-content h2 { font-size: 24px; }
.entry-content h3 { font-size: 20px; }
.entry-content h4 { font-size: 17px; }

.entry-content p {
    margin-bottom: 16px;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 16px;
    padding-left: 25px;
}

.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }

.entry-content li {
    margin-bottom: 6px;
}

.entry-content img {
    border-radius: var(--radius);
    margin: 20px 0;
}

.entry-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 15px 20px;
    margin: 20px 0;
    background: var(--bg-gray);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--text-light);
}

.entry-content a {
    color: var(--primary-color);
    border-bottom: 1px dashed var(--primary-color);
}

.entry-content a:hover {
    border-bottom-style: solid;
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
}

.entry-content th,
.entry-content td {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    text-align: left;
}

.entry-content th {
    background: var(--bg-gray);
    font-weight: 600;
}

/* 分页导航 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border-radius: var(--radius);
    font-size: 14px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    transition: var(--transition);
}

.pagination a:hover,
.pagination .current {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* ==========================================================
   侧边栏
   ========================================================== */
.sidebar .widget {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 25px;
    margin-bottom: 25px;
}

.widget-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color);
    position: relative;
}

.widget ul li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: var(--text-color);
}

.widget ul li a:hover {
    color: var(--primary-color);
}

.widget .post-date {
    font-size: 12px;
    color: var(--text-muted);
    display: block;
    margin-top: 3px;
}

/* 搜索小工具 */
.widget_search form {
    display: flex;
}

.widget_search input[type="search"] {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius) 0 0 var(--radius);
    font-size: 14px;
    outline: none;
}

.widget_search input[type="submit"] {
    padding: 10px 18px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 0 var(--radius) var(--radius) 0;
    cursor: pointer;
    font-size: 14px;
}

/* ==========================================================
   404页面
   ========================================================== */
.error-404 {
    text-align: center;
    padding: 80px 20px;
}

.error-404 .error-code {
    font-size: 120px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    opacity: 0.15;
}

.error-404 h1 {
    font-size: 28px;
    margin: 20px 0 15px;
}

.error-404 p {
    color: var(--text-light);
    margin-bottom: 30px;
}

/* ==========================================================
   面包屑导航
   ========================================================== */
.breadcrumb-nav {
    padding: 15px 0;
    background: var(--bg-gray);
    font-size: 13px;
    color: var(--text-muted);
}

.breadcrumb-nav a {
    color: var(--text-light);
}

.breadcrumb-nav a:hover {
    color: var(--primary-color);
}

.breadcrumb-nav .sep {
    margin: 0 8px;
}

/* ==========================================================
   浮动联系按钮（电话 + 微信）
   ========================================================== */
.float-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;
}

.float-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    box-shadow: 0 4px 15px rgba(26,109,255,0.35);
    text-decoration: none;
    animation: floatBtnFadeIn 0.5s ease forwards;
    font-size: 16px;
    padding: 0;
}

@keyframes floatBtnFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.float-btn svg {
    width: 22px;
    height: 22px;
}

.float-phone {
    background: #fff;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.float-phone:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}

.float-wechat {
    background: #07c160;
    color: #fff;
    box-shadow: 0 4px 15px rgba(7,193,96,0.35);
}

.float-wechat:hover {
    background: #06ad56;
    transform: translateY(-3px);
}

.float-backtop {
    background: var(--primary-color);
    color: #fff;
    opacity: 0;
    visibility: hidden;
}

.float-backtop.visible {
    opacity: 1;
    visibility: visible;
}

.float-backtop:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .float-buttons {
        bottom: 16px;
        right: 16px;
        gap: 10px;
    }
    .float-btn {
        width: 44px;
        height: 44px;
        font-size: 14px;
    }
    .float-btn svg {
        width: 20px;
        height: 20px;
    }
}



/* ==========================================================
   文章列表（分类页）
   ========================================================== */
.post-list .news-card {
    margin-bottom: 24px;
}

.post-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* ==========================================================
   响应式布局
   ========================================================== */
@media (max-width: 1199px) {
    .container {
        padding: 0 30px;
    }
}

@media (max-width: 991px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .partners-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .about-wrap {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .content-area {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .hero-slide-content h2 {
        font-size: 32px;
    }
    
    .hero-slider {
        height: 480px;
    }
}

@media (max-width: 767px) {
    .main-nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg-white);
        padding: 20px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
    }
    
    .main-nav.active {
        transform: translateX(0);
    }
    
    .main-nav > ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
    
    .main-nav > ul > li > a {
        line-height: 50px;
        padding: 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    .main-nav .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: 15px;
        display: none;
    }
    
    .main-nav .sub-menu.active {
        display: block;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-slider {
        height: 420px;
    }
    
    .hero-slide-content h2 {
        font-size: 24px;
    }
    
    .hero-slide-content p {
        font-size: 14px;
    }
    
    .services-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .page-banner {
        height: 220px;
    }
    
    .page-banner-content h1 {
        font-size: 24px;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .post-list {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 24px;
    }
    
    .btn-outline {
        margin-left: 0;
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-slide-content {
        text-align: center;
    }
    
    .hero-slide-content .btn-primary,
    .hero-slide-content .btn-outline {
        display: block;
        width: 100%;
        text-align: center;
        margin: 10px 0 0;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        text-align: center;
    }
}


/* ==========================================================
   FAQ帮助中心
   ========================================================== */
.section-faq {
    padding: 80px 0;
    background: var(--bg-white);
}

.faq-list {
    max-width: 100%;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow);
}

.faq-question {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    padding: 18px 24px;
    background: var(--bg-white);
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--primary-light);
}

.faq-q-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

.faq-q-text {
    flex: 1;
}

.faq-q-toggle {
    flex-shrink: 0;
    font-size: 20px;
    color: var(--primary-color);
    transition: transform 0.3s ease;
    width: 24px;
    text-align: center;
}

.faq-item.active .faq-q-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    background: var(--bg-gray);
    border-top: 1px solid var(--border-color);
}

.faq-answer-inner {
    padding: 20px 24px 20px 71px;
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-light);
}

.faq-answer-inner p:last-child {
    margin-bottom: 0;
}

/* ==========================================================
   合作伙伴新样式（文章特色图片模式）
   ========================================================== */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    align-items: center;
}

.partner-item {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.partner-item:hover {
    box-shadow: var(--shadow-hover);
    border-color: transparent;
    transform: translateY(-3px);
}

.partner-item img {
    max-height: 80px;
    max-width: 90%;
    width: auto;
    object-fit: contain;
}

/* ==========================================================
   业务中心页面卡片样式
   ========================================================== */
.service-card .service-icon {
    border-radius: 6px;
    width: 100%;
    height: 160px;
    margin-bottom: 15px;
    overflow: hidden;
}

/* ==========================================================
   响应式：FAQ + 合作伙伴
   ========================================================== */
@media (max-width: 991px) {
    .partners-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .faq-answer-inner {
        padding-left: 24px;
    }
}

@media (max-width: 767px) {
    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .faq-question {
        padding: 14px 16px;
        font-size: 14px;
    }
    .faq-q-icon {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    .faq-answer-inner {
        padding: 14px 16px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
