/* 移动端样式 */
.mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 44px;
    background: #fff;
    display: flex;
    align-items: center;
    padding: 0 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    z-index: 1000;
}

.mobile-header .back-btn {
    font-size: 20px;
    color: #333;
    text-decoration: none;
}

.mobile-header h1 {
    flex: 1;
    text-align: center;
    font-size: 16px;
    margin: 0;
    color: #333;
}

/* 地址列表样式 */
.address-list {
    margin-top: 60px;
}

/* PC端头部 */
.pc-header {
    margin-top: 15px;
    background: #fff;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pc-header h2 {
    font-size: 20px;
    margin: 0;
    color: #333;
}

/* 移动端默认垂直布局 */
.address-item {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: relative;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.address-item.default {
    border-color: #d95517;
    background: #fff9f7;
}

.address-item.default::before {
    content: "{:lang('default')}";
    position: absolute;
    top: 15px;
    right: 15px;
    background: #d95517;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.address-item.default .receiver {
    color: #d95517;
}

.address-item.default .address-actions {
    border-top-color: #fbe5dd;
}

.address-info {
    margin-bottom: 15px;
}

.receiver {
    margin-bottom: 10px;
    color: #333;
    font-size: 16px;
}

.receiver .phone {
    color: #666;
    margin-left: 15px;
}

.address-detail {
    color: #666;
    line-height: 1.5;
}

.address-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
}

.address-action {
    cursor: pointer;
    color: #666;
    transition: color 0.3s;
}

.address-action:hover {
    color: #d95517;
}

.address-action i {
    margin-right: 5px;
}

/* 移动端新增地址按钮 */
.mobile-add-address {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: #fff;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.05);
    text-align: center;
    z-index: 1000;
}

.mobile-add-address .btn {
    background: #d95517;
    color: #fff;
    width: 90%;
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mobile-add-address .btn i {
    margin-right: 5px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .address-list {
        margin-bottom: 90px; /* 为底部按钮留出空间 */
    }
}

@media (min-width: 769px) {
    .address-list {
        margin-top: 0;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 0;
    }

    .address-item {
        margin-bottom: 0;
        padding: 20px;
    }

    .address-item.default::before {
        top: 20px;
        right: 20px;
    }

    .receiver {
        font-size: 18px;
    }

    .address-detail {
        font-size: 16px;
    }
}

/* 左侧导航样式继承自style.css */
