/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0066cc;
    --secondary-color: #004d99;
    --accent-color: #ff6600;
    --text-color: #333;
    --text-light: #666;
    --bg-light: #f5f7fa;
    --bg-white: #fff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 16px rgba(0,0,0,0.15);
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-white);
}

img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
}

section img,
article img,
div img,
span img,
a img {
    max-width: 100% !important;
    height: auto !important;
}

.case-card img,
.news-card img,
.product-card img,
.partner-logo img,
.services-grid img,
.advantages-grid img,
.about-section img {
    max-height: 300px !important;
    width: 100% !important;
    object-fit: cover !important;
}

.page-content img,
.content img,
.detail-content img,
.case-detail img,
.news-detail img,
.service-detail img,
.about-content img {
    max-height: 500px !important;
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
}

.banner-slide img {
    max-height: 600px !important;
    width: 100% !important;
    object-fit: cover !important;
}

.partner-logo img,
.partner-logo a img {
    max-height: 60px !important;
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

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

/* Header 样式 */
.header {
    background: var(--bg-white);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 8px 0;
    font-size: 14px;
}

.header-top .container {
    display: flex;
    justify-content: flex-end;
    gap: 40px;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info i {
    font-size: 15px;
    opacity: 0.9;
}

.contact-info span {
    font-weight: 400;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.logo .logo-img,
.logo .logo-img-placeholder {
    flex-shrink: 0;
}

.logo h1 {
    font-size: 22px;
    color: #2c3e50;
    font-weight: 700;
    margin: 0;
    line-height: 1.4;
    letter-spacing: 0.5px;
}

.logo img {
    width: 55px;
    height: 55px;
    object-fit: contain;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0055aa 100%);
    box-shadow: 0 3px 10px rgba(0, 102, 204, 0.25);
}

.logo-img-placeholder {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0055aa 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border-radius: 8px;
    font-size: 24px;
    box-shadow: 0 3px 10px rgba(0, 102, 204, 0.25);
}

/* 导航样式 */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
    margin: 0;
    padding: 0;
}

.nav-menu > li {
    position: relative;
}

.nav-menu a {
    display: block;
    padding: 10px 20px;
    font-weight: 500;
    font-size: 15px;
    color: #34495e;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary-color);
    background-color: rgba(0, 102, 204, 0.06);
    transform: translateY(-1px);
}

.nav-menu a.active {
    color: white;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0055aa 100%);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.nav-menu a.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 102, 204, 0.4);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    background: white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    list-style: none;
    min-width: 190px;
    border-radius: 10px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.25s ease;
    z-index: 1001;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    padding: 13px 22px;
    display: block;
    color: #4a5568;
    font-size: 14px;
    font-weight: 400;
    border-bottom: 1px solid #f0f2f5;
    transition: all 0.2s ease;
}

.dropdown-menu li a:hover {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.08) 0%, rgba(0, 102, 204, 0.12) 100%);
    color: var(--primary-color);
    padding-left: 25px;
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

/* 按钮样式 */
.btn {
    display: inline-block !important;
    padding: 12px 30px !important;
    background: var(--primary-color) !important;
    color: white !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    text-decoration: none !important;
    width: auto !important;
    height: auto !important;
    max-width: none !important;
    max-height: none !important;
}

.btn:hover {
    background: var(--secondary-color) !important;
    color: white !important;
    transform: translateY(-2px) !important;
}

.btn-outline {
    background: var(--primary-color) !important;
    color: white !important;
}

.btn-outline:hover {
    background: transparent !important;
    border: 2px solid var(--primary-color) !important;
    color: var(--primary-color) !important;
}

.btn-sm {
    padding: 8px 20px !important;
    font-size: 14px !important;
}

.btn-full {
    width: 100%;
}

/* Banner 样式 */
.banner {
    position: relative;
    height: 550px;
    overflow: hidden;
}

.banner-slider {
    height: 100%;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s;
}

.banner-slide.active {
    opacity: 1;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    padding: 40px;
    border-radius: 10px;
    color: white;
    width: 400px;
    height: 280px;
    overflow: auto;
}

.banner-content h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

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

.banner-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.banner-controls button {
    pointer-events: all;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: none;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.banner-controls button:hover {
    background: var(--primary-color);
    color: white;
}

.banner-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.banner-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
}

.banner-dot.active {
    background: white;
}

/* Section 通用样式 */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

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

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

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

/* Link More */
.link-more {
    color: var(--primary-color);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.link-more:hover {
    gap: 10px;
}

/* 服务卡片 */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s;
}

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

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 20px;
}

/* 优势样式 */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

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

.advantage-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 28px;
    box-shadow: var(--shadow);
}

.advantage-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

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

/* 案例样式 */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

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

.pagination a.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

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

.pagination a.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.case-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

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

.case-img {
    height: 220px;
    overflow: hidden;
}

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

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

.case-video {
    position: relative;
    height: 220px;
    overflow: hidden;
}

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

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

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(0, 102, 204, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.5);
    border: 3px solid rgba(255, 255, 255, 0.3);
    z-index: 10;
}

.video-play-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 53%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 14px 0 14px 24px;
    border-color: transparent transparent transparent #ffffff;
}

.video-play-btn:hover {
    background: var(--primary-color);
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.6);
}

.video-play-btn i {
    margin-left: 4px;
}

.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.video-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    max-height: 80vh;
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.video-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
}

.video-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.video-container {
    width: 100%;
    height: 480px;
}

@media (max-width: 768px) {
    .video-container {
        height: 320px;
    }
}

.case-content {
    padding: 25px;
}

.case-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}

.case-date, .case-category {
    font-size: 13px;
    color: var(--text-light);
    background: var(--bg-light);
    padding: 3px 10px;
    border-radius: 3px;
}

.case-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

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

/* 合作伙伴 */
.partners-logos {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
}

.partner-logo {
    background: white;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    height: 100px;
}

.logo-placeholder {
    color: var(--text-light);
    font-weight: 500;
}

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

.news-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

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

.news-img {
    height: 200px;
    overflow: hidden;
}

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

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

.news-content {
    padding: 25px;
}

.news-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 13px;
    color: var(--text-light);
}

.news-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    line-height: 1.4;
}

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

/* CTA 样式 */
.cta {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.cta-content {
    text-align: center;
}

.cta-content h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

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

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.cta .btn {
    background: white;
    color: var(--primary-color);
}

.cta .btn:hover {
    background: var(--accent-color);
    color: white;
}

.cta .btn-outline {
    border-color: white;
    color: white;
}

.cta .btn-outline:hover {
    background: white;
    color: var(--primary-color);
}

/* Footer 样式 */
.footer-top {
    background: #1a1a2e;
    color: #aaa;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
}

.footer-col h3 {
    color: white;
    font-size: 18px;
    margin-bottom: 25px;
}

.footer-col p {
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.footer-contact i {
    color: var(--primary-color);
    margin-top: 4px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social .social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    position: relative;
}

.footer-social .social-icon:hover {
    background: var(--primary-color);
    color: white;
}

.footer-social .qr-popup {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 10px;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    text-align: center;
    width: 200px;
}

.footer-social .qr-popup::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: white;
}

.footer-social .social-icon:hover .qr-popup {
    opacity: 1;
    visibility: visible;
}

.footer-social .qr-popup img {
    width: 170px;
    height: 170px;
    object-fit: contain;
    display: block;
    max-width: 100%;
    max-height: 100%;
    transform: rotate(0deg);
    margin: 0 auto 10px;
    border-radius: 4px;
}

.footer-social .qr-popup span {
    color: #333;
    font-size: 14px;
    display: block;
    font-weight: 500;
}

.footer-bottom {
    background: #141422;
    padding: 20px 0;
    text-align: center;
    color: #888;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 80px 0;
    height: 310px;
    box-sizing: border-box;
}

.page-header h1 {
    font-size: 36px;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-header .breadcrumb {
    font-size: 14px;
    opacity: 0.9;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.breadcrumb {
    font-size: 14px;
    opacity: 0.8;
}

.breadcrumb a:hover {
    color: white;
    text-decoration: underline;
}

/* 过滤标签 */
.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 10px 25px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 30px;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.3s;
    overflow: hidden;
    color: var(--text-color);
    font-weight: 400;
}

.filter-tab a {
    display: block;
    padding: 0;
    color: inherit;
    text-decoration: none;
    width: 100%;
    height: 100%;
}

.filter-tab:hover,
.filter-tab.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

.filter-tab a:hover {
    color: inherit;
}

/* About 页面样式 */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content h2 {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-content p {
    margin-bottom: 15px;
    color: var(--text-light);
}

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

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

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

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

.about-image img {
    width: 100%;
    border-radius: 10px;
}

/* 时间轴 */
.timeline {
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 59px;
    top: 40px;
    bottom: -40px;
    width: 2px;
    background: var(--border-color);
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-year {
    width: 120px;
    flex-shrink: 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    position: relative;
}

.timeline-year::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: var(--shadow);
}

.timeline-content {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    flex: 1;
}

.timeline-content h3 {
    margin-bottom: 10px;
}

/* 团队样式 */
.culture-grid,
.team-grid,
.certificates-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.culture-card,
.certificate-card {
    text-align: center;
    padding: 40px 30px;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.culture-icon,
.certificate-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
}

.team-card {
    text-align: center;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.team-img {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: 500;
}

.team-card h3 {
    margin-bottom: 5px;
}

.team-position {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 10px;
}

/* 服务详情 */
.service-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.service-detail-grid.reverse {
    direction: rtl;
}

.service-detail-grid.reverse > * {
    direction: ltr;
}

.service-item {
    margin-bottom: 30px;
}

.service-item h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-item ul,
.service-item ol {
    padding-left: 20px;
    color: var(--text-light);
}

.service-item li {
    margin-bottom: 8px;
}

.service-detail-img img {
    width: 100%;
    border-radius: 10px;
}

/* 产品销售 */
.products-sales-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
}

.product-sale-card {
    background: white;
    padding: 40px 25px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s;
}

.product-sale-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.product-sale-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
}

.product-sale-card h3 {
    margin-bottom: 10px;
    font-size: 16px;
}

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

/* 服务流程 */
.process-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.process-step {
    text-align: center;
    flex: 1;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 15px;
}

.process-step h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

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

.process-arrow {
    color: var(--primary-color);
    font-size: 24px;
    margin-top: 18px;
}

/* 产品卡片 */
.product-card {
    display: block;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.product-img {
    height: 220px;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-content {
    padding: 25px;
}

.product-content h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

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

.product-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.tag {
    background: var(--bg-light);
    color: var(--text-light);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
}

.product-arrow {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    color: var(--primary);
    font-size: 16px;
    transition: transform 0.3s;
}

.product-card:hover .product-arrow {
    transform: translateX(5px);
}

/* 联系页面 */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
}

.contact-info-block {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.contact-info-block h2 {
    margin-bottom: 30px;
    color: var(--primary-color);
}

.contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}

.contact-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

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

.contact-item h4 {
    margin-bottom: 5px;
}

.contact-item p {
    color: var(--text-light);
}

.contact-social {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-btn {
    flex: 1;
    padding: 15px;
    background: var(--primary-color);
    color: white;
    text-align: center;
    border-radius: 8px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.social-btn:hover {
    background: var(--secondary-color);
    color: white;
}

.contact-form-block {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.contact-form-block h2 {
    margin-bottom: 30px;
    color: var(--primary-color);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

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

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

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

/* 地图占位 */
.map-placeholder {
    background: white;
    padding: 80px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
}

.map-placeholder i {
    font-size: 60px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.map-placeholder p {
    color: var(--text-light);
    margin-bottom: 10px;
}

/* 返回顶部 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}

/* 通用侧边栏样式 */
.page-with-sidebar {
    display: flex;
    gap: 40px;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.sidebar {
    width: 280px;
    flex-shrink: 0;
}
.sidebar-widget {
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
    overflow: hidden;
}
.sidebar-widget-title {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 16px 20px;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}
.sidebar-widget-content {
    padding: 20px;
}
.sidebar-nav {
    list-style: none;
}
.sidebar-nav li {
    margin-bottom: 4px;
}
.sidebar-nav li a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: var(--text-color);
    border-radius: 8px;
    transition: all 0.3s;
    font-size: 15px;
}
.sidebar-nav li a:hover {
    background: rgba(0, 102, 204, 0.08);
    color: var(--primary-color);
    padding-left: 20px;
}
.sidebar-nav li.active a {
    background: rgba(0, 102, 204, 0.1);
    color: var(--primary-color);
    font-weight: 600;
}
.sidebar-nav li a::before {
    content: "";
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    margin-right: 12px;
    opacity: 0;
    transition: opacity 0.3s;
}
.sidebar-nav li a:hover::before,
.sidebar-nav li.active a::before {
    opacity: 1;
}
.sidebar-contact {
    background: linear-gradient(135deg, #f8fafc, #e8f4fc);
}
.sidebar-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #e8eef3;
}
.sidebar-contact-item:last-child {
    border-bottom: none;
}
.sidebar-contact-item i {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.sidebar-contact-item div {
    flex: 1;
}
.sidebar-contact-item span {
    display: block;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 2px;
}
.sidebar-contact-item strong {
    font-size: 15px;
    color: var(--text-color);
}
.sidebar-cta {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
    padding: 30px 20px;
}
.sidebar-cta h4 {
    font-size: 18px;
    margin-bottom: 10px;
}
.sidebar-cta p {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 20px;
}
.sidebar-cta-btn {
    display: inline-block;
    background: white;
    color: var(--primary-color);
    padding: 12px 28px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s;
}
.sidebar-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
.main-content {
    flex: 1;
    min-width: 0;
    display: flex;
    gap: 40px;
}

.main-content-inner {
    flex: 1;
    min-width: 0;
}
@media (max-width: 768px) {
    .page-with-sidebar {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
    }
}

.partner-logo img,
.partner-logo a img {
    max-height: 60px !important;
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
}
