/* ========================================
   WooCommerce 我的账户页面样式
   根据实际HTML结构实现左右分布
======================================== */




.login-page {
    min-height: 100vh;

    padding: 2rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.login-header {
    text-align: center;
    margin-bottom: 3rem;
    color: #1e293b;
}

.login-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.login-header p {
    font-size: 1.1rem;
    color: #6b7280;
}

.u-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.login-card, .register-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.login-card h2, .register-card h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.login-card h2::after, .register-card h2::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 2px;
}

.form-row {
    margin-bottom: 1.5rem;
}

.form-row label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-row .required {
    color: #ef4444;
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="password"] {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f9fafb;
}

.form-row input[type="text"]:focus,
.form-row input[type="email"]:focus,
.form-row input[type="password"]:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.woocommerce-form-login__rememberme {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.woocommerce-form-login__rememberme input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #667eea;
}

.woocommerce-form-login__rememberme span {
    font-size: 0.95rem;
    color: #6b7280;
}

.woocommerce-button {
    width: 100%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.woocommerce-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
}

.lost_password {
    text-align: center;
    margin-top: 1.5rem;
}

.lost_password a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.lost_password a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .u-columns {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .login-card, .register-card {
        padding: 2rem 1.5rem;
    }
    
    .login-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .login-page {
        padding: 1rem 0.5rem;
    }
    
    .login-card, .register-card {
        padding: 1.5rem 1rem;
    }
}

/* 隐藏entry-header */
.entry-header,
.page-header,
.entry-title,
.page-title {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 隐藏默认页面标题 */
.woocommerce-account .entry-header,
.woocommerce-account .page-header,
.woocommerce-account .entry-title,
.woocommerce-account .page-title {
    display: none !important;
}

/* ========================================
     面包屑导航栏样式 - 面板顶部
======================================== */
.woocommerce-breadcrumb {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 16px 24px;
    margin-bottom: 30px;
    font-size: 14px;
    color: #666;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    /* 确保面包屑导航在面板顶部 */
    width: 100%;
    box-sizing: border-box;
}

.woocommerce-breadcrumb a {
    color: #007cba;
    text-decoration: none;
    transition: color 0.2s ease;
}

.woocommerce-breadcrumb a:hover {
    color: #005a87;
    text-decoration: underline;
}

.woocommerce-breadcrumb .delimiter {
    margin: 0 8px;
    color: #999;
}

.woocommerce-breadcrumb .current {
    color: #333;
    font-weight: 500;
}

/* ========================================
    左右分布布局 - 基于实际HTML结构
======================================== */

/* 确保父容器不会干扰布局 */
.woocommerce-account {
    display: block !important;
    min-height: 100vh !important;
    margin-top: 60px;
    background-color: #f8f8f8 !important;

}

.woocommerce-account .site-main {
    display: block !important;
    padding-top: 0px
}

.thankyou-container .inside-article {
    background-color: #f8f8f8 !important;
    padding: 10px;
}

/* 左侧导航栏 */
.woocommerce-MyAccount-navigation {
    float: left !important;
    width: 300px !important;
    margin-right: 40px !important;
}

/* 右侧内容区域 */
.woocommerce-MyAccount-content {
    float: left !important;
    width: calc(100% - 340px) !important;
    min-height: calc(100vh - 140px) !important;
}

/* ========================================
    导航菜单样式 - 左侧容器
======================================== */
.woocommerce-MyAccount-navigation {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.woocommerce-MyAccount-navigation li {
    margin: 0;
    border-bottom: 1px solid #e9ecef;
}

.woocommerce-MyAccount-navigation li:last-child {
    border-bottom: none;
}

.woocommerce-MyAccount-navigation a {
    display: block;
    padding: 12px 0;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    transition: all 0.2s ease;
    background: transparent;
    border: none;
    border-radius: 0;
    min-height: auto;
}

.woocommerce-MyAccount-navigation a:hover {
    color: #007cba;
    background: transparent;
    transform: none;
    box-shadow: none;
    padding-left: 8px;
}

.woocommerce-MyAccount-navigation .is-active a {
    color: #007cba;
    font-weight: 500;
    background: transparent;
    transform: none;
    box-shadow: none;
    border-left: 3px solid #007cba;
    padding-left: 8px;
}

/* ========================================
    仪表板内容样式 - 右侧容器
======================================== */

.account-header {
    margin-bottom: 30px;
}

.account-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 15px;
}

.welcome-message {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

.welcome-message a {
    color: #007cba;
    text-decoration: underline;
}

.welcome-message a:hover {
    color: #005a87;
}

/* 快速操作卡片 */
.dashboard-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 24px;
    margin: 0 0 30px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.dashboard-card h2 {
    color: #222;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.dashboard-card h2 svg {
    width: 24px;
    height: 24px;
    color: #666;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.action-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 20px;
    text-align: left;
    transition: all 0.2s ease;
    text-decoration: none;
    color: #222;
    display: flex;
    align-items: center;
    gap: 16px;
}

.action-card:hover {
    background: #e9ecef;
    border-color: #007cba;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    color: #222;
}

.action-card svg {
    width: 40px;
    height: 40px;
    margin-bottom: 0;
    color: #666;
    flex-shrink: 0;
}

.action-card h3 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 4px;
    color: #222;
}

.action-card p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* 最近订单 */
.recent-orders {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #eee;
    transition: background-color 0.2s ease;
}

.order-item:hover {
    background: #e9ecef;
    border-color: #ddd;
}

.order-number a {
    color: #007cba;
    text-decoration: none;
    font-weight: 500;
}

.order-number a:hover {
    text-decoration: underline;
}

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

.order-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

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

.order-status.on-hold {
    background: #e2e3e5;
    color: #383d41;
}

/* ========================================
    底部样式修复
======================================== */

/* 清除浮动，确保底部正常显示 */
.woocommerce-account .entry-content::after {
    content: "";
    display: table;
    clear: both;
}

/* 移除多余的底部间距 */
.woocommerce-account {
    padding-bottom: 0;
}

/* 移除溢出隐藏，避免底部空白 */
.woocommerce-account .site-main {
    overflow: visible;
}

/* ========================================
    订单页面样式 - 匹配主页面设计
======================================== */

/* 订单列表页面 */
.woocommerce-orders-table {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
    font-size: 13px;
    border-collapse: collapse;
    border-spacing: 0;
}

.woocommerce-orders-table thead th {
    background: #f8f9fa;
    color: #222;
    font-weight: 600;
    padding: 12px 10px;
    border-bottom: 1px solid #e9ecef;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
    box-sizing: border-box;
    border-right: 1px solid #e9ecef;
    text-align: center;
}

.woocommerce-orders-table thead th:last-child {
    border-right: none;
}

/* 表格列宽度定义 */
.woocommerce-orders-table th.woocommerce-orders-table__header-order-number {
    width: 15%;
    text-align: center;
}

.woocommerce-orders-table td.woocommerce-orders-table__cell-order-number {
    width: 15%;
    text-align: center;
}

.woocommerce-orders-table th.woocommerce-orders-table__header-order-date {
    width: 20%;
    text-align: center;
}

.woocommerce-orders-table td.woocommerce-orders-table__cell-order-date {
    width: 20%;
    text-align: center;
}

.woocommerce-orders-table th.woocommerce-orders-table__header-order-status {
    width: 15%;
    text-align: center;
}

.woocommerce-orders-table td.woocommerce-orders-table__cell-order-status {
    width: 15%;
    text-align: center;
}

.woocommerce-orders-table th.woocommerce-orders-table__header-order-total {
    width: 20%;
    text-align: center;
}

.woocommerce-orders-table td.woocommerce-orders-table__cell-order-total {
    width: 20%;
    text-align: center;
}

.woocommerce-orders-table th.woocommerce-orders-table__header-order-actions {
    width: 30%;
    text-align: center;
}

.woocommerce-orders-table td.woocommerce-orders-table__cell-order-actions {
    width: 30%;
    text-align: center;
}

.woocommerce-orders-table tbody td {
    padding: 12px 10px;
    border-bottom: 1px solid #f1f3f4;
    vertical-align: middle;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
    border-right: 1px solid #f1f3f4;
    text-align: center;
}

.woocommerce-orders-table tbody td:last-child {
    border-right: none;
}

.woocommerce-orders-table tbody tr:hover {
    background: #f8f9fa;
}

.woocommerce-orders-table tbody tr:last-child td {
    border-bottom: none;
}

/* 订单号链接 */
.woocommerce-orders-table .order-number a {
    color: #007cba;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.woocommerce-orders-table .order-number a:hover {
    color: #005a87;
    text-decoration: underline;
}

/* 订单状态 */
.woocommerce-orders-table .order-status {
    padding: 4px 8px;
        border-radius: 16px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    text-align: center;
}

.woocommerce-orders-table .order-status.completed {
    background: #d4edda;
    color: #155724;
}

.woocommerce-orders-table .order-status.processing {
    background: #fff3cd;
    color: #856404;
}

.woocommerce-orders-table .order-status.on-hold {
    background: #e2e3e5;
    color: #383d41;
}

.woocommerce-orders-table .order-status.cancelled {
    background: #f8d7da;
    color: #721c24;
}

.woocommerce-orders-table .order-status.failed {
    background: #f8d7da;
    color: #721c24;
}

.woocommerce-orders-table .order-status.refunded {
    background: #d1ecf1;
    color: #0c5460;
}

/* 订单操作按钮 */
.woocommerce-orders-table .order-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    justify-content: flex-start;
}

.woocommerce-orders-table .order-actions .button {
    background: #007cba;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    white-space: nowrap;
    flex-shrink: 0;
}

.woocommerce-orders-table .order-actions .button:hover {
    background: #005a87;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 订单详情页面 */
.woocommerce-order-details {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.woocommerce-order-details h2 {
    color: #222;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.woocommerce-order-details table {
    width: 100%;
    border-collapse: collapse;
}

.woocommerce-order-details th,
.woocommerce-order-details td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #f1f3f4;
}

.woocommerce-order-details th {
    background: #f8f9fa;
    font-weight: 600;
    color: #222;
}

.woocommerce-order-details tbody tr:hover {
    background: #f8f9fa;
}

/* 订单商品 */
.woocommerce-table--order-details .product-name {
    font-weight: 500;
    color: #222;
}

.woocommerce-table--order-details .product-total {
    font-weight: 600;
    color: #007cba;
}

/* 订单地址 */
.woocommerce-customer-details {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.woocommerce-customer-details h2 {
    color: #222;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.woocommerce-customer-details address {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    border-left: 4px solid #007cba;
    margin-bottom: 20px;
}

.woocommerce-customer-details address:last-child {
    margin-bottom: 0;
}

/* 订单更新 */
.woocommerce-OrderUpdates {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.woocommerce-OrderUpdates h2 {
    color: #222;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.woocommerce-OrderUpdate {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 4px solid #007cba;
}

.woocommerce-OrderUpdate:last-child {
    margin-bottom: 0;
}

.woocommerce-OrderUpdate-meta {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.woocommerce-OrderUpdate-description {
    color: #222;
    line-height: 1.6;
}

/* 订单操作按钮 */
.woocommerce-order-actions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: flex-start;
}

.woocommerce-order-actions .button {
    background: #007cba;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
        justify-content: center;
    min-width: 120px;
    white-space: nowrap;
    flex-shrink: 0;
}

.woocommerce-order-actions .button:hover {
    background: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.woocommerce-order-actions .button.alt {
    background: #6c757d;
}

.woocommerce-order-actions .button.alt:hover {
    background: #545b62;
}

/* ========================================
     地址页面样式 - 匹配面板风格
 ======================================== */

/* 地址页面容器 */
.woocommerce-Addresses {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
    align-items: stretch;
}

/* 单个地址卡片 */
.woocommerce-Address {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 200px;
}

.woocommerce-Address:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-color: #007cba;
}

/* 地址标题区域 */
.woocommerce-Address-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.woocommerce-Address-title h2 {
    color: #222;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
}

/* 编辑地址按钮 */
.woocommerce-Address-title .edit {
    background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 124, 186, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.woocommerce-Address-title .edit:hover {
    background: linear-gradient(135deg, #005a87 0%, #004066 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.4);
    color: #fff;
    text-decoration: none;
}

.woocommerce-Address-title .edit::before {
    content: "✏️";
    margin-right: 6px;
    font-size: 12px;
}

/* 地址内容区域 */
.woocommerce-Address address {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 20px;
    margin: 0;
    font-style: normal;
    line-height: 1.6;
    color: #333;
    position: relative;
    border-left: 4px solid #007cba;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.woocommerce-Address address::before {
    content: "📍";
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 16px;
    opacity: 0.6;
}

/* 空地址状态 */
.woocommerce-Address address:empty::before,
.woocommerce-Address address:contains("You have not set up")::before {
    content: "📝";
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 16px;
    opacity: 0.6;
}

/* 地址描述文字 */
.woocommerce-Addresses + p {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 20px;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    border-left: 4px solid #007cba;
}

/* ========================================
     地址编辑按钮样式
 ======================================== */

/* 地址编辑按钮容器 */
.woocommerce-address-fields__field-wrapper {
    margin-bottom: 20px;
}

/* 地址编辑按钮 */
.woocommerce-address-fields .button,
.woocommerce-edit-address .button,
.woocommerce-address-fields input[type="submit"],
.woocommerce-edit-address input[type="submit"] {
    background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.woocommerce-address-fields .button:hover,
.woocommerce-edit-address .button:hover,
.woocommerce-address-fields input[type="submit"]:hover,
.woocommerce-edit-address input[type="submit"]:hover {
    background: linear-gradient(135deg, #005a87 0%, #004066 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 124, 186, 0.4);
}

.woocommerce-address-fields .button:active,
.woocommerce-edit-address .button:active,
.woocommerce-address-fields input[type="submit"]:active,
.woocommerce-edit-address input[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 124, 186, 0.3);
}

/* 地址编辑按钮前的图标 */
.woocommerce-address-fields .button::before,
.woocommerce-edit-address .button::before {
    content: "✏️";
    margin-right: 8px;
    font-size: 14px;
}

/* 地址操作按钮组 */
.woocommerce-addresses .woocommerce-address-fields,
.woocommerce-edit-address .woocommerce-address-fields {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #e9ecef;
}

/* 地址编辑表单样式 */
.woocommerce-address-fields__field-wrapper {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.woocommerce-address-fields__field-wrapper .form-row {
    margin-bottom: 15px;
}

.woocommerce-address-fields__field-wrapper label {
    font-weight: 600;
    color: #222;
    margin-bottom: 8px;
    display: block;
}

.woocommerce-address-fields__field-wrapper input[type="text"],
.woocommerce-address-fields__field-wrapper input[type="email"],
.woocommerce-address-fields__field-wrapper input[type="tel"],
.woocommerce-address-fields__field-wrapper select,
.woocommerce-address-fields__field-wrapper textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fff;
}

.woocommerce-address-fields__field-wrapper input[type="text"]:focus,
.woocommerce-address-fields__field-wrapper input[type="email"]:focus,
.woocommerce-address-fields__field-wrapper input[type="tel"]:focus,
.woocommerce-address-fields__field-wrapper select:focus,
.woocommerce-address-fields__field-wrapper textarea:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

/* ========================================
     响应式设计
 ======================================== */
@media (max-width: 768px) {
    /* 移动端改为单列布局 */
    .woocommerce-MyAccount-navigation {
        float: none !important;
        width: 100% !important;
        margin-right: 0 !important;
        margin-bottom: 20px !important;
    }
    
    .woocommerce-MyAccount-content {
        float: none !important;
        width: 100% !important;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .action-card {
        padding: 16px;
    }
    
    .action-card svg {
        width: 32px;
        height: 32px;
    }
    
    /* 订单表格移动端优化 */
    .woocommerce-orders-table {
        font-size: 14px;
    }
    
    .woocommerce-orders-table thead th,
    .woocommerce-orders-table tbody td {
        padding: 12px 16px;
    }
    
    .woocommerce-orders-table .order-actions {
        gap: 6px;
        justify-content: center;
    }
    
    .woocommerce-orders-table .order-actions .button {
        padding: 8px 12px;
        font-size: 12px;
        min-width: 70px;
    }
    
    /* 订单详情移动端优化 */
    .woocommerce-order-details,
    .woocommerce-customer-details,
    .woocommerce-OrderUpdates {
        padding: 20px;
    }
    
    .woocommerce-order-details h2,
    .woocommerce-customer-details h2,
    .woocommerce-OrderUpdates h2 {
        font-size: 1.3rem;
    }
    
    .woocommerce-order-actions {
        gap: 8px;
        justify-content: center;
    }
    
    .woocommerce-order-actions .button {
        padding: 10px 16px;
        font-size: 14px;
        min-width: 100px;
    }
    
    /* 小屏幕订单详情按钮优化 */
    @media (max-width: 640px) {
        .woocommerce-order-actions {
            gap: 8px;
            flex-direction: column;
            align-items: stretch;
        }
        
        .woocommerce-order-actions .button {
            padding: 12px 16px;
            font-size: 14px;
            min-width: auto;
    width: 100%;
            text-align: center;
            white-space: normal;
            line-height: 1.3;
        }
    }
    
    /* 超小屏幕订单详情按钮优化 */
    @media (max-width: 480px) {
        .woocommerce-order-actions {
            gap: 10px;
            flex-direction: column;
            align-items: stretch;
            margin-top: 16px;
        }
        
        .woocommerce-order-actions .button {
            padding: 14px 16px;
            font-size: 15px;
            min-width: auto;
            width: 100%;
            border-radius: 8px;
            text-align: center;
            white-space: normal;
            line-height: 1.4;
            font-weight: 500;
        }
        
        /* 按钮样式优化 */
        .woocommerce-order-actions .button.view {
            background: linear-gradient(135deg, #1e73be, #155fa0);
        }
        
        .woocommerce-order-actions .button.cancel {
            background: linear-gradient(135deg, #dc3545, #c82333);
        }
        
        .woocommerce-order-actions .button.pay {
            background: linear-gradient(135deg, #28a745, #218838);
        }
        
        .woocommerce-order-actions .button.download {
            background: linear-gradient(135deg, #6c757d, #5a6268);
        }
    }
    


    

    
    .order-actions .button.view {
        background: linear-gradient(135deg, #1e73be, #155fa0);
    color: white;
    }
    
    .order-actions .button.view:hover {
        background: linear-gradient(135deg, #155fa0, #0f4c8a);
        transform: translateY(-1px);
    }
    
    .order-actions .button.cancel {
        background: linear-gradient(135deg, #dc3545, #c82333);
        color: white;
    }
    
    .order-actions .button.cancel:hover {
        background: linear-gradient(135deg, #c82333, #a71e2a);
        transform: translateY(-1px);
    }
    
    .order-actions .button.pay {
        background: linear-gradient(135deg, #28a745, #218838);
        color: white;
    }
    
    .order-actions .button.pay:hover {
        background: linear-gradient(135deg, #218838, #1e7e34);
        transform: translateY(-1px);
    }
    
    .order-actions .button.download {
        background: linear-gradient(135deg, #6c757d, #5a6268);
        color: white;
    }
    
    .order-actions .button.download:hover {
        background: linear-gradient(135deg, #5a6268, #495057);
        transform: translateY(-1px);
    }
    
    /* WooCommerce 表格单元格移动端优化 */
    .woocommerce-orders-table__cell-order-actions {
        width: auto;
        min-width: 120px;
    }
    
    .woocommerce-orders-table__cell-order-actions .order-actions {
        display: flex;
        gap: 6px;
        align-items: center;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    
    .woocommerce-orders-table__cell-order-actions .order-actions .button {
        padding: 6px 10px;
        font-size: 11px;
        min-width: 70px;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    /* 移动端表格优化 */
    @media (max-width: 768px) {
        .woocommerce-orders-table {
            font-size: 12px;
        }
        
        .woocommerce-orders-table thead th {
            padding: 8px 6px;
            font-size: 11px;
        }
        
        .woocommerce-orders-table tbody td {
            padding: 8px 6px;
        }
        
        .woocommerce-orders-table .order-number a {
            font-size: 13px;
        }
        
        .woocommerce-orders-table .order-status {
            padding: 3px 6px;
            font-size: 10px;
        }
        
        .woocommerce-orders-table .order-actions {
            gap: 4px;
        }
        
        .woocommerce-orders-table .order-actions .button {
            padding: 4px 8px;
            font-size: 10px;
            min-width: 60px;
        }
    }
    

    
    /* 手机端订单详情卡片布局 */
    @media (max-width: 768px) {
        .woocommerce-order-details {
            margin-bottom: 30px;
        }
        
        .woocommerce-order-details table {
            display: block;
            overflow-x: auto;
            min-width: 500px;
        }
        
        .woocommerce-order-details th,
        .woocommerce-order-details td {
            padding: 8px 10px;
            font-size: 12px;
        }
    }
    
    /* 超小屏幕订单详情卡片布局 */
    @media (max-width: 480px) {
        .woocommerce-order-details {
            background: #fff;
            border: 1px solid #e9ecef;
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 20px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }
        
        .woocommerce-order-details h2 {
            font-size: 18px;
            margin-bottom: 16px;
            color: #333;
            border-bottom: 2px solid #f0f0f0;
            padding-bottom: 8px;
        }
        
        .woocommerce-order-details table {
            display: block;
            overflow: visible;
            min-width: auto;
            border: none;
        background: transparent;
    }

        .woocommerce-order-details thead {
            display: none;
        }
        
        .woocommerce-order-details tbody {
            display: block;
        }
        
        .woocommerce-order-details tr {
            display: block;
            background: #f8f9fa;
            border: 1px solid #e9ecef;
            border-radius: 8px;
            margin-bottom: 12px;
            padding: 16px;
            position: relative;
        }
        
        .woocommerce-order-details td {
            display: block;
            padding: 8px 0;
            border: none;
        text-align: left;
            position: relative;
            padding-left: 120px;
            font-size: 13px;
        }
        
        .woocommerce-order-details td::before {
            content: attr(data-title) ": ";
            position: absolute;
            left: 0;
            width: 110px;
            font-weight: 600;
            color: #666;
            font-size: 12px;
        }
        
        /* 订单号特殊样式 */
        .woocommerce-order-details .order-number {
            background: linear-gradient(135deg, #1e73be, #155fa0);
            color: white;
            border-radius: 8px;
            padding: 12px 16px;
            margin-bottom: 16px;
            text-align: center;
            font-size: 16px;
            font-weight: 600;
        }
        
        .woocommerce-order-details .order-number::before {
            display: none;
        }
        
        .woocommerce-order-details .order-number a {
            color: white;
            text-decoration: none;
        }
        
        /* 订单状态样式 */
        .woocommerce-order-details .order-status {
            background: #28a745;
            color: white;
            padding: 6px 12px;
    border-radius: 20px;
            font-size: 12px;
    font-weight: 500;
            display: inline-block;
            margin-top: 4px;
        }
        
        /* 订单总价样式 */
        .woocommerce-order-details .order-total {
            background: #f8f9fa;
            border: 2px solid #e9ecef;
            border-radius: 8px;
            padding: 12px 16px;
            margin-top: 8px;
            font-weight: 600;
            color: #333;
        }
        
        .woocommerce-order-details .order-total::before {
            content: "总价: ";
            color: #666;
            font-weight: 500;
        }
        
        /* 客户详情卡片布局 */
        .woocommerce-customer-details {
            background: #fff;
            border: 1px solid #e9ecef;
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 20px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }
        
        .woocommerce-customer-details h2 {
            font-size: 18px;
            margin-bottom: 16px;
            color: #333;
            border-bottom: 2px solid #f0f0f0;
            padding-bottom: 8px;
        }
        
        .woocommerce-customer-details address {
            background: #f8f9fa;
            border: 1px solid #e9ecef;
            border-radius: 8px;
            padding: 16px;
            margin-top: 12px;
            font-style: normal;
            line-height: 1.6;
            color: #333;
        }
        
        /* 订单更新卡片布局 */
        .woocommerce-OrderUpdates {
            background: #fff;
            border: 1px solid #e9ecef;
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 20px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }
        
        .woocommerce-OrderUpdates h2 {
            font-size: 18px;
            margin-bottom: 16px;
            color: #333;
            border-bottom: 2px solid #f0f0f0;
            padding-bottom: 8px;
        }
        
        .woocommerce-OrderUpdates .woocommerce-order-update {
            background: #f8f9fa;
            border: 1px solid #e9ecef;
            border-radius: 8px;
            padding: 16px;
            margin-bottom: 12px;
        }
        
        .woocommerce-OrderUpdates .woocommerce-order-update:last-child {
            margin-bottom: 0;
        }
        
        .woocommerce-OrderUpdates .woocommerce-order-update h4 {
            font-size: 14px;
            margin-bottom: 8px;
            color: #333;
        }
        
        .woocommerce-OrderUpdates .woocommerce-order-update p {
            font-size: 13px;
            color: #666;
            margin: 0;
        }
    }
    
    /* 移动端地址编辑按钮优化 */
    .woocommerce-address-fields .button,
    .woocommerce-edit-address .button,
    .woocommerce-address-fields input[type="submit"],
    .woocommerce-edit-address input[type="submit"] {
        padding: 12px 20px;
        font-size: 14px;
        min-width: 120px;
        width: 100%;
        margin-top: 10px;
    }
    
    .woocommerce-address-fields__field-wrapper {
        padding: 15px;
    }
    
         .woocommerce-address-fields__field-wrapper input[type="text"],
     .woocommerce-address-fields__field-wrapper input[type="email"],
     .woocommerce-address-fields__field-wrapper input[type="tel"],
     .woocommerce-address-fields__field-wrapper select,
     .woocommerce-address-fields__field-wrapper textarea {
         padding: 10px 12px;
         font-size: 14px;
     }
     
           /* 移动端地址卡片优化 */
      .woocommerce-Addresses {
          grid-template-columns: 1fr;
          gap: 20px;
          align-items: stretch;
      }
      
      .woocommerce-Address {
          padding: 20px;
          min-height: 180px;
      }
     
     .woocommerce-Address-title {
         flex-direction: column;
         align-items: flex-start;
         gap: 15px;
     }
     
     .woocommerce-Address-title .edit {
         width: 100%;
         justify-content: center;
         padding: 12px 16px;
         font-size: 14px;
     }
     
     .woocommerce-Address address {
         padding: 16px;
         font-size: 14px;
     }
}

@media (max-width: 640px) {
    .woocommerce-account .entry-content {
        padding: 0px;
    }
    
    .account-header h1 {
        font-size: 2rem;
    }
    
    .action-card {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .action-card svg {
        width: 40px;
        height: 40px;
    }
    
    .woocommerce-order-actions {
        gap: 6px;
        flex-direction: column;
        align-items: stretch;
    }
    
         .woocommerce-order-actions .button {
         padding: 12px 16px;
         font-size: 14px;
         min-width: auto;
         width: 100%;
     }
     
           /* 小屏幕地址卡片优化 */
      .woocommerce-Address {
          padding: 16px;
          min-height: 160px;
      }
     
     .woocommerce-Address-title h2 {
         font-size: 1.2rem;
     }
     
     .woocommerce-Address-title .edit {
         padding: 10px 12px;
         font-size: 13px;
     }
     
     .woocommerce-Address address {
         padding: 12px;
         font-size: 13px;
     }
     
     .woocommerce-Addresses + p {
         padding: 12px 16px;
         font-size: 13px;
     }
}

/* ========================================
    分页按钮样式 - 匹配面板颜色
======================================== */

/* 分页容器 */
.woocommerce-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
    padding: 20px 0;
}

/* 分页按钮基础样式 */
.woocommerce-pagination .woocommerce-button {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    color: #222;
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* 分页按钮悬停效果 */
.woocommerce-pagination .woocommerce-button:hover {
    background: #e9ecef;
    border-color: #007cba;
    color: #222;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* 分页按钮激活状态 */
.woocommerce-pagination .woocommerce-button:active {
        transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* 分页按钮焦点状态 */
.woocommerce-pagination .woocommerce-button:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

/* 移动端分页按钮优化 */
@media (max-width: 768px) {
    .woocommerce-pagination {
        gap: 8px;
        margin-top: 20px;
        padding: 15px 0;
    }
    
    .woocommerce-pagination .woocommerce-button {
        padding: 10px 16px;
        font-size: 13px;
        min-width: 80px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .woocommerce-pagination {
        flex-direction: column;
        gap: 10px;
    }
    
    .woocommerce-pagination .woocommerce-button {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
}

