/* ==== 全局变量与重置 ==== */
:root {
    --primary-color: #0088cc;
    --primary-hover: #006699;
    --text-color: #333333;
    --text-light: #666666;
    --bg-color: #f8f9fa;
    --white: #ffffff;
    --border-color: #e5e5e5;
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-hover: 0 10px 24px rgba(0,0,0,0.12);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

a {
    text-decoration: none;
    color: inherit;
}

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

/* ==== 按钮样式 ==== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.2rem;
    border-radius: 8px;
}

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

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,136,204,0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

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

/* ==== 导航栏 ==== */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
}

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

.logo img {
    height: 40px;
    display: block;
}

.nav-links a {
    margin-left: 30px;
    font-weight: 500;
    transition: var(--transition);
}

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

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 160px;
    box-shadow: var(--shadow);
    z-index: 101;
    border-radius: 4px;
    top: 100%;
    left: 30px;
}

.dropdown-content a {
    color: var(--text-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    margin-left: 0;
    border-bottom: 1px solid var(--border-color);
}

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

.dropdown-content a:hover {
    background-color: var(--bg-color);
    color: var(--primary-color);
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* ==== 主视觉 Hero ==== */
.hero {
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f2ff 100%);
    padding: 150px 0 80px;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 2.5rem;
    color: #1a1a1a;
    margin-bottom: 20px;
    line-height: 1.3;
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.hero-image {
    flex: 1;
    text-align: right;
}

.hero-image img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow-hover);
}

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

.section-header h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* ==== 商品列表 ==== */
.products {
    padding: 80px 0;
    background-color: var(--white);
}

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

.product-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
}

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

.product-img-wrapper {
    width: 100%;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    position: relative;
    background-color: #fafafa;
}

.product-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.product-info p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 20px;
    min-height: 44px;
}

.product-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-size: 1.5rem;
    color: #e53935;
    font-weight: bold;
}

/* ==== 服务优势 ==== */
.features {
    padding: 80px 0;
}

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

.feature-item {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-item h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.feature-item p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ==== 客户评价 ==== */
.testimonials {
    padding: 80px 0;
    background-color: var(--white);
}

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

.testimonial-card {
    background-color: var(--bg-color);
    padding: 35px 30px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

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

.stars {
    color: #f5b041;
    font-size: 1.2rem;
    margin-bottom: 15px;
    letter-spacing: 3px;
}

.testimonial-text {
    flex-grow: 1;
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.author-icon {
    font-size: 2.5rem;
    margin-right: 15px;
    line-height: 1;
    /* 使用滤镜将emoji变成类似于截图中的深灰色扁平图标 */
    filter: grayscale(100%) brightness(50%) opacity(0.6);
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-company {
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 3px;
}

.author-title {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ==== 页脚 ==== */
.footer {
    background-color: #1a1a1a;
    color: #888;
    text-align: center;
    padding: 30px 0;
}

/* ==== 右侧悬浮联系方式 ==== */
.floating-contact {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
}

/* ==== 商品详情页 ==== */
.product-detail-section {
    padding: 120px 0 80px;
    min-height: 80vh;
}

.breadcrumb {
    margin-bottom: 20px;
    color: var(--text-light);
    font-size: 0.95rem;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

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

.product-detail-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: flex;
    overflow: hidden;
    margin-top: 20px;
}

.product-detail-image {
    flex: 1;
    max-width: 500px;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.product-detail-info {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
}

.product-detail-info h1 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #1a1a1a;
    line-height: 1.3;
}

.product-meta {
    margin-bottom: 25px;
    display: flex;
    gap: 15px;
}

.product-meta span {
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

.stock-status {
    background: #e8f5e9;
    color: #2e7d32;
}

.delivery-type {
    background: #e3f2fd;
    color: #1565c0;
}

.product-desc-short {
    margin-bottom: 40px;
    color: var(--text-light);
    flex-grow: 1;
    font-size: 1.05rem;
}

.product-action {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
}

.action-hint {
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.product-long-desc {
    margin-top: 50px;
    background: var(--white);
    padding: 50px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.product-long-desc h2,
.product-long-desc h3 {
    color: #1a1a1a;
    margin-top: 30px;
    margin-bottom: 15px;
}

.product-long-desc h2:first-child,
.product-long-desc h3:first-child {
    margin-top: 0;
}

.product-long-desc p {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 15px;
}

.product-long-desc ul,
.product-long-desc ol {
    margin-bottom: 20px;
    padding-left: 20px;
    color: var(--text-color);
}

.product-long-desc li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.product-long-desc strong {
    color: var(--primary-color);
}

.related-products {
    margin-top: 80px;
}

.related-products .section-header {
    margin-bottom: 40px;
}

.related-products .product-grid {
    grid-template-columns: repeat(4, 1fr);
}

/* 响应式调整详情页 */
@media (max-width: 768px) {
    .product-detail-card {
        flex-direction: column;
    }
    
    .product-detail-image {
        max-width: 100%;
    }
    
    .product-detail-info {
        padding: 30px 20px;
    }
    
    .product-detail-info h1 {
        font-size: 1.5rem;
    }

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


@keyframes bg-gradient-pulse {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.contact-toggle {
    background: linear-gradient(45deg, #2481cc, #9b59b6, #2ecc71);
    background-size: 200% 200%;
    animation: bg-gradient-pulse 3s ease infinite;
    color: var(--white);
    padding: 15px 10px;
    border-radius: 8px 0 0 8px;
    cursor: pointer;
    box-shadow: -2px 0 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.2;
    font-size: 14px;
}

.contact-panel {
    background: var(--white);
    width: 0;
    overflow: hidden;
    box-shadow: -5px 0 15px rgba(0,0,0,0.05);
    transition: width 0.3s ease;
    border-radius: 0 0 0 8px;
}

.floating-contact:hover .contact-panel,
.floating-contact.active .contact-panel {
    width: 260px;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

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

.contact-item .icon {
    font-size: 1.5rem;
    margin-right: 15px;
    width: 30px;
    text-align: center;
}

.contact-item .info {
    display: flex;
    flex-direction: column;
}

.contact-item .label {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 4px;
}

.contact-item .value {
    font-weight: bold;
    color: var(--text-color);
    font-size: 0.95rem;
}

/* ==== 动画效果 ==== */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* ==== SEO 新增排版样式 ==== */
.seo-section {
    padding: 80px 0;
}

.bg-light {
    background-color: #f8f9fa;
}

.pain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.pain-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: center;
    border-top: 4px solid #e74c3c;
    transition: transform 0.3s ease;
}

.pain-card:hover {
    transform: translateY(-5px);
}

.pain-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.pain-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.pain-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

.feature-list {
    max-width: 800px;
    margin: 40px auto 0;
}

.feature-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.feature-row .feature-icon {
    font-size: 2.5rem;
    margin-right: 25px;
    flex-shrink: 0;
}

.feature-row h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.feature-row p {
    color: var(--text-light);
    line-height: 1.7;
}

.category-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.cat-type-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-left: 4px solid var(--secondary-color);
}

.cat-type-card .cat-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cat-type-card h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.cat-type-card p {
    margin-bottom: 10px;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

.faq-list {
    max-width: 800px;
    margin: 40px auto 0;
}

.faq-item {
    background: var(--white);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.faq-q {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 600;
}

.faq-a {
    color: var(--text-light);
    line-height: 1.7;
    padding-left: 20px;
    border-left: 3px solid var(--primary-color);
}

/* ==== 客户的声音 (Testimonials) ==== */
.voices-section {
    padding: 80px 0;
    background-color: var(--white);
}

.voices-header {
    margin-bottom: 50px;
    text-align: left;
}

.voices-header h2 {
    font-size: 2.2rem;
    font-weight: 500;
    color: var(--text-dark);
}

.voices-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 80px;
    row-gap: 50px;
}

.voice-card {
    padding-bottom: 40px;
    border-bottom: 1px solid #eaeaea;
}

.voice-logo {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.voice-logo span {
    color: var(--text-dark);
    font-size: 1.1rem;
}

.voice-text {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 30px;
}

.voice-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e2e8f0;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
}

.author-info h4 {
    font-size: 1.05rem;
    color: var(--text-dark);
    margin-bottom: 5px;
    font-weight: 500;
}

.author-info span {
    font-size: 0.85rem;
    color: #999;
}

/* ==== 响应式 ==== */
@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .testimonial-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .voices-grid {
        grid-template-columns: 1fr;
        row-gap: 30px;
    }
    .voices-header {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-image {
        margin-top: 30px;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-row {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    .feature-row .feature-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .nav-links {
        display: none; /* 移动端简易处理：隐藏导航 */
    }
}
