:root {
            --primary-color: #0047AB;
            --primary-dark: #003380;
            --accent-color: #FF6B35;
            --text-dark: #2C3E50;
            --text-light: #666;
            --bg-light: #F5F5F5;
            --white: #FFFFFF;
            --border-color: #E5E5E5;
            --success-color: #28a745;
            --warning-color: #ffc107;
            --danger-color: #dc3545;
            --info-color: #17a2b8;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            -webkit-tap-highlight-color: transparent; /* 清除 iOS/Android 点击高亮 */
        }

        /* iOS 输入框防自动缩放（字体 < 16px 会触发缩放） */
        input, select, textarea {
            font-size: 16px;
        }
        @media (max-width: 768px) {
            input, select, textarea {
                font-size: 16px !important; /* 确保 iOS Safari 不缩放 */
            }
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
            background: var(--bg-light);
            min-height: 100vh;
            overflow-x: hidden; /* 防止移动端横向溢出 */
        }

        .header {
            background: var(--white);
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            position: sticky;
            top: 0;
            z-index: 1000;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        .header-content {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 15px 0;
        }

        .header-right {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 28px;
            font-weight: 800;
            color: var(--primary-color);
            text-decoration: none;
        }

        .logo i {
            font-size: 32px;
        }

        /* 内联语言切换器 */
        .lang-switcher-inline {
            display: flex;
            gap: 4px;
            background: #f8f9fa;
            border-radius: 20px;
            padding: 4px;
        }

        .lang-switcher-inline .lang-btn {
            padding: 6px 14px;
            border: none;
            background: transparent;
            border-radius: 16px;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            color: #666;
            transition: all 0.3s;
        }

        .lang-switcher-inline .lang-btn:hover {
            background: #e9ecef;
        }

        .lang-switcher-inline .lang-btn.active {
            background: var(--primary-color);
            color: white;
        }

        /* 用户状态 */
        .cart-nav-icon {
            position: relative; display: flex; align-items: center; justify-content: center;
            width: 40px; height: 40px; border-radius: 50%; background: #f5f5f5;
            cursor: pointer; transition: all 0.3s; border: none; color: #333; font-size: 18px;
        }
        .cart-nav-icon:hover { background: var(--primary-color); color: white; }
        .cart-login-toast {
            position: fixed; top: 80px; right: 30px; background: #333; color: #fff;
            padding: 12px 20px; border-radius: 8px; font-size: 14px; z-index: 9999;
            display: none; box-shadow: 0 4px 12px rgba(0,0,0,0.2); animation: toastFade 0.3s ease;
        }
        .cart-login-toast a { color: var(--primary-color); font-weight: 600; text-decoration: none; margin-left: 6px; }
        @keyframes toastFade { from { opacity:0; transform:translateY(-10px); } to { opacity:1; transform:translateY(0); } }
        /* 用户状态 */
        .user-status {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .user-avatar {
            width: 36px;
            height: 36px;
            background: linear-gradient(135deg, #0047AB, #0066CC);
            border-radius: 50%;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 16px;
            cursor: pointer;
            flex-shrink: 0;
            position: relative;
        }

        .user-avatar img {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            border-radius: 50%;
        }

        .user-name {
            font-size: 14px;
            color: #333;
            font-weight: 500;
        }

        .user-info {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 1px;
        }

        .user-email {
            font-size: 11px;
            color: #999;
            font-weight: 400;
            max-width: 160px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }


        .login-btn {
            padding: 8px 16px;
            background: var(--primary-color);
            color: white;
            text-decoration: none;
            border-radius: 20px;
            font-size: 14px;
            font-weight: 500;
            transition: all 0.3s;
        }

        .login-btn:hover {
            background: var(--primary-dark);
        }

        .logout-btn {
            padding: 6px 12px;
            background: #f5f5f5;
            color: #666;
            text-decoration: none;
            border-radius: 15px;
            font-size: 12px;
            cursor: pointer;
            border: none;
        }

        .logout-btn:hover {
            background: #eee;
        }

        .main-nav {
            border-top: 1px solid #f0f0f0;
        }

        .nav-list {
            display: flex;
            list-style: none;
            gap: 40px;
            padding: 15px 0;
            justify-content: center;
        }

        .nav-list a {
            display: flex;
            align-items: center;
            gap: 8px;
            text-decoration: none;
            color: #333;
            font-weight: 600;
            font-size: 15px;
            padding: 8px 16px;
            border-radius: 20px;
            transition: all 0.3s;
        }

        .nav-list a:hover {
            background: #E8F0FE;
            color: var(--primary-color);
        }

        .nav-list li.active a {
            background: var(--primary-color);
            color: var(--white);
        }

        /* 页面主体 */
        .page-content {
            padding: 40px 0;
            min-height: calc(100vh - 200px);
        }

        /* 用户信息展示模块 */
        .user-info-section {
            background: linear-gradient(135deg, #0047AB 0%, #0066CC 100%);
            border-radius: 16px;
            padding: 28px 30px;
            margin-bottom: 30px;
            display: flex;
            align-items: center;
            gap: 20px;
            color: white;
            box-shadow: 0 4px 20px rgba(0, 71, 171, 0.3);
            flex-wrap: wrap;
        }

        /* 头像区 */
        .user-info-avatar-wrap {
            position: relative;
            width: 80px;
            height: 80px;
            flex-shrink: 0;
            cursor: pointer;
        }
        .user-info-avatar {
            width: 80px;
            height: 80px;
            background: rgba(255,255,255,0.2);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 36px;
            color: white;
            /* 用 box-shadow 替代 border，避免 border 占用内容区导致头像被裁切 */
            box-shadow: 0 0 0 3px rgba(255,255,255,0.4);
            overflow: hidden;
            position: relative;
        }
        .user-info-avatar img {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 50%;
            display: block;
        }
        .avatar-upload-overlay {
            position: absolute;
            inset: 0;
            border-radius: 50%;
            background: rgba(0,0,0,0.45);
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.2s;
            color: #fff;
            font-size: 18px;
        }
        .user-info-avatar-wrap:hover .avatar-upload-overlay { opacity: 1; }
        #avatar-file-input { display: none; }

        /* 信息区 */
        .user-info-details { flex: 1; min-width: 200px; }

        .user-info-name-row {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 6px;
        }
        .user-info-name {
            font-size: 22px;
            font-weight: 700;
        }
        .btn-edit-name {
            background: rgba(255,255,255,0.2);
            border: none;
            border-radius: 6px;
            color: #fff;
            cursor: pointer;
            padding: 3px 8px;
            font-size: 13px;
            transition: background 0.2s;
        }
        .btn-edit-name:hover { background: rgba(255,255,255,0.35); }

        /* 内联昵称编辑 */
        .nickname-edit-row {
            display: none;
            align-items: center;
            gap: 8px;
            margin-bottom: 6px;
        }
        .nickname-edit-row.active { display: flex; }
        .nickname-input {
            background: rgba(255,255,255,0.15);
            border: 1px solid rgba(255,255,255,0.5);
            border-radius: 8px;
            color: #fff;
            padding: 5px 10px;
            font-size: 15px;
            outline: none;
            width: 180px;
        }
        .nickname-input::placeholder { color: rgba(255,255,255,0.6); }
        .btn-save-name, .btn-cancel-name {
            border: none;
            border-radius: 6px;
            cursor: pointer;
            padding: 4px 12px;
            font-size: 13px;
            transition: opacity 0.2s;
        }
        .btn-save-name { background: #fff; color: #0047AB; font-weight: 600; }
        .btn-save-name:hover { opacity: 0.85; }
        .btn-cancel-name { background: rgba(255,255,255,0.2); color: #fff; }
        .btn-cancel-name:hover { opacity: 0.75; }

        .user-info-email {
            font-size: 14px;
            opacity: 0.9;
            margin-bottom: 4px;
        }
        .user-info-meta {
            font-size: 13px;
            opacity: 0.8;
        }

        /* 操作按钮区 */
        .user-info-actions {
            display: flex;
            flex-direction: column;
            gap: 8px;
            flex-shrink: 0;
        }
        .btn-change-pwd {
            background: rgba(255,255,255,0.15);
            border: 1px solid rgba(255,255,255,0.4);
            border-radius: 8px;
            color: #fff;
            cursor: pointer;
            padding: 8px 16px;
            font-size: 13px;
            display: flex;
            align-items: center;
            gap: 6px;
            transition: background 0.2s;
            white-space: nowrap;
        }
        .btn-change-pwd:hover { background: rgba(255,255,255,0.28); }

        /* 改密码弹窗 */
        .pwd-modal-overlay {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.5);
            z-index: 9000;
            align-items: center;
            justify-content: center;
        }
        .pwd-modal-overlay.active { display: flex; }
        .pwd-modal {
            background: #fff;
            border-radius: 16px;
            padding: 30px;
            width: 380px;
            max-width: 94vw;
            box-shadow: 0 12px 40px rgba(0,0,0,0.2);
            position: relative;
        }
        .pwd-modal h3 {
            font-size: 18px;
            color: #0047AB;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .pwd-modal-close {
            position: absolute;
            top: 16px; right: 18px;
            background: none; border: none;
            font-size: 20px; color: #999; cursor: pointer;
        }
        .pwd-modal-close:hover { color: #333; }
        .pwd-field { margin-bottom: 14px; }
        .pwd-field label {
            display: block;
            font-size: 13px;
            color: #555;
            margin-bottom: 5px;
            font-weight: 500;
        }
        .pwd-field input {
            width: 100%;
            padding: 9px 12px;
            border: 1px solid #ddd;
            border-radius: 8px;
            font-size: 14px;
            box-sizing: border-box;
            outline: none;
            transition: border-color 0.2s;
        }
        .pwd-field input:focus { border-color: #0047AB; }
        .pwd-modal-actions { display: flex; gap: 10px; margin-top: 20px; }
        .btn-pwd-submit {
            flex: 1;
            background: #0047AB;
            color: #fff;
            border: none;
            border-radius: 8px;
            padding: 10px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: opacity 0.2s;
        }
        .btn-pwd-submit:hover { opacity: 0.85; }
        .btn-pwd-cancel {
            background: #f1f1f1;
            color: #555;
            border: none;
            border-radius: 8px;
            padding: 10px 18px;
            font-size: 14px;
            cursor: pointer;
        }
        .pwd-tip {
            font-size: 12px;
            color: #999;
            margin-top: 6px;
        }
        .pwd-tip.error { color: #e74c3c; }
        .pwd-tip.success { color: #27ae60; }

        .page-title {
            font-size: 32px;
            color: var(--text-dark);
            margin-bottom: 30px;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .page-title i {
            color: var(--primary-color);
        }

        /* 状态筛选 */
        .filter-tabs {
            display: flex;
            gap: 10px;
            margin-bottom: 30px;
            flex-wrap: wrap;
            background: var(--white);
            padding: 15px 20px;
            border-radius: 12px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        }

        .filter-tab {
            padding: 10px 20px;
            border: none;
            background: transparent;
            border-radius: 20px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            color: var(--text-light);
            transition: all 0.3s;
        }

        .filter-tab:hover {
            background: #f0f0f0;
            color: var(--text-dark);
        }

        .filter-tab.active {
            background: var(--primary-color);
            color: white;
        }

        .filter-tab .count {
            background: rgba(255, 255, 255, 0.3);
            padding: 2px 8px;
            border-radius: 10px;
            font-size: 12px;
            margin-left: 5px;
        }

        /* 订单列表 */
        .orders-list {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .order-card {
            background: var(--white);
            border-radius: 16px;
            padding: 24px;
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
            transition: all 0.3s;
        }

        .order-card:hover {
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
            transform: translateY(-2px);
        }

        .order-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-bottom: 16px;
            border-bottom: 1px solid var(--border-color);
            margin-bottom: 16px;
            flex-wrap: wrap;
            gap: 10px;
        }

        .order-info {
            display: flex;
            gap: 20px;
            flex-wrap: wrap;
        }

        .order-info-item {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .order-info-label {
            font-size: 12px;
            color: var(--text-light);
        }

        .order-info-value {
            font-size: 14px;
            font-weight: 600;
            color: var(--text-dark);
        }

        .order-status {
            padding: 6px 14px;
            border-radius: 20px;
            font-size: 13px;
            font-weight: 600;
        }

        .order-status.pending {
            background: #fff3cd;
            color: #856404;
        }

        .order-status.paid {
            background: #d1ecf1;
            color: #0c5460;
        }

        .order-status.shipped {
            background: #cce5ff;
            color: #004085;
        }

        .order-status.completed {
            background: #d4edda;
            color: #155724;
        }

        .order-status.cancelled {
            background: #f8d7da;
            color: #721c24;
        }

        .order-products {
            display: flex;
            gap: 15px;
            margin-bottom: 16px;
            flex-wrap: wrap;
        }

        .product-thumb {
            width: 80px;
            height: 80px;
            border-radius: 10px;
            object-fit: cover;
            background: var(--bg-light);
        }

        .product-thumb-placeholder {
            width: 80px;
            height: 80px;
            border-radius: 10px;
            background: var(--bg-light);
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            flex-shrink: 0;
        }

        .product-thumb-placeholder img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .order-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-top: 16px;
            border-top: 1px solid var(--border-color);
            flex-wrap: wrap;
            gap: 15px;
        }

        .order-total {
            display: flex;
            align-items: baseline;
            gap: 8px;
        }

        .order-total-label {
            font-size: 14px;
            color: var(--text-light);
        }

        .order-total-value {
            font-size: 20px;
            font-weight: 700;
            color: var(--accent-color);
        }

        .order-actions {
            display: flex;
            gap: 10px;
        }

        .btn {
            padding: 10px 24px;
            border: none;
            border-radius: 20px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            transition: all 0.3s;
        }

        .btn-primary {
            background: var(--primary-color);
            color: white;
        }

        .btn-primary:hover {
            background: var(--primary-dark);
        }

        .btn-secondary {
            background: #f0f0f0;
            color: var(--text-dark);
        }

        .btn-secondary:hover {
            background: #e0e0e0;
        }

        /* 空状态 */
        .empty-state {
            text-align: center;
            padding: 80px 20px;
            background: var(--white);
            border-radius: 16px;
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
        }

        .empty-state i {
            font-size: 80px;
            color: #ddd;
            margin-bottom: 20px;
        }

        .empty-state h3 {
            font-size: 20px;
            color: var(--text-dark);
            margin-bottom: 10px;
        }

        .empty-state p {
            font-size: 14px;
            color: var(--text-light);
            margin-bottom: 25px;
        }

        /* 加载状态 */
        .loading-state {
            text-align: center;
            padding: 60px 20px;
        }

        .loading-state i {
            font-size: 40px;
            color: var(--primary-color);
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        /* Footer */
        .footer {
            background: #1a1a2e;
            color: var(--white);
            padding: 40px 0 20px;
            margin-top: 60px;
        }

        .footer-content {
            display: grid;
            grid-template-columns: 2fr repeat(3, 1fr);
            gap: 40px;
            margin-bottom: 30px;
        }

        .footer-logo {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 24px;
            font-weight: 700;
            color: var(--primary-color);
            margin-bottom: 15px;
        }

        .footer-section h4 {
            font-size: 16px;
            margin-bottom: 15px;
        }

        .footer-section ul {
            list-style: none;
        }

        .footer-section li {
            margin-bottom: 10px;
        }

        .footer-section a {
            color: #aaa;
            text-decoration: none;
            font-size: 14px;
        }

        .footer-section a:hover {
            color: var(--primary-color);
        }

        .footer-bottom {
            border-top: 1px solid #444;
            padding-top: 20px;
            padding-bottom: max(20px, env(safe-area-inset-bottom, 0px)); /* iOS 刘海屏适配 */
            text-align: center;
            color: #888;
            font-size: 14px;
        }

        /* ================================================
           响应式 - 平板/小屏笔记本 (max-width: 768px)
           ================================================ */
        @media (max-width: 768px) {
            /* 基础容器 */
            .container {
                padding: 0 15px;
            }

            /* Header */
            .header-content {
                padding: 10px 0;
            }
            .logo {
                font-size: 20px;
            }
            .logo i {
                font-size: 22px;
            }
            .user-name {
                display: none; /* 移动端隐藏用户名，仅保留头像 */
            }
            .user-email {
                display: none;
            }
            .logout-btn {
                font-size: 11px;
                padding: 5px 9px;
            }
            /* 语言切换缩小 */
            .lang-switcher-inline .lang-btn {
                padding: 5px 10px;
                font-size: 12px;
            }

            /* 导航栏 - 横向滚动 */
            .main-nav {
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
                scrollbar-width: none; /* Firefox */
            }
            .main-nav::-webkit-scrollbar {
                display: none;
            }
            .nav-list {
                gap: 4px;
                padding: 10px 0;
                flex-wrap: nowrap; /* 禁止换行，让它横向滚动 */
                width: max-content;
                min-width: 100%;
            }
            .nav-list a {
                padding: 7px 12px;
                font-size: 13px;
                white-space: nowrap;
            }

            /* 页面标题 */
            .page-title {
                font-size: 20px;
                margin-bottom: 16px;
            }

            /* 用户信息卡片 */
            .user-info-section {
                padding: 18px 16px;
                gap: 14px;
                margin-bottom: 20px;
            }
            .user-info-avatar-wrap,
            .user-info-avatar {
                width: 60px;
                height: 60px;
            }
            .user-info-avatar {
                font-size: 28px;
            }
            .user-info-name {
                font-size: 17px;
            }
            .user-info-email {
                font-size: 13px;
            }
            .user-info-meta {
                font-size: 12px;
            }
            .user-info-actions {
                flex-direction: row;
                flex-shrink: 1;
            }
            .btn-change-pwd {
                padding: 7px 12px;
                font-size: 12px;
                white-space: nowrap;
            }
            .nickname-input {
                width: 140px;
                font-size: 14px;
            }

            /* 地址模块 */
            .address-section {
                padding: 16px;
                margin-bottom: 20px;
            }
            .address-section h3 {
                font-size: 17px;
                margin-bottom: 14px;
            }
            .address-list {
                grid-template-columns: 1fr;
                gap: 12px;
                margin-bottom: 14px;
            }
            .address-card {
                padding: 14px;
            }
            .btn-add-address {
                padding: 12px;
                font-size: 14px;
            }

            /* 筛选 Tab - 横向滚动 */
            .filter-tabs {
                padding: 10px 12px;
                gap: 6px;
                flex-wrap: nowrap;
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
                scrollbar-width: none;
                margin-bottom: 16px;
            }
            .filter-tabs::-webkit-scrollbar {
                display: none;
            }
            .filter-tab {
                padding: 8px 14px;
                font-size: 13px;
                white-space: nowrap;
                flex-shrink: 0;
                min-height: 36px;
            }

            /* 订单卡片 */
            .orders-list {
                gap: 14px;
            }
            .order-card {
                padding: 14px;
                border-radius: 12px;
            }
            .order-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 8px;
            }
            .order-info {
                gap: 12px;
            }
            .order-info-label {
                font-size: 11px;
            }
            .order-info-value {
                font-size: 13px;
            }
            .order-status {
                padding: 5px 12px;
                font-size: 12px;
                align-self: flex-start;
            }
            .order-products {
                gap: 10px;
                margin-bottom: 12px;
            }
            .product-thumb,
            .product-thumb-placeholder {
                width: 64px;
                height: 64px;
                border-radius: 8px;
            }
            .order-footer {
                flex-direction: column;
                align-items: flex-start;
                gap: 12px;
            }
            .order-total-value {
                font-size: 18px;
            }
            .order-actions {
                width: 100%;
                gap: 8px;
            }
            .order-actions .btn {
                flex: 1;
                justify-content: center;
                padding: 10px 12px;
                font-size: 13px;
                min-height: 40px; /* 触控友好 */
            }

            /* Footer */
            .footer {
                margin-top: 40px;
                padding: 30px 0 16px;
            }
            .footer-content {
                grid-template-columns: 1fr 1fr;
                gap: 20px;
                margin-bottom: 20px;
            }

            /* 地址弹窗 */
            .modal-content {
                width: 95%;
                border-radius: 12px;
                max-height: 88vh;
            }
            .modal-body {
                padding: 16px;
            }
            .form-row {
                grid-template-columns: 1fr;
                gap: 12px;
            }

            /* 密码弹窗 */
            .pwd-modal {
                padding: 20px 16px;
            }

            /* 空状态 */
            .empty-state {
                padding: 50px 16px;
            }
            .empty-state i {
                font-size: 60px;
            }
            .empty-state h3 {
                font-size: 17px;
            }
        }

        /* ================================================
           响应式 - 小屏手机 (max-width: 480px)
           Android / iPhone SE 等小屏设备
           ================================================ */
        @media (max-width: 480px) {
            /* 基础容器收紧内边距 */
            .container {
                padding: 0 12px;
            }

            /* Header 进一步压缩 */
            .header-right {
                gap: 8px;
            }
            .logo {
                font-size: 18px;
            }
            .logo i {
                font-size: 20px;
            }
            .cart-nav-icon {
                width: 34px;
                height: 34px;
                font-size: 15px;
            }
            .lang-switcher-inline {
                padding: 3px;
            }
            .lang-switcher-inline .lang-btn {
                padding: 4px 8px;
                font-size: 11px;
            }

            /* 页面内容 */
            .page-content {
                padding: 16px 0 30px;
            }

            /* 用户信息卡片 - 竖向排列 */
            .user-info-section {
                flex-direction: column;
                align-items: flex-start;
                padding: 16px 14px;
                gap: 12px;
                border-radius: 12px;
            }
            .user-info-top-row {
                display: flex;
                align-items: center;
                gap: 14px;
                width: 100%;
            }
            .user-info-avatar-wrap,
            .user-info-avatar {
                width: 52px;
                height: 52px;
            }
            .user-info-avatar {
                font-size: 24px;
            }
            .user-info-details {
                min-width: 0;
                flex: 1;
            }
            .user-info-name {
                font-size: 16px;
            }
            .user-info-actions {
                width: 100%;
                flex-direction: row;
            }
            .btn-change-pwd {
                flex: 1;
                justify-content: center;
                padding: 9px 12px;
                font-size: 13px;
                min-height: 40px;
            }
            .nickname-input {
                width: 120px;
            }

            /* 地址模块 */
            .address-section {
                padding: 14px 12px;
                border-radius: 12px;
            }
            .address-card {
                padding: 12px;
                border-radius: 10px;
            }
            .address-card .recipient-name {
                font-size: 15px;
            }
            .address-card .btn-set-default,
            .address-card .btn-delete {
                padding: 7px 12px;
                font-size: 12px;
                min-height: 34px;
            }

            /* 页面标题 */
            .page-title {
                font-size: 18px;
                margin-bottom: 12px;
            }

            /* 筛选 Tab */
            .filter-tabs {
                padding: 8px 10px;
                gap: 5px;
                border-radius: 10px;
                margin-bottom: 12px;
            }
            .filter-tab {
                padding: 7px 12px;
                font-size: 12px;
                min-height: 34px;
            }
            .filter-tab .count {
                padding: 1px 6px;
                font-size: 11px;
            }

            /* 订单卡片 */
            .orders-list {
                gap: 10px;
            }
            .order-card {
                padding: 12px;
                border-radius: 10px;
            }
            /* 订单头：单行展示 */
            .order-header {
                padding-bottom: 10px;
                margin-bottom: 10px;
            }
            .order-info {
                gap: 10px;
                flex-wrap: wrap;
            }
            .order-info-item {
                gap: 2px;
            }
            .order-info-label {
                font-size: 10px;
            }
            .order-info-value {
                font-size: 12px;
            }
            .order-status {
                font-size: 11px;
                padding: 4px 10px;
            }
            /* 商品缩略图 */
            .order-products {
                gap: 8px;
                margin-bottom: 10px;
            }
            .product-thumb,
            .product-thumb-placeholder {
                width: 56px;
                height: 56px;
                border-radius: 7px;
            }
            /* 订单底部 */
            .order-footer {
                padding-top: 10px;
                gap: 10px;
            }
            .order-total-label {
                font-size: 12px;
            }
            .order-total-value {
                font-size: 16px;
            }
            .order-actions {
                gap: 7px;
            }
            .order-actions .btn {
                padding: 9px 10px;
                font-size: 12px;
                min-height: 38px;
                border-radius: 16px;
            }

            /* Footer 压缩为单列 */
            .footer-content {
                grid-template-columns: 1fr;
                gap: 16px;
            }
            .footer {
                padding: 24px 0 14px;
                margin-top: 30px;
            }
            .footer-logo {
                font-size: 20px;
            }
            .footer-section h4 {
                font-size: 14px;
                margin-bottom: 10px;
            }
            .footer-section a,
            .footer-section li span {
                font-size: 13px;
            }
            .footer-bottom {
                font-size: 12px;
            }

            /* 弹窗 */
            .modal-content {
                width: 98%;
                border-radius: 10px;
                max-height: 92vh;
            }
            .modal-header {
                padding: 14px 16px;
            }
            .modal-header h3 {
                font-size: 16px;
            }
            .modal-body {
                padding: 14px;
            }
            .modal-footer {
                padding: 12px 14px;
                flex-wrap: wrap;
                gap: 8px;
            }
            .modal-footer .btn {
                min-height: 40px;
            }
            .form-group input,
            .form-group select {
                padding: 10px 12px;
                font-size: 15px; /* iOS 防缩放：至少 16px 以下会触发自动缩放，设 15px 接近临界 */
            }

            /* 密码弹窗 */
            .pwd-modal {
                padding: 16px 14px;
                border-radius: 12px;
            }
            .pwd-field input {
                font-size: 15px;
                padding: 10px 12px;
            }
            .btn-pwd-submit,
            .btn-pwd-cancel {
                min-height: 40px;
                font-size: 14px;
            }

            /* 空状态 */
            .empty-state {
                padding: 40px 12px;
                border-radius: 10px;
            }
            .empty-state i {
                font-size: 50px;
                margin-bottom: 14px;
            }
            .empty-state h3 {
                font-size: 16px;
            }
            .empty-state p {
                font-size: 13px;
            }
            .empty-state .btn {
                min-height: 40px;
            }

            /* Toast 位置 */
            .cart-login-toast {
                right: 12px;
                top: 70px;
                font-size: 13px;
                padding: 10px 14px;
            }
        }

        /* 地址管理模块样式 */
        .address-section {
            background: var(--white);
            border-radius: 16px;
            padding: 24px;
            margin-bottom: 30px;
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
        }

        .address-section h3 {
            font-size: 20px;
            color: var(--text-dark);
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .address-section h3 i {
            color: var(--primary-color);
        }

        .address-list {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 15px;
            margin-bottom: 20px;
        }

        .address-card {
            background: var(--white);
            border: 2px solid var(--border-color);
            border-radius: 12px;
            padding: 20px;
            position: relative;
            transition: all 0.3s;
        }

        .address-card:hover {
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        }

        .address-card.default {
            border-color: var(--primary-color);
            background: rgba(0, 71, 171, 0.02);
        }

        .address-card .default-badge {
            position: absolute;
            top: 10px;
            right: 10px;
            background: var(--primary-color);
            color: white;
            padding: 4px 10px;
            border-radius: 12px;
            font-size: 12px;
            font-weight: 600;
        }

        .address-card .recipient-name {
            font-size: 16px;
            font-weight: 700;
            color: var(--text-dark);
            margin-bottom: 5px;
        }

        .address-card .recipient-phone {
            font-size: 14px;
            color: var(--text-light);
            margin-bottom: 10px;
        }

        .address-card .full-address {
            font-size: 14px;
            color: var(--text-dark);
            line-height: 1.5;
            margin-bottom: 15px;
        }

        .address-card .address-actions {
            display: flex;
            gap: 10px;
        }

        .address-card .btn-set-default,
        .address-card .btn-delete {
            padding: 6px 12px;
            border: none;
            border-radius: 15px;
            font-size: 13px;
            cursor: pointer;
            transition: all 0.3s;
        }

        .address-card .btn-set-default {
            background: #e8f0fe;
            color: var(--primary-color);
        }

        .address-card .btn-set-default:hover {
            background: var(--primary-color);
            color: white;
        }

        .address-card .btn-delete {
            background: #f8d7da;
            color: var(--danger-color);
        }

        .address-card .btn-delete:hover {
            background: var(--danger-color);
            color: white;
        }

        .btn-add-address {
            width: 100%;
            padding: 15px;
            background: transparent;
            border: 2px dashed var(--primary-color);
            border-radius: 12px;
            color: var(--primary-color);
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .btn-add-address:hover {
            background: rgba(0, 71, 171, 0.05);
        }

        /* 地址模态框 */
        .modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 2000;
            justify-content: center;
            align-items: center;
        }

        .modal-overlay.show {
            display: flex;
        }

        .modal-content {
            background: var(--white);
            border-radius: 16px;
            width: 90%;
            max-width: 600px;
            max-height: 90vh;
            overflow-y: auto;
            animation: modalSlideIn 0.3s ease;
        }

        @keyframes modalSlideIn {
            from {
                opacity: 0;
                transform: translateY(-50px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .modal-header {
            padding: 20px 24px;
            border-bottom: 1px solid var(--border-color);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .modal-header h3 {
            font-size: 18px;
            color: var(--text-dark);
        }

        .modal-close {
            background: none;
            border: none;
            font-size: 24px;
            color: #999;
            cursor: pointer;
            transition: color 0.3s;
        }

        .modal-close:hover {
            color: var(--text-dark);
        }

        .modal-body {
            padding: 24px;
        }

        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
            margin-bottom: 15px;
        }

        .form-row .form-group {
            margin-bottom: 0;
        }

        .form-group label {
            display: block;
            font-size: 14px;
            font-weight: 600;
            color: var(--text-dark);
            margin-bottom: 8px;
        }

        .form-group input,
        .form-group select {
            width: 100%;
            padding: 12px 15px;
            border: 2px solid var(--border-color);
            border-radius: 8px;
            font-size: 14px;
            transition: border-color 0.3s;
        }

        .form-group input:focus,
        .form-group select:focus {
            outline: none;
            border-color: var(--primary-color);
        }

        .form-group.checkbox {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .form-group.checkbox input[type="checkbox"] {
            width: auto;
        }

        .form-group.checkbox label {
            margin-bottom: 0;
        }

        .modal-footer {
            padding: 20px 24px;
            border-top: 1px solid var(--border-color);
            display: flex;
            justify-content: flex-end;
            gap: 10px;
        }


        /* 地址管理模块样式（第二套，保持双份结构完整性） */
        .address-section {
            background: var(--white);
            border-radius: 16px;
            padding: 24px;
            margin-bottom: 30px;
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
        }

        .address-section h3 {
            font-size: 20px;
            color: var(--text-dark);
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .address-section h3 i {
            color: var(--primary-color);
        }

        .address-list {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 15px;
            margin-bottom: 20px;
        }

        .address-card {
            background: var(--white);
            border: 2px solid var(--border-color);
            border-radius: 12px;
            padding: 20px;
            position: relative;
            transition: all 0.3s;
        }

        .address-card:hover {
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        }

        .address-card.default {
            border-color: var(--primary-color);
            background: rgba(0, 71, 171, 0.02);
        }

        .address-card .default-badge {
            position: absolute;
            top: 10px;
            right: 10px;
            background: var(--primary-color);
            color: white;
            padding: 4px 10px;
            border-radius: 12px;
            font-size: 12px;
            font-weight: 600;
        }

        .address-card .recipient-name {
            font-size: 16px;
            font-weight: 700;
            color: var(--text-dark);
            margin-bottom: 5px;
        }

        .address-card .recipient-phone {
            font-size: 14px;
            color: var(--text-light);
            margin-bottom: 10px;
        }

        .address-card .full-address {
            font-size: 14px;
            color: var(--text-dark);
            line-height: 1.5;
            margin-bottom: 15px;
        }

        .address-card .address-actions {
            display: flex;
            gap: 10px;
        }

        .address-card .btn-set-default,
        .address-card .btn-delete {
            padding: 6px 12px;
            border: none;
            border-radius: 15px;
            font-size: 13px;
            cursor: pointer;
            transition: all 0.3s;
        }

        .address-card .btn-set-default {
            background: #e8f0fe;
            color: var(--primary-color);
        }

        .address-card .btn-set-default:hover {
            background: var(--primary-color);
            color: white;
        }

        .address-card .btn-delete {
            background: #f8d7da;
            color: var(--danger-color);
        }

        .address-card .btn-delete:hover {
            background: var(--danger-color);
            color: white;
        }

        .btn-add-address {
            width: 100%;
            padding: 15px;
            background: transparent;
            border: 2px dashed var(--primary-color);
            border-radius: 12px;
            color: var(--primary-color);
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .btn-add-address:hover {
            background: rgba(0, 71, 171, 0.05);
        }

        /* 地址模态框 */
        .modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 2000;
            justify-content: center;
            align-items: center;
        }

        .modal-overlay.show {
            display: flex;
        }

        .modal-content {
            background: var(--white);
            border-radius: 16px;
            width: 90%;
            max-width: 600px;
            max-height: 90vh;
            overflow-y: auto;
            animation: modalSlideIn 0.3s ease;
        }

        @keyframes modalSlideIn {
            from {
                opacity: 0;
                transform: translateY(-50px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .modal-header {
            padding: 20px 24px;
            border-bottom: 1px solid var(--border-color);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .modal-header h3 {
            font-size: 18px;
            color: var(--text-dark);
        }

        .modal-close {
            background: none;
            border: none;
            font-size: 24px;
            color: #999;
            cursor: pointer;
            transition: color 0.3s;
        }

        .modal-close:hover {
            color: var(--text-dark);
        }

        .modal-body {
            padding: 24px;
        }

        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
            margin-bottom: 15px;
        }

        .form-row .form-group {
            margin-bottom: 0;
        }

        .form-group label {
            display: block;
            font-size: 14px;
            font-weight: 600;
            color: var(--text-dark);
            margin-bottom: 8px;
        }

        .form-group input,
        .form-group select {
            width: 100%;
            padding: 12px 15px;
            border: 2px solid var(--border-color);
            border-radius: 8px;
            font-size: 14px;
            transition: border-color 0.3s;
        }

        .form-group input:focus,
        .form-group select:focus {
            outline: none;
            border-color: var(--primary-color);
        }

        .form-group.checkbox {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .form-group.checkbox input[type="checkbox"] {
            width: auto;
        }

        .form-group.checkbox label {
            margin-bottom: 0;
        }

        .modal-footer {
            padding: 20px 24px;
            border-top: 1px solid var(--border-color);
            display: flex;
            justify-content: flex-end;
            gap: 10px;
        }