/* ========================================
   华天协同OA系统官网 - 主样式文件
   ======================================== */

/* CSS变量定义 */
:root {
    --primary-color: #0066cc;
    --primary-dark: #004c99;
    --primary-light: #e6f0fa;
    --secondary-color: #ff6600;
    --text-dark: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    --border-color: #e5e5e5;
    --bg-light: #f5f7fa;
    --bg-white: #ffffff;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --container-width: 1200px;
}

/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    padding-top: 70px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
    outline: none;
    font-family: inherit;
}

input, textarea, select {
    font-family: inherit;
    outline: none;
}

/* 容器 */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* 顶部导航栏 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    margin-right: 30px;
}

.logo img {
    height: 36px;
    width: auto;
    margin-right: 12px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-name {
    font-size: 20px;
    font-weight: bold;
    color: #1a365d;
}

.logo-en {
    font-size: 11px;
    font-style: italic;
    color: #666;
    letter-spacing: 1px;
}

.nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: 28px;
}

.nav-item {
    position: relative;
}

.nav-link {
    font-size: 15px;
    color: var(--text-dark);
    padding: 25px 0;
    display: block;
    white-space: nowrap;
    transition: var(--transition);
}

.nav-link:hover,
.nav-item.active .nav-link {
    color: var(--primary-color);
}

.nav-item .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-item.active .nav-link::after {
    width: 100%;
}

/* 下拉菜单 */
.dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-white);
    box-shadow: 0 10px 40px rgba(0,0,0,0.15), 0 0 20px rgba(0,0,0,0.08);
    border: 1px solid #e8e8e8;
    border-radius: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    /* 左图右列表布局 */
    display: flex;
    min-width: 900px;
    overflow: hidden;
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
}

/* 下拉菜单左侧图片区 */
.dropdown-image {
    width: 200px;
    min-height: 100%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    position: relative;
    overflow: hidden;
}

.dropdown-image i {
    font-size: 48px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 12px;
}

.dropdown-image .dropdown-image-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    text-align: center;
    line-height: 1.4;
}

.dropdown-image .dropdown-image-desc {
    font-size: 12px;
    color: rgba(255,255,255,0.8);
    text-align: center;
    margin-top: 6px;
    line-height: 1.5;
}

/* 各导航项左侧图片区配色 */
.nav-item[data-nav="products"] .dropdown-image {
    background: linear-gradient(135deg, #0066cc 0%, #004c99 100%);
}
.nav-item[data-nav="products"] .dropdown {
    min-width: 800px;
    height: 180px;
}
.nav-item[data-nav="solutions"] .dropdown-image {
    background: linear-gradient(135deg, #00897b 0%, #004d40 100%);
}
.nav-item[data-nav="service"] .dropdown-image {
    background: linear-gradient(135deg, #e65100 0%, #bf360c 100%);
}
.nav-item[data-nav="service"] .dropdown {
    min-width: 800px;
    height: 180px;
}
.nav-item[data-nav="about"] .dropdown-image {
    background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
}
.nav-item[data-nav="about"] .dropdown {
    min-width: 800px;
    height: 180px;
}

/* 下拉菜单右侧链接区 */
.dropdown-links {
    flex: 1;
    padding: 12px 0;
    /* 两列链接 */
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 5px;
    min-width: 500px;
}

/* 只有1-3个子项时单列 */
.dropdown-links.single-col {
    grid-template-columns: 1fr;
    min-width: 240px;
}

/* 服务中心下拉：左侧3个 */
.dropdown-links.service-left {
    grid-template-columns: 1fr;
    min-width: 140px;
    flex: 1;
}

/* 服务中心下拉：右侧1个（下载中心） */
.dropdown-links.service-right {
    grid-template-columns: 1fr;
    min-width: 140px;
    flex: 1;
}

.dropdown li a {
    display: flex;
    align-items: center;
    padding: 8px 10px 8px 15px;
    color: var(--text-dark);
    font-size: 14px;
    transition: all 0.2s ease;
    border-radius: 0;
    gap: 10px;
    position: relative;
    white-space: nowrap;
}

.dropdown li a::before {
    content: '';
    display: inline-block;
    width: 1.5px;
    height: 12px;
    background: #ccc;
    border-radius: 2px;
    flex-shrink: 0;
    transition: height 0.2s ease, background 0.2s ease;
}

.dropdown li a:hover {
    background: #f0f5ff;
    color: #0052d9;
}

.dropdown li a:hover::before {
    height: 16px;
    background: #0052d9;
}

.dropdown li a i {
    display: none;
}

/* 解决方案下拉：左侧图片 + 右侧三列分类 */
.dropdown-links.solution-cols {
    display: flex;
    gap: 0;
    min-width: 850px;
    padding: 16px 0 30px;
}
/* 解决方案下拉：每个大分类等宽 */
.dropdown-links.solution-cols .solution-category {
    flex: 1;
    display: flex;
    border-right: 1px solid #e8e8e8;
}
.dropdown-links.solution-cols .solution-category-last {
    border-right: none;
}
.dropdown-links.solution-cols .solution-col {
    width: auto;
    flex: 1;
    padding: 0 16px;
    overflow: hidden;
}
/* 解决方案下拉：竖线由category wrapper控制 */
.dropdown-links.solution-cols .solution-col-header {
    display: block;
    padding: 8px 10px;
    margin-bottom: 8px;
    white-space: nowrap;
}
.dropdown-links.solution-cols .solution-col-header span {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}
.dropdown-links.solution-cols .solution-col-red .solution-col-header span {
    color: #333;
}
.dropdown-links.solution-cols li {
    margin: 0;
    height: 38px;
    line-height: 38px;
}
.dropdown-links.solution-cols li a {
    padding-left: 8px;
    white-space: nowrap;
}
.dropdown-links.solution-cols li a::before {
    display: none;
}

/* 头部按钮 */
.header-actions {
    display: flex;
    gap: 25px;
    align-items: center;
}

.header-hotline {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #333;
    font-weight: 500;
    text-decoration: none;
    margin-left: 20px;
}

.header-btn {
    padding: 10px 20px;
    font-size: 14px;
    transition: var(--transition);
}

/* 语言切换按钮 */
.lang-switch {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    font-size: 13px;
    color: #fff;
    background: #0066cc;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
    white-space: nowrap;
}
.lang-switch a {
    color: #fff;
    text-decoration: none;
    padding: 0 4px;
}
.lang-switch a:first-child {
    padding-left: 0;
}
.lang-switch a:last-child {
    padding-right: 0;
    padding-left: 4px;
}
.lang-switch:hover {
    background: #0052a3;
}
.lang-switch a:hover {
    text-decoration: underline;
}

.header-btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.header-btn-outline:hover {
    background: var(--primary-color);
    color: var(--bg-white);
}

.header-btn-primary {
    background: var(--primary-color);
    color: var(--bg-white);
}

.header-btn-primary:hover {
    background: var(--primary-dark);
}

/* 移动端菜单按钮 */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    background: transparent;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* 主视觉区域 */
.hero {
    margin-top: 70px;
    background: url('../images/banner/user01 (1).png') center center / cover no-repeat;
    color: var(--bg-white);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.1) 100%);
}

.hero .container {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    max-width: 600px;
}

.hero-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 35px;
    border-radius: 4px;
    border: none;
    font-size: 16px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--bg-white);
}

.btn-primary:hover {
    background: #e55a00;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
}

.btn-outline {
    border: 2px solid var(--bg-white);
    color: var(--bg-white);
    background: transparent;
}

.btn-outline:hover {
    background: var(--bg-white);
    color: var(--primary-color);
}

.hero-image {
    max-width: 500px;
}

.hero-image img {
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* 统计数字 */
.stats {
    background: var(--bg-white);
    padding: 60px 0;
    margin-top: -50px;
    position: relative;
    z-index: 2;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    background: var(--bg-white);
    border-radius: 10px;
    box-shadow: var(--shadow-hover);
    padding: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    color: var(--text-light);
}

/* 页面标题区 */
.page-header {
    background: url('../images/banner/user1.png') center center / cover no-repeat;
    color: #1a365d;
    padding: 30px 0;
    text-align: center;
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* 各页面banner背景 */
.page-header.products { background-image: url('../images/banner/user4.png'); }
.page-header.solutions { background-image: url('../images/banner/user3.png'); }
.page-header.news { background-image: url('../images/banner/user14.png'); }
.page-header.cases { background-image: url('../images/banner/ZEL5.PNG'); }
.page-header.about { background-image: url('../images/banner/user16.png'); }
.page-header.contact { background-image: url('../images/banner/user19.png'); }
.page-header.contact .page-title,
.page-header.contact .page-subtitle { color: #fff; }
.page-header.service { background-image: url('../images/banner/user17.jpg'); }
.page-header.download { background-image: url('../images/banner/user20.png'); }
.page-header.download .page-title,
.page-header.download .page-subtitle { color: #fff; }
.page-header.case-detail { background-image: url('../images/banner/user21.png'); }
.page-header.news-detail { background-image: url('../images/banner/user22.jpg'); }
.page-header .container { position: relative; z-index: 1; width: 100%; }

.page-title {
    font-size: 32px;
    margin-bottom: 10px;
}

.page-subtitle {
    font-size: 16px;
    opacity: 0.9;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    font-size: 14px;
}

.breadcrumb a:hover {
    opacity: 0.8;
}

.breadcrumb span {
    opacity: 0.7;
}

/* 区块标题 */
.section {
    padding: 80px 0;
}

.section-gray {
    background: var(--bg-light);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.section-title p {
    font-size: 18px;
    color: var(--text-light);
}

.section-title .highlight {
    color: var(--primary-color);
}

/* 产品卡片 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card {
    background: var(--bg-white);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid transparent;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.product-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--primary-color);
}

.product-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.product-card p {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.product-tag {
    padding: 5px 12px;
    background: var(--bg-light);
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-light);
}

/* 解决方案 */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.solution-card {
    display: flex;
    background: var(--bg-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.solution-image {
    width: 200px;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    font-size: 60px;
}

.solution-content {
    padding: 30px;
    flex: 1;
}

.solution-content h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.solution-content p {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.solution-link {
    color: var(--primary-color);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.solution-link:hover {
    gap: 10px;
}

/* 行业定制方案卡片 - Win10风格 左右布局 */
.industry-custom-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 40px;
}
.industry-card {
    background: #fff;
    border: 1px solid #ddd;
    padding: 0;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}
.industry-card:hover {
    border-color: #0078d4;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.industry-card:hover::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #0078d4;
}
.industry-card-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 12px;
    flex-shrink: 0;
    min-width: 70px;
}
.industry-card .industry-icon {
    width: 40px;
    height: 40px;
    background: #f3f3f3;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.industry-card:hover .industry-icon {
    background: #0078d4;
}
.industry-card .industry-icon i {
    font-size: 18px;
    color: #0078d4;
    transition: all 0.2s ease;
}
.industry-card:hover .industry-icon i {
    color: #fff;
}
.industry-card h3 {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 8px 0 0;
    text-align: center;
    line-height: 1.3;
}
.industry-card p {
    font-size: 12px;
    color: #666;
    line-height: 1.5;
    margin: 0;
    padding: 16px 16px 16px 0;
    flex: 1;
}

/* 业务应用卡片链接 */
.card-link {
    color: var(--primary-color);
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    transition: gap 0.3s;
}
.product-card:hover .card-link {
    gap: 10px;
}

/* 特性列表 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-item {
    text-align: center;
    padding: 30px 20px;
    background: var(--bg-white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    font-size: 30px;
}

.feature-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.feature-item p {
    font-size: 14px;
    color: var(--text-light);
}

/* 新闻列表 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    background: var(--bg-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.news-image {
    height: 200px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    color: var(--primary-color);
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content {
    padding: 25px;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    word-wrap: break-word;
}
.news-content h1 {
    font-size: 26px;
    font-weight: 700;
    color: #1a1f36;
    margin: 30px 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8e8e8;
}
.news-content h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1f36;
    margin: 28px 0 14px;
    padding-left: 12px;
    border-left: 4px solid #4a90d9;
}
.news-content h3 {
    font-size: 19px;
    font-weight: 600;
    color: #2c3e50;
    margin: 24px 0 12px;
}
.news-content h4 {
    font-size: 17px;
    font-weight: 600;
    color: #2c3e50;
    margin: 20px 0 10px;
}
.news-content h5, .news-content h6 {
    font-size: 16px;
    font-weight: 600;
    color: #555;
    margin: 16px 0 8px;
}
.news-content p {
    margin: 6px 0;
    text-indent: 0;
}
.news-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 16px 0;
    display: block;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.news-content ul, .news-content ol {
    padding-left: 24px;
    margin: 12px 0;
}
.news-content li {
    margin: 6px 0;
    line-height: 1.8;
}
.news-content blockquote {
    margin: 16px 0;
    padding: 12px 20px;
    background: #f5f7fa;
    border-left: 4px solid #4a90d9;
    color: #555;
    border-radius: 0 4px 4px 0;
}
.news-content a {
    color: #4a90d9;
    text-decoration: underline;
}
.news-content a:hover {
    color: #2c6ebb;
}
.news-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}
.news-content th, .news-content td {
    border: 1px solid #ddd;
    padding: 10px 14px;
    text-align: left;
}
.news-content th {
    background: #f5f7fa;
    font-weight: 600;
}
.news-content pre {
    background: #f5f5f5;
    padding: 16px;
    border-radius: 4px;
    overflow-x: auto;
    margin: 16px 0;
}
.news-content code {
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 14px;
}
.news-content hr {
    border: none;
    border-top: 1px solid #e8e8e8;
    margin: 24px 0;
}
.news-content strong {
    color: #1a1f36;
    font-weight: 600;
}

.news-date {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.news-card h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--text-dark);
    line-height: 1.5;
}

.news-card h3:hover {
    color: var(--primary-color);
}

.news-excerpt {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-link {
    color: var(--primary-color);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 案例展示 */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.case-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 300px;
    cursor: pointer;
}

.case-card .case-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    color: rgba(255, 255, 255, 0.3);
}

.case-card .case-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 102, 204, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    opacity: 0;
    transition: var(--transition);
    padding: 30px;
    text-align: center;
}

.case-card:hover .case-overlay {
    opacity: 1;
}

.case-overlay h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.case-overlay p {
    font-size: 14px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.case-tag {
    padding: 5px 15px;
    background: var(--bg-white);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 13px;
}

/* 合作伙伴 */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.partner-item {
    padding: 20px 12px;
    background: #f8faff;
    text-align: center;
    border: 1px solid #e8eef5;
    transition: all 0.3s;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.partner-item:hover {
    border-color: #4facfe;
    box-shadow: 0 5px 20px rgba(79,172,254,0.15);
}

.partner-item i {
    font-size: 24px;
    color: #4facfe;
    flex-shrink: 0;
}

.partner-item span {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.partner-intro {
    text-align: center;
    max-width: 900px;
    margin: 30px auto 0;
    padding: 20px;
    background: #f8faff;
    border-radius: 10px;
    color: #666;
    font-size: 14px;
    line-height: 1.8;
}

/* 服务流程 */
.service-process {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding: 40px 0;
}

.service-process::before {
    content: '';
    position: absolute;
    top: 70px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: var(--primary-light);
}

.process-step {
    text-align: center;
    position: relative;
    flex: 1;
}

.step-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    font-size: 32px;
    position: relative;
    z-index: 1;
}

.process-step h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.process-step p {
    font-size: 14px;
    color: var(--text-light);
    max-width: 200px;
    margin: 0 auto;
}

/* 关于我们 */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.about-text p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.about-stat {
    padding: 25px;
    background: var(--bg-light);
    border-radius: 10px;
    text-align: center;
}

.about-stat .number {
    font-size: 36px;
    font-weight: bold;
    background: linear-gradient(to right, #0066ff, #00ccff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
}

.about-stat .label {
    font-size: 14px;
    color: var(--text-light);
    font-weight: normal;
}

/* 联系我们 */
.contact-section {
    background: var(--bg-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h3 {
    font-size: 28px;
    margin-bottom: 30px;
    color: var(--text-dark);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    font-size: 20px;
    flex-shrink: 0;
}

.contact-text h4 {
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.contact-text p {
    font-size: 15px;
    color: var(--text-light);
}

.contact-form {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* 按钮样式 */
.btn-submit {
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    color: var(--bg-white);
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    background: var(--primary-dark);
}

/* 页脚 */
.footer {
    background: #f5f7fa;
    color: #333;
    padding: 60px 0 30px;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-about h3 {
    font-size: 24px;
    font-weight: normal;
    margin-bottom: 20px;
    color: #777;
}

.footer-about p {
    font-size: 14px;
    color: #777;
    margin-bottom: 20px;
    line-height: 1.8;
}

.footer-social {
    display: flex;
    gap: 15px;
    position: relative;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: #e0e5ec;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: #666;
}

.footer-social a:hover {
    background: #4facfe;
    color: #fff;
}

/* 社交图标气泡 */
.social-icon-wrap {
    position: relative;
}
.social-bubble {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    background: #fff;
    padding: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    z-index: 100;
    white-space: nowrap;
}
.social-bubble::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #fff;
}
.social-bubble img {
    width: 130px;
    height: auto;
    display: block;
}
.social-bubble em {
    display: block;
    text-align: center;
    font-style: normal;
    font-size: 12px;
    color: #666;
    margin-top: 6px;
}
.social-bubble-text {
    padding: 8px 14px;
    font-size: 13px;
    color: #333;
}
.social-icon-wrap:hover .social-bubble {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
}

.footer h4 {
    font-size: 18px;
    font-weight: normal;
    margin-bottom: 25px;
    color: #777;
}

.footer-links li {
    margin-bottom: 6px;
}

/* 产品中心网格布局：2列4行 */
.footer-products {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px 8px;
}
.footer-products li {
    margin-bottom: 2px;
    white-space: nowrap;
}

.footer-links a {
    font-size: 14px;
    color: #777;
    transition: var(--transition);
}

.footer-links a:hover {
    color: #4facfe;
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #777;
}

.footer-bottom {
    border-top: 1px solid #e0e0e0;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #999;
}

.footer-bottom a {
    color: #666;
    margin-left: 20px;
}

.footer-bottom a:hover {
    color: var(--bg-white);
}

/* CTA区域 */
.cta-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #e55a00 100%);
    color: var(--bg-white);
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.cta-section .btn-outline {
    border-color: var(--bg-white);
}

.cta-section .btn-outline:hover {
    background: var(--bg-white);
    color: var(--secondary-color);
}

/* 返回顶部 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 15px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    color: var(--text-dark);
    transition: var(--transition);
}

.pagination a:hover,
.pagination .active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--bg-white);
}

/* 加载动画 */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px;
}

.loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-white);
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 30px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h3 {
    font-size: 20px;
    color: var(--text-dark);
}

.modal-close {
    width: 30px;
    height: 30px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--primary-color);
    color: var(--bg-white);
}

/* 工具提示 */
.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 12px;
    background: var(--text-dark);
    color: var(--bg-white);
    font-size: 12px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
}

/* 面包屑 */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* 搜索框 */
.search-box {
    display: flex;
    background: var(--bg-white);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.search-box input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    font-size: 14px;
}

.search-box button {
    padding: 12px 25px;
    background: var(--primary-color);
    color: var(--bg-white);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.search-box button:hover {
    background: var(--primary-dark);
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-state .icon {
    font-size: 80px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.empty-state p {
    font-size: 16px;
    color: var(--text-light);
}

/* 页面切换动画 */
.page-transition {
    opacity: 0;
    transform: translateY(20px);
}

.page-transition.active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* 右侧悬浮客服栏 */
.side-bar {
    position: fixed;
    right: 15px;
    bottom: 100px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.side-item {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(79,172,254,0.4);
    position: relative;
    cursor: pointer;
}

.side-item:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(79,172,254,0.5);
}

.side-item i {
    font-size: 20px;
}

/* 电话悬浮弹窗 */
.phone-popup {
    position: absolute;
    right: 58px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(79,172,254,0.4);
}

.phone-popup::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border: 8px solid transparent;
    border-left-color: #00f2fe;
}

.side-item.phone-item:hover .phone-popup {
    opacity: 1;
    visibility: visible;
    right: 65px;
}

@media (max-width: 768px) {
    .side-bar {
        display: none;
    }
}

/* ========================================
   服务中心页面样式
   ======================================== */

/* 服务概览 */
/* === 服务页 - 顶部数据条 === */
.svc-stats-bar {
    background: linear-gradient(135deg, #2b6cb0 0%, #4facfe 50%, #2b6cb0 100%);
    padding: 0;
}

.svc-stats-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.svc-stat {
    text-align: center;
    padding: 36px 20px;
    position: relative;
}

.svc-stat:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background: rgba(255,255,255,0.15);
}

.svc-stat-num {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

.svc-stat-label {
    font-size: 14px;
    color: rgba(255,255,255,0.85);
}

/* === 服务页 - 板块布局 === */
.svc-section {
    padding: 80px 0;
    background: var(--bg-white);
}

.svc-section-alt {
    background: var(--bg-light);
}

.svc-section-head {
    text-align: center;
    margin-bottom: 50px;
}

.svc-section-tag {
    display: inline-block;
    font-size: 12px;
    color: var(--primary-color);
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 10px;
    padding: 4px 16px;
    background: var(--primary-light);
}

.svc-section-title {
    font-size: 32px;
    color: var(--text-dark);
    margin-bottom: 16px;
    font-weight: 700;
}

.svc-section-desc {
    font-size: 15px;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* === 服务页 - 卡片网格 === */
.svc-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.svc-card {
    background: #f8f9fa;
    padding: 25px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.svc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #4facfe);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.svc-card:hover {
    background: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(74, 144, 217, 0.12);
    transform: translateY(-2px);
}

.svc-card:hover::before {
    transform: scaleX(1);
}

.svc-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.svc-card-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #e8f4fd, #f0f7ff);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.25s;
}

.svc-card-icon i {
    font-size: 16px;
    color: var(--primary-color);
    transition: all 0.25s;
}

.svc-card:hover .svc-card-icon {
    background: linear-gradient(135deg, #e8f4fd, #f0f7ff);
}

.svc-card:hover .svc-card-icon i {
    color: var(--primary-color);
}

.svc-card h3 {
    font-size: 16px;
    font-weight: normal;
    color: #1a365d;
    margin: 0;
    line-height: 1.4;
}

.svc-card p {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.svc-section-alt .svc-card {
    background: #fff;
    border: 1px solid #e0e0e0;
}

/* === 服务页 - 五步实施法 === */
.svc-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 50px;
    gap: 0;
}

.svc-step {
    text-align: center;
    flex: 1;
    max-width: 180px;
}

.svc-step-num {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), #4facfe);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}

.svc-step-body h3 {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 6px;
    font-weight: 600;
}

.svc-step-body p {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.6;
}

.svc-step-connector {
    color: #cbd5e0;
    font-size: 16px;
    padding: 0 6px;
    margin-bottom: 40px;
}

/* === 服务页 - 服务承诺 === */
.svc-promises {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 50px;
}

.svc-promise {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #e8740c, #f5a623);
    color: #fff;
    transition: var(--transition);
}

.svc-promise:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(232,116,12,0.35);
}

.svc-promise-icon {
    font-size: 22px;
    color: #fff;
    flex-shrink: 0;
}

.svc-promise strong {
    font-size: 18px;
    color: #fff;
    margin-right: 4px;
}

.svc-promise span {
    font-size: 13px;
    color: rgba(255,255,255,0.85);
}

/* 响应式适配 */
@media (max-width: 1024px) {
    .svc-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .svc-steps {
        flex-wrap: wrap;
        gap: 16px;
    }

    .svc-step-connector {
        display: none;
    }

    .svc-step {
        max-width: calc(33% - 12px);
    }
}

@media (max-width: 768px) {
    .svc-stats-inner {
        grid-template-columns: repeat(2, 1fr);
    }

    .svc-stat:nth-child(2)::after {
        display: none;
    }

    .svc-stat-num {
        font-size: 24px;
    }

    .svc-section-title {
        font-size: 24px;
    }

    .svc-cards {
        grid-template-columns: 1fr;
    }

    .svc-step {
        max-width: calc(50% - 8px);
    }

    .svc-promises {
        grid-template-columns: repeat(2, 1fr);
    }
}
