/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.navbar {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.logo-placeholder {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
}

.logo-bird {
    font-size: 24px;
}

.company-name {
    font-size: 20px;
    font-weight: 600;
    color: #2c5aa0;
}

.nav-menu {
    display: flex;
    gap: 40px;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #2c5aa0;
    background-color: #f0f4ff;
}

.nav-actions {
    /* 登录按钮已移除 */
}

/* 首页轮播图区域 */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.2rem;
    opacity: 0.9;
    line-height: 1.6;
}

/* 公司介绍 */
.company-intro {
    padding: 80px 0;
    background: #f8f9fa;
}

.intro-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.intro-text h2 {
    font-size: 2.5rem;
    color: #2c5aa0;
    margin-bottom: 10px;
}

.intro-text h3 {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 30px;
}

.intro-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.building-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* 仓库介绍 */
.warehouse-section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.warehouse-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.warehouse-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.warehouse-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.warehouse-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.warehouse-info {
    padding: 20px;
}

.warehouse-info h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 15px;
}

.stock-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stock-label {
    color: #666;
    font-size: 0.95rem;
}

.stock-count {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c5aa0;
}

.stock-unit {
    color: #666;
    font-size: 0.95rem;
}

.total-stock {
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    border-radius: 12px;
}

.total-stock h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.total-count {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.total-count .unit {
    font-size: 1.5rem;
    opacity: 0.8;
}

.update-time {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* 布料选购区域 */
.products-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.filter-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.filter-left {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    align-items: center;
}

.warehouse-selector label,
.filter-group label {
    font-weight: 500;
    color: #333;
    margin-right: 10px;
}

.warehouse-selector select,
.filter-group select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.search-box {
    display: flex;
    gap: 10px;
}

.search-box input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    width: 200px;
}

.search-btn {
    background: #2c5aa0;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
}

.filter-options {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
}

/* 产品网格 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    padding: 20px;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.product-card.new::before {
    content: '新品';
    position: absolute;
    top: 10px;
    right: 10px;
    background: #00c851;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    z-index: 1;
}

.product-info {
    padding: 0;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.product-specs {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.product-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-size: 1.2rem;
    font-weight: 600;
    color: #e74c3c;
}

/* 按钮样式 - 已简化 */

/* 购物车摘要 - 已移除 */

/* 关于我们 */
.about-section {
    padding: 80px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

.about-text h3 {
    font-size: 1.3rem;
    color: #2c5aa0;
    margin-bottom: 15px;
    margin-top: 30px;
}

.about-text h3:first-child {
    margin-top: 0;
}

.about-text p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
}

.about-text ul {
    list-style: none;
    margin-bottom: 20px;
}

.about-text li {
    color: #555;
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
}

.about-text li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #2c5aa0;
    font-weight: bold;
}

.contact-info {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    height: fit-content;
}

.contact-info h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 25px;
}

.contact-item {
    margin-bottom: 15px;
    line-height: 1.6;
}

.contact-item strong {
    color: #333;
    display: inline-block;
    width: 80px;
}

/* 页脚 */
.footer {
    background: #2c3e50;
    color: white;
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo-img {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

.footer-logo .logo-placeholder-colorful {
    width: 35px;
    height: 35px;
}

.footer-logo .logo-placeholder {
    width: 35px;
    height: 35px;
}

.footer-company-name {
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-info {
    text-align: right;
}

.footer-info p {
    margin-bottom: 5px;
    opacity: 0.8;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    opacity: 0.7;
    font-size: 0.9rem;
}

.beian-link {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.beian-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1;
    color: #666;
}

.close:hover {
    color: #333;
}

.modal-body {
    padding: 30px;
}

.product-detail {
    max-width: 600px;
    margin: 0 auto;
}

.product-info h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 25px;
}

.product-specs {
    margin-bottom: 30px;
}

.spec-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.spec-item label {
    width: 80px;
    font-weight: 500;
    color: #333;
}

.unit-options {
    display: flex;
    gap: 10px;
}

.unit-btn {
    padding: 6px 12px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.unit-btn.active,
.unit-btn:hover {
    background: #2c5aa0;
    color: white;
    border-color: #2c5aa0;
}

.price {
    font-size: 1.3rem;
    font-weight: 600;
    color: #e74c3c;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-btn {
    width: 35px;
    height: 35px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
}

.qty-btn:hover {
    background: #f5f5f5;
}

#quantity-input {
    width: 80px;
    height: 35px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.add-to-cart-btn,
.buy-now-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-to-cart-btn {
    background: #f8f9fa;
    color: #2c5aa0;
    border: 1px solid #2c5aa0;
}

.add-to-cart-btn:hover {
    background: #2c5aa0;
    color: white;
}

.buy-now-btn {
    background: #2c5aa0;
    color: white;
}

.contact-info-modal {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #2c5aa0;
}

.contact-info-modal p {
    margin: 8px 0;
    color: #333;
}

.contact-info-modal strong {
    color: #2c5aa0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 15px 20px;
    }
    
    .nav-menu {
        margin: 15px 0;
        gap: 20px;
    }
    
    .hero-content,
    .intro-content,
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .warehouse-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-left {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-options {
        flex-direction: column;
        gap: 15px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .cart-summary {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-info {
        text-align: center;
    }
    
    .product-detail {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .modal-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-section {
        padding: 40px 0;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 2% auto;
    }
    
    .modal-body {
        padding: 20px;
    }
}