/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333333;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    overflow-x: hidden;
}

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

/* 导航栏 - 白色背景，IBM风格 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-brand h1 {
    font-size: 28px;
    font-weight: 700;
    color: #212529;
    letter-spacing: 2px;
    text-shadow: none;
}

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

.nav-link {
    text-decoration: none;
    color: #495057;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 16px;
    border-radius: 6px;
}

.nav-link:hover,
.nav-link.active {
    color: #212529;
    background: rgba(0, 0, 0, 0.05);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: #212529;
    border-radius: 1px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #212529;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* 头部横幅 */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%236c757d" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(108, 117, 125, 0.1) 0%, rgba(73, 80, 87, 0.05) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(33, 37, 41, 0.1);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #6c757d;
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

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

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #495057;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

/* 筛选器区域 */
.filter-section {
    background: rgba(255, 255, 255, 0.8);
    padding: 30px 0;
    border-bottom: 1px solid rgba(108, 117, 125, 0.2);
    backdrop-filter: blur(10px);
}

.filter-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

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

.filter-label {
    font-size: 0.9rem;
    color: #495057;
    font-weight: 600;
}

.filter-select {
    padding: 12px 16px;
    border: 2px solid rgba(108, 117, 125, 0.3);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.9);
    color: #495057;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    min-width: 150px;
}

.filter-select:focus {
    outline: none;
    border-color: #6c757d;
    box-shadow: 0 0 0 3px rgba(108, 117, 125, 0.1);
}

.filter-reset {
    padding: 12px 24px;
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.filter-reset:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

/* 主要内容区域 */
.main-content {
    padding: 10px 0;
    min-height: 100vh;
}

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

/* 产品卡片 - 黑白灰风格 */
.product-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    border: 1px solid rgba(108, 117, 125, 0.1);
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6c757d, #495057);
    z-index: 1;
}

.product-image {
    position: relative;
    height: 340px;
    overflow: hidden;
    display:flex;
   justify-items: center;
     align-items: center;
     text-align:center;

   
}

.product-image img {
    width: 90%;
    transition: transform 0.4s ease;
    margin:0 auto;
    
}

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

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.product-content {
    padding: 25px;
}

.product-brand {
    font-size: 1.4rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(33, 37, 41, 0.1);
}

.product-title {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 15px;
    font-weight: 500;
}

.product-specs {
    color: #495057;
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.spec-label {
    color: #6c757d;
    font-weight: 500;
}

.spec-value {
    color: #212529;
    font-weight: 600;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 25px;
}

.price-amount {
    font-size: 1.8rem;
    font-weight: 700;
    color: #495057;
}

.price-label {
    color: #6c757d;
    font-size: 0.9rem;
}

.product-actions {
    display: flex;
    gap: 12px;
}

.btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: #495057;
    border: 2px solid rgba(108, 117, 125, 0.3);
}

.btn-secondary:hover {
    background: rgba(108, 117, 125, 0.1);
    border-color: #6c757d;
    color: #212529;
}

/* 加载状态 */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #6c757d;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(108, 117, 125, 0.3);
    border-top: 3px solid #6c757d;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-size: 0.9rem;
    color: #6c757d;
}

/* 没有更多数据提示 */
.no-more-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 30px;
    margin: 50px auto;
    max-width: 600px;
    width: calc(100% - 40px);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.no-more-text {
    font-size: 1rem;
    color: #495057;
    font-weight: 500;
    text-align: center;
    letter-spacing: 0.5px;
    line-height: 1.5;
    margin: 0;
    position: relative;
    padding: 0 20px;
}

.no-more-text::before,
.no-more-text::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #6c757d);
    border-radius: 1px;
}

.no-more-text::before {
    left: -35px;
    transform: translateY(-50%);
}

.no-more-text::after {
    right: -35px;
    transform: translateY(-50%);
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
    z-index: 1000;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

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

/* 模态框 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.modal-header {
    padding: 25px 30px;
    border-bottom: 1px solid rgba(108, 117, 125, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #212529;
}

.modal-close {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(108, 117, 125, 0.2);
    color: #212529;
}

.modal-body {
    padding: 30px;
    color: #495057;
    line-height: 1.7;
}

/* 联系我们页面样式 */

/* 页面标题 */
.page-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 40px 0;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(33, 37, 41, 0.1);
}

.page-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    line-height: 1.6;
}

/* 联系信息卡片网格 */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.contact-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(108, 117, 125, 0.1);
    transition: all 0.4s ease;
    position: relative;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6c757d, #495057);
    border-radius: 20px 20px 0 0;
}

.contact-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #6c757d, #495057);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    box-shadow: 0 8px 20px rgba(108, 117, 125, 0.3);
}

.contact-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 15px;
}

.contact-info {
    font-size: 1.1rem;
    color: #495057;
    font-weight: 500;
    margin-bottom: 8px;
}

.contact-detail {
    font-size: 0.9rem;
    color: #6c757d;
}

/* 联系表单区域 */
.contact-form-section {
    margin-bottom: 80px;
}

.form-container {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(108, 117, 125, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.form-title {
    font-size: 2rem;
    font-weight: 700;
    color: #212529;
    text-align: center;
    margin-bottom: 10px;
}

.form-subtitle {
    font-size: 1rem;
    color: #6c757d;
    text-align: center;
    margin-bottom: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

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

.form-label {
    font-size: 0.95rem;
    color: #495057;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
    padding: 15px 20px;
    border: 2px solid rgba(108, 117, 125, 0.3);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.9);
    color: #495057;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #6c757d;
    box-shadow: 0 0 0 3px rgba(108, 117, 125, 0.1);
}

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

.form-submit {
    padding: 18px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.form-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

.form-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.submit-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* 公司简介 */
.company-intro {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(108, 117, 125, 0.1);
    text-align: center;
}

.intro-title {
    font-size: 2rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 25px;
}

.intro-text {
    font-size: 1.1rem;
    color: #495057;
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.intro-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: rgba(108, 117, 125, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(108, 117, 125, 0.2);
}

.feature-icon {
    font-size: 1.2rem;
    color: #6c757d;
    font-weight: bold;
}

.feature-text {
    font-size: 1rem;
    color: #495057;
    font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

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

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-stats {
        gap: 20px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .filter-container {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        width: 100%;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 15px;
    }

    .product-specs {
        font-size: 0.9rem;
    }

    .product-actions {
        flex-direction: column;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .modal-content {
        width: 95%;
        margin: 20px;
    }

    .modal-header {
        padding: 20px;
    }

    .modal-body {
        padding: 20px;
    }
    
    /* 移动端优化"已加载全部产品"提示 */
    .no-more-container {
        padding: 40px 20px;
        margin: 40px auto;
        max-width: 500px;
        width: calc(100% - 30px);
    }
    
    .no-more-text {
        font-size: 0.95rem;
        padding: 0 15px;
    }
    
    .no-more-text::before,
    .no-more-text::after {
        width: 25px;
    }
    
    .no-more-text::before {
        left: -30px;
    }
    
    .no-more-text::after {
        right: -30px;
    }

    .page-title {
        font-size: 2rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-card {
        padding: 30px 20px;
    }
    
    .form-container {
        padding: 30px 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .form-title {
        font-size: 1.5rem;
    }
    
    .company-intro {
        padding: 30px 20px;
    }
    
    .intro-title {
        font-size: 1.5rem;
    }
    
    .intro-features {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2rem;
    }

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

    .product-content {
        padding: 20px;
    }

    .product-title {
        font-size: 1rem;
    }

    .price-amount {
        font-size: 1.5rem;
    }
    
    /* 小屏幕进一步优化"已加载全部产品"提示 */
    .no-more-container {
        padding: 15px 15px;
        margin: 0px auto;
        max-width: 450px;
        width: calc(100% - 20px);
        margin-top: 20px;
    }
    
    .no-more-text {
        font-size: 0.9rem;
        padding: 0 12px;
    }
    
    .no-more-text::before,
    .no-more-text::after {
        width: 20px;
    }
    
    .no-more-text::before {
        left: -25px;
    }
    
    .no-more-text::after {
        right: -25px;
    }

    .page-header {
        margin-bottom: 40px;
        padding: 30px 0;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .contact-card {
        padding: 25px 15px;
    }
    
    .contact-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }
    
    .contact-title {
        font-size: 1.1rem;
    }
    
    .form-container {
        padding: 25px 15px;
    }
    
    .form-input,
    .form-select,
    .form-textarea {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .form-submit {
        padding: 15px 30px;
        font-size: 1rem;
    }
    
    .company-intro {
        padding: 25px 15px;
    }
    
    .intro-text {
        font-size: 1rem;
    }
    
    .feature-item {
        padding: 12px 15px;
    }
    
    .feature-text {
        font-size: 0.9rem;
    }
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(108, 117, 125, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #6c757d, #495057);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #495057, #6c757d);
} 