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

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* 头部样式 */
.header {
    background-color: #fff;
    box-shadow: 0 2px 5px 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: 15px 20px;
}

.logo h1 {
    color: #ff6b35;
    font-size: 24px;
}

.nav ul {
    display: flex;
    list-style: none;
}

.nav ul li {
    margin-left: 30px;
}

.nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav ul li a:hover,
.nav ul li a.active {
    color: #ff6b35;
}

/* 主要内容区域 */
.main {
    min-height: calc(100vh - 140px);
    padding: 30px 0;
}

/* 首页轮播图 */
.banner {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    border-radius: 10px;
    padding: 60px 30px;
    text-align: center;
    color: white;
    margin-bottom: 40px;
}

.banner h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.banner p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn {
    background-color: #fff;
    color: #ff6b35;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
}

.btn:hover {
    background-color: #ffeb3b;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* 首页介绍 */
.intro {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 40px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.intro h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #ff6b35;
}

.intro p {
    font-size: 16px;
    line-height: 1.8;
    text-align: center;
}

/* 分类网格 */
.categories {
    margin-bottom: 40px;
}

.categories h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #ff6b35;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.category-item {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    text-align: center;
    padding: 20px;
}

.category-item:hover {
    transform: translateY(-5px);
}

.category-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
}

.category-item h3 {
    margin-bottom: 10px;
    color: #333;
}

.category-item p {
    color: #666;
    font-size: 14px;
}

/* 热门商品 */
.hot-products {
    margin-bottom: 40px;
}

.hot-products h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #ff6b35;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.product-item {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s;
}

.product-item:hover {
    transform: translateY(-5px);
}

.product-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
}

.product-item h3 {
    margin-bottom: 10px;
    color: #333;
}

.product-item .description {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
    min-height: 40px;
}

.product-item .price {
    font-size: 20px;
    font-weight: bold;
    color: #ff6b35;
    margin: 10px 0;
}

.btn-small {
    background-color: #ff6b35;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-small:hover {
    background-color: #e55a2b;
}

/* 服务介绍 */
.services {
    margin-bottom: 40px;
}

.services h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #ff6b35;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.service-item {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.service-item h3 {
    color: #ff6b35;
    margin-bottom: 10px;
}

/* 页脚 */
.footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

/* 登录注册页面 */
.auth-container {
    max-width: 500px;
    margin: 0 auto;
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.auth-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #ff6b35;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.auth-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.auth-form input:focus {
    outline: none;
    border-color: #ff6b35;
}

.auth-form .btn {
    width: 100%;
    padding: 12px;
    font-size: 16px;
}

.auth-form p {
    text-align: center;
    margin-top: 20px;
}

.auth-form a {
    color: #ff6b35;
    text-decoration: none;
}

.auth-form a:hover {
    text-decoration: underline;
}

/* 商家入驻 */
.merchant-intro {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 40px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
}

.merchant-intro h2 {
    color: #ff6b35;
    margin-bottom: 20px;
}

.merchant-intro p {
    font-size: 16px;
    line-height: 1.8;
}

.merchant-categories h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #ff6b35;
}

/* 商家入驻表单 */
.form-container {
    max-width: 700px;
    margin: 0 auto;
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #ff6b35;
}

.merchant-form .form-group {
    margin-bottom: 20px;
}

.merchant-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.merchant-form input,
.merchant-form select,
.merchant-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.merchant-form input:focus,
.merchant-form select:focus,
.merchant-form textarea:focus {
    outline: none;
    border-color: #ff6b35;
}

.merchant-form .btn {
    width: 100%;
    padding: 12px;
    font-size: 16px;
}

/* 个人中心 */
.profile-container {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.profile-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #ff6b35;
}

.profile-info {
    display: flex;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.avatar {
    flex: 0 0 150px;
    margin-right: 30px;
}

.avatar img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
}

.info-details h3 {
    color: #ff6b35;
    margin-bottom: 20px;
}

.info-details table {
    width: 100%;
}

.info-details td:first-child {
    font-weight: bold;
    width: 100px;
}

.profile-sections .section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.profile-sections .section h3 {
    color: #ff6b35;
    margin-bottom: 15px;
}

/* 商品页面 */
.products-container {
    display: flex;
    gap: 30px;
}

.sidebar {
    flex: 0 0 250px;
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: fit-content;
}

.sidebar h3 {
    color: #ff6b35;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    margin-bottom: 10px;
}

.sidebar ul li a {
    text-decoration: none;
    color: #333;
    display: block;
    padding: 8px 0;
    transition: color 0.3s;
}

.sidebar ul li a:hover,
.sidebar ul li a.active {
    color: #ff6b35;
}

.products-main {
    flex: 1;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.products-header h2 {
    color: #ff6b35;
}

.sort-options a {
    text-decoration: none;
    color: #333;
    margin-left: 15px;
    padding: 5px 10px;
    border-radius: 3px;
}

.sort-options a:hover,
.sort-options a.active {
    background-color: #ff6b35;
    color: #fff;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.pagination a {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    text-decoration: none;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.pagination a:hover,
.pagination a.active {
    background-color: #ff6b35;
    color: #fff;
    border-color: #ff6b35;
}

/* 关于我们页面 */
.about-container {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.about-header {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    text-align: center;
    padding: 50px 20px;
}

.about-header h1 {
    font-size: 36px;
    margin-bottom: 15px;
}

.about-header p {
    font-size: 18px;
    opacity: 0.9;
}

.about-content {
    padding: 40px;
}

.about-content h2 {
    color: #ff6b35;
    margin: 30px 0 20px;
}

.about-content p {
    line-height: 1.8;
    margin-bottom: 15px;
}

.about-content ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.about-content ul li {
    margin-bottom: 10px;
}

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

.contact-info p {
    margin-bottom: 10px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        padding: 15px;
    }
    
    .nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav ul li {
        margin: 5px 10px;
    }
    
    .banner h2 {
        font-size: 28px;
    }
    
    .banner p {
        font-size: 16px;
    }
    
    .profile-info {
        flex-direction: column;
        text-align: center;
    }
    
    .avatar {
        margin: 0 auto 20px;
    }
    
    .products-container {
        flex-direction: column;
    }
    
    .sidebar {
        flex: 0 0 auto;
    }
    
    .products-header {
        flex-direction: column;
        gap: 15px;
    }
}