/* 移动端分类激活状态 */
.mobile-category-item.active .mobile-category-icon {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    border: 2px solid #667eea;
}

.mobile-category-item.active .mobile-category-name {
    color: #667eea;
    font-weight: 600;
}

/* 移动端商品卡片 */
.mobile-product-card {
    transition: all 0.3s;
}

.mobile-product-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* 统一卡片间距 */
#mobileApp > div {
    margin-bottom: 10px;
}

#mobileApp > div:last-child {
    margin-bottom: 0;
}

/* ================================
   详情页移动端样式
   ================================ */
.mobile-page-wrapper {
    max-width: 480px;
    margin: 0 auto;
    background: #f5f5f5;
    min-height: 100vh;
    padding-bottom: 80px;
}

.mobile-top-nav {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.mobile-top-nav .back-btn {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mobile-top-nav .menu-icon {
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.mobile-page-content {
    padding: 0;
}

.mobile-cover-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.mobile-detail-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    padding: 15px;
    background: white;
    margin: 0;
    border-bottom: 1px solid #f0f0f0;
}

.mobile-service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 15px;
    background: white;
    margin-top: 10px;
}

.mobile-service-tag {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    font-size: 12px;
    color: #666;
}

.mobile-service-tag i {
    font-style: normal;
    font-size: 14px;
}

.mobile-service-tag:nth-child(1) {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #667eea;
}

.mobile-service-tag:nth-child(2) {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    color: #ff9a9e;
}

.mobile-service-tag:nth-child(3) {
    background: linear-gradient(135deg, #d299c2 0%, #fef9d7 100%);
    color: #a18cd1;
}

.mobile-service-tag:nth-child(4) {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 99%, #fecfef 100%);
    color: #ff6b6b;
}

.mobile-reviews-summary {
    display: flex;
    gap: 15px;
    padding: 12px 15px;
    background: white;
    margin-top: 10px;
    font-size: 13px;
    color: #666;
}

.mobile-review-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.mobile-specs-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    padding: 0 15px;
}

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

.mobile-spec-card {
    padding: 12px;
    background: white;
    border-radius: 8px;
    border: 2px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.3s;
}

.mobile-spec-card.active,
.mobile-spec-card.is-primary {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.spec-label {
    font-size: 13px;
    color: #333;
    margin-bottom: 4px;
}

.spec-price {
    font-size: 14px;
    color: #ff6b6b;
    font-weight: 600;
}

/* 表单容器 */
.mobile-form-section {
    background: white;
    padding: 15px;
    margin-top: 10px;
}

.mobile-input-group {
    margin-bottom: 15px;
}

.mobile-input-group:last-child {
    margin-bottom: 0;
}

.mobile-input-label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.mobile-input-label .required {
    color: #ff6b6b;
}

.mobile-input-field {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
    background: #f9fafb;
    transition: all 0.3s;
}

.mobile-input-field:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.mobile-input-field::placeholder {
    color: #9ca3af;
}

/* 数量选择器 */
.mobile-quantity-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f9fafb;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.mobile-qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: white;
    border-radius: 6px;
    font-size: 18px;
    color: #667eea;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.mobile-qty-btn:hover {
    background: #667eea;
    color: white;
}

.mobile-qty-btn:active {
    transform: scale(0.95);
}

.mobile-qty-input {
    width: 60px;
    height: 32px;
    text-align: center;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    background: white;
}

.mobile-qty-input:focus {
    outline: none;
    border-color: #667eea;
}

/* 价格显示区域 - 紧凑样式 */
.mobile-price-display {
    padding: 12px 15px;
    background: white;
    margin-top: 0;
    border-bottom: 1px solid #f0f0f0;
}

.mobile-price-display .price {
    font-size: 24px;
    font-weight: 700;
    color: #ff6b6b;
    display: flex;
    align-items: baseline;
}

.mobile-price-display .price .unit {
    font-size: 14px;
    margin-right: 4px;
    font-weight: 600;
}

/* 支付方式区域 */
.mobile-payment-section {
    background: white;
    padding: 12px 15px;
    margin-top: 8px;
    margin-bottom: 0;
    border-radius: 12px;
}

.mobile-payment-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pay-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pay-list .pay {
    flex: 1;
    min-width: 120px;
    padding: 12px 15px;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    color: #333;
}

.pay-list .pay:hover,
.pay-list .pay.selected {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.pay-list .pay img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.pay-list .pay span {
    font-size: 13px;
    font-weight: 500;
}

/* 商品详情区域 */
.mobile-description-section {
    background: white;
    margin-top: 0;
    margin-bottom: 10px;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    border-top: 1px solid #f0f0f0;
}

.mobile-desc-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    padding: 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mobile-desc-content {
    padding: 20px 15px;
    font-size: 14px;
    color: #4b5563;
    line-height: 1.8;
}

.mobile-desc-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 15px 0;
    border-radius: 8px;
}

.mobile-desc-content p {
    margin-bottom: 12px;
}

/* ================================
   底部 Tabbar 样式
   ================================ */
.mobile-tabbar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: white;
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    border-top: 1px solid #eee;
    z-index: 1000;
}

.tabbar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #999;
    font-size: 10px;
    flex: 1;
    transition: all 0.3s;
}

.tabbar-item.active {
    color: #667eea;
}

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

.tabbar-label {
    font-size: 10px;
}
