/* 编辑地址页面专用样式 */

/* 地址编辑页面独立的page-container样式 */
/* 非移动端设置padding为20px，移动端保持默认 */
@media (min-width: 768px) {
    .page-container {
        padding: 20px !important;
    }
}

/* 左侧菜单栏样式 */
.sidebar-nav {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), #ff6b6b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: white;
    font-size: 32px;
}

.sidebar-nav h5 {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-menu li {
    margin-bottom: 8px;
}

.nav-menu a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #666;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.nav-menu a:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
}

.nav-menu a.active {
    background-color: var(--primary-color);
    color: white;
}

.nav-menu a i {
    width: 20px;
    margin-right: 12px;
    text-align: center;
}

/* 地址标签按钮样式 */
.address-tag.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 表单组间距 */
.form-group {
    margin-bottom: 24px;
}

/* 表单控件焦点样式 */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 105, 0, 0.1);
}

/* 必填字段标识 */
.text-danger {
    color: #dc3545 !important;
}

/* 背景色样式 */
.bg-light {
    background-color: #f8f9fa !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    /* iPad mini 768尺寸调整 */
    .sidebar-nav {
        padding: 20px 15px;
    }
}

@media (max-width: 767px) {
    /* 移动端隐藏左侧菜单 */
    .col-md-3 {
        display: none;
    }
    
    .col-md-9 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    /* 手机端去掉卡片边框 */
    .card-custom {
        border: none;
        box-shadow: none;
    }
    
    /* 手机端三个地址下拉选择放一行显示 */
    .form-group .row .col-md-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}
