/**
 * WooCommerce My Account Styles
 * 个人中心样式
 */

/* 面包屑样式 - 与产品详情页统一 */
.woocommerce-account .pd-breadcrumb {
    background-color: #f5f5f5;
    padding: 15px 0;
}

.woocommerce-account .pd-breadcrumb-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    font-size: 13px;
    color: #666;
}

.woocommerce-account .pd-breadcrumb-nav a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.woocommerce-account .pd-breadcrumb-nav a:hover {
    color: #e91e63;
}

.woocommerce-account .pd-breadcrumb-sep {
    margin: 0 10px;
    color: #999;
}

.woocommerce-account .pd-breadcrumb-current {
    color: #333;
    font-weight: 500;
}

/* 隐藏默认页面标题 */
.woocommerce-account .page-header {
    display: none;
}

/* 个人中心页面main顶部间距 */
.woocommerce-account .site-main {
    padding-top: 40px;
}

/* 清除伪元素冲突 */
.woocommerce-account .woocommerce::before,
.woocommerce-account .woocommerce::after {
    content: none;
    display: none;
}

/* 主布局 */
.woocommerce-account .page-entry .woocommerce {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 40px;
    align-items: start;
}

/* 页面主容器 */
.woocommerce-account .page-content {
    padding: 40px 0 60px;
    background: #fff;
        min-height: 520px;
}

/* 左侧导航 - 覆盖WooCommerce默认样式 */
.woocommerce-account .woocommerce-MyAccount-navigation {
    float: none;
    width: 100%;
    background: #fff;
}

.woocommerce-account .woocommerce-MyAccount-content {
    float: none;
    width: 100%;
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-MyAccount-navigation ul li {
    margin-bottom: 0;
    border-bottom: 1px solid #eee;
}

.woocommerce-MyAccount-navigation ul li:last-child {
    border-bottom: none;
}

.woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 12px 0;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.woocommerce-MyAccount-navigation ul li a:hover {
    color: #c41230;
}

.woocommerce-MyAccount-navigation ul li.is-active a {
    color: #c41230;
    font-weight: 600;
}

/* 导航标题 */
.woocommerce-MyAccount-navigation::before {
    content: 'アカウント情報';
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    padding-bottom: 15px;
    margin-bottom: 10px;
    border-bottom: 2px solid #333;
}

/* 右侧内容区 */
.woocommerce-MyAccount-content {
    background: #fff;
}

.woocommerce-MyAccount-content h2,
.woocommerce-MyAccount-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #333;
}

.woocommerce-MyAccount-content > p:first-child {
    margin-bottom: 30px;
}

/* Dashboard 分区 */
.myaccount-section {
    margin-bottom: 40px;
}

.myaccount-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #333;
}

.myaccount-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.myaccount-links a {
    font-size: 14px;
    color: #666;
    text-decoration: none;
}

.myaccount-links a:hover {
    color: #c41230;
}

/* 订单列表 */
.woocommerce-orders-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.woocommerce-orders-table th,
.woocommerce-orders-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.woocommerce-orders-table th {
    background: #f9f9f9;
    font-weight: 600;
    color: #333;
}

.woocommerce-orders-table td {
    color: #666;
}

.woocommerce-orders-table .woocommerce-button {
    display: inline-block;
    padding: 6px 12px;
    background: #c41230;
    color: #fff;
    font-size: 12px;
    border-radius: 4px;
    text-decoration: none;
}

.woocommerce-orders-table .woocommerce-button:hover {
    background: #a00f28;
}

/* 地址 */
.woocommerce-Addresses {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.woocommerce-Address-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.woocommerce-Address-title h3 {
    margin: 0;
    padding: 0;
    border: none;
}

.woocommerce-Address-title .edit {
    font-size: 13px;
    color: #c41230;
    text-decoration: none;
}

.woocommerce-address-fields address {
    font-style: normal;
    font-size: 14px;
    line-height: 1.8;
    color: #666;
}

/* 表单 */
.woocommerce-EditAccountForm,
.woocommerce-address-fields {
    max-width: 600px;
}

.woocommerce-EditAccountForm .woocommerce-form-row,
.woocommerce-address-fields .form-row {
    margin-bottom: 20px;
}

.woocommerce-EditAccountForm label,
.woocommerce-address-fields label {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
}

.woocommerce-EditAccountForm input[type="text"],
.woocommerce-EditAccountForm input[type="email"],
.woocommerce-EditAccountForm input[type="password"],
.woocommerce-address-fields input[type="text"],
.woocommerce-address-fields input[type="email"],
.woocommerce-address-fields input[type="tel"],
.woocommerce-address-fields select {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}

.woocommerce-EditAccountForm input:focus,
.woocommerce-address-fields input:focus,
.woocommerce-address-fields select:focus {
    border-color: #c41230;
}

.woocommerce-EditAccountForm .woocommerce-Button,
.woocommerce-address-fields .button {
    display: inline-block;
    padding: 12px 30px;
    background: #c41230;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
}

.woocommerce-EditAccountForm .woocommerce-Button:hover,
.woocommerce-address-fields .button:hover {
    background: #a00f28;
}

/* 订单详情 */
.woocommerce-order-details {
    margin-bottom: 30px;
}

.woocommerce-table--order-details {
    width: 100%;
    border-collapse: collapse;
}

.woocommerce-table--order-details th,
.woocommerce-table--order-details td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.woocommerce-table--order-details tfoot th {
    text-align: right;
}

/* 无订单提示 */


.woocommerce-message a,
.woocommerce-info a {
    color: #c41230;
}

/* 响应式 */
@media (max-width: 992px) {
    .woocommerce-account .woocommerce {
        grid-template-columns: 1fr;
    }
    
    .woocommerce-MyAccount-navigation {
        margin-bottom: 30px;
    }
    
    .woocommerce-MyAccount-navigation ul {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .woocommerce-MyAccount-navigation ul li {
        border-bottom: none;
    }
    
    .woocommerce-MyAccount-navigation ul li a {
        padding: 8px 15px;
        background: #f5f5f5;
        border-radius: 4px;
    }
    
    .woocommerce-MyAccount-navigation ul li.is-active a {
        background: #c41230;
        color: #fff;
    }
}

@media (max-width: 768px) {
    .woocommerce-account {
        padding: 20px 0 40px;
    }
    
    .woocommerce-Addresses {
        grid-template-columns: 1fr;
    }
    
    .woocommerce-orders-table {
        display: block;
        overflow-x: auto;
    }
}

/* ========================================
   Dashboard 仪表盘样式 - 粉色主题
   ======================================== */

.dashboard-wrapper {
    margin: -40px 0;
}

/* 顶部区域背景 */
.dashboard-header {
    background: #fce4ec;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 20px;
}

/* 顶部行布局 */
.dashboard-header-row {
    display: flex;
    gap: 30px;
    align-items: stretch;
}

/* 左侧：用户信息（无背景） */
.dashboard-user-info {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    flex-shrink: 0;
    padding: 15px 0;
}

.user-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.user-email {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    word-break: break-all;
    margin-bottom: 5px;
}

.user-links a {
    display: block;
    font-size: 13px;
    color: #e91e63;
    text-decoration: underline;
    line-height: 1.6;
}

.user-links a:hover {
    color: #c2185b;
}

/* 右侧：白色圆角卡片 */
.dashboard-info-card {
    flex: 1;
    background: #fff;
    border-radius: 10px;
    display: flex;
}

/* 卡片内每列 */
.dashboard-info-card .info-col {
    flex: 1;
    padding: 20px 25px;
    border-right: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dashboard-info-card .info-col-last {
    border-right: none;
}

/* 订单统计项 */
.dashboard-info-card .stats-item {
    font-size: 13px;
    line-height: 1.6;
}

.dashboard-info-card .stats-item a,
.dashboard-info-card .stats-item span {
    color: #e91e63;
    text-decoration: none;
}

.dashboard-info-card .stats-item a:hover {
    text-decoration: underline;
}

/* 信息块 */
.dashboard-info-card .info-block {
    margin-bottom: 10px;
}

.dashboard-info-card .info-block:last-child {
    margin-bottom: 0;
}

.dashboard-info-card .info-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 3px;
}

.dashboard-info-card .info-content {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.dashboard-info-card .info-title.pink,
.dashboard-info-card .info-content.pink {
    color: #e91e63;
}

/* 优惠券代码样式 */
.dashboard-info-card .coupon-code {
    display: inline-block;
    background: #fce4ec;
    color: #e91e63;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-right: 5px;
    margin-bottom: 3px;
}

/* 优惠券列表页面样式 */
.coupons-list {
    display: grid;
    gap: 15px;
}

.coupon-item {
    background: #fff;
    border: 2px dashed #e91e63;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.coupon-code-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 120px;
}

.coupon-item .coupon-code {
    background: #e91e63;
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
}

.copy-coupon-btn {
    background: #fce4ec;
    color: #e91e63;
    border: none;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.3s;
}

.copy-coupon-btn:hover {
    background: #f8bbd9;
}

.coupon-details {
    flex: 1;
}

.coupon-discount {
    display: inline-block;
    font-size: 20px;
    font-weight: 700;
    color: #e91e63;
    margin-bottom: 5px;
}

.coupon-description {
    font-size: 13px;
    color: #666;
    margin: 5px 0;
}

.coupon-expiry {
    font-size: 12px;
    color: #999;
}

/* ========================================
   地址列表页面样式
   ======================================== */
.address-list-wrapper {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}

.address-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #f0f0f0;
}

.address-list-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.add-address-btn {
    background: #e91e63;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
}

.add-address-btn:hover {
    background: #c2185b;
}

.address-list-content {
    padding: 25px;
}

.no-address-message {
    text-align: center;
    color: #999;
    padding: 40px 0;
    font-size: 14px;
}

.address-card {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.address-card:last-child {
    margin-bottom: 0;
}

.address-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f5f5f5;
    border-bottom: 1px solid #eee;
}

.address-type {
    font-size: 13px;
    font-weight: 600;
    color: #666;
}

.address-actions .edit-btn {
    color: #e91e63;
    font-size: 13px;
    text-decoration: none;
}

.address-actions .edit-btn:hover {
    text-decoration: underline;
}

.address-card-body {
    padding: 15px;
}

.address-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
}

.address-detail {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 8px 0;
}

.address-phone {
    font-size: 13px;
    color: #666;
    margin: 0;
}

/* 地址弹窗样式 */
.address-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.address-modal-overlay.active {
    display: flex;
}

.address-modal {
    background: #fff;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.address-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.address-modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.close-modal-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    line-height: 1;
}

.close-modal-btn:hover {
    color: #333;
}

.address-modal-body {
    padding: 20px;
}

.address-type-selector {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.address-type-option {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 15px;
    border: 2px solid #eee;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.3s;
}

.address-type-option:has(input:checked) {
    border-color: #e91e63;
}

.address-type-option input {
    accent-color: #e91e63;
}

.address-type-option span {
    font-size: 14px;
    color: #333;
}

.modal-info {
    font-size: 13px;
    color: #666;
    margin: 0 0 20px 0;
    text-align: center;
}

.modal-submit-btn {
    width: 100%;
    background: #e91e63;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
}

.modal-submit-btn:hover {
    background: #c2185b;
}

/* 功能卡片区域 */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 30px;
    background: #fce4ec;
    border-radius: 10px;
}

.dashboard-card {
    background: #fff;
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.dashboard-card:hover {
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.15);
    transform: translateY(-2px);
}

.dashboard-card a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.dashboard-card .card-icon {
    margin-bottom: 15px;
    color: #e91e63;
}

.dashboard-card .card-icon svg {
    width: 32px;
    height: 32px;
}

.dashboard-card .card-title {
    font-size: 14px;
    color: #e91e63;
    font-weight: 500;
}

/* 响应式 - Dashboard */
@media (max-width: 1200px) {
    .dashboard-header-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .dashboard-info-card {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .dashboard-info-card {
        flex-direction: column;
    }
    
    .dashboard-info-card .info-col {
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .dashboard-info-card .info-col-last {
        border-bottom: none;
    }
    
    .dashboard-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .dashboard-header {
        padding: 15px;
    }
    
    .dashboard-cards {
        grid-template-columns: 1fr;
        padding: 15px;
    }
    
    .dashboard-card {
        padding: 20px 15px;
    }
    
    .user-avatar img {
        width: 50px;
        height: 50px;
    }
}
