/* 会员中心 - 布局框架 */
.account-layout {
    display: flex;
    max-width: 1200px;
    margin: 30px auto;
    padding: 0;
    min-height: calc(100vh - 200px);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* 侧边栏 - 靠顶部对齐 */
.account-layout .sidebar {
    flex-shrink: 0;
    background: #fff;
    padding: 32px 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-right: 1px solid #e9ecef;
    width: 200px;
    height: 100%;
}

.account-layout .sidebar .user-info {
    padding: 0 20px 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 16px;
    text-align: center;
    width: 100%;
}

.account-layout .sidebar .console-entry {
    padding: 0 20px 16px;
    width: 100%;
}

.account-layout .sidebar .console-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff !important;
    border-radius: 8px;
    text-decoration: none !important;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.account-layout .sidebar .console-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    color: #fff !important;
}

.account-layout .sidebar .console-icon {
    font-size: 16px;
}

.account-layout .sidebar .menu {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.account-layout .sidebar .user-info .avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin: 0 auto 12px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.account-layout .sidebar .user-info .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.account-layout .sidebar .user-info .avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    font-weight: 600;
}

.account-layout .sidebar .user-info .name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.account-layout .sidebar .user-info .email {
    font-size: 12px;
    color: #999;
}

.account-layout .sidebar .menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.account-layout .sidebar .menu li a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    border-left: 3px solid transparent;
    width: 100%;
    box-sizing: border-box;
}

.account-layout .sidebar .menu li a:hover {
    background: #f5f7fa;
    color: #667eea;
}

.account-layout .sidebar .menu li a.active {
    background: #e6f7ff;
    color: #667eea;
    border-left-color: #667eea;
    font-weight: 500;
}

/* 主内容区 */
.account-layout .main-content {
    flex: 1;
    background: #fff;
    border-radius: 0 16px 16px 0;
    padding: 32px;
    min-height: 600px;
}

.account-layout .main-content h2 {
    font-size: 20px;
    color: #333;
    margin: 0 0 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

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

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.15);
}

.form-group input:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
}

.form-group .help-text {
    font-size: 12px;
    color: #999;
    margin-top: 6px;
}

/* 按钮样式 */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35);
}

.btn-default {
    background: #fff;
    border: 1px solid #d9d9d9;
    color: #333;
}

.btn-default:hover {
    border-color: #667eea;
    color: #667eea;
}

.btn-danger {
    background: #ff4d4f;
    color: #fff;
}

.btn-danger:hover {
    background: #ff7875;
}

/* 安全设置项 */
.security-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

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

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

.security-item .info .title {
    font-weight: 500;
    font-size: 15px;
    color: #333;
    margin-bottom: 4px;
}

.security-item .info .desc {
    font-size: 13px;
    color: #999;
}

/* 地址列表 */
.address-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.address-card {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 16px;
    position: relative;
    transition: all 0.2s;
}

.address-card:hover {
    border-color: #d9d9d9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.address-card.default {
    border-color: #667eea;
    background: #f0f7ff;
}

.address-card .tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #667eea;
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
}

.address-card .name {
    font-weight: 500;
    color: #333;
    margin-bottom: 6px;
    padding-right: 50px;
}

.address-card .phone {
    color: #666;
    font-size: 13px;
    margin-bottom: 10px;
}

.address-card .detail {
    font-size: 14px;
    color: #333;
    margin-bottom: 16px;
    line-height: 1.5;
}

.address-card .actions {
    display: flex;
    gap: 8px;
}

.address-card .actions .btn {
    padding: 6px 12px;
    font-size: 12px;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    width: 480px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h3 {
    font-size: 18px;
    color: #333;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 0;
    line-height: 1;
}

.modal-close:hover {
    color: #333;
}

/* 验证码输入 */
.code-input-group {
    display: flex;
    gap: 10px;
}

.code-input-group input {
    flex: 1;
}

.code-input-group .btn {
    white-space: nowrap;
    flex-shrink: 0;
}

/* 消息提示 */
.message {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    display: none;
}

.message.success {
    background: #f0f9eb;
    color: #67c23a;
    border: 1px solid #e1f3d8;
}

.message.error {
    background: #fef0f0;
    color: #f56c6c;
    border: 1px solid #fde2e2;
}

/* 登录/注册页面 */
.auth-page {
    min-height: calc(100vh - 160px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #fff;
}

.auth-icon--register {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.auth-icon svg {
    width: 36px;
    height: 36px;
}

.auth-header h1 {
    font-size: 24px;
    color: #333;
    margin: 0 0 8px;
    font-weight: 600;
}

.auth-header p {
    font-size: 14px;
    color: #999;
    margin: 0;
}

.auth-form {
    margin-bottom: 24px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper .input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #999;
    pointer-events: none;
    transition: color 0.2s;
}

.input-wrapper input[type="text"],
.input-wrapper input[type="email"],
.input-wrapper input[type="tel"],
.input-wrapper input[type="password"] {
    width: 100%;
    padding: 12px 12px 12px 48px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
    box-sizing: border-box;
}

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

.input-wrapper input:focus + .input-icon,
.input-wrapper input:focus ~ .input-icon {
    color: #667eea;
}

.input-wrapper input::placeholder {
    color: #bbb;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.optional {
    font-weight: 400;
    color: #999;
    font-size: 12px;
}

.btn-block {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    margin-top: 8px;
}

.auth-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 14px;
    color: #666;
}

.auth-footer.forgot-password-link {
    padding-top: 8px;
    border-top: none;
}

.auth-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    margin-left: 4px;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.auth-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #eee;
}

.auth-divider span {
    position: relative;
    background: #fff;
    padding: 0 16px;
    color: #999;
    font-size: 13px;
}

.back-home {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.2s;
}

.back-home:hover {
    background: #f5f5f5;
    color: #333;
}

.back-home svg {
    width: 16px;
    height: 16px;
}

/* 忘记密码页面样式 */
.verify-type-group {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.verify-type-radio {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 8px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.2s;
    font-size: 14px;
}

.verify-type-radio:hover {
    border-color: #667eea;
}

.verify-type-radio input[type="radio"] {
    accent-color: #667eea;
}

.verify-type-radio input[type="radio"]:checked + span {
    color: #667eea;
    font-weight: 500;
}

.reset-step {
    margin-top: 20px;
}

.btn-text {
    background: none;
    border: none;
    color: #667eea;
    font-weight: 500;
    cursor: pointer;
    padding: 10px;
    font-size: 14px;
}

.btn-text:hover {
    text-decoration: underline;
}

/* 地址类型选择器 */
.address-type-selector {
    display: flex;
    gap: 12px;
}

.address-type-option {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.address-type-option:hover {
    border-color: #667eea;
}

.address-type-option input[type="radio"] {
    margin: 0;
    accent-color: #667eea;
}

.address-type-option input[type="radio"]:checked + .radio-label {
    color: #667eea;
    font-weight: 500;
}

.address-type-option:has(input[type="radio"]:checked) {
    border-color: #667eea;
    background: #f0f7ff;
}

/* 地址模态框 */
.address-modal {
    width: 560px;
}

/* 表单选择框 */
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s;
    box-sizing: border-box;
    background-color: #fff;
    cursor: pointer;
}

.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.15);
}

.form-group select:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
}

/* 响应式 */
@media (max-width: 768px) {
    .account-layout {
        flex-direction: column;
        padding: 0 12px;
        margin: 16px auto;
    }

    .account-layout .sidebar {
        width: 100%;
        position: static;
    }

    .account-layout .main-content {
        padding: 20px;
    }

    .address-list {
        grid-template-columns: 1fr;
    }

    .security-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .security-item .btn {
        width: 100%;
    }

    .auth-card {
        padding: 24px;
    }

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

/* ==================== 电商样式 ==================== */

/* 购物车 */
.cart-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.cart-table {
    padding: 0;
}

.cart-header {
    display: grid;
    grid-template-columns: 50px 2fr 100px 120px 100px 80px;
    align-items: center;
    padding: 12px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    font-weight: 500;
    color: #666;
    font-size: 14px;
}

.cart-item {
    display: grid;
    grid-template-columns: 50px 2fr 100px 120px 100px 80px;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
}

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

.col-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #667eea;
    cursor: pointer;
}

.product-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.product-info img,
.no-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    background: #f5f5f5;
}

.product-info .name {
    font-size: 14px;
    color: #333;
}

.qty-control {
    display: flex;
    align-items: center;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    overflow: hidden;
    width: fit-content;
}

.qty-control button {
    width: 32px;
    height: 32px;
    border: none;
    background: #f8f9fa;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    transition: background 0.2s;
}

.qty-control button:hover {
    background: #e9ecef;
}

.qty-control input {
    width: 40px;
    height: 32px;
    border: none;
    border-left: 1px solid #d9d9d9;
    border-right: 1px solid #d9d9d9;
    text-align: center;
    font-size: 14px;
}

.qty-control input::-webkit-inner-spin-button,
.qty-control input::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

.btn-remove {
    background: none;
    border: none;
    color: #f56c6c;
    cursor: pointer;
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

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

.cart-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.cart-footer .summary {
    display: flex;
    gap: 24px;
    font-size: 14px;
    color: #666;
}

.cart-footer .summary strong {
    color: #333;
}

.cart-footer .total-price {
    font-size: 20px;
    color: #f56c6c;
}

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

.btn-checkout:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

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

.empty-cart .icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.empty-cart p {
    color: #999;
    margin-bottom: 20px;
}

/* 结算页面 */
.checkout-container {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
}

.checkout-form {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 24px;
}

.checkout-form .section {
    margin-bottom: 24px;
}

.checkout-form .section:last-child {
    margin-bottom: 0;
}

.checkout-form h3 {
    font-size: 16px;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

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

.address-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.address-option:hover {
    border-color: #667eea;
}

.address-option.selected {
    border-color: #667eea;
    background: #f0f7ff;
}

.address-option .radio {
    margin-top: 2px;
}

.address-option .info .name-phone {
    display: flex;
    gap: 16px;
    font-weight: 500;
    margin-bottom: 4px;
}

.address-option .info .detail {
    font-size: 14px;
    color: #666;
}

.coupon-input-group {
    display: flex;
    gap: 12px;
}

.coupon-input-group input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
}

.coupon-applied {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 12px;
    background: #f0f9eb;
    color: #67c23a;
    border-radius: 4px;
    font-size: 13px;
}

.checkout-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    resize: vertical;
    box-sizing: border-box;
}

.checkout-summary {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 24px;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.checkout-summary h3 {
    font-size: 16px;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.order-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
}

.order-item img,
.order-item .no-image {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    background: #f5f5f5;
}

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

.order-item .item-info .name {
    font-size: 13px;
    color: #333;
}

.order-item .item-info .meta {
    font-size: 12px;
    color: #999;
}

.order-item .item-subtotal {
    font-weight: 500;
    color: #333;
}

.summary-totals {
    margin: 16px 0;
    padding: 16px 0;
    border-top: 1px solid #f0f0f0;
}

.summary-totals .row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
    color: #666;
}

.summary-totals .row.discount {
    color: #f56c6c;
}

.summary-totals .row.total {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
}

.btn-block {
    width: 100%;
    padding: 12px;
    font-size: 16px;
}

/* 订单列表 */
.orders-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.order-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.order-header .order-no {
    font-size: 14px;
    color: #666;
}

.order-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
}

.order-body .order-info .row {
    font-size: 14px;
    margin-bottom: 4px;
    color: #666;
}

.order-body .order-info .row strong {
    color: #f56c6c;
    font-size: 16px;
}

.order-actions {
    display: flex;
    gap: 12px;
}

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

/* 订单详情 */
.order-detail-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.order-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.detail-section {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 24px;
}

.detail-section h3 {
    font-size: 16px;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.info-item {
    font-size: 14px;
    color: #666;
}

.info-item .label {
    color: #999;
}

.info-item.full {
    grid-column: 1 / -1;
}

.info-item.highlight {
    font-size: 16px;
}

.info-item.highlight strong {
    color: #f56c6c;
    font-size: 20px;
}

.order-items-list {
    display: flex;
    flex-direction: column;
}

.order-item-row {
    display: grid;
    grid-template-columns: 50px 1fr 100px 60px 100px;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 14px;
}

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

.order-item-row img,
.order-item-row .no-image {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    object-fit: cover;
    background: #f5f5f5;
}

.order-item-row .item-name {
    color: #333;
}

.order-item-row .item-price,
.order-item-row .item-qty {
    color: #666;
    text-align: center;
}

.order-item-row .item-subtotal {
    font-weight: 500;
    text-align: right;
    color: #333;
}

/* 优惠券 */
.coupons-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.claim-section {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 24px;
}

.claim-section h3 {
    font-size: 16px;
    margin: 0 0 16px 0;
}

.claim-form {
    display: flex;
    gap: 12px;
}

.claim-form input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
}

.coupons-list h3 {
    font-size: 16px;
    margin: 0 0 16px 0;
}

.coupon-card {
    display: flex;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 16px;
    background: #fff;
}

.coupon-card.available .coupon-left {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.coupon-card.used .coupon-left {
    background: #999;
}

.coupon-card.expired .coupon-left {
    background: #ccc;
}

.coupon-left {
    width: 140px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.coupon-value {
    font-size: 28px;
    font-weight: 700;
}

.coupon-type {
    font-size: 13px;
    opacity: 0.8;
    margin-top: 4px;
}

.coupon-right {
    flex: 1;
    padding: 16px 20px;
}

.coupon-name {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.coupon-condition {
    font-size: 13px;
    color: #999;
    margin-bottom: 12px;
}

.coupon-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #999;
}

.status-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.coupon-card.available .status-badge {
    background: #f0f9eb;
    color: #67c23a;
}

.coupon-card.used .status-badge {
    background: #f5f5f5;
    color: #999;
}

.coupon-card.expired .status-badge {
    background: #fef0f0;
    color: #f56c6c;
}

.empty-coupons {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

/* 电商响应式 */
@media (max-width: 768px) {
    .cart-header,
    .cart-item {
        grid-template-columns: 40px 1fr 80px 80px 60px;
    }

    .col-action {
        display: none;
    }

    .cart-footer {
        flex-direction: column;
        gap: 12px;
    }

    .checkout-container {
        grid-template-columns: 1fr;
    }

    .checkout-summary {
        position: static;
    }

    .order-body {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .order-actions {
        width: 100%;
    }

    .order-actions .btn {
        flex: 1;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .order-item-row {
        grid-template-columns: 40px 1fr 80px;
    }

    .item-qty,
    .item-price {
        display: none;
    }

    .coupon-card {
        flex-direction: column;
    }

    .coupon-left {
        width: 100%;
        padding: 16px;
    }
}

/* ============= 2FA 双因素认证表单样式(对齐后台设计,会员中心用紫色调) ============= */

/* 2FA 整体表单容器:与上方密码表单留出间距 */
.twofactor-form {
    margin-top: 8px;
}

/* 2FA 头部:渐变背景的圆形盾牌图标 + 标题 + 提示 + 当前账号 */
.twofactor-header {
    text-align: center;
    margin-bottom: 24px;
}

/* 渐变背景圆形图标(复用 .auth-icon 的紫色调 #667eea → #764ba2) */
.twofactor-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: #fff;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.twofactor-header h2 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 600;
    color: #333;
}

.twofactor-tip {
    margin: 0 0 4px;
    font-size: 13px;
    color: #666;
}

.twofactor-account {
    margin: 0;
    font-size: 12px;
    color: #999;
}

/* 6 位验证码输入框:大号居中、字间距大、加粗,符合验证器场景 */
.twofactor-code-input {
    width: 100%;
    padding: 14px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    font-size: 20px;
    letter-spacing: 8px;
    font-weight: 600;
    text-align: center;
    box-sizing: border-box;
    transition: all 0.2s;
}

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

.twofactor-code-input::placeholder {
    color: #bbb;
    font-weight: 400;
    letter-spacing: 0;
    font-size: 14px;
}

/* 备份码切换 checkbox(居中显示,login.liquid 和 security.liquid 共用) */
.backup-code-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 12px 0 16px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    user-select: none;
}

.backup-code-toggle input[type="checkbox"] {
    width: 14px;
    height: 14px;
    cursor: pointer;
    accent-color: #667eea;
}

/* 备份码输入框(XXXX-XXXX 格式,字间距稍小) */
.backup-code-input {
    width: 100%;
    padding: 12px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    font-size: 16px;
    letter-spacing: 2px;
    text-align: center;
    box-sizing: border-box;
    transition: all 0.2s;
}

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

.backup-code-input::placeholder {
    color: #bbb;
    letter-spacing: 0;
    font-size: 13px;
}

.backup-code-group {
    margin-bottom: 16px;
}

/* 验证按钮:与上方留出小间距 */
.twofactor-verify-btn {
    margin-top: 8px;
}

/* 返回登录文字按钮:居中、灰色,鼠标悬停下划线 */
.twofactor-back-btn {
    display: block;
    margin: 16px auto 0;
    color: #999;
    font-size: 13px;
    padding: 4px 8px;
}

.twofactor-back-btn:hover {
    color: #667eea;
    text-decoration: underline;
}

