/* ============================================================
   子页面通用样式
   ============================================================ */

/* 顶部导航栏 */
.nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: linear-gradient(180deg, #e8f0f8 0%, #f0f5fa 100%);
    position: relative;
    z-index: 100;
}

.nav-back {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.nav-title {
    font-size: 17px;
    font-weight: 600;
    color: #333;
}

.nav-right {
    width: 40px;
}

/* 底部操作按钮区 */
.bottom-action {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px 20px 25px;
    background: linear-gradient(180deg, transparent 0%, #f5f7fa 30%);
    max-width: 750px;
    margin: 0 auto;
    z-index: 100;
}

.action-btn {
    width: 100%;
    padding: 16px 0;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-gradient {
    background: linear-gradient(90deg, #4dd0e1 0%, #26c6da 50%, #00bcd4 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 188, 212, 0.3);
}

.btn-gradient:active {
    transform: scale(0.98);
    opacity: 0.9;
}

/* ============================================================
   详情页样式
   ============================================================ */
.detail-title {
    text-align: center;
    padding: 30px 20px 20px;
    position: relative;
    z-index: 1;
}

.detail-title h2 {
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.detail-content {
    padding: 0 15px 120px;
    position: relative;
    z-index: 1;
}

.detail-section {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.section-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    padding: 15px 20px;
    border-left: 4px solid #4dd0e1;
    background: linear-gradient(90deg, #e0f7fa 0%, #fff 100%);
}

.section-body {
    padding: 15px 20px;
}

.section-body p {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
}

.section-body p:last-child {
    margin-bottom: 0;
}

/* 多色段落背景 */
.section-body p:nth-child(1) { background: #fff9e6; padding: 10px; border-radius: 6px; }
.section-body p:nth-child(2) { background: #e8f5e9; padding: 10px; border-radius: 6px; }
.section-body p:nth-child(3) { background: #fff3e0; padding: 10px; border-radius: 6px; }
.section-body p:nth-child(4) { background: #fce4ec; padding: 10px; border-radius: 6px; }
.section-body p:nth-child(5) { background: #e3f2fd; padding: 10px; border-radius: 6px; }

/* ============================================================
   商品列表页样式
   ============================================================ */
.category-tabs {
    display: flex;
    padding: 15px;
    overflow-x: auto;
    white-space: nowrap;
    gap: 15px;
    position: relative;
    z-index: 1;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.category-tab {
    font-size: 14px;
    color: #666;
    padding: 5px 0;
    cursor: pointer;
    flex-shrink: 0;
}

.category-tab.active {
    color: #00bcd4;
    font-weight: bold;
    border-bottom: 2px solid #00bcd4;
}

/* 商品表格 */
.goods-table-wrap {
    padding: 0 15px 30px;
    position: relative;
    z-index: 1;
}

.goods-table {
    width: 100%;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.table-header {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 0.8fr;
    background: linear-gradient(90deg, #4dd0e1 0%, #26c6da 100%);
    padding: 12px 15px;
}

.table-header span {
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    text-align: center;
}

.table-header span:first-child {
    text-align: left;
}

.table-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 0.8fr;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    align-items: center;
}

.table-row:last-child {
    border-bottom: none;
}

.row-title {
    font-size: 14px;
    color: #333;
}

.row-stock {
    text-align: center;
}

.row-stock span {
    display: inline-block;
    padding: 4px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 13px;
    color: #666;
}

.row-price {
    font-size: 14px;
    color: #333;
    text-align: center;
}

.row-action {
    text-align: center;
}

.buy-btn {
    padding: 6px 16px;
    background: linear-gradient(90deg, #4dd0e1 0%, #26c6da 100%);
    border: none;
    border-radius: 15px;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
}

.buy-btn:active {
    opacity: 0.8;
}

/* ============================================================
   产品详细信息页样式
   ============================================================ */
.product-card {
    margin: 15px;
    background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%);
    border-radius: 12px;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.product-name {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.product-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.product-tag {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
}

.tag-green {
    background: #e8f5e9;
    color: #4caf50;
}

.tag-cyan {
    background: #e0f7fa;
    color: #00bcd4;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.price-current {
    font-size: 28px;
    font-weight: bold;
    color: #00bcd4;
}

.price-original {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

/* 表单区域 */
.form-section {
    margin: 15px;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: relative;
    z-index: 1;
}

.form-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

.form-item {
    margin-bottom: 15px;
}

.form-item:last-child {
    margin-bottom: 0;
}

.form-row {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.form-label {
    font-size: 14px;
    color: #666;
    width: 80px;
    flex-shrink: 0;
}

.form-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 14px;
    color: #333;
    outline: none;
}

.form-input::placeholder {
    color: #999;
}

.form-select {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.form-select span {
    font-size: 14px;
    color: #333;
}

.form-select svg {
    fill: #999;
}

/* 数量选择器 */
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 15px;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.qty-minus {
    background: #e0e0e0;
    color: #666;
}

.qty-plus {
    background: #4dd0e1;
    color: #fff;
}

.qty-input {
    width: 120px;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 14px;
    color: #999;
}

/* 验证码 */
.captcha-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.captcha-input {
    flex: 1;
}

.captcha-img {
    height: 36px;
    border-radius: 4px;
}

/* 支付方式 */
.payment-method {
    display: flex;
    align-items: center;
    gap: 8px;
}

.payment-icon {
    width: 24px;
    height: 24px;
}

.payment-text {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

/* 注意事项 */
.notice-section {
    margin: 15px;
    background: #fff9e6;
    border-radius: 12px;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.notice-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.notice-list {
    font-size: 13px;
    color: #666;
    line-height: 1.8;
}

.notice-list p {
    margin-bottom: 8px;
}

/* ============================================================
   确认订单页样式
   ============================================================ */
.order-card {
    margin: 15px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: relative;
    z-index: 1;
}

.order-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%);
}

.order-icon {
    width: 40px;
    height: 40px;
}

.order-platform {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.order-details {
    padding: 15px 20px;
}

.order-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.order-row:last-child {
    border-bottom: none;
}

.order-label {
    font-size: 14px;
    color: #666;
}

.order-value {
    font-size: 14px;
    color: #333;
}

/* ============================================================
   收银台/支付页样式
   ============================================================ */
.payment-header {
    text-align: center;
    padding: 30px 20px;
    position: relative;
    z-index: 1;
}

.payment-title {
    font-size: 16px;
    color: #666;
    margin-bottom: 15px;
}

.payment-amount {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
}

.amount-value {
    font-size: 42px;
    font-weight: bold;
    color: #00bcd4;
}

.amount-decimal {
    font-size: 20px;
    color: #00bcd4;
}

.copy-icon {
    width: 20px;
    height: 20px;
    margin-left: 5px;
    cursor: pointer;
}

.network-tag {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 30px;
    background: #f5f5f5;
    border-radius: 20px;
    font-size: 14px;
    color: #333;
}

/* 二维码 */
.qrcode-wrap {
    text-align: center;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.qrcode-img {
    width: 200px;
    height: 200px;
    border-radius: 8px;
}

.qrcode-tip {
    font-size: 13px;
    color: #999;
    margin-top: 10px;
}

/* 地址显示 */
.address-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    position: relative;
    z-index: 1;
}

.address-text {
    font-size: 12px;
    color: #666;
    word-break: break-all;
}

/* 已付款按钮 */
.paid-btn {
    display: block;
    width: 160px;
    margin: 20px auto;
    padding: 12px 0;
    background: linear-gradient(90deg, #4dd0e1 0%, #26c6da 100%);
    border: none;
    border-radius: 25px;
    color: #fff;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
}

/* 支付信息 */
.payment-info {
    margin: 15px;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: relative;
    z-index: 1;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
}

.info-label {
    font-size: 14px;
    color: #666;
}

.info-value {
    font-size: 14px;
    color: #333;
}

.info-value.highlight {
    color: #ff5722;
}

/* ============================================================
   供需/需求列表页样式
   ============================================================ */
.list-wrap {
    padding: 15px;
    padding-bottom: 100px;
    position: relative;
    z-index: 1;
}

.list-item {
    background: #fff;
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-left: 4px solid #4dd0e1;
}

.list-title {
    font-size: 16px;
    font-weight: bold;
    color: #00bcd4;
    margin-bottom: 8px;
}

.list-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

/* ============================================================
   发布信息页样式
   ============================================================ */
.publish-tabs {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.publish-tab {
    font-size: 16px;
    color: #999;
    padding: 5px 0;
    cursor: pointer;
    position: relative;
}

.publish-tab.active {
    color: #00bcd4;
    font-weight: bold;
}

.publish-tab.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: #00bcd4;
    border-radius: 2px;
}

/* 大文本框 */
.textarea-wrap {
    margin: 0 15px 15px;
    background: #e0f7fa;
    border-radius: 12px;
    padding: 15px;
    position: relative;
    z-index: 1;
}

.form-textarea {
    width: 100%;
    min-height: 150px;
    border: none;
    background: transparent;
    font-size: 14px;
    color: #333;
    resize: none;
    outline: none;
}

.form-textarea::placeholder {
    color: #999;
}

/* ============================================================
   USDT兑换页样式
   ============================================================ */
.exchange-card {
    margin: 15px;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: relative;
    z-index: 1;
}

.exchange-card.sell {
    background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%);
}

.exchange-card.receive {
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd9 100%);
}

.exchange-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.exchange-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.exchange-amount {
    font-size: 32px;
    font-weight: bold;
    color: #333;
}

.exchange-slider {
    width: 100%;
    margin: 15px 0;
    -webkit-appearance: none;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    outline: none;
}

.exchange-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #00bcd4;
    border-radius: 50%;
    cursor: pointer;
}

.currency-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.currency-icon {
    width: 24px;
    height: 24px;
}

.currency-name {
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

/* 兑换箭头 */
.exchange-arrow {
    text-align: center;
    padding: 10px 0;
    position: relative;
    z-index: 1;
}

.arrow-icon {
    width: 36px;
    height: 36px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 汇率显示 */
.rate-info {
    text-align: center;
    padding: 15px;
    font-size: 14px;
    color: #666;
    position: relative;
    z-index: 1;
}

.rate-tip {
    font-size: 13px;
    color: #999;
    padding: 10px 15px;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

/* ============================================================
   收款信息页样式
   ============================================================ */
.receive-tabs {
    display: flex;
    justify-content: center;
    gap: 50px;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.receive-tab {
    font-size: 16px;
    color: #999;
    padding: 5px 0;
    cursor: pointer;
    position: relative;
}

.receive-tab.active {
    color: #00bcd4;
    font-weight: bold;
}

.receive-tab.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #4dd0e1, #26c6da);
    border-radius: 2px;
}

/* ============================================================
   弹窗样式
   ============================================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-box {
    background: #fff;
    border-radius: 16px;
    width: 280px;
    overflow: hidden;
    position: relative;
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 30px;
    height: 30px;
    cursor: pointer;
}

.modal-header {
    padding: 15px 20px;
    text-align: center;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
}

.modal-header.success {
    background: linear-gradient(90deg, #4dd0e1 0%, #26c6da 100%);
}

.modal-header.error {
    background: linear-gradient(90deg, #ff6b6b 0%, #ee5a5a 100%);
}

.modal-body {
    padding: 30px 20px;
    text-align: center;
}

.modal-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
}

.modal-text {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.modal-btn {
    display: block;
    width: 200px;
    margin: 0 auto 20px;
    padding: 12px 0;
    background: linear-gradient(90deg, #4dd0e1 0%, #26c6da 100%);
    border: none;
    border-radius: 25px;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
}

/* 公告弹窗 */
.notice-modal .modal-body {
    padding: 20px;
}

.notice-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
}

.notice-content {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
}

.notice-check {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: #999;
}

.notice-check input {
    width: 16px;
    height: 16px;
}

/* ============================================================
   页面内容底部留白
   ============================================================ */
.page-content {
    padding-bottom: 100px;
}

/* ============================================================
   订单查询页样式
   ============================================================ */
.order-info-list {
    padding: 15px 20px;
}

.order-info-list .info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.order-info-list .info-row:last-child {
    border-bottom: none;
}

.status-tag {
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 12px;
}

.status-tag.success {
    background: #e8f5e9;
    color: #4caf50;
}

.status-tag.pending {
    background: #fff3e0;
    color: #ff9800;
}

/* ============================================================
   在线客服页样式
   ============================================================ */
.service-card {
    text-align: center;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

.service-avatar {
    margin-bottom: 15px;
}

.service-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.service-desc {
    font-size: 14px;
    color: #999;
}

.contact-list {
    padding: 0 15px;
    position: relative;
    z-index: 1;
}

.contact-item {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    cursor: pointer;
}

.contact-item:active {
    opacity: 0.8;
}

.contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info {
    flex: 1;
    margin-left: 12px;
}

.contact-label {
    display: block;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.contact-value {
    display: block;
    font-size: 13px;
    color: #999;
    margin-top: 4px;
}

.copy-btn {
    padding: 6px 15px;
    background: linear-gradient(90deg, #4dd0e1 0%, #26c6da 100%);
    border-radius: 15px;
    color: #fff;
    font-size: 12px;
}

.work-time {
    text-align: center;
    padding: 30px 20px;
    color: #999;
    font-size: 13px;
    line-height: 1.8;
}

/* ============================================================
   供需详情页样式
   ============================================================ */
.supply-detail-card {
    margin: 15px;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: relative;
    z-index: 1;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.detail-tag {
    font-size: 18px;
    font-weight: bold;
    color: #4dd0e1;
}

.detail-time {
    font-size: 12px;
    color: #999;
}

.detail-content {
    font-size: 15px;
    color: #333;
    line-height: 1.8;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.detail-contact {
    display: flex;
    align-items: center;
    padding-top: 15px;
    gap: 10px;
}

.detail-contact .contact-label {
    font-size: 14px;
    color: #666;
}

.detail-contact .contact-value {
    flex: 1;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.copy-small-btn {
    padding: 5px 12px;
    background: linear-gradient(90deg, #4dd0e1 0%, #26c6da 100%);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
}

/* ============================================================
   选择器弹窗样式
   ============================================================ */
.picker-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 1000;
}

.picker-box {
    width: 100%;
    max-width: 750px;
    background: #fff;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
}

.picker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 16px;
    font-weight: bold;
}

.picker-close {
    font-size: 24px;
    color: #999;
    cursor: pointer;
}

.picker-list {
    max-height: 300px;
    overflow-y: auto;
}

.picker-item {
    padding: 15px 20px;
    font-size: 15px;
    color: #333;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
}

.picker-item:active {
    background: #f5f5f5;
}

.picker-item:last-child {
    border-bottom: none;
}
