/* 服装辅料网站样式 - Default模板 */

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #d32f2f;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 30px;
}

/* 头部样式 */
.header {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    gap: 40px;
}

.logo h1 {
    font-size: 36px;
    font-weight: bold;
    color: #d32f2f;
    white-space: nowrap;
    line-height: 1.2;
}

.logo h1 a {
    color: #d32f2f;
}

.nav {
    flex: 1;
    display: flex;
    align-items: center;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 8px;
    justify-content: center;
    flex-wrap: nowrap;
    width: 100%;
}

.nav ul li a {
    font-size: 18px;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 6px;
    white-space: nowrap;
    transition: all 0.3s;
    display: inline-block;
}

.nav ul li a:hover,
.nav ul li a.active {
    background-color: #d32f2f;
    color: #fff;
}

.search-box form {
    display: flex;
}

.search-box input {
    padding: 11px 16px;
    border: 1px solid #ddd;
    border-radius: 6px 0 0 6px;
    width: 220px;
    font-size: 15px;
}

.search-box button {
    padding: 11px 24px;
    background-color: #d32f2f;
    color: #fff;
    border: none;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
}

.search-box button:hover {
    background-color: #b71c1c;
}

/* Banner样式 */
.banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.banner-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.banner-content p {
    font-size: 24px;
    margin-bottom: 30px;
}

.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background-color: #d32f2f;
    color: #fff;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: #b71c1c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* 区块标题 */
.section-title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 50px;
    color: #333;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

/* 分类网格 */
.category-section {
    padding: 60px 0;
    background-color: #fff;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.category-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s;
    text-align: center;
    padding: 30px;
}

.category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.category-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.category-item h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #333;
}

.category-item .product-count {
    color: #666;
    font-size: 14px;
}

/* 产品区块 */
.product-section {
    padding: 60px 0;
    background-color: #fff;
}

.product-section.gray-bg {
    background-color: #f9f9f9;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.product-image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image::before {
    content: '📷';
    font-size: 48px;
    opacity: 0.3;
    position: absolute;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
    position: relative;
    z-index: 1;
}

.product-item:hover .product-image img {
    transform: scale(1.1);
}

.product-image .badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 12px;
    background-color: #d32f2f;
    color: #fff;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.product-image .badge.new {
    background-color: #4caf50;
}

.product-title {
    padding: 20px;
    font-size: 18px;
    font-weight: 500;
    color: #333;
}

.product-brief {
    padding: 0 20px 8px;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.product-meta,
.product-meta-line {
    padding: 0 20px 10px;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #777;
}

.product-meta .product-no {
    margin-left: 8px;
}

.product-meta-line .price {
    color: #d32f2f;
    font-weight: 600;
}

/* 特色功能 */
.feature-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.feature-item {
    text-align: center;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #333;
}

.feature-item p {
    color: #666;
    font-size: 15px;
}

/* 页脚样式 */
.footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #fff;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #ecf0f1;
}

.footer-col a:hover {
    color: #3498db;
}

.footer-col p {
    margin-bottom: 10px;
    color: #bdc3c7;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 20px;
    text-align: center;
    color: #95a5a6;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .header-content {
        gap: 20px;
    }
    
    .nav ul {
        gap: 15px;
    }
    
    .nav ul li a {
        font-size: 16px;
        padding: 8px 16px;
    }
    
    .logo h1 {
        font-size: 28px;
    }
}

@media (max-width: 1024px) {
    .header-content {
        flex-wrap: wrap;
    }
    
    .nav {
        order: 3;
        width: 100%;
    }
    
    .nav ul {
        justify-content: center;
    }
    
    .banner-content h2 {
        font-size: 36px;
    }
    
    .banner-content p {
        font-size: 20px;
    }
    
    .search-box {
        order: 2;
    }
}

@media (max-width: 768px) {
    .logo h1 {
        font-size: 24px;
    }
    
    .nav ul li a {
        font-size: 15px;
        padding: 6px 12px;
    }
    
    .category-grid,
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 15px;
    }
    
    .section-title {
        font-size: 26px;
        margin-bottom: 30px;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .banner-content h2 {
        font-size: 28px;
    }
    
    .banner-content p {
        font-size: 16px;
    }
    
    .search-box input {
        width: 180px;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 20px;
    }
    
    .nav ul {
        gap: 8px;
    }
    
    .nav ul li a {
        font-size: 14px;
        padding: 6px 10px;
    }
}
