

/* 自定义颜色变量 */
:root {
    --primary: #0E3265;
    --secondary: #f97316;
    --neutral-100: #f3f4f6;
    --neutral-200: #e5e7eb;
    --neutral-300: #d1d5db;
    --neutral-400: #9ca3af;
    --neutral-500: #6b7280;
    --neutral-600: #4b5563;
    --neutral-700: #374151;
    --neutral-800: #1f2937;
    --neutral-900: #111827;
}

/* 地址卡片样式 */
.bg-white {
    background-color: white;
}
.rounded-xl {
    border-radius: 0.75rem;
}
.shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.p-6 {
    padding: 1.5rem;
}
.text-xl {
    font-size: 1.25rem;
}
.font-bold {
    font-weight: 700;
}
.mb-6 {
    margin-bottom: 1.5rem;
}

.items-center {
    align-items: center;
}
.text-primary {
    color: var(--primary);
}
.mr-2 {
    margin-right: 0.5rem;
}
.space-y-4 {
    row-gap: 1rem;
}
.mb-6 {
    margin-bottom: 1.5rem;
}

.justify-center {
    justify-content: center;
}
.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}
.text-neutral-500 {
    color: var(--neutral-500);
}
.text-4xl {
    font-size: 2.25rem;
}
.mb-4 {
    margin-bottom: 1rem;
}
.mt-2 {
    margin-top: 0.5rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}
.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}
.border-2 {
    border-width: 2px;
}
.border-dashed {
    border-style: dashed;
}
.border-neutral-300 {
    border-color: var(--neutral-300);
}
.rounded-lg {
    border-radius: 0.5rem;
}
.hover:border-primary {
    transition: border-color 0.3s;
}
.hover:border-primary:hover {
    border-color: var(--primary);
}
.hover:text-primary {
    transition: color 0.3s;
}
.hover:text-primary:hover {
    color: var(--primary);
}


/* 模态框样式 */
.fixed {
    position: fixed;
}
.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.bg-opacity-50 {
    background-color: rgba(0, 0, 0, 0.5);
}
.z-50 {
    z-index: 50;
}

.max-w-2xl {
    max-width: 42rem;
}
.mx-4 {
    margin-left: 1rem;
    margin-right: 1rem;
}
.overflow-hidden {
    overflow: hidden;
}
.transform {
    transform: scale(0.95);
}
.transition-all {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.scale-100 {
    transform: scale(1);
}
.scale-95 {
    transform: scale(0.95);
}
.p-6 {
    padding: 1.5rem;
}
.border-b {
    border-bottom-width: 1px;
}
.border-neutral-200 {
    border-color: var(--neutral-200);
}
.justify-between {
    justify-content: space-between;
}
.text-xl {
    font-size: 1.25rem;
}
.hover:text-neutral-800 {
    transition: color 0.3s;
}
.hover:text-neutral-800:hover {
    color: var(--neutral-800);
}
.text-xl {
    font-size: 1.25rem;
}
.grid {
    display: grid;
}

.md:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.gap-4 {
    gap: 1rem;
}
.mb-4 {
    margin-bottom: 1rem;
}
.block {
    display: block;
}
.text-sm {
    font-size: 0.875rem;
}
.font-medium {
    font-weight: 500;
}
.mb-1 {
    margin-bottom: 0.25rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}
.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}
.border {
    border-width: 1px;
}
.border-neutral-300 {
    border-color: var(--neutral-300);
}
.rounded-lg {
    border-radius: 0.5rem;
}
.focus:ring-2 {
    outline: none;
}
.focus:ring-primary/50 {
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}
.focus:border-primary {
    border-color: var(--primary);
}
.outline-none {
    outline: none;
}
.mb-6 {
    margin-bottom: 1.5rem;
}
.w-4 {
    width: 1rem;
}
.h-4 {
    height: 1rem;
}
.text-primary {
    color: var(--primary);
}
.border-neutral-300 {
    border-color: var(--neutral-300);
}
.rounded {
    border-radius: 0.25rem;
}
.ml-2 {
    margin-left: 0.5rem;
}


.hover:bg-neutral-50 {
    transition: background-color 0.3s;
}
.hover:bg-neutral-50:hover {
    background-color: #f9fafb;
}
.bg-primary {
    background-color: var(--primary);
}
.hover:bg-blue-600 {
    transition: background-color 0.3s;
}
.hover:bg-blue-600:hover {
    background-color: #2563eb;
}
.text-white {
    color: white;
}

/* 地址卡片内部样式 */
.border {
    border-width: 1px;
}
.border-primary {
    border-color: var(--primary);
}
.bg-blue-50 {
    background-color: #eff6ff;
}
.border-neutral-200 {
    border-color: var(--neutral-200);
}
.hover:border-primary/50 {
    transition: border-color 0.3s;
}
.hover:border-primary/50:hover {
    border-color: rgba(59, 130, 246, 0.5);
}
.hover:bg-blue-50/50 {
    transition: background-color 0.3s;
}
.hover:bg-blue-50/50:hover {
    background-color: rgba(239, 246, 255, 0.5);
}
.rounded-lg {
    border-radius: 0.5rem;
}
.p-4 {
    padding: 1rem;
}
.cursor-pointer {
    cursor: pointer;
}
.group {
    position: relative;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.font-medium {
    font-weight: 500;
}
.mr-2 {
    margin-right: 0.5rem;
}
.text-sm {
    font-size: 0.875rem;
}
.ml-2 {
    margin-left: 0.5rem;
}
.px-2 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}
.py-0.5 {
    padding-top: 0.125rem;
    padding-bottom: 0.125rem;
}
.bg-primary/10 {
    background-color: rgba(59, 130, 246, 0.1);
}
.text-primary {
    color: var(--primary);
}
.text-xs {
    font-size: 0.75rem;
}
.rounded-full {
    border-radius: 9999px;
}

.opacity-0 {
    opacity: 0;
}
.group-hover:opacity-100 {
    transition: opacity 0.3s;
}
.group:hover .group-hover:opacity-100 {
    opacity: 1;
}
.transition-opacity {
    transition: opacity 0.3s ease;
}
.text-neutral-500 {
    color: var(--neutral-500);
}
.hover:text-primary {
    transition: color 0.3s;
}
.hover:text-primary:hover {
    color: var(--primary);
}
.hover:text-red-500 {
    transition: color 0.3s;
}
.hover:text-red-500:hover {
    color: #ef4444;
}
.text-neutral-700 {
    color: var(--neutral-700);
}
.mb-3 {
    margin-bottom: 0.75rem;
}


/* 地址卡片样式（新增） */
.address-card {
    transition: all 0.3s ease;
}
.address-card .edit-delete-buttons {
    opacity: 0;
    transition: opacity 0.3s ease;
}
.address-card.selected .edit-delete-buttons {
    opacity: 1; /* 选中地址常态显示按钮 */
}

/* 优化后的地址卡片样式 */
.edit-delete-buttons {
    opacity: 0;
    transition: opacity 0.3s ease;
}
.address-card:hover:not(.selected) .edit-delete-buttons,
.selected .edit-delete-buttons {
    opacity: 1;
}
