/* ============================================================
   My Account 页面样式 - 墨西哥风格（完整版）
   修复：导航左、内容右，左右并排
   ============================================================ */

/* ---------- 全局容器 ---------- */
.woocommerce-account .woocommerce {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
}

/* ============================================================
   登录/注册卡片（未登录时）
   ============================================================ */
.woocommerce-account .woocommerce-form-login,
.woocommerce-account .woocommerce-form-register {
    max-width: 480px;
    margin: 0 auto;
    background: #fffdf9;
    border-radius: 24px;
    padding: 2.5rem 2rem;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.10);
    border: 2px solid #e8e0d4;
    position: relative;
    overflow: hidden;
}

/* 装饰性花纹 */
.woocommerce-account .woocommerce-form-login::before,
.woocommerce-account .woocommerce-form-register::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle at 30% 30%, rgba(206, 17, 38, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.woocommerce-account .woocommerce-form-login::after,
.woocommerce-account .woocommerce-form-register::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle at 70% 70%, rgba(0, 99, 65, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* ---------- 品牌标题 ---------- */
.sol-login-brand {
    text-align: center;
    margin-bottom: 2rem;
}

.sol-login-brand-name {
    font-size: 2.8rem;
    font-weight: 700;
    color: #006341;
    margin: 0;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0, 99, 65, 0.1);
}

.sol-login-brand-tagline {
    font-size: 1rem;
    color: #8a7a6a;
    margin: 0.3rem 0 0;
    font-style: italic;
}

/* ---------- Tab 切换 ---------- */
.sol-login-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.3rem;
    border-bottom: 3px solid #e0d6c8;
    padding-bottom: 0.8rem;
    margin-bottom: 2rem;
    overflow: hidden;
}

.sol-login-tab {
    flex: 0 0 auto;
    padding: 0.6rem 1.4rem;
    background: transparent;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: #8a7a6a;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    margin-bottom: -0.8rem;
    white-space: nowrap;
    font-family: inherit;
}

.sol-login-tab:hover {
    color: #006341;
    background: rgba(0, 99, 65, 0.05);
    border-radius: 8px 8px 0 0;
}

.sol-login-tab.active {
    color: #006341;
    border-bottom-color: #ce1126;
    background: rgba(206, 17, 38, 0.04);
    border-radius: 8px 8px 0 0;
}

/* ---------- 登录/注册表单 ---------- */
.woocommerce-form-login .woocommerce-form-row,
.woocommerce-form-register .woocommerce-form-row {
    margin-bottom: 1.2rem;
}

.woocommerce-form-login label,
.woocommerce-form-register label {
    display: block;
    font-weight: 600;
    color: #2d2d2d;
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
}

.woocommerce-form-login input[type="text"],
.woocommerce-form-login input[type="email"],
.woocommerce-form-login input[type="password"],
.woocommerce-form-register input[type="text"],
.woocommerce-form-register input[type="email"],
.woocommerce-form-register input[type="password"] {
    width: 100%;
    padding: 0.7rem 1rem;
    border-radius: 30px;
    border: 2px solid #e0d6c8;
    background: #fcfaf7;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.woocommerce-form-login input:focus,
.woocommerce-form-register input:focus {
    border-color: #006341;
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 99, 65, 0.12);
}

.woocommerce-form-login .button,
.woocommerce-form-register .button {
    width: 100%;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    background: #006341;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background 0.3s, transform 0.1s;
    letter-spacing: 0.5px;
}

.woocommerce-form-login .button:hover,
.woocommerce-form-register .button:hover {
    background: #004a30;
    transform: translateY(-2px);
}

.woocommerce-form-login .woocommerce-form__label-for-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: #5a4a3a;
    cursor: pointer;
}

.woocommerce-form-login .lost_password {
    text-align: center;
    margin-top: 0.8rem;
}

.woocommerce-form-login .lost_password a {
    color: #006341;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.woocommerce-form-login .lost_password a:hover {
    text-decoration: underline;
    color: #ce1126;
}

/* ============================================================
   ===== 重要：My Account 左右布局 =====
   ============================================================ */

/* 将导航和内容放在同一行（左右并排） */
.woocommerce-account .woocommerce {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-start;
}

/* 导航：左侧，固定宽度 */
.woocommerce-MyAccount-navigation {
    flex: 0 0 220px;
    min-width: 180px;
    background: #fffdf9;
    border-radius: 20px;
    padding: 0.5rem 0;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
    border: 2px solid #e8e0d4;
    overflow: hidden;
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.woocommerce-MyAccount-navigation ul li {
    margin: 0;
    flex: 0 0 auto;
}

.woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 0.75rem 1.2rem;
    color: #4a3f35;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.25s ease;
    border-left: 4px solid transparent;
    border-bottom: none;
}

.woocommerce-MyAccount-navigation ul li a:hover {
    background: #f3efe8;
    color: #006341;
    border-left-color: #006341;
}

.woocommerce-MyAccount-navigation ul li.is-active a {
    color: #006341;
    border-left-color: #ce1126;
    background: #f3efe8;
    font-weight: 600;
}

/* 内容：右侧，占据剩余空间 */
.woocommerce-MyAccount-content {
    flex: 1;
    min-width: 280px;
    background: #fffdf9;
    border-radius: 20px;
    padding: 2.2rem 2.5rem;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
    border: 2px solid #e8e0d4;
    min-height: 320px;
    position: relative;
}

/* 装饰性花纹（右上角） */
.woocommerce-MyAccount-content::before {
    content: '';
    position: absolute;
    top: -15px;
    right: -15px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle at 30% 30%, rgba(206, 17, 38, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* ---------- 内容标题 ---------- */
.woocommerce-MyAccount-content h2,
.woocommerce-MyAccount-content h3 {
    color: #2d2d2d;
    border-left: 6px solid #ce1126;
    padding-left: 1rem;
    margin-bottom: 1.2rem;
    font-weight: 700;
    font-size: 1.6rem;
}

.woocommerce-MyAccount-content p {
    color: #4a3f35;
    line-height: 1.7;
    font-size: 1rem;
}

.woocommerce-MyAccount-content strong {
    color: #006341;
}

/* ---------- 订单列表 ---------- */
.woocommerce-MyAccount-content .woocommerce-orders-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.2rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.woocommerce-MyAccount-content .woocommerce-orders-table th {
    background: #f3efe8;
    padding: 0.9rem 1rem;
    text-align: left;
    font-weight: 700;
    color: #2d2d2d;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.woocommerce-MyAccount-content .woocommerce-orders-table td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid #ece6dc;
    color: #4a3f35;
    background: #fffdf9;
}

.woocommerce-MyAccount-content .woocommerce-orders-table tr:last-child td {
    border-bottom: none;
}

.woocommerce-MyAccount-content .woocommerce-orders-table .order-status {
    font-weight: 600;
    padding: 0.2rem 0.8rem;
    border-radius: 30px;
    font-size: 0.8rem;
    display: inline-block;
}

.woocommerce-MyAccount-content .woocommerce-orders-table .order-status.completed {
    background: #e6f2e8;
    color: #004a30;
}

.woocommerce-MyAccount-content .woocommerce-orders-table .order-status.processing {
    background: #fff3e0;
    color: #b85c00;
}

.woocommerce-MyAccount-content .woocommerce-orders-table .order-status.on-hold {
    background: #fef6e0;
    color: #8a6d00;
}

.woocommerce-MyAccount-content .woocommerce-orders-table .order-status.cancelled {
    background: #fde8e8;
    color: #b33c3c;
}

/* ---------- 地址簿 ---------- */
.woocommerce-MyAccount-content .addresses {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 0.5rem;
}

.woocommerce-MyAccount-content .addresses .address {
    flex: 1;
    min-width: 240px;
    background: #f8f4ee;
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid #e0d6c8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.woocommerce-MyAccount-content .addresses .address h3 {
    border-left: 4px solid #006341;
    padding-left: 0.8rem;
    font-size: 1.2rem;
    margin-top: 0;
}

.woocommerce-MyAccount-content .addresses .address address {
    font-style: normal;
    color: #4a3f35;
    line-height: 1.6;
}

/* ---------- 账户详情表单 ---------- */
.woocommerce-MyAccount-content .woocommerce-EditAccountForm .form-row {
    margin-bottom: 1.2rem;
}

.woocommerce-MyAccount-content .woocommerce-EditAccountForm label {
    display: block;
    font-weight: 600;
    color: #2d2d2d;
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
}

.woocommerce-MyAccount-content .woocommerce-EditAccountForm input[type="text"],
.woocommerce-MyAccount-content .woocommerce-EditAccountForm input[type="email"],
.woocommerce-MyAccount-content .woocommerce-EditAccountForm input[type="password"] {
    width: 100%;
    max-width: 420px;
    padding: 0.6rem 1rem;
    border-radius: 30px;
    border: 2px solid #e0d6c8;
    background: #fcfaf7;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.woocommerce-MyAccount-content .woocommerce-EditAccountForm input:focus {
    border-color: #006341;
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 99, 65, 0.10);
}

/* ---------- 按钮 ---------- */
.woocommerce-MyAccount-content .button {
    background: #006341;
    color: #fff;
    padding: 0.6rem 2.2rem;
    border-radius: 50px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s, transform 0.1s;
    font-size: 0.95rem;
}

.woocommerce-MyAccount-content .button:hover {
    background: #004a30;
    transform: translateY(-2px);
}

/* ---------- 消息通知 ---------- */
.woocommerce-message,
.woocommerce-error {
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    margin-bottom: 1.2rem;
    list-style: none;
    font-size: 0.95rem;
    border-left: 6px solid;
}

.woocommerce-message {
    background: #e6f2e8;
    border-color: #006341;
    color: #004a30;
}

.woocommerce-error {
    background: #fde8e8;
    border-color: #ce1126;
    color: #8a2a2a;
}

/* ---------- 分页 ---------- */
.woocommerce-pagination .page-numbers {
    display: inline-block;
    padding: 0.3rem 0.7rem;
    background: #f3efe8;
    color: #4a3f35;
    border-radius: 6px;
    margin: 0 0.1rem;
    text-decoration: none;
}

.woocommerce-pagination .page-numbers.current {
    background: #006341;
    color: #fff;
}

.woocommerce-pagination .page-numbers:hover {
    background: #e0d6c8;
}

/* ============================================================
   响应式：窄屏时导航在上、内容在下
   ============================================================ */
@media (max-width: 768px) {
    .woocommerce-account .woocommerce {
        flex-direction: column;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .woocommerce-MyAccount-navigation {
        flex: 1 1 auto;
        width: 100%;
        min-width: 0;
    }

    .woocommerce-MyAccount-navigation ul {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.2rem;
    }

    .woocommerce-MyAccount-navigation ul li a {
        padding: 0.6rem 1rem;
        border-left: none;
        border-bottom: 3px solid transparent;
        border-radius: 8px 8px 0 0;
        font-size: 0.85rem;
    }

    .woocommerce-MyAccount-navigation ul li a:hover {
        border-left-color: transparent;
        border-bottom-color: #006341;
    }

    .woocommerce-MyAccount-navigation ul li.is-active a {
        border-left-color: transparent;
        border-bottom-color: #ce1126;
    }

    .woocommerce-MyAccount-content {
        padding: 1.5rem 1.2rem;
        min-width: 0;
    }

    .woocommerce-account .woocommerce-form-login,
    .woocommerce-account .woocommerce-form-register {
        padding: 1.8rem 1.2rem;
    }

    .sol-login-brand-name {
        font-size: 2.2rem;
    }

    .sol-login-tab {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .woocommerce-MyAccount-content .woocommerce-orders-table th,
    .woocommerce-MyAccount-content .woocommerce-orders-table td {
        padding: 0.5rem 0.6rem;
        font-size: 0.75rem;
    }
    .woocommerce-MyAccount-content .woocommerce-EditAccountForm input {
        max-width: 100%;
    }
    .sol-login-tab {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
}