/* ==================== 头部样式 ==================== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid #eeeeee;
    background: #ffffff;
}

.header .logo {
    font-size: 22px;
    font-weight: bold;
    text-decoration: none;
    color: #000000;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-actions .nav-link {
    color: #000000;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-actions .nav-link:hover {
    color: #666666;
}

/* 用户下拉菜单 */
.user-menu {
    position: relative;
}

.user-menu .dropdown-toggle::after {
    display: inline-block;
    margin-left: 4px;
    content: "";
    border-top: 4px solid;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
}

.user-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    min-width: 160px;
    z-index: 1000;
    margin-top: 8px;
}

.user-dropdown a {
    display: block;
    padding: 10px 16px;
    color: #333333;
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid #f5f5f5;
}

.user-dropdown a:last-child {
    border-bottom: none;
}

.user-dropdown a:hover {
    background: #f5f5f5;
    color: #000000;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: #333333;
    border-radius: 1px;
    transition: all 0.3s;
}

/* 移动端导航菜单 */
.mobile-nav {
    display: none;
    position: fixed;
    top: 50px;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid #eeeeee;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.mobile-nav.show {
    display: block;
}

.mobile-nav a {
    display: block;
    padding: 14px 20px;
    color: #333333;
    text-decoration: none;
    border-bottom: 1px solid #f5f5f5;
}

.mobile-nav a:hover {
    background: #f9f9f9;
}

/* 分类折叠图标 */
.category-toggle-icon {
    display: inline-block;
    font-size: 12px;
    margin-left: 8px;
    transition: transform 0.3s;
    flex-shrink: 0;
}

/* details/summary 样式 */
.category-details {
    width: 100%;
}

.category-details summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eeeeee;
    color: #000000;
    cursor: pointer;
}

.category-details summary::-webkit-details-marker {
    display: none;
}

/* PC端默认展开 */
.category-details[open] .category-tree {
    display: block;
}

.category-details[open] .category-toggle-icon {
    transform: rotate(180deg);
}
.category-details[open] .category-title {
    border-bottom: 1px solid #eeeeee;
}

/* 语言切换 */
.lang-switch {
    display: flex;
    gap: 4px;
    background: #f5f5f5;
    padding: 4px;
    border-radius: 4px;
}

.lang-btn {
    padding: 4px 12px;
    font-size: 12px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.2s;
}

.lang-btn.active {
    background: #000000;
    color: #ffffff;
}

/* 购物车角标 */
.cart-count {
    display: inline-block;
    background: #000000;
    color: #ffffff;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    font-size: 11px;
    line-height: 18px;
    text-align: center;
    padding: 0 4px;
}

/* ==================== 主内容区域 ==================== */
.main-content {
    padding-top: 24px;
    padding-bottom: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

/* ==================== 分类树样式 ==================== */
.category-section {
    background: #ffffff;
    border: 1px solid #eeeeee;
    padding: 16px;
    position: sticky;
    top: 80px;
}

.category-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eeeeee;
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.category-tree {
    font-size: 14px;
}

.category-item,
.category-parent {
    padding: 10px 12px;
    cursor: pointer;
    border-radius: 4px;
    margin-bottom: 4px;
    transition: all 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-item:hover,
.category-parent:hover {
    background: #f5f5f5;
}

.category-item.active,
.category-parent.active {
    background: #000000;
    color: #ffffff;
}

.category-name {
    flex: 1;
}

.category-toggle {
    font-size: 10px;
    color: #999999;
}

.category-tags {
    font-size: 10px;
    background: #ffcc00;
    color: #000000;
    padding: 2px 6px;
    border-radius: 3px;
}

.category-children {
    padding-left: 16px;
    margin-top: 4px;
}

.category-child {
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
    margin-bottom: 2px;
    font-size: 13px;
    transition: all 0.2s;
}

.category-child:hover {
    background: #f5f5f5;
}

.category-child.active {
    background: #333333;
    color: #ffffff;
}

/* ==================== 商品列表（横向布局） ==================== */
.section-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #000000;
}

.product-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product-card {
    display: flex;
    gap: 16px;
    border: 1px solid #eeeeee;
    padding: 16px;
    transition: all 0.2s;
    background: #ffffff;
    align-items: flex-start;
}

.product-card:hover {
    border-color: #000000;
}

.product-image {
    width: 120px;
    height: 120px;
    object-fit: contain;
    background: #f5f5f5;
    flex-shrink: 0;
}

.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding-right: 16px;
}

.product-action-col {
    width: 180px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.product-id {
    font-size: 12px;
    color: #999999;
    margin-bottom: 4px;
}

.product-name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 4px;
    line-height: 1.4;
}

.product-desc {
    font-size: 13px;
    color: #0d6efd;
    margin-bottom: 4px;
    line-height: 1.5;
}

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

.product-pieces {
    font-size: 12px;
    color: #e74c3c;
    margin-bottom: 6px;
    font-weight: 500;
}

.product-price-row {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 12px;
}

.product-price {
    font-size: 20px;
    font-weight: bold;
    color: #000000;
}

.product-price-unit {
    font-size: 14px;
    color: #666666;
}

.product-remark {
    font-size: 12px;
    color: #999999;
    margin-bottom: 12px;
}

/* 商品规则标签 */
.product-rules {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.rule-tag {
    display: inline-block;
    padding: 3px 8px;
    font-size: 11px;
    border-radius: 3px;
    white-space: nowrap;
    cursor: default;
}

.rule-separate {
    background-color: #e74c3c;
    color: #fff;
}

.rule-free-service {
    background-color: #27ae60;
    color: #fff;
}

.rule-limit {
    background-color: #f39c12;
    color: #fff;
}

.product-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 0;
    height: 36px;
}

.qty-btn {
    width: 54px;
    height: 36px;
    border: 1px solid #cccccc;
    background: #ffffff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.qty-btn:hover {
    background: #f5f5f5;
}

.qty-input {
    width:72px;
    height: 36px;
    border: 1px solid #cccccc;
    border-left: none;
    border-right: none;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
}

.add-cart-btn {
    flex: 1;
    padding: 8px 12px;
    background: #000000;
    color: #ffffff;
    border: none;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.add-cart-btn:hover {
    background: #333333;
}

.add-cart-btn:disabled {
    background: #999999;
    cursor: not-allowed;
}

.add-cart-btn.disabled {
    background: #999999;
    cursor: not-allowed;
    color: #666666;
}

/* ==================== 公告栏 ==================== */
.notice-bar {
    background: #000000;
    color: #ffffff;
    padding: 10px 16px;
    font-size: 13px;
    text-align: center;
}
.age-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.age-modal.active {
    display: flex;
}

.age-modal-content {
    background: #ffffff;
    padding: 40px 30px;
    max-width: 400px;
    width: 100%;
    text-align: center;
}

.age-modal h2 {
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: bold;
}

.age-modal p {
    font-size: 16px;
    margin-bottom: 30px;
    color: #333;
}

.age-btn-group {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.age-btn {
    padding: 12px 40px;
    font-size: 16px;
    border: 2px solid #000000;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s;
}

.age-btn.yes {
    background: #000000;
    color: #ffffff;
}

.age-btn:hover {
    opacity: 0.8;
}

/* 公告栏 */
.notice-bar {
    background: #000000;
    color: #ffffff;
    padding: 12px 16px;
    font-size: 14px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* 分类导航 - 补充 */
.category-nav {
    padding: 16px;
    border-bottom: 1px solid #eeeeee;
}

.category-nav h3 {
    font-size: 14px;
    margin-bottom: 12px;
    color: #666666;
}

/* 购物车页面 - 补充 */
.image-disclaimer {
    padding: 12px 16px;
    background: #f9f9f9;
    border-radius: 6px;
    font-size: 13px;
    color: #666666;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.disclaimer-icon {
    flex-shrink: 0;
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
    color: #666666;
}

.cart-empty a {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 24px;
    background: #000000;
    color: #ffffff;
    text-decoration: none;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    margin-bottom: 12px;
}

.cart-select-all {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
}

.cart-select-all input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.btn-clear-cart {
    padding: 8px 16px;
    background: none;
    border: 1px solid #cccccc;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-clear-cart:hover {
    background: #f5f5f5;
}

.cart-item {
    display: flex;
    gap: 12px;
    border: 1px solid #eeeeee;
    padding: 16px;
    margin-bottom: 12px;
    background: #ffffff;
    align-items: flex-start;
    transition: all 0.2s;
}

.cart-item.selected {
    border-color: #000000;
    background: #fafafa;
}

.cart-item-checkbox {
    display: flex;
    align-items: flex-start;
    padding-top: 40px;
    cursor: pointer;
}

.cart-item-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.cart-item-image {
    width: 100px;
    height: 100px;
    object-fit: contain;
    background: #f5f5f5;
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding-right: 16px;
}

.cart-item-id {
    font-size: 12px;
    color: #999999;
    margin-bottom: 4px;
}

.cart-item-name {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 4px;
    line-height: 1.4;
}

.cart-item-spec {
    font-size: 13px;
    color: #666666;
    margin-bottom: 4px;
}

.cart-item-pieces {
    font-size: 12px;
    color: #e74c3c;
    font-weight: 500;
    margin-bottom: 6px;
}

.cart-item-weight {
    font-size: 12px;
    color: #999999;
    margin-bottom: 4px;
}

.cart-item-remark {
    font-size: 12px;
    color: #999999;
    margin-top: auto;
}

/* 购物车商品规则标签 */
.cart-item-rules {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}

.cart-item-rules .rule-tag {
    padding: 2px 6px;
    font-size: 10px;
}

.cart-item-action-col {
    min-width: 160px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.cart-item-price-row {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 12px;
}

.cart-item-price {
    font-size: 18px;
    font-weight: bold;
    color: #000000;
}

.cart-item-price-unit {
    font-size: 13px;
    color: #666666;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: flex-end;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0;
}

.cart-item-quantity .quantity-btn {
    width: 32px;
    height: 32px;
    font-size: 14px;
}

.cart-item-quantity .quantity-input {
    width: 48px;
    height: 32px;
}

.remove-btn {
    padding: 6px 12px;
    background: none;
    border: 1px solid #cccccc;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.remove-btn:hover {
    background: #f5f5f5;
}

.remove-btn:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
}

.cart-warning {
    padding: 10px;
    background: #fff5f5;
    border-radius: 4px;
    text-align: center;
}

.text-danger {
    color: #cc0000;
}

.cart-summary {
    padding: 16px;
    background: #f9f9f9;
}

.cart-info-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #666666;
    margin-bottom: 8px;
}

.cart-total {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
}

.btn-checkout {
    width: 100%;
    padding: 14px;
    background: #000000;
    color: #ffffff;
    border: none;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-checkout:hover {
    background: #333333;
}

.btn-checkout:disabled {
    background: #cccccc !important;
    cursor: not-allowed;
}

.cart-footer {
    position: sticky;
    bottom: 0;
    background: #ffffff;
    padding: 16px 0;
    border-top: 1px solid #eeeeee;
    margin-top: 16px;
}

.cart-footer .btn-continue-shopping {
    width: 100%;
    padding: 12px;
    background: #ffffff;
    color: #333333;
    border: 1px solid #cccccc;
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 12px;
    transition: all 0.2s;
}

.cart-footer .btn-continue-shopping:hover {
    background: #f5f5f5;
}

/* ============ 地址管理页面 ============ */
.address-page {
    max-width: 500px;
    margin: 0 auto;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eeeeee;
}

.page-header h4 {
    font-size: 18px;
    font-weight: bold;
    margin: 0;
}

.address-list-container {
    padding-bottom: 80px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state p {
    margin-bottom: 20px;
    color: #666666;
}

.address-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.address-item {
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 8px;
    padding: 16px;
    transition: all 0.2s;
}

.address-item:hover {
    border-color: #000000;
}

.address-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.address-item-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.address-item-info strong {
    font-size: 15px;
}

.address-item-info .text-muted {
    font-size: 14px;
    color: #666666;
}

.badge-id-card {
    display: inline-block;
    padding: 2px 8px;
    background: #666666;
    color: #ffffff;
    font-size: 11px;
    border-radius: 3px;
}

.badge-default {
    display: inline-block;
    padding: 2px 8px;
    background: #000000;
    color: #ffffff;
    font-size: 11px;
    border-radius: 3px;
}

.address-item-body {
    font-size: 14px;
    color: #666666;
    margin-bottom: 12px;
}

.address-item-body p {
    margin: 0;
    word-break: break-all;
}

.address-item-footer {
    display: flex;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid #eeeeee;
}

.address-item-footer .btn {
    padding: 6px 12px;
    font-size: 13px;
}

.address-list-footer {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 500px;
    padding: 16px;
    background: #ffffff;
    border-top: 1px solid #eeeeee;
}

/* 地址表单 */
.address-form-container {
    background: #ffffff;
    padding: 0;
}

/* 表单行布局 - 默认2列 */
.form-row {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

/* 4列布局（省市区县） */
.form-row-4 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 8px;
}

.form-row-4 .form-group {
    margin-bottom: 0;
}

/* 提交按钮行 */
.form-row-submit {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0;
}

.form-row-submit .form-check-group {
    flex: 1;
    margin-bottom: 0;
}

.form-row-submit .form-btn-group {
    flex: 1;
    margin-bottom: 0;
}

.form-row-submit .submit-btn {
    padding: 14px;
    font-size: 15px;
    font-weight: bold;
    border-radius: 6px;
    transition: all 0.2s;
}

.form-row-submit .submit-btn:hover {
    background: #333333;
}

.form-row-submit .submit-btn:disabled {
    background: #999999;
    cursor: not-allowed;
}

/* 响应式 - 移动端 */
@media (max-width: 480px) {
    .form-row {
        flex-direction: column;
        gap: 16px;
    }

    .form-row-4 {
        grid-template-columns: 1fr 1fr;
    }

    .form-row-submit {
        flex-direction: column;
    }

    .form-row-submit .form-check-group {
        width: 100%;
    }

    .form-row-submit .form-btn-group {
        width: 100%;
    }
}

.address-form-container .form-group {
    margin-bottom: 16px;
}

.address-form-container .form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #333333;
}

.address-form-container .form-group input,
.address-form-container .form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #dddddd;
    font-size: 15px;
    border-radius: 6px;
    transition: all 0.2s;
    background: #ffffff;
    box-sizing: border-box;
}

.address-form-container .form-group input:focus,
.address-form-container .form-group select:focus {
    outline: none;
    border-color: #000000;
}

.address-form-container .form-group input::placeholder {
    color: #bbbbbb;
}

.form-hint {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.6;
}

.form-hint .hint-warning {
    color: #cc0000;
}

.form-hint .hint-text {
    color: #999999;
}

.form-hint .hint-error {
    color: #cc0000;
    font-weight: 500;
}

.form-hint .hint-success {
    color: #28a745;
    font-weight: 500;
}

.age-hint {
    margin-top: 8px;
    padding: 8px 12px;
    background: #f5f5f5;
    border-radius: 4px;
}

.form-check-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.form-check-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-check-group label {
    margin: 0 !important;
    font-size: 14px !important;
}

.form-error {
    display: none;
    padding: 12px;
    background: #fff5f5;
    border: 1px solid #cc0000;
    border-radius: 6px;
    color: #cc0000;
    font-size: 14px;
    margin-bottom: 16px;
}

.address-form-container .submit-btn {
    padding: 14px;
    font-size: 15px;
    font-weight: bold;
    border-radius: 6px;
    margin-top: 8px;
    transition: all 0.2s;
}

.address-form-container .submit-btn:hover {
    background: #333333;
}

.address-form-container .submit-btn:disabled {
    background: #999999;
    cursor: not-allowed;
}

/* 结算页面 - 补充 */
.checkout-page {
    padding: 16px;
}

.address-section,
.order-section {
    margin-bottom: 24px;
}

.section-header {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eeeeee;
}

.address-card {
    padding: 12px;
    border: 1px solid #eeeeee;
    margin-bottom: 8px;
    cursor: pointer;
}

.address-card.selected {
    border-color: #000000;
    background: #f9f9f9;
}

.order-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #eeeeee;
}

.order-item-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
    background: #f5f5f5;
}

.order-item-info {
    flex: 1;
}

.order-item-id {
    font-size: 11px;
    color: #999999;
    margin-bottom: 2px;
}

.order-item-name {
    font-size: 14px;
    margin-bottom: 4px;
}

.order-item-quantity {
    font-size: 13px;
    color: #666666;
}

.order-item-price {
    text-align: right;
    font-size: 14px;
    font-weight: bold;
}

/* 订单商品标签 */
.order-item-tag {
    display: inline-block;
    padding: 2px 6px;
    font-size: 10px;
    background-color: #27ae60;
    color: #fff;
    border-radius: 3px;
    margin-top: 4px;
}

/* 支付方式选择 */
.payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.payment-method {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.payment-method:hover {
    border-color: #333;
}

.payment-method input[type="radio"] {
    display: none;
}

.payment-method:has(input:checked) {
    border-color: #000;
    background-color: #f5f5f5;
}

.payment-icon {
    font-size: 18px;
}

.fee明细 {
    padding: 12px 0;
    border-bottom: 1px solid #eeeeee;
    font-size: 14px;
}

.fee-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.fee-row.total {
    font-size: 16px;
    font-weight: bold;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #eeeeee;
}

.remark-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #cccccc;
    font-size: 14px;
    margin-top: 12px;
}

/* 订单列表页面 - 补充 */
.order-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.order-tab {
    padding: 10px 16px;
    border: 1px solid #eeeeee;
    background: #ffffff;
    font-size: 13px;
    white-space: nowrap;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.2s;
    color: #666666;
}

.order-tab:hover {
    border-color: #000000;
    color: #000000;
}

.order-tab.active {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
}

.order-tab .badge {
    font-size: 11px;
    padding: 2px 6px;
}

.order-card {
    border: 1px solid #eeeeee;
    border-radius: 12px;
    margin-bottom: 16px;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.2s;
}

.order-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    border-color: #dddddd;
}

/* 批量操作按钮 */
.batch-actions {
    display: flex;
    align-items: center;
    padding: 10px 0;
}

.order-select-all {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.order-checkbox {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    cursor: pointer;
    vertical-align: middle;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: #fafafa;
    border-bottom: 1px solid #f0f0f0;
}

.order-no {
    font-size: 13px;
    color: #666666;
}

.order-status {
    font-size: 13px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    background: #f0f0f0;
}

.order-status.status-0 {
    background: #fff3cd;
    color: #856404;
}

.order-status.status-1 {
    background: #cce5ff;
    color: #004085;
}

.order-status.status-2 {
    background: #d4edda;
    color: #155724;
}

.order-status.status-3 {
    background: #d4edda;
    color: #155724;
}

.order-status.status-4 {
    background: #f8d7da;
    color: #721c24;
}

.order-body {
    padding: 16px;
}

.order-product {
    display: flex;
    gap: 14px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f5f5f5;
}

.order-product:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.order-product-image {
    width: 70px;
    height: 70px;
    object-fit: contain;
    background: #f5f5f5;
    border-radius: 8px;
}

.order-product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.order-product-id {
    font-size: 12px;
    color: #999999;
    margin-bottom: 4px;
}

.order-product-name {
    font-size: 14px;
    font-weight: 500;
    color: #333333;
    margin-bottom: 4px;
    line-height: 1.4;
}

.order-product-quantity {
    font-size: 13px;
    color: #666666;
}

.order-product-price {
    text-align: right;
    font-size: 15px;
    font-weight: 600;
    color: #333333;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.order-express {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 13px;
    color: #666;
}

.order-express .btn-link {
    padding: 0;
    color: #007bff;
    text-decoration: none;
}

.logistics-list {
    padding: 10px 0;
}

.logistics-item {
    display: flex;
    padding: 12px 0;
    position: relative;
    padding-left: 24px;
}

.logistics-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 28px;
    bottom: -12px;
    width: 2px;
    background: #e0e0e0;
}

.logistics-dot {
    position: absolute;
    left: 0;
    top: 14px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #e0e0e0;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #e0e0e0;
}

.logistics-item.active .logistics-dot {
    background: #27ae60;
    box-shadow: 0 0 0 2px #27ae60;
}

.logistics-item.active .logistics-station {
    color: #333;
    font-weight: 500;
}

.logistics-content {
    flex: 1;
}

.logistics-station {
    font-size: 14px;
    color: #666;
    margin-bottom: 4px;
}

.logistics-time {
    font-size: 12px;
    color: #999;
}

.order-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: #fafafa;
    border-top: 1px solid #f0f0f0;
    gap: 12px;
}

.order-footer .order-total {
    flex: 1;
    white-space: nowrap;
}

.order-footer .order-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.order-footer .btn {
    padding: 6px 14px;
    font-size: 13px;
    white-space: nowrap;
}

.order-total {
    font-size: 16px;
    font-weight: 600;
    color: #333333;
}

.order-total {
    font-size: 16px;
    font-weight: bold;
}

/* 消费记录页面 */
.search-bar {
    display: flex;
    gap: 12px;
}

.search-bar input {
    flex: 1;
    padding: 12px 14px;
    border: 1px solid #dddddd;
    border-radius: 6px;
    font-size: 14px;
}

.search-bar input:focus {
    outline: none;
    border-color: #000000;
}

.search-bar .btn {
    padding: 12px 24px;
}

.record-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.record-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 16px;
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 8px;
    margin-bottom: 12px;
}

.record-info {
    flex: 1;
}

.record-title {
    font-size: 15px;
    font-weight: 500;
    color: #333333;
    margin-bottom: 4px;
}

.record-order-no {
    font-size: 13px;
    color: #666666;
    margin-bottom: 2px;
}

.record-pay-no {
    font-size: 12px;
    color: #999999;
    margin-bottom: 4px;
}

.record-time {
    font-size: 12px;
    color: #999999;
}

.record-pay-type {
    font-size: 12px;
    color: #666666;
    margin-top: 4px;
}

.record-right {
    text-align: right;
}

.record-amount {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 4px;
}

.record-amount.record-income {
    color: #28a745;
}

.record-amount.record-expense {
    color: #333333;
}

.record-balance {
    font-size: 12px;
    color: #999999;
}

/* 订单详情页面 */
.order-detail-page {
    max-width: 800px;
    margin: 0 auto;
}

.order-detail-page .page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eeeeee;
}

.order-detail-page .page-header h4 {
    font-size: 18px;
    font-weight: bold;
    margin: 0;
}

.order-detail-status {
    margin-bottom: 20px;
}

.status-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.status-card.status-pending {
    background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%);
}

.status-card.status-ship {
    background: linear-gradient(135deg, #cce5ff 0%, #b8daff 100%);
}

.status-card.status-receiving {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
}

.status-card.status-completed {
    background: linear-gradient(135deg, #d4edda 0%, #b1dfbb 100%);
}

.status-card.status-cancelled {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
}

.status-card .status-icon {
    font-size: 40px;
}

.status-card .status-text .status-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 4px;
}

.status-card .status-text .status-desc {
    font-size: 14px;
    color: #666666;
}

.status-actions {
    text-align: center;
    padding: 16px;
}

.status-actions .btn {
    padding: 12px 32px;
    font-size: 15px;
}

.order-detail-info {
    margin-bottom: 20px;
}

.info-card {
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row.fee-row {
    font-size: 14px;
}

.info-row.fee-row .info-label {
    color: #666666;
}

.info-row.fee-row.total {
    border-top: 2px solid #eeeeee;
    padding-top: 12px;
    margin-top: 8px;
    font-weight: bold;
    font-size: 16px;
}

.info-label {
    color: #999999;
    font-size: 14px;
}

.info-value {
    color: #333333;
    font-size: 14px;
    text-align: right;
    max-width: 60%;
    word-break: break-all;
}

.info-value .btn-link {
    padding: 0;
    margin-left: 8px;
    color: #007bff;
    font-size: 13px;
    text-decoration: none;
}

.order-detail-goods .section-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eeeeee;
}

.goods-list {
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 12px;
    overflow: hidden;
}

.goods-item {
    display: flex;
    gap: 14px;
    padding: 16px;
    border-bottom: 1px solid #f5f5f5;
}

.goods-item:last-child {
    border-bottom: none;
}

.goods-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background: #f5f5f5;
    border-radius: 8px;
}

.goods-info {
    flex: 1;
}

.goods-name {
    font-size: 14px;
    font-weight: 500;
    color: #333333;
    margin-bottom: 4px;
}

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

.goods-id {
    font-size: 12px;
    color: #999999;
}

.goods-price {
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.goods-unit-price {
    font-size: 13px;
    color: #666666;
    margin-bottom: 4px;
}

.goods-subtotal {
    font-size: 15px;
    font-weight: bold;
    color: #333333;
}

/* 用户中心 - 补充 */
.user-info-card {
    padding: 16px;
    background: #f9f9f9;
    margin-bottom: 20px;
}

.user-info-card p {
    margin-bottom: 4px;
    font-size: 14px;
}

.menu-list {
    border: 1px solid #eeeeee;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid #eeeeee;
    font-size: 14px;
    cursor: pointer;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:hover {
    background: #f9f9f9;
}

/* 登录页面 - 补充 */
.login-page {
    padding: 40px 20px;
    max-width: 420px;
    margin: 0 auto;
    min-height: calc(100vh - 200px);
}

.login-page h2 {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 32px;
    text-align: center;
}

.login-tabs {
    display: flex;
    margin-bottom: 32px;
    border-bottom: 1px solid #eeeeee;
}

.login-tab {
    flex: 1;
    padding: 14px;
    text-align: center;
    font-size: 15px;
    border-bottom: 2px solid transparent;
    background: none;
    cursor: pointer;
    color: #999999;
    transition: all 0.2s;
}

.login-tab:hover {
    color: #000000;
}

.login-tab.active {
    border-color: #000000;
    color: #000000;
    font-weight: bold;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
    color: #333333;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #dddddd;
    font-size: 15px;
    border-radius: 6px;
    transition: all 0.2s;
    background: #ffffff;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.form-group input::placeholder {
    color: #bbbbbb;
}

.error-msg {
    color: #cc0000;
    font-size: 13px;
    margin-top: 6px;
    padding: 10px;
    background: #fff5f5;
    border-radius: 4px;
    display: none;
}

.error-msg.show {
    display: block;
}

.submit-btn {
    padding: 16px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 6px;
    margin-top: 8px;
    transition: all 0.2s;
}

.submit-btn:hover {
    background: #333333;
}

.submit-btn:disabled {
    background: #999999;
    cursor: not-allowed;
}

.login-page .text-center a {
    color: #666666;
    text-decoration: none;
    font-size: 14px;
}

.login-page .text-center a:hover {
    color: #000000;
}

/* 输入组 */
.input-group {
    display: flex;
    gap: 0;
}

.input-group .form-control {
    border-radius: 6px 0 0 6px;
    border-right: none;
}

.input-group .btn {
    border-radius: 0 6px 6px 0;
    padding-left: 16px;
    padding-right: 16px;
    white-space: nowrap;
}

/* 页脚 - 补充 */
.footer {
    background: #f9f9f9;
    border-top: 1px solid #eeeeee;
    margin-top: 60px;
    padding: 40px 0 30px;
}

.footer .container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-section {
    font-size: 14px;
}

.footer-section-title {
    font-size: 15px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #333333;
    display: inline-block;
}

.footer-about {
    color: #666666;
    line-height: 1.8;
    font-size: 13px;
}
.footer-links-wrap{
    display: flex;
    flex-wrap: wrap;
}

.footer-links-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.footer-links-list a {
    font-size: 13px;
    color: #666666;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links-list a:hover {
    color: #000000;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #666666;
}

.footer-contact-item .icon {
    font-size: 14px;
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid #eeeeee;
    margin-top: 30px;
    padding-top: 20px;
    text-align: center;
    font-size: 12px;
    color: #999999;
}

/* 响应式 - 平板 */
@media (max-width: 768px) {
    .footer .container {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-section-title {
        display: block;
        text-align: center;
    }

    .footer-contact-item {
        justify-content: center;
    }

    /* 头部移动端适配 */
    .header {
        padding: 12px 16px;
    }

    .header .logo img {
        width: 80px;
        height: auto;
    }

    .mobile-menu-btn {
        display: flex;
    }

    /* 移动端主内容区 */
    .main-content {
        padding: 12px;
    }

    /* 移动端侧边栏分类 */
    .category-section {
        margin-bottom: 16px;
        padding: 0;
    }

    .category-title {
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: #f9f9f9;
        padding: 12px 16px;
        cursor: pointer;
    }

    .category-toggle-icon {
        display: inline-block !important;
        flex-shrink: 0;
    }

    /* 移动端默认折叠 */
    .category-details:not([open]) .category-tree {
        display: none;
    }

    .category-details summary {
        background: #f9f9f9;
        padding: 12px 16px;
        margin-bottom: 0;
        border-bottom: none;
    }

    .category-tree.show {
        display: block;
    }
}

/* Toast提示 - 补充 */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.85);
    color: #ffffff;
    padding: 12px 24px;
    font-size: 14px;
    border-radius: 4px;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.toast.show {
    opacity: 1;
}

/* 弹窗通用 - 补充 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #ffffff;
    width: 100%;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 20px;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eeeeee;
}

.modal-close {
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
}

.modal-body {
    padding: 10px 0;
}

.modal-footer {
    padding-top: 16px;
    text-align: center;
}

/* 等待支付图标 */
.waiting-payment-icon {
    display: flex;
    justify-content: center;
    align-items: center;
}

.waiting-payment-icon .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* 地址表单 - 补充 */
.address-form .form-group {
    margin-bottom: 12px;
}

.address-form .row {
    display: flex;
    gap: 8px;
}

.address-form .row .form-group {
    flex: 1;
}

/* 表单提示信息 */
.form-hint {
    font-size: 12px;
    margin-top: 4px;
    line-height: 1.5;
}

.form-hint .text-danger {
    color: #dc3545;
}

.form-hint div {
    margin-bottom: 2px;
}

/* 地址卡片列表 */
.address-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.address-card {
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.address-card:hover {
    border-color: #000000;
}

.address-card.selected {
    border-color: #000000;
    background: #fafafa;
}

.address-card-header {
    margin-bottom: 8px;
}

.address-card-body {
    color: #666666;
    font-size: 14px;
}

.address-card-footer {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #eeeeee;
    display: flex;
    gap: 8px;
}

.address-card-footer .btn {
    padding: 4px 12px;
    font-size: 12px;
}

/* 加载动画 */
.loading {
    text-align: center;
    padding: 40px 20px;
    color: #666666;
}

.loading::after {
    content: "";
    display: block;
    width: 30px;
    height: 30px;
    border: 2px solid #eeeeee;
    border-top-color: #000000;
    border-radius: 50%;
    margin: 16px auto 0;
    animation: spin 0.8s linear infinite;
}

.loading.small::after {
    width: 20px;
    height: 20px;
    margin: 8px auto 0;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 响应式 - 补充 - 保持左右布局 */
@media (max-width: 768px) {
    /* 保持左右布局，调整尺寸 */
    .product-card {
        flex-wrap: nowrap;
        gap: 12px;
        padding: 12px;
    }

    .product-image {
        width: 80px;
        height: 80px;
    }

    .product-info {
        flex: 1;
        min-width: 0;
        padding-right: 8px;
    }

    .product-id {
        font-size: 11px;
    }

    .product-name {
        font-size: 14px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .product-spec {
        font-size: 12px;
    }

    .product-price {
        font-size: 14px;
    }

    .product-action-col {
        width: auto;
        min-width: 100px;
        flex-direction: column;
        align-items: flex-end;
        gap: 8px;
    }

    .product-btn {
        font-size: 12px;
        padding: 6px 12px;
    }

    /* 购物车 - 移动端新布局 */
    .cart-item {
        flex-wrap: wrap;
        gap: 8px;
        padding: 12px;
    }

    .cart-item-checkbox {
        padding-top: 0;
        order: 1;
    }

    .cart-item-checkbox input[type="checkbox"] {
        width: 20px;
        height: 20px;
    }

    .cart-item-image {
        width: 70px;
        height: 70px;
        order: 2;
    }

    .cart-item-info {
        flex: 1;
        min-width: 0;
        padding-right: 0;
        order: 3;
        padding-left: 8px;
    }

    .cart-item-id {
        font-size: 11px;
    }

    .cart-item-name {
        font-size: 13px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .cart-item-spec,
    .cart-item-pieces,
    .cart-item-weight {
        font-size: 11px;
    }

    .cart-item-remark {
        font-size: 10px;
    }

    /* 价格和操作区域 - 换行显示 */
    .cart-item-action-col {
        width: 100%;
        min-width: 0;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        order: 4;
        gap: 8px;
        padding-top: 8px;
        border-top: 1px solid #f0f0f0;
        margin-top: 4px;
    }

    .cart-item-price-row {
        margin-bottom: 0;
        align-items: center;
    }

    .cart-item-price {
        font-size: 16px;
    }

    .cart-item-price-unit {
        font-size: 12px;
    }

    .cart-item-actions {
        width: auto;
        justify-content: flex-end;
        gap: 6px;
    }

    /* 数量控制 - 移动端优化 */
    .quantity-control {
        height: 32px;
    }

    .qty-btn {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .qty-input {
        width: 40px;
        height: 32px;
        font-size: 14px;
    }

    .remove-btn {
        padding: 6px 10px;
        font-size: 11px;
    }

    /* 购物车头部优化 */
    .cart-header {
        flex-wrap: wrap;
        gap: 8px;
        padding: 10px 0;
    }

    .cart-select-all {
        font-size: 13px;
    }

    .cart-select-all input[type="checkbox"] {
        width: 18px;
        height: 18px;
    }

    .btn-clear-cart {
        font-size: 12px;
        padding: 6px 10px;
    }

    /* 购物车底部优化 */
    .cart-summary {
        padding: 12px;
    }

    .cart-info-row {
        flex-wrap: wrap;
        gap: 4px;
        font-size: 12px;
    }

    .cart-total {
        font-size: 16px;
    }

    .btn-checkout {
        padding: 12px;
        font-size: 14px;
    }

    .btn-continue-shopping {
        padding: 10px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 10px 12px;
    }

    .header-actions {
        gap: 8px;
    }

    .header-actions .nav-link {
        font-size: 11px;
    }

    .header .logo img {
        width: 70px;
    }

    /* 保持左右布局，极小屏幕微调 */
    .product-card {
        flex-wrap: nowrap;
        gap: 8px;
        padding: 10px;
    }

    .product-image {
        width: 60px;
        height: 60px;
    }

    .product-info {
        padding-right: 6px;
    }

    .product-id {
        font-size: 10px;
    }

    .product-name {
        font-size: 12px;
    }

    .product-action-col {
        min-width: 70px;
        gap: 4px;
    }

    .product-btn {
        font-size: 10px;
        padding: 4px 8px;
    }

    /* 购物车 - 极小屏幕优化 */
    .cart-item {
        gap: 6px;
        padding: 10px;
    }

    .cart-item-checkbox input[type="checkbox"] {
        width: 18px;
        height: 18px;
    }

    .cart-item-image {
        width: 60px;
        height: 60px;
    }

    .cart-item-info {
        padding-left: 6px;
    }

    .cart-item-id {
        font-size: 10px;
    }

    .cart-item-name {
        font-size: 12px;
    }

    .cart-item-spec,
    .cart-item-pieces,
    .cart-item-weight,
    .cart-item-remark {
        font-size: 10px;
    }

    .cart-item-action-col {
        flex-wrap: wrap;
        gap: 6px;
        padding-top: 6px;
    }

    .cart-item-price-row {
        width: 100%;
        justify-content: flex-start;
    }

    .cart-item-price {
        font-size: 15px;
    }

    .cart-item-price-unit {
        font-size: 11px;
    }

    .cart-item-actions {
        width: 100%;
        justify-content: space-between;
    }

    .quantity-control {
        height: 28px;
    }

    .qty-btn {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }

    .qty-input {
        width: 36px;
        height: 28px;
        font-size: 13px;
    }

    .remove-btn {
        padding: 5px 8px;
        font-size: 11px;
    }

    /* 购物车底部优化 */
    .cart-footer {
        padding: 12px 0;
    }

    .cart-info-row {
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }

    .cart-total {
        font-size: 16px;
        text-align: center;
    }

    /* 购物车头部极小屏幕优化 */
    .cart-header {
        padding: 8px 0;
    }

    .cart-select-all {
        font-size: 12px;
    }

    .cart-select-all input[type="checkbox"] {
        width: 16px;
        height: 16px;
    }

    .btn-clear-cart {
        font-size: 11px;
        padding: 5px 8px;
    }

    /* 购物车底部极小屏幕优化 */
    .cart-summary {
        padding: 10px;
    }

    .cart-info-row {
        font-size: 11px;
    }

    .cart-total {
        font-size: 15px;
    }

    .btn-checkout {
        padding: 10px;
        font-size: 13px;
    }

    .btn-continue-shopping {
        padding: 8px;
        font-size: 12px;
    }

    .category-section {
        position: static;
    }
}

@media (min-width: 768px) {
    .header {
        max-width: 1400px;
        margin: 0 auto;
        padding: 16px 24px;
    }

    .checkout-page,
    .cart-page,
    .orders-page,
    .user-page {
        max-width: 600px;
        margin: 0 auto;
        padding: 20px;
    }
}

/* 登录页面 - 紧凑表单 */
.login-page .form-group {
    margin-bottom: 14px;
}

.login-page .form-group label {
    font-size: 13px;
    margin-bottom: 6px;
}

.login-page .form-group input,
.login-page .form-group select {
    padding: 8px 12px;
    font-size: 14px;
    height: 38px;
}

.login-page .submit-btn {
    padding: 10px;
    font-size: 14px;
}

/* 必填项标记 */
.required {
    color: #dc3545;
    margin-left: 2px;
}

/* 图形验证码 */
.captcha-group {
    display: flex;
    gap: 10px;
}

.captcha-group input {
    flex: 1;
}

.captcha-canvas {
    cursor: pointer;
    border-radius: 4px;
    border: 1px solid #ced4da;
    height: 38px;
}

/* STS澳邮用户选项 */
.australia-option {
    display: flex;
    gap: 20px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 14px;
}

.radio-label input[type="radio"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* 服务协议复选框 */
.agreement-check {
    font-size: 13px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.agreement-check a {
    color: #007bff;
    text-decoration: none;
}

.agreement-check a:hover {
    text-decoration: underline;
}

/* 字段级错误提示 */
.field-error {
    color: #dc3545;
    font-size: 12px;
    margin-top: 4px;
    padding-left: 4px;
}

/* 密码显示切换 */
.password-input-group {
    position: relative;
}

.password-input-group input {
    padding-right: 40px;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 16px;
    user-select: none;
    z-index: 1;
}

/* ==================== 文章页面样式 ==================== */
.article-page {
    padding: 20px;
    /* max-width: 800px; */
    margin: 0 auto;
}

.article-page .btn-back {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

.article-page .btn-back:hover {
    color: #333;
}

.article-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.article-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    color: #333;
    text-align: center;
}

.article-body {
    line-height: 1.8;
    color: #555;
    font-size: 15px;
}

.article-body p {
    margin-bottom: 15px;
}
.article-body p *{
    text-wrap-mode: inherit!important;  
}
.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.article-body strong {
    color: #333;
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 999;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top:hover {
    background: #555;
    transform: scale(1.1);
}

.back-to-top.show {
    opacity: 1;
}
