/* 主样式文件 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo p {
    font-size: 12px;
    color: #999;
}

.search-bar {
    display: flex;
    flex: 1;
    max-width: 500px;
    margin: 0 20px;
}

.search-bar input {
    flex: 1;
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 20px 0 0 20px;
    outline: none;
}

.search-bar button {
    padding: 8px 15px;
    background-color: #ff5000;
    color: white;
    border: none;
    border-radius: 0 20px 20px 0;
    cursor: pointer;
}

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

.main-nav li {
    margin-left: 20px;
}

.main-nav a {
    text-decoration: none;
    color: #666;
    font-size: 16px;
}

.main-nav a.active {
    color: #ff5000;
    font-weight: bold;
}

.banner {
    margin: 10px 0;
}

.banner-slider {
    width: 100%;
    height: 180px;
}

.banner-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff5000, #ff7043);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-content {
    text-align: center;
    color: white;
}

.banner-content h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.banner-content p {
    font-size: 16px;
}

.categories {
    background-color: #fff;
    margin: 10px 0;
    padding: 15px 0;
    border-radius: 8px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    padding: 0 10px;
}

.category-item {
    text-align: center;
    cursor: pointer;
}

.category-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 5px;
    font-size: 24px;
}

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

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background-color: #fff;
    margin-top: 10px;
}

.section-header h2 {
    font-size: 18px;
    color: #333;
}

.more-link {
    text-decoration: none;
    color: #999;
    font-size: 14px;
}

.wants-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
}

.want-item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 5px rgba(0,0,0,0.1);
    display: flex;
}

.want-image {
    width: 120px;
    height: 120px;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.want-info {
    flex: 1;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.want-info h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
}

.want-desc {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
    flex: 1;
}

.want-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.price {
    color: #ff5000;
    font-weight: bold;
    font-size: 16px;
}

.location {
    font-size: 12px;
    color: #999;
}

.want-user {
    display: flex;
    align-items: center;
}

.avatar-placeholder {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 5px;
}

.want-user span {
    font-size: 12px;
    color: #999;
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    border-top: 1px solid #eee;
    padding: 5px 0;
}

.footer-nav {
    display: flex;
    justify-content: space-around;
}

.nav-item {
    text-decoration: none;
    text-align: center;
    color: #999;
    font-size: 12px;
}

.nav-item.active {
    color: #ff5000;
}

.nav-icon {
    font-size: 20px;
    margin-bottom: 2px;
}