*{padding: 0;margin: 0}
body{font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;}


.main-container {
    width: 450px;
    margin: 0 auto;
    min-height: 100vh;
 background: #f3f5f9;
}

.login-modal {
			position: fixed;
			top: 0;
			left: 0;
			width: 100%;
			height: 100%;
			background-color: rgba(0, 0, 0, 0.5);
			display: none;
			justify-content: center;
			align-items: center;
			z-index: 9999;
		}
		
		.login-modal.active {
			display: flex;
		}
		
		.login-modal-content {
			background-color: #fff;
			padding: 20px;
			border-radius: 8px;
			width: 90%;
			max-width: 400px;
			box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
		}
		
		.login-modal-header {
			display: flex;
			justify-content: space-between;
			align-items: center;
			margin-bottom: 20px;
		}
		
		.login-modal-header h3 {
			margin: 0;
			font-size: 18px;
		}
		
		.login-close {
			background: none;
			border: none;
			font-size: 24px;
			cursor: pointer;
		}
		
		.login-form-item {
			margin-bottom: 15px;
		}
		
		.login-form-item label {
			display: block;
			margin-bottom: 5px;
			font-weight: bold;
		}
		
		.login-form-item input {
			width: 100%;
			padding: 8px;
			border: 1px solid #ddd;
			border-radius: 4px;
		}
		
		.login-captcha-row {
			display: flex;
			gap: 10px;
		}
		
		.login-captcha-img {
			width: 120px;
			height: 40px;
			cursor: pointer;
		}
		
		.login-submit-btn {
			width: 100%;
			padding: 10px;
			background-color: #007bff;
			color: #fff;
			border: none;
			border-radius: 4px;
			cursor: pointer;
			font-size: 16px;
		}
		
		.login-submit-btn:hover {
			background-color: #0069d9;
		}
		
		/* 头部登录样式 */
		.header-top {
			display: flex;
			justify-content: space-between;
			align-items: center;
			padding: 10px 20px;
			background-color: #f8f9fa;
			border-bottom: 1px solid #e9ecef;
		}
		
		.header-logo img {
			height: 50px;
		}
		
		.header-login-btn {
			padding: 8px 16px;
			background-color: #007bff;
			color: #fff;
			border: none;
			border-radius: 4px;
			cursor: pointer;
		}
		
		.header-user-info {
			display: flex;
			align-items: center;
			gap: 10px;
		}
		
		.logout-btn {
			padding: 5px 10px;
			background-color: #dc3545;
			color: #fff;
			border: none;
			border-radius: 4px;
			cursor: pointer;
		}
		
		.header-user-info a {
			padding: 5px 10px;
			background-color: #007bff;
			color: #fff;
			border: none;
			border-radius: 4px;
			cursor: pointer;
			text-decoration: none;
			margin-right: 10px;
		}
		
		.header-user-info a:hover {
			background-color: #0069d9;
		}
		
		/* 返回顶部按钮 */
		.back-to-top {
			position: fixed;
			bottom: 20px;
			right: 20px;
			width: 40px;
			height: 40px;
			background-color: #007bff;
			color: #fff;
			border: none;
			border-radius: 50%;
			cursor: pointer;
			display: none;
			align-items: center;
			justify-content: center;
			z-index: 999;
		}
		
		.back-to-top.active {
			display: flex;
		}
		
		.back-to-top:hover {
			background-color: #0069d9;
		}

/* 1. 头部区域 */
.header-top {
    background: #fff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 10px solid #f3f5f9;border-top:5px solid #f3f5f9;
}

.header-logo img {
    max-width: 150px;
    max-height: 50px;
}

.header-login-btn {
    padding: 8px 20px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
}

.header-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-user-info .logout-btn {
    padding: 5px 15px;
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-size: 12px;
}

/* 登录弹窗 */
.login-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.login-modal.active {
    display: flex;
}

.login-modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
}

.login-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.login-modal-header h3 {
    margin: 0;
    font-size: 20px;
}

.login-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.login-form-item {
    margin-bottom: 15px;
}

.login-form-item label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #666;
}

.login-form-item input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.login-captcha-row {
    display: flex;
    gap: 10px;
}

.login-captcha-row input {
    flex: 1;
}

.login-captcha-img {
    width: 100px;
    height: 40px;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #666;
    cursor: pointer;
}

.login-submit-btn {
    width: 100%;
    padding: 12px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
}

.login-submit-btn:hover {
    background: #0056b3;
}

/* 2. 图标导航区 */
.icon-nav {    background: #fff;
    padding: 20px 10px;
    display: flex;
    justify-content: flex-start;
    margin-bottom: 10px;
    gap: 20px;
}
.icon-nav a{ color: #cdc9d7;    text-decoration: none;}

.icon-nav-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s;
}

.icon-nav-item:hover {
    transform: translateY(-5px);
}

.icon-nav-item img {
    width: 50px;
    height: 50px;
    margin-bottom: 5px;
    border-radius: 10px;
}

.icon-nav-item span {
    display: block;  font-size: 13px;
    color: #ab9e9e;
}
.icon-nav-item span.active {color: #000;}

/* 3. 列表区 */
.product-list {    margin: 15px 5px;
    background: #fff;
}

.product-item {
    background: #fff;
    margin-bottom: 10px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.product-item-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.product-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-item-info {
    padding: 15px;
}

.product-item-title-row {
    display:block;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.product-item-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    flex: 1;
}

.product-item-price {font-size: 14px;
    color: #f70015;
    display: flex;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: space-between;

}

.product-item-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
}

.product-item-more {
    text-align: right;
}

.product-item-more a {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
}

/* 4. 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: none;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    z-index: 1000;
}

.back-to-top.active {
    display: flex;
}

.back-to-top:hover {
    background: #0056b3;
}

/* 响应式设计 */
@media (max-width: 450px) {
    .main-container {
        width: 100%;
    }

    .icon-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .icon-nav-item {
        width: calc(20% - 15px);
    }

    .icon-nav-item img {
        width: 40px;
        height: 40px;
    }
}