/* 移动端专用样式表 */
@import url('icons.css');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --primary: #20B2AA;
    --primary-dark: #1a9993;
    --secondary: #FF6B6B;
    --success: #51CF66;
    --warning: #FFC107;
    --danger: #FF4757;
    --text: #333;
    --text-light: #666;
    --text-lighter: #999;
    --bg: #F5F7FA;
    --white: #FFFFFF;
    --border: #E8E8E8;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    padding-bottom: 60px;
    overflow-x: hidden;
}

/* 移动端导航栏 */
.mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mobile-header h1 {
    font-size: 18px;
    font-weight: 600;
}

.mobile-header .header-left,
.mobile-header .header-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 0 15px;
}

.mobile-header .header-left { left: 0; }
.mobile-header .header-right { right: 0; }
.mobile-header a { color: var(--white); text-decoration: none; }

/* 主内容区 */
.mobile-content {
    margin-top: 50px;
    min-height: calc(100vh - 110px);
}

/* 底部导航 */
.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--white);
    display: flex;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
    z-index: 1000;
}

.mobile-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-light);
    font-size: 12px;
    transition: color 0.3s;
}

.mobile-nav-item i {
    font-size: 22px;
    margin-bottom: 4px;
}

.mobile-nav-item.active { color: var(--primary); }

/* 页面容器 */
.mobile-page { padding: 15px; }

/* 卡片组件 */
.mobile-card {
    background: var(--white);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
}

.mobile-list-item {
    background: var(--white);
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* 按钮 */
.mobile-btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.mobile-btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
}

.mobile-btn-primary:active { transform: scale(0.98); }

.mobile-btn-block { display: block; width: 100%; }

.mobile-btn-secondary {
    background: var(--bg);
    color: var(--text);
}

/* 表单 */
.mobile-form-group { margin-bottom: 20px; }

.mobile-form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

.mobile-form-group input,
.mobile-form-group textarea,
.mobile-form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 16px;
    background: var(--white);
}

.mobile-form-group input:focus,
.mobile-form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* 空状态 */
.mobile-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-lighter);
}

.mobile-empty i {
    font-size: 64px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.mobile-empty p { font-size: 14px; }

/* 消息提示 */
.mobile-toast {
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 2000;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translate(-50%, -20px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

/* 标签 */
.mobile-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.mobile-tag-success { background: rgba(81, 207, 102, 0.1); color: var(--success); }
.mobile-tag-warning { background: rgba(255, 193, 7, 0.1); color: var(--warning); }
.mobile-tag-danger { background: rgba(255, 71, 87, 0.1); color: var(--danger); }

/* 价格显示 */
.mobile-price {
    color: var(--secondary);
    font-size: 24px;
    font-weight: bold;
}

.mobile-price-small { color: var(--text-light); font-size: 14px; }

/* 通用布局类 */
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.text-center { text-align: center; }
.text-light { color: var(--text-light); }
.text-lighter { color: var(--text-lighter); }
.mt-10 { margin-top: 10px; }
.mt-15 { margin-top: 15px; }
.mt-20 { margin-top: 20px; }
.mb-10 { margin-bottom: 10px; }
.mb-15 { margin-bottom: 15px; }
.mb-20 { margin-bottom: 20px; }
.font-bold { font-weight: bold; }
.font-14 { font-size: 14px; }
.font-16 { font-size: 16px; }
