/* 基础容器 */
.address-manager-container {
    width: 800px;
    min-height: 700px;
    float: left;
    padding: 20px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    box-sizing: border-box;
    background: #f5f7fa;
}
.mp-main {
    float: left;
    width: 800px;
    min-height: 700px;
    padding: 20px;
    background: #f5f7fa;
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    transition: all 0.3s ease;
    float: left;
    box-sizing: border-box;
}

/* 头部样式 */
.address-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.address-title {
    font-size: 24px;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
}

.add-address-btn {
    padding: 10px 20px;
    background-color: #4299e1;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.add-address-btn:hover {
    background-color: #3182ce;
}

/* 地址通知 */
.address-notice {
    background: #fff;
    color: #2b6cb0;
    padding: 12px 20px;
    margin-bottom: 20px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.notice-icon {
    font-style: normal;
    font-weight: bold;
}

/* 地址网格布局 */
.address-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 0;
    list-style: none;
}

/* 地址卡片 */
.address-card {
    /*border: 1px solid #e2e8f0;*/
    border-radius: 8px;
    padding: 20px;
    transition: all 0.2s;
    background: white;
}

.address-card:hover {
    /*border-color: #cbd5e0;*/
    /*border-color: #4299e1;*/
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.default-address {
    /*border: 1px solid #4299e1;*/
    border: 1px solid #cbd5e0;
    background-color: #ebf8ff;
}

/* 地址信息 */
.address-info {
    margin-bottom: 15px;
}

.receiver {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #2d3748;
}

.address-line, .contact-info {
    margin: 8px 0;
    font-size: 14px;
    color: #4a5568;
    line-height: 1.5;
}

.default-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #48bb78;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-top: 10px;
}

.tag-icon {
    font-style: normal;
    font-size: 10px;
}

/* 操作按钮 */
.address-actions {
    display: flex;
    gap: 10px;
    border-top: 1px solid #edf2f7;
    padding-top: 15px;
}

.edit-btn, .delete-btn {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.edit-btn {
    background: #e2e8f0;
    color: #4a5568;
    text-decoration: none;
}

.edit-btn:hover {
    background: #cbd5e0;
}

.delete-btn {
    background: #fed7d7;
    color: #c53030;
}

.delete-btn:hover {
    background: #feb2b2;
}

/* 空状态 */
.empty-address {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 8px;
    border: 1px dashed #cbd5e0;
    color: #718096;
}

.empty-icon {
    font-size: 40px;
    margin-bottom: 15px;
    display: block;
}

.empty-address p {
    margin-bottom: 20px;
    font-size: 16px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .address-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .add-address-btn {
        width: 100%;
        text-align: center;
    }
    
    .address-grid {
        grid-template-columns: 1fr;
    }
}




/* 基础样式 - 与列表页面保持一致 */
.address-manager-container {
    width: 800px;
    min-height: 700px;
    float: left;
    padding: 20px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    box-sizing: border-box;
    background: #f5f7fa;
}

.address-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.edit-address-title {
    font-size: 24px;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-subtitle {
    font-size: 14px;
    color: #718096;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #4a5568;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.back-btn:hover {
    color: #4299e1;
}

.arrow-icon {
    font-style: normal;
}

/* 表单容器 */
.address-edit-wrapper {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* 表单网格 */
.form-grid {
    display: grid;
    grid-gap: 20px;
}

/* 表单字段 */
.form-field {
    margin-bottom: 15px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #4a5568;
    font-size: 14px;
}

.input-wrapper {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: #f8fafc;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    background-color: #fff;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

/*.input-focused .input-focus-line {*/
/*    transform: scaleX(1);*/
/*}*/

/*.input-focus-line {*/
/*    position: absolute;*/
/*    bottom: 0;*/
/*    left: 0;*/
/*    width: 100%;*/
/*    height: 2px;*/
/*    background: #4299e1;*/
/*    transform: scaleX(0);*/
/*    transform-origin: left;*/
/*    transition: transform 0.3s ease;*/
/*}*/

/* 地区选择器 */
.distpicker-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.select-wrapper {
    position: relative;
}

.address-select {
    width: 100%;
    padding: 12px 16px;
    padding-right: 36px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    appearance: none;
    background-color: #f8fafc;
    transition: all 0.3s ease;
}

.address-select:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
    background-color: #fff;
}

.select-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #718096;
    pointer-events: none;
}

/* 复选框 */
.checkbox-field {
    margin-top: 10px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-left: 32px;
}

.styled-checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    left: 0;
    top: 0;
    height: 20px;
    width: 20px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.checkbox-container:hover .checkmark {
    background-color: #ebf8ff;
}

.styled-checkbox:checked ~ .checkmark {
    background-color: #4299e1;
    border-color: #4299e1;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.styled-checkbox:checked ~ .checkmark:after {
    display: block;
}

.checkbox-label {
    margin-left: 8px;
    color: #4a5568;
    font-size: 14px;
}

/* 表单操作按钮 */
.form-actions {
    margin-top: 25px;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid #edf2f7;
}

.primary-button {
    padding: 12px 24px;
    background-color: #4299e1;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.primary-button:hover {
    background-color: #3182ce;
}

.secondary-button {
    padding: 12px 24px;
    background-color: #e2e8f0;
    color: #4a5568;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.secondary-button:hover {
    background-color: #cbd5e0;
}

.save-icon {
    font-style: normal;
    font-size: 16px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .address-manager-container {
        width: 100%;
        padding: 15px;
    }
    
    .distpicker-container {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column-reverse;
    }
    
    .primary-button, .secondary-button {
        width: 100%;
        justify-content: center;
    }
}