/* 移动端电商主题样式 */
* { box-sizing: border-box; }
body.mall-body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f5f5f5;
    color: #333;
    font-size: 14px;
}
.mall-container {
    max-width: 640px;
    margin: 0 auto;
    padding-bottom: 60px;
    min-height: 100vh;
    background: #f5f5f5;
}

/* 顶部 */
.mall-header {
    padding: 12px 15px;
    color: #fff;
}
.header-search {
    display: flex;
    align-items: center;
}
.shop-name {
    font-size: 16px;
    font-weight: bold;
}
.shop-name i {
    margin-right: 6px;
}

/* Banner */
.mall-banner {
    background: #fff;
    overflow-x: auto;
    white-space: nowrap;
    font-size: 0;
}
.banner-item {
    display: inline-block;
    width: 100%;
}
.banner-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* 公告 */
.mall-notice {
    background: #fff8f0;
    color: #ff6a00;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    font-size: 13px;
    border-bottom: 1px solid #f0f0f0;
}
.mall-notice i {
    margin-right: 8px;
}
.notice-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 分类 */
.mall-categories {
    background: #fff;
    padding: 12px 10px;
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid #f0f0f0;
}
.cate-item {
    display: inline-block;
    padding: 6px 12px;
    margin: 4px;
    background: #f5f5f5;
    border-radius: 15px;
    color: #666;
    text-decoration: none;
    font-size: 13px;
}

/* 商品列表 */
.mall-goods-list {
    padding: 10px;
    display: flex;
    flex-wrap: wrap;
}
.goods-card {
    width: calc(50% - 10px);
    margin: 5px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: #333;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.goods-img-wrap {
    width: 100%;
    padding-top: 100%;
    position: relative;
    background: #f9f9f9;
}
.goods-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.goods-info {
    padding: 10px;
}
.goods-name {
    font-size: 14px;
    line-height: 1.4;
    height: 40px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 8px;
}
.goods-price {
    color: #ff4d4f;
    font-weight: bold;
}
.price-symbol {
    font-size: 12px;
}
.price-num {
    font-size: 18px;
}
.price-up {
    font-size: 12px;
    color: #999;
    margin-left: 2px;
}
.goods-tags {
    margin-top: 6px;
}
.tag {
    display: inline-block;
    padding: 2px 5px;
    background: #ff4d4f;
    color: #fff;
    font-size: 11px;
    border-radius: 3px;
}

/* 底部导航 */
.mall-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 640px;
    margin: 0 auto;
    background: #fff;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-around;
    padding: 6px 0;
    z-index: 100;
}
.mall-footer a {
    text-align: center;
    color: #999;
    text-decoration: none;
    font-size: 12px;
}
.mall-footer a i {
    display: block;
    font-size: 20px;
    margin-bottom: 2px;
}
.mall-footer a.active {
    color: #ff5722;
}

/* 空提示 */
.empty-tip {
    text-align: center;
    padding: 50px 20px;
    color: #999;
    width: 100%;
}
.empty-tip i {
    font-size: 48px;
    margin-bottom: 10px;
}

/* 商品详情页 */
.detail-page {
    padding-bottom: 70px;
}
.detail-header {
    position: sticky;
    top: 0;
    background: #fff;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    z-index: 10;
}
.back-btn {
    color: #333;
    font-size: 24px;
    text-decoration: none;
    margin-right: 10px;
}
.detail-title {
    font-size: 16px;
    font-weight: bold;
    flex: 1;
    text-align: center;
    margin-right: 30px;
}
.detail-banner img {
    width: 100%;
    height: auto;
    display: block;
}
.detail-info {
    background: #fff;
    padding: 15px;
    margin-bottom: 10px;
}
.detail-price {
    color: #ff4d4f;
    font-weight: bold;
    margin-bottom: 8px;
}
.detail-name {
    font-size: 16px;
    font-weight: normal;
    line-height: 1.5;
    margin: 0 0 10px;
}
.detail-meta {
    color: #999;
    font-size: 13px;
}
.detail-meta span {
    margin-right: 15px;
}
.detail-meta i {
    color: #52c41a;
    margin-right: 3px;
}
.detail-section {
    background: #fff;
    padding: 15px;
    margin-bottom: 10px;
}
.section-title {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 10px;
    border-left: 3px solid #ff5722;
    padding-left: 8px;
}
.detail-desc {
    color: #666;
    line-height: 1.8;
    font-size: 14px;
}
.detail-images img {
    width: 100%;
    margin-bottom: 10px;
}
.detail-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 640px;
    margin: 0 auto;
    background: #fff;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    z-index: 100;
}
.detail-home {
    width: 60px;
    text-align: center;
    color: #666;
    text-decoration: none;
    font-size: 12px;
    padding: 8px 0;
}
.detail-home i {
    display: block;
    font-size: 20px;
}
.detail-buy-btn {
    flex: 1;
    background: #ff5722;
    color: #fff;
    text-align: center;
    padding: 15px 0;
    font-size: 16px;
    text-decoration: none;
}

/* 订单页 */
.order-page {
    padding-bottom: 70px;
}
.order-search {
    background: #fff;
    padding: 15px;
}
.search-box {
    display: flex;
    background: #f5f5f5;
    border-radius: 20px;
    overflow: hidden;
}
.search-box input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 15px;
    outline: none;
}
.search-box button {
    border: none;
    background: #ff5722;
    color: #fff;
    padding: 0 18px;
}
.order-list {
    padding: 10px;
}
.order-card {
    background: #fff;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 10px;
}
.order-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 13px;
    color: #666;
}
.order-status {
    color: #ff5722;
}
.order-goods {
    display: flex;
    margin-bottom: 10px;
}
.order-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 10px;
}
.order-info {
    flex: 1;
}
.order-name {
    font-size: 14px;
    margin-bottom: 8px;
}
.order-price {
    color: #ff4d4f;
    font-weight: bold;
}
.order-kami {
    background: #f9f9f9;
    padding: 10px;
    border-radius: 4px;
}
.kami-label {
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
}
.kami-text {
    width: 100%;
    border: 1px solid #ddd;
    padding: 8px;
    border-radius: 4px;
    font-size: 13px;
    resize: none;
    min-height: 60px;
    margin-bottom: 8px;
}
.copy-btn {
    border: none;
    background: #ff5722;
    color: #fff;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 13px;
}

/* 实物订单收货信息 */
.order-shipping {
    background: #f9f9f9;
    padding: 10px;
    border-radius: 4px;
}
.ship-label {
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
}
.ship-info p {
    margin: 0 0 5px;
    font-size: 13px;
    line-height: 1.5;
    color: #333;
}
.ship-remark {
    margin: 8px 0 0;
    font-size: 13px;
    color: #ff5722;
}
.order-type-tag {
    margin-top: 6px;
}
.tag-physical {
    display: inline-block;
    padding: 2px 5px;
    background: #1890ff;
    color: #fff;
    font-size: 11px;
    border-radius: 3px;
}

/* 我的页面 */
.my-page {
    padding-bottom: 70px;
}
.my-header {
    background: linear-gradient(135deg, #ff5722 0%, #ff8a65 100%);
    color: #fff;
    padding: 40px 20px;
    text-align: center;
}
.my-avatar i {
    font-size: 60px;
}
.my-name {
    margin-top: 10px;
    font-size: 16px;
}
.my-menu {
    background: #fff;
    margin-top: 10px;
}
.menu-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #f5f5f5;
    color: #333;
    text-decoration: none;
}
.menu-item i:first-child {
    width: 24px;
    color: #ff5722;
    font-size: 18px;
    margin-right: 10px;
}
.menu-item span {
    flex: 1;
}
.menu-item i:last-child {
    color: #ccc;
    font-size: 18px;
}

/* 登录/注册模态框 */
.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.25s ease;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideUp {
    from { transform: translateY(40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.auth-modal {
    width: 90%;
    max-width: 380px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    animation: slideUp 0.3s ease;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}
.auth-close {
    position: absolute;
    top: 10px;
    right: 14px;
    font-size: 26px;
    color: #999;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
}
.auth-close:hover {
    color: #333;
}
.auth-header {
    padding: 0;
}
.auth-tabs {
    display: flex;
    border-bottom: 1px solid #f0f0f0;
}
.auth-tab {
    flex: 1;
    text-align: center;
    padding: 15px 0;
    font-size: 16px;
    color: #999;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}
.auth-tab.active {
    color: #ff5722;
    font-weight: bold;
}
.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: #ff5722;
    border-radius: 2px;
}
.auth-body {
    padding: 20px 24px 24px;
}
.auth-tip {
    background: #fff7e6;
    border: 1px solid #ffd591;
    color: #d46b08;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}
.auth-tip i {
    margin-right: 6px;
    font-size: 15px;
}
.auth-input-group {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 0 12px;
    margin-bottom: 12px;
    border: 1px solid #f0f0f0;
    transition: border-color 0.2s;
}
.auth-input-group:focus-within {
    border-color: #ff5722;
    background: #fff;
}
.auth-input-group i {
    color: #bbb;
    font-size: 16px;
    margin-right: 8px;
    width: 18px;
    text-align: center;
}
.auth-input-group input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 13px 0;
    font-size: 14px;
    outline: none;
    color: #333;
}
.auth-input-group input::placeholder {
    color: #ccc;
}
.auth-code-group {
    padding-right: 6px;
}
.auth-code-btn {
    white-space: nowrap;
    color: #ff5722;
    font-size: 13px;
    cursor: pointer;
    padding: 6px 0 6px 10px;
    border-left: 1px solid #e0e0e0;
    margin-left: 6px;
    user-select: none;
}
.auth-code-btn.counting {
    color: #ccc;
    cursor: not-allowed;
}
.auth-extra {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #999;
    margin-bottom: 16px;
}
.auth-extra label {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #999;
}
.auth-extra label input {
    margin-right: 4px;
}
.auth-extra a {
    color: #ff5722;
    text-decoration: none;
}
.auth-submit-btn {
    width: 100%;
    padding: 13px 0;
    background: linear-gradient(135deg, #ff5722 0%, #ff8a65 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    letter-spacing: 4px;
    transition: opacity 0.2s;
}
.auth-submit-btn:hover {
    opacity: 0.9;
}
.auth-submit-btn:active {
    opacity: 0.8;
}
.auth-switch {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    color: #999;
}
.auth-switch a {
    color: #ff5722;
    text-decoration: none;
    margin-left: 2px;
}
