/* 重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a{
    text-decoration: none;
}

/* 通用图片样式 - 兼容各种图片大小 */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 产品图片样式 */
.product-image {
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 服务图片样式 */
.service-image {
    position: relative;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 画廊图片样式 */
.gallery-image {
    position: relative;
    overflow: hidden;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

/* 产品详情主图样式 */
.main-image {
    position: relative;
    overflow: hidden;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

/* 缩略图样式 */
.thumbnail {
    position: relative;
    overflow: hidden;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.2s ease;
}

:root {
    --primary-color: #0066ff;
    --primary-gradient: linear-gradient(135deg, #0066ff 0%, #00c6ff 100%);
    --secondary-color: #6a11cb;
    --secondary-gradient: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    --accent-color: #ff6b6b;
    --accent-gradient: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    --text-color: #1a202c;
    --light-text: #4a5568;
    --lighter-text: #718096;
    --bg-color: #f7fafc;
    --card-bg: #ffffff;
    --card-hover-bg: #fafbfc;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --border-radius-sm: 6px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    --transition-fast: all 0.2s ease;
    --transition-normal: all 0.3s ease;
    --transition-slow: all 0.5s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.75;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

/* 顶部导航栏 */
.top-nav {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 5px 0;
    font-size: 12px;
}

.top-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-nav-left {
    display: flex;
    gap: 15px;
}

.top-nav-right {
    display: flex;
    gap: 15px;
}

.top-nav a {
    color: var(--light-text);
    text-decoration: none;
    transition: var(--transition-normal);
}

.top-nav a:hover {
    color: var(--primary-color);
}

/* 主导航栏 */
header {
    background: var(--primary-gradient);
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    overflow: visible;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    position: relative;
}

/* 汉堡菜单按钮 */
.menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    position: relative;
}

/* 确保汉堡菜单按钮在移动端可见 */
@media (max-width: 768px) {
    .menu-btn {
        display: block !important;
    }
}

.menu-icon {
    display: block;
    width: 30px;
    height: 3px;
    background: white;
    position: relative;
    transition: all 0.3s ease;
}

.menu-icon::before,
.menu-icon::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 3px;
    background: white;
    transition: all 0.3s ease;
}

.menu-icon::before {
    top: -8px;
}

.menu-icon::after {
    top: 8px;
}

.menu-btn.active .menu-icon {
    transform: rotate(45deg);
}

.menu-btn.active .menu-icon::before {
    top: 0;
    transform: rotate(90deg);
}

.menu-btn.active .menu-icon::after {
    top: 0;
    transform: rotate(90deg);
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
    text-decoration: none;
    transition: var(--transition-normal);
    position: relative;
    padding-left: 85px;
    min-height: 50px;
}

.logo:hover {
    transform: scale(1.02);
}

.logo img,
.logo-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 8px;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.logo-text-container {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
}

.logo-text {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 1px;
}

.logo-subtext {
    font-size: 16px;
    opacity: 0.95;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-normal);
    position: relative;
    padding: 12px 0;
    font-size: 16px;
    letter-spacing: 0.5px;
}

.nav-links a.active {
    border-bottom: 3px solid white;
}

.nav-links a:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* 主要内容区域 */
main {
    padding: 50px 0;
}

/* 服务卡片区域 */
.services {
    padding: 40px 0;
    background-color: white;
}

.services .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.service-card {
    text-align: center;
    transition: var(--transition-normal);
    cursor: pointer;
    padding: 40px 30px;
    background-color: var(--card-bg);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    background-color: var(--card-hover-bg);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-md);
    color: white;
    position: relative;
    overflow: hidden;
}

.service-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.3) 100%);
    transform: scale(0);
    transition: var(--transition-normal);
    border-radius: 50%;
}

.service-card:hover .service-icon {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.service-card:hover .service-icon::before {
    transform: scale(1);
}

.service-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-color);
}

.service-description {
    font-size: 14px;
    color: var(--light-text);
    line-height: 1.6;
    text-align: center;
    max-width: 200px;
    margin: 0 auto;
}

/* 服务推荐区域 */
.service-recommendations {
    padding: 40px 0;
    background-color: var(--bg-color);
}

.section-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 32px;
    color: var(--text-color);
    line-height: 1.3;
}

.slider-container {
    position: relative;
    overflow: hidden;
    padding: 0 20px;
}

.service-slider {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding: 20px 0;
    scroll-behavior: smooth;
    position: relative;
}

.service-slider::-webkit-scrollbar {
    height: 8px;
}

.service-slider::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.service-slider::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 4px;
}

.service-slider .service-item {
    min-width: 240px;
    background-color: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

.service-slider .service-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
}

.service-slider .service-image {
    width: 100%;
    height: 160px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.service-slider .service-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.05) 0%, rgba(0, 198, 255, 0.05) 100%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-slider .service-item:hover .service-image {
    background: linear-gradient(135deg, #ffffff 0%, #f0f4f8 100%);
}

.service-slider .service-item:hover .service-image::before {
    opacity: 1;
}

.service-slider .service-info {
    padding: 20px;
}

.service-slider .service-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-color);
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.service-slider .service-price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 6px;
}

.service-slider .service-spec {
    font-size: 13px;
    color: var(--lighter-text);
    line-height: 1.4;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 102, 255, 0.3);
    border-color: var(--primary-color);
}

.slider-btn-prev {
    left: 0;
}

.slider-btn-next {
    right: 0;
}

/* 产品推荐区域 */
.product-recommendations {
    padding: 40px 0;
    background-color: white;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.product-item {
    background-color: var(--card-bg);
    border: none;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.product-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
}

.product-image {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.05) 0%, rgba(0, 198, 255, 0.05) 100%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-item:hover .product-image {
    background: linear-gradient(135deg, #ffffff 0%, #f0f4f8 100%);
}

.product-item:hover .product-image::before {
    opacity: 1;
}

.product-image .placeholder {
    opacity: 0.5;
}

.product-info {
    padding: 20px;
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-color);
    line-height: 1.4;
    height: 48px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-spec {
    font-size: 13px;
    color: var(--lighter-text);
    margin-bottom: 8px;
    line-height: 1.4;
}

.product-brand {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.product-vendor {
    font-size: 13px;
    color: var(--lighter-text);
    margin-bottom: 10px;
}

.product-price-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.product-price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 20px;
}

.product-original-price {
    font-size: 14px;
    color: var(--lighter-text);
    text-decoration: line-through;
}

.product-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.buy-btn {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.2);
}

.buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 102, 255, 0.3);
}

.compare-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 1px solid #cbd5e0;
    padding: 10px 18px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    color: var(--lighter-text);
}

.compare-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: rgba(0, 102, 255, 0.05);
}

/* 辅助功能按钮 */
.helper-buttons {
    position: fixed;
    right: 24px;
    bottom: 50px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}

.helper-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: white;
    border: 2px solid #e2e8f0;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.helper-btn:hover {
    background: var(--primary-gradient);
    color: white;
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

/* 换色面板 */
.theme-picker-panel {
    position: fixed;
    right: 90px;
    bottom: 50px;
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px);
    transition: all 0.3s ease;
    min-width: 220px;
}

.theme-picker-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.theme-picker-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 16px;
    text-align: center;
}

.theme-colors {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.theme-color-item {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.theme-color-item:hover {
    transform: scale(1.1);
}

.theme-color-item.active {
    border-color: var(--text-color);
}

.theme-color-item.active::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 16px;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.theme-custom-color {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.theme-custom-color label {
    font-size: 14px;
    color: var(--light-text);
}

.theme-custom-color input[type="color"] {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    padding: 0;
    background: none;
}

.theme-custom-color input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

.theme-custom-color input[type="color"]::-webkit-color-swatch {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
}

/* 页脚 */
footer {
    background-color: white;
    border-top: 1px solid #e0e0e0;
    padding: 60px 0 0;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    margin-bottom: 20px;
}

.footer-section h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-color);
}

.customer-service {
    text-align: center;
}

.service-phone {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.service-hours {
    font-size: 14px;
    color: var(--light-text);
    margin-bottom: 15px;
}

.contact-service-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition-normal);
}

.contact-service-btn:hover {
    background-color: #005a9e;
}

.about-section p {
    font-size: 14px;
    color: var(--light-text);
    line-height: 1.8;
}

.wechat-section {
    text-align: center;
}

.wechat-section .wechat-qr {
    width: 120px;
    height: 120px;
    background-color: #f0f0f0;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.wechat-section p {
    font-size: 14px;
    color: var(--light-text);
}

/* 底部承诺 */
.footer-commitments {
    background-color: #333;
    color: white;
    padding: 20px 0;
    margin-top: 20px;
}

.commitments-container {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.commitment-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.commitment-icon {
    width: 30px;
    height: 30px;
    background-color: white;
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.commitment-text {
    font-size: 14px;
    font-weight: 500;
}

/* 版权信息 */
.footer-bottom, .copyright {
    background-color: #f8f8f8;
    padding: 20px 0;
    text-align: center;
    font-size: 12px;
    color: var(--light-text);
}

.footer-bottom-links, .copyright-links {
    margin-bottom: 10px;
}

.footer-bottom-links a, .copyright-links a {
    color: var(--light-text);
    text-decoration: none;
    margin: 0 10px;
}

.footer-bottom-links a:hover, .copyright-links a:hover {
    color: var(--primary-color);
}

/* 右侧联系方式悬浮窗 */
.contact-float {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    background: var(--primary-gradient);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-item:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.contact-item::before {
    content: attr(data-text);
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin-right: 10px;
}

.contact-item:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(-10px);
}

.contact-icon {
    font-size: 24px;
    transition: transform 0.3s ease;
}

.contact-item:hover .contact-icon {
    transform: scale(1.2);
}

/* 客服信息悬浮框 */
.service-popup {
    position: fixed;
    right: 100px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    padding: 20px;
    width: 280px;
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.service-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(-20px);
}

.service-popup::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    border: 10px solid transparent;
    border-left-color: white;
}

.service-header {
    text-align: center;
    margin-bottom: 20px;
}

.service-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.service-subtitle {
    font-size: 14px;
    color: #666;
}

.service-info {
    margin-bottom: 20px;
}

.service-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
}

.service-info-icon {
    width: 20px;
    text-align: center;
    color: var(--primary-color);
}

.service-qr {
    text-align: center;
    margin-bottom: 15px;
}

.service-qr img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.service-qr-text {
    font-size: 12px;
    color: #666;
    margin-top: 8px;
}

.service-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
}

.service-close:hover {
    color: var(--primary-color);
}

/* 客服类型选择 */
.service-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.service-tab {
    flex: 1;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.service-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.service-content {
    display: none;
}

.service-content.active {
    display: block;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .top-nav {
        display: none;
    }
    
    .menu-btn {
        display: block;
    }
    
    .contact-float {
        right: 15px;
        gap: 10px;
    }
    
    .contact-item {
        width: 50px;
        height: 50px;
    }
    
    .contact-icon {
        font-size: 20px;
    }
    
    .contact-item::before {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .service-popup {
        right: 70px;
        width: 240px;
        padding: 15px;
    }
    
    .service-title {
        font-size: 16px;
    }
    
    .service-qr img {
        width: 100px;
        height: 100px;
    }
    
    .logo {
        padding-left: 70px;
    }
    
    .logo img,
    .logo-image {
        width: 60px;
        height: 60px;
    }
    
    .logo-text-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
    
    .logo-text {
        font-size: 18px;
    }
    
    .logo-subtext {
        font-size: 12px;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--primary-gradient);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transition: right 0.3s ease;
        z-index: 1000;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li a {
        font-size: 18px;
        padding: 15px 0;
        width: 100%;
        text-align: center;
    }
    
    .helper-buttons {
        right: 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .about-section p {
        text-align: center;
    }
    
    .commitments-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .footer-commitments {
        padding: 15px 0;
    }
    
    .commitment-item {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .logo {
        padding-left: 50px;
    }
    
    .logo img,
    .logo-image {
        width: 40px;
        height: 40px;
    }
    
    .logo-text-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }
    
    .logo-text {
        font-size: 16px;
    }
    
    .logo-subtext {
        font-size: 11px;
    }
    
    .helper-buttons {
        right: 10px;
    }
    
    .helper-btn {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
}
