/* 地址页面专属样式 */

/* 地址容器 */
.addresses-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    padding: 20px 0;
    background-attachment: fixed;
}

/* 容器最大宽度限制 */
.container {
    max-width: 1400px;
}

/* 页面标题区域 */
.page-header {
    margin-bottom: 30px;
    text-align: center;
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #000000 !important;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.page-header h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #d4af37, #f3e5ab);
    border-radius: 3px;
}

/* 地址卡片 */
.address-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.15);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    position: relative;
}

.address-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.2);
}

.address-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: left 0.6s;
}

.address-card:hover::before {
    left: 100%;
}

/* 默认地址卡片 */
.address-card.border-primary {
    border-color: #4e73df !important;
    background: linear-gradient(135deg, rgba(78, 115, 223, 0.05) 0%, rgba(34, 74, 190, 0.05) 100%);
}

/* 地址卡片头部 */
.address-card .card-body {
    padding: 25px;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #000000 !important;
    margin-bottom: 5px;
}

.text-muted {
    color: #495057 !important;
}

/* 地址详情 */
.card-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #000000 !important;
    margin-top: 15px;
}

/* 默认地址标签 */
.badge.bg-primary {
    background: linear-gradient(135deg, #4e73df 0%, #224abe 100%) !important;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* 卡片底部 */
.card-footer {
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.8) 0%, rgba(233, 236, 239, 0.5) 100%) !important;
    border-top: 1px solid rgba(0, 0, 0, 0.05) !important;
    padding: 20px 25px !important;
}

/* 按钮样式 */
.btn-sm {
    padding: 8px 16px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-outline-primary {
    background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
    color: white;
    border: none;
}

.btn-outline-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(34, 74, 190, 0.3);
    color: white;
}

.btn-outline-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    border: none;
}

.btn-outline-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(108, 117, 125, 0.3);
    color: white;
}

.btn-outline-danger {
    background: linear-gradient(135deg, #e74a3b 0%, #c0392b 100%);
    color: white;
    border: none;
}

.btn-outline-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(231, 74, 59, 0.3);
    color: white;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #000000 !important;
}

.empty-state i {
    font-size: 4rem;
    color: #d4af37;
    opacity: 0.3;
    margin-bottom: 20px;
}

.empty-state h5 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #000000 !important;
}

/* 会员特权提示 */
.alert-info {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.9) 100%);
    border-radius: 15px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 20px;
    color: #000000 !important;
}

.alert-info .flex-shrink-0 i {
    color: #d4af37;
    font-size: 2rem;
}

.alert-info .alert-heading {
    font-weight: 700;
    color: #000000 !important;
    margin-bottom: 10px;
}

/* 模态框样式 */
.modal-content {
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    border: none;
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
    color: white;
    border-radius: 20px 20px 0 0;
    padding: 20px;
    border: none;
}

.modal-header h5 {
    color: white;
}

.modal-title {
    font-weight: 700;
    font-size: 1.3rem;
    margin: 0;
    color: #ffffff;
}

.btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.8;
}

.btn-close:hover {
    opacity: 1;
}

.modal-body {
    padding: 25px;
    color: #000000 !important;
}

.modal-footer {
    padding: 15px 25px;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    border-radius: 0 0 20px 20px;
}

.modal-body p {
    color: #000000 !important;
}

.form-label {
    font-weight: 600;
    color: #000000 !important;
    margin-bottom: 8px;
}

.form-control, .form-select {
    border-radius: 12px;
    padding: 12px 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #4e73df;
    box-shadow: 0 0 0 0.25rem rgba(78, 115, 223, 0.25);
    border-width: 2px;
}

.form-check-input:checked {
    background-color: #4e73df;
    border-color: #4e73df;
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(78, 115, 223, 0.25);
    border-color: #4e73df;
}

/* 主要按钮 */
.btn-primary {
    background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
    border: none;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(34, 74, 190, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 74, 190, 0.4);
    color: white;
}

.btn-primary:focus {
    box-shadow: 0 0 0 0.25rem rgba(78, 115, 223, 0.5);
}

/* 次要按钮 */
.btn-secondary {
    background: #6c757d;
    border: none;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
    color: white;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 15px;
    }
}

@media (max-width: 992px) {
    .address-card .card-body {
        padding: 20px;
    }
    
    .card-footer {
        padding: 15px 20px !important;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .card-title {
        font-size: 1.1rem;
    }
    
    .btn-sm {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    
    .modal-body {
        padding: 20px 15px;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-title {
        font-size: 1.1rem;
    }
    
    .form-control, .form-select {
        padding: 10px 12px;
    }
    
    .btn-primary, .btn-secondary {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

/* 警告和成功消息 */
.alert-danger {
    color: #ffffff;
    background: linear-gradient(135deg, #e74a3b 0%, #c0392b 100%);
}

.alert-success {
    color: #ffffff;
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
}

/* 强制覆盖其他CSS文件中的样式 */
body .page-header h1 {
    color: #000000 !important;
    font-weight: 700 !important;
}

body .card-title {
    color: #000000 !important;
    font-weight: 700 !important;
}

.card-text, .text-muted {
    color: #000000 !important;
}

.alert-info, .alert-info .alert-heading {
    color: #000000 !important;
}

.form-label {
    color: #000000 !important;
    font-weight: 600 !important;
}

.modal-body, .modal-body p {
    color: #000000 !important;
}

/* 特别加强.card-body h5的样式 */
.address-card .card-body h5 {
    color: #000000 !important;
    font-weight: 700 !important;
}

.card-body h5 {
    color: #000000 !important;
    font-weight: 700 !important;
}

/* 特别加强地址管理标题的样式 */
div.main-card.luxury-card .card-body h5 {
    color: #000000 !important;
    font-weight: 700 !important;
}

h5.mb-0 {
    color: #000000 !important;
    font-weight: 700 !important;
}

h5.mb-0 > i {
    color: #000000 !important;
}

/* 最终强制覆盖样式 */
.addresses-container h5,
.addresses-container h5.mb-0,
.addresses-container .main-card .card-body h5 {
    color: #000000 !important;
    font-weight: 700 !important;
}



.empty-state, .empty-state h5 {
    color: #000000 !important;
}

/* 终极强制样式 - 确保地址管理文本清晰可见 */
div.main-card.luxury-card div.card-body div.d-flex h5.mb-0,
h5.mb-0 i.fas.fa-address-book,
h5.mb-0 i.fas.fa-address-book + span {
    color: #000000 !important;
    font-weight: 700 !important;
    text-shadow: none !important;
}

/* 如果以上都不起作用，使用内联样式 */
[data-force-black] {
    color: #000000 !important;
    font-weight: 700 !important;
}