/* ========== Reset & Base ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    color: #333;
    background: #f0f2f5;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

/* ========== Home Page Container ========== */
.home-page {
    max-width: 450px;
    margin: 0 auto;
    min-height: 100vh;
    background: #f0f2f5;
}

/* ========== 顶部图标区域 ========== */
.icon-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    padding: 24px 12px 16px;

    border-radius: 0 0 16px 16px;
   
}

.icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 4px 12px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.15s ease;
}

.icon-item:active {
    transform: scale(0.94);
}

.icon-wrap img {
    width: 82px;


    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
 
}

.icon-wrap-more {
    background: #f0f2f5 !important;
    box-shadow: none;
}

.icon-label {
    font-size: 14px;
    color: #666;
    text-align: center;
    white-space: nowrap;
}

/* ========== 顶部白色头部 ========== */
.home-top-header {
    background: #fff;
    padding: 10px 12px 12px;
}

/* ========== 搜索条（灰底输入框，无文字） ========== */
.home-search-bar {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    background: #f0f0f0;
    border-radius: 20px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.home-search-bar:active { background: #e6e6e6; }
.home-search-icon {
    flex-shrink: 0;
}
.home-search-placeholder {
    margin-left: 8px;
    font-size: 14px;
    color: #bbb;
}

/* ========== 下方内容区域 ========== */
.content-section {
    margin-top: 12px;
    background: #fff;
    border-radius: 16px 16px 0 0;
    padding: 0 0 20px;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.03);
}

/* 标题栏 */
.content-header {
    display: flex;
 
 
	text-align:center;
	width:100%;
}

.content-title {
    font-size: 17px;
    font-weight: 500;
		text-align:center;
    color: #333;
    position: relative;
  width:100%;
  line-height:62px;
  height:62px;
}



.content-more {
    font-size: 13px;
    color: #999;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    padding: 4px 8px;
}

.content-more:active {
    color: #27ae60;
}

/* 一行两列图文列表 */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0 16px;
}

.content-card {
    display: block;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.content-card:active {
    transform: scale(0.97);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.content-card-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f5f5f5;
}

.content-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.content-card:active .content-card-img img {
    transform: scale(1.05);
}

.content-card-info {
    padding: 10px 12px 12px;
}

.content-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    margin-bottom: 4px;
  
	    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.content-card-desc {
    font-size: 12px;
    color: #999;
    line-height: 1.4;
    margin-bottom: 6px;
	
	    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.content-card-price {
    font-size: 16px;
    font-weight: 700;
    color: #E74C3C;
    line-height: 1;
}

/* 查看更多按钮 */
.more-btn-wrap {
    padding: 20px 16px 10px;
}

.more-btn {
    display: block;
    text-align: center;
    padding: 12px 0;
    background: #f5f5f5;
    color: #666;
    font-size: 14px;
    border-radius: 24px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s ease;
}

.more-btn:active {
    background: #e8e8e8;
    color: #333;
}
