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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

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

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.back-to-top.show {
    display: flex;
}

/* 侧边在线客服 */
.customer-service {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 1000;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

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

.service-panel {
    position: absolute;
    right: 0;
    bottom: 80px;
    width: 320px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    display: none;
    overflow: hidden;
}

.service-panel.show {
    display: block;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.service-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.close-btn {
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.2s;
}

.close-btn:hover {
    transform: rotate(90deg);
}

.service-content {
    padding: 20px;
}

.service-content p {
    margin-bottom: 10px;
    color: #666;
    font-size: 14px;
}

.service-contact {
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.service-contact p {
    margin-bottom: 8px;
    font-size: 13px;
}

.service-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.service-btn {
    flex: 1;
    padding: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.service-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* 头部导航 */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.logo h1 {
    font-size: 24px;
    color: #333;
    margin-bottom: 5px;
}

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

.nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    transition: color 0.3s;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #667eea;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: #667eea;
}

/* 主横幅 */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 42px;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 50px;
}

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

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 16px;
    opacity: 0.9;
}

/* 产品服务区域 */
.products {
    padding: 80px 0;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 10px;
    color: #333;
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: #999;
    margin-bottom: 50px;
}

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

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-image-wrapper {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f0f0f0;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s;
}

.product-image:hover {
    transform: scale(1.05);
}

.product-info {
    padding: 25px;
}

.product-title {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

.product-desc {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.feature-tag {
    padding: 5px 12px;
    background: #f0f0f0;
    border-radius: 20px;
    font-size: 12px;
    color: #666;
}

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

.product-price {
    font-size: 24px;
    font-weight: 700;
    color: #667eea;
}

.btn-order {
    padding: 10px 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-order:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* 关于我们 */
.about {
    padding: 80px 0;
    background: #f8f9fa;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-top: 50px;
}

.about-text p {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.8;
    font-size: 16px;
}

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

.highlight-item {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 8px;
}

.highlight-item h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.highlight-item p {
    color: #999;
    font-size: 14px;
}

.about-image {
    border-radius: 12px;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* 联系我们 */
.contact {
    padding: 80px 0;
    background: white;
}

.contact-content {
    max-width: 800px;
    margin: 50px auto 0;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.contact-item {
    padding: 25px;
    background: #f8f9fa;
    border-radius: 8px;
}

.contact-item h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.contact-item p {
    color: #666;
    font-size: 16px;
}

/* 页脚 */
.footer {
    background: #2c3e50;
    color: white;
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-info p {
    margin-bottom: 5px;
    color: #ecf0f1;
}

.footer-beian a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-beian a:hover {
    color: #667eea;
}

/* 产品详情页 */
.product-detail {
    padding: 40px 0 80px;
    background: white;
}

.detail-breadcrumb {
    padding: 20px 0;
    color: #999;
    font-size: 14px;
}

.detail-breadcrumb a {
    color: #667eea;
    text-decoration: none;
}

.detail-breadcrumb span {
    color: #333;
}

.detail-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 30px;
}

.detail-images {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.detail-main-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 12px;
}

.detail-thumbnails {
    display: flex;
    gap: 10px;
}

.detail-thumbnails img {
    width: 100px;
    height: 75px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.3s;
}

.detail-thumbnails img:hover {
    transform: scale(1.1);
}

.detail-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.detail-title {
    font-size: 32px;
    color: #333;
    margin-bottom: 10px;
}

.detail-subtitle {
    font-size: 18px;
    color: #999;
}

.detail-price {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.price-label {
    font-size: 16px;
    color: #666;
}

.price-value {
    font-size: 32px;
    font-weight: 700;
    color: #667eea;
    margin-left: 10px;
}

.detail-features h3,
.detail-description h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.detail-features ul {
    list-style: none;
}

.detail-features li {
    padding: 10px 0;
    color: #666;
    font-size: 16px;
}

.detail-description p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 16px;
}

.detail-actions {
    display: flex;
    gap: 15px;
}

.btn-order-large {
    flex: 1;
    padding: 15px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    text-align: center;
    font-size: 16px;
    transition: all 0.3s;
}

.btn-order-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-consult {
    flex: 1;
    padding: 15px 30px;
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-consult:hover {
    background: #667eea;
    color: white;
}

/* 下单页面 */
.order-page {
    padding: 40px 0 80px;
    background: white;
}

.order-breadcrumb {
    padding: 20px 0;
    color: #999;
    font-size: 14px;
}

.order-breadcrumb a {
    color: #667eea;
    text-decoration: none;
}

.order-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.order-title {
    font-size: 28px;
    margin-bottom: 30px;
    color: #333;
}

.order-product-info {
    margin-bottom: 30px;
}

.order-product-card {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
}

.order-product-card img {
    width: 150px;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
}

.order-product-details h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

.order-product-price {
    font-size: 24px;
    font-weight: 700;
    color: #667eea;
}

.order-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.required {
    color: #e74c3c;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.link {
    color: #667eea;
    text-decoration: none;
}

.link:hover {
    text-decoration: underline;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.btn-submit {
    flex: 1;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-reset {
    flex: 1;
    padding: 15px;
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-reset:hover {
    background: #667eea;
    color: white;
}

.order-summary {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.order-summary h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

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

.summary-label {
    color: #666;
    font-size: 14px;
}

.summary-value {
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.summary-note {
    margin-top: 20px;
    padding: 15px;
    background: white;
    border-radius: 6px;
}

.summary-note p {
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.summary-note ul {
    list-style: none;
    padding-left: 0;
}

.summary-note li {
    padding: 5px 0;
    color: #666;
    font-size: 13px;
    line-height: 1.6;
}

.order-contact {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
}

.order-contact h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
}

.contact-item {
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

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

.contact-item p {
    margin-bottom: 5px;
    color: #666;
    font-size: 14px;
}

.contact-value {
    color: #333;
    font-weight: 500;
    font-size: 16px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 20px;
    }

    .nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 30px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-highlights {
        grid-template-columns: 1fr;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .detail-main {
        grid-template-columns: 1fr;
    }

    .order-content {
        grid-template-columns: 1fr;
    }

    .service-panel {
        width: 280px;
    }

    .back-to-top {
        right: 20px;
        bottom: 80px;
    }
}
