/* ============================================================
   移动端首页样式 - 1:1还原截图
   ============================================================ */

/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "微软雅黑", "PingFang SC", "Helvetica Neue", sans-serif;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    min-height: 100vh;
}

body {
    background: linear-gradient(180deg, #e8f0f8 0%, #f0f4f9 30%, #f8f9fb 100%);
    color: #333;
    max-width: 750px;
    margin: 0 auto;
    padding-bottom: 30px;
    position: relative;
}

/* 顶部装饰波浪背景 */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 220px;
    background: linear-gradient(180deg, #dce8f5 0%, #e5eef7 50%, #f0f5fa 100%);
    z-index: 0;
}

/* 波浪装饰线 */
body::after {
    content: '';
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    height: 120px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 150'%3E%3Cpath d='M-50,80 Q100,20 200,60 T400,40 T600,80' fill='none' stroke='%23c5d8ed' stroke-width='1' stroke-opacity='0.6'/%3E%3Cpath d='M-50,100 Q150,40 250,80 T450,50 T650,100' fill='none' stroke='%23d0e0f0' stroke-width='1' stroke-opacity='0.5'/%3E%3Cpath d='M-50,120 Q120,60 220,100 T420,70 T620,120' fill='none' stroke='%23dae8f5' stroke-width='1' stroke-opacity='0.4'/%3E%3C/svg%3E") repeat-x;
    background-size: 500px 150px;
    z-index: 0;
    pointer-events: none;
}

/* ============================================================
   顶部区域（标题+搜索框）
   ============================================================ */
.page-header {
    padding: 35px 15px 15px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.header-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 15px;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 搜索框容器 */
.search-container {
    background: #fff;
    border-radius: 25px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1;
}

.search-icon {
    flex-shrink: 0;
    margin-right: 8px;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 0;
    font-size: 14px;
    color: #333;
    background: transparent;
}

.search-input::placeholder {
    color: #999;
}

/* ============================================================
   功能按钮区（订单查询+在线客服）
   ============================================================ */
.func-btn-wrap {
    display: flex;
    gap: 10px;
    padding: 15px 15px 10px;
    position: relative;
    z-index: 1;
}

.func-btn {
    flex: 1;
    padding: 10px 0;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #e8eef5 0%, #dce5f0 100%);
    font-size: 13px;
    font-weight: 500;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.func-btn:active {
    transform: scale(0.98);
    background: #d6e0f0;
}

/* ============================================================
   图标网格区（4列3行）
   ============================================================ */
.icon-grid-wrap {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px 8px;
    padding: 10px 10px;
    position: relative;
    z-index: 1;
}

.icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.icon-item:active {
    transform: scale(0.95);
}

/* 图标容器 */
.icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
    overflow: hidden;
}

/* 图标图片样式 */
.icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
}

/* 图标文字 */
.icon-text {
    font-size: 14px;
    color: #2c3e50;
    text-align: center;
    line-height: 1.3;
    max-width: 80px;
    word-break: keep-all;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.05);
    margin-top: 6px;
}

/* ============================================================
   图标配色（匹配截图）
   ============================================================ */
/* 企业微信号、支付宝个人、陌陌 - 蓝色 */
.icon-blue { 
    background: linear-gradient(135deg, #5a9cf0 0%, #4a90e2 100%); 
}

/* 公众号、国内私人微信号 - 绿色 */
.icon-green { 
    background: linear-gradient(135deg, #6dc96d 0%, #5cb85c 100%); 
}

/* 境外微信号 - 青绿色 */
.icon-teal { 
    background: linear-gradient(135deg, #5ad4c0 0%, #48c9b0 100%); 
}

/* 境外年号 - 浅青绿色 */
.icon-light-teal { 
    background: linear-gradient(135deg, #b3ebe0 0%, #a3e4d7 100%); 
}

/* 企业支付宝 - 青色 */
.icon-cyan { 
    background: linear-gradient(135deg, #6dcde8 0%, #5bc0de 100%); 
}

/* 抖音号 - 粉色/红色 */
.icon-pink { 
    background: linear-gradient(135deg, #f08070 0%, #ec7063 100%); 
}

/* 快手号 - 橙色 */
.icon-orange { 
    background: linear-gradient(135deg, #f5a623 0%, #f39c12 100%); 
}

/* 紫色 - qq号 */
.icon-purple { 
    background: linear-gradient(135deg, #b57fcd 0%, #a569bd 100%); 
}

/* 探探号 - 橙红色 */
.icon-orange-red { 
    background: linear-gradient(135deg, #f5a050 0%, #e67e22 100%); 
}

/* 红色 */
.icon-red { 
    background: linear-gradient(135deg, #f05c4d 0%, #e74c3c 100%); 
}

/* ============================================================
   底部按钮区
   ============================================================ */
.bottom-btn-wrap {
    display: flex;
    gap: 10px;
    padding: 10px 15px 15px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 750px;
    margin: 0 auto;
    background: linear-gradient(180deg, transparent 0%, #f0f4f9 30%);
    z-index: 100;
}

.bottom-btn {
    flex: 1;
    padding: 12px 0;
    border: none;
    border-radius: 20px;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

.bottom-btn:active {
    transform: scale(0.98);
    opacity: 0.9;
}

/* 供需资源 - 紫渐变 */
.btn-purple {
    background: linear-gradient(90deg, #9b59b6 0%, #8e44ad 100%);
}

/* 求购资源 - 蓝渐变 */
.btn-blue {
    background: linear-gradient(90deg, #3498db 0%, #2980b9 100%);
}

/* ============================================================
   移动端适配
   ============================================================ */
@media screen and (max-width: 375px) {
    .icon-box {
        width: 42px;
        height: 42px;
    }
    
    .icon-text {
        font-size: 10px;
    }
    
    .func-btn {
        font-size: 12px;
        padding: 8px 0;
    }
    
    .bottom-btn {
        font-size: 13px;
        padding: 10px 0;
    }
}

/* 大屏适配 */
@media screen and (min-width: 500px) {
    .icon-grid-wrap {
        gap: 15px 10px;
    }
    
    .icon-box {
        width: 52px;
        height: 52px;
    }
    
    .icon-text {
        font-size: 12px;
    }
}

/* 底部留白（防止内容被固定按钮遮挡） */
body::after {
    content: '';
    display: block;
    height: 100px;
}
