/* ============= 用户管理页面独立样式 ============= */

/* 用户页面容器样式 */
.user-view.full-width {
    margin: 0 !important;
    padding: 20px !important;
    background-color: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    max-width: none !important;
}

/* 用户信息卡片样式 */
.user-info-card {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 24px;
    color: white;
    margin-bottom: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.user-info-card.loading {
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #666;
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.avatar-text {
    font-size: 24px;
    font-weight: bold;
    color: white;
}

.user-details {
    flex: 1;
}

.user-details h3 {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 600;
}

.user-stats {
    display: flex;
    gap: 16px;
    align-items: center;
}

.vip-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.address-limit {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.user-actions {
    margin-left: 20px;
}

/* 登录需求卡片样式 */
.login-required-card {
    text-align: center;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 16px;
    padding: 40px 24px;
    color: white;
    margin-bottom: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.login-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.login-required-card h3 {
    margin: 0 0 12px 0;
    font-size: 24px;
    font-weight: 600;
}

.login-required-card p {
    margin: 0;
    opacity: 0.9;
    font-size: 16px;
    line-height: 1.5;
}

.login-required-card a {
    color: white;
    text-decoration: underline;
}

/* 功能介绍样式 */
.feature-intro {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
}

.feature-intro h3 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 20px;
    font-weight: 600;
}

.feature-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.feature-card {
    background: #f8f9fc;
    border-radius: 12px;
    padding: 24px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.feature-card.free-features {
    border-color: #27ae60;
    background: linear-gradient(135deg, #f8fff8 0%, #e8f5e8 100%);
}

.feature-card.premium-features {
    border-color: #3498db;
    background: linear-gradient(135deg, #f0f8ff 0%, #e3f2fd 100%);
}

.feature-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.feature-card h4 {
    margin: 0 0 16px 0;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
}

.feature-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}

.feature-card li {
    padding: 6px 0;
    font-size: 14px;
    line-height: 1.5;
}

.feature-note {
    font-size: 12px;
    color: #7f8c8d;
    font-style: italic;
    margin: 0;
    padding: 12px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

/* 地址管理区域样式 */
.user-view .section {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.user-view .section h3 {
    color: #2c3e50;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.section-title-wrapper {
    margin-bottom: 20px;
}

.section-title-wrapper h3 {
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.user-view .section h3 .address-stats {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: normal;
    margin-left: auto;
}

.address-stats span:not(.count-badge):not(.limit-badge) {
    font-size: 14px;
    color: #7f8c8d;
    font-weight: 500;
}

.address-stats .separator {
    color: #cbd5e0;
    font-weight: normal;
    margin: 0 4px;
}

.count-badge {
    background: #3498db;
    color: white;
    padding: 4px 10px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
    display: inline-block;
}

.limit-badge {
    background: #95a5a6;
    color: white;
    padding: 4px 10px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 500;
    min-width: 40px;
    text-align: center;
    display: inline-block;
}

.address-operations {
    margin-bottom: 24px;
}

.add-address-form {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.form-input {
    flex: 1;
    min-width: 200px;
    padding: 12px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.operation-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.user-view .btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.user-view .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.user-view .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.user-view .btn-primary:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.user-view .btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
}

.user-view .btn-secondary:hover {
    background: #cbd5e0;
}

.user-view .btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.user-view .btn-danger {
    background: #e53e3e;
    color: white;
}

.user-view .btn-danger:hover {
    background: #c53030;
}

.user-view .address-list-container {
    margin-top: 32px;
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    border: none;
    overflow: visible;
}

.address-list-container h4 {
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    padding-bottom: 16px;
    border-bottom: 2px solid #e1e8ed;
    display: flex;
    align-items: center;
    gap: 8px;
}

.address-list-container h4::before {
    content: '📋';
    font-size: 24px;
}

.user-view .address-list {
    max-height: none;
    overflow: visible;
    background: transparent;
}

.address-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #f8f9fc;
    border: 1px solid #e1e8ed;
    border-radius: 12px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.address-item:last-child {
    margin-bottom: 0;
}

.address-item:hover {
    background: #f0f4f8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.address-info {
    flex: 1;
}

.address-info .address {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 13px;
    color: #2d3748;
    font-weight: 600;
    margin-bottom: 4px;
    word-break: break-all;
}

.address-info .note {
    font-size: 12px;
    color: #718096;
    font-style: italic;
}

.address-actions {
    display: flex;
    gap: 8px;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #a0aec0;
    font-style: italic;
}

/* 步骤式说明样式 */
.help-steps {
    display: grid;
    gap: 20px;
}

.help-step {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    border-left: 4px solid #3498db;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.help-step:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #3498db;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h4 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
}

.step-content p {
    margin: 0;
    color: #7f8c8d;
    line-height: 1.6;
    font-size: 14px;
}

.help-content {
    background: #f8f9fc;
    border-radius: 12px;
    padding: 24px;
}

.help-content code {
    background: #e2e8f0;
    color: #2d3748;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 12px;
}

/* 加载指示器 */
.loading-spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-right: 6px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .user-view.full-width {
        padding: 12px !important;
    }
    
    .feature-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .user-info-card {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .user-avatar {
        margin-right: 0;
    }
    
    .user-stats {
        justify-content: center;
    }
    
    .user-actions {
        margin-left: 0;
    }
    
    .help-step {
        padding: 16px;
    }
    
    .step-number {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .user-view .section {
        padding: 16px;
        margin-bottom: 16px;
    }

    .user-view .section h3 {
        font-size: 18px;
        flex-wrap: wrap;
        gap: 12px;
    }

    .section-title-wrapper h3 {
        font-size: 18px;
        flex-wrap: wrap;
        gap: 8px;
    }

    .user-view .section h3 .address-stats {
        font-size: 12px;
        gap: 4px;
        width: 100%;
        justify-content: flex-start;
    }

    .address-stats span:not(.count-badge):not(.limit-badge) {
        font-size: 12px;
    }

    .address-stats .separator {
        margin: 0 2px;
    }

    .count-badge, .limit-badge {
        font-size: 12px;
        padding: 2px 8px;
        min-width: auto;
    }

    .add-address-form {
        flex-direction: column;
    }

    .form-input {
        min-width: auto;
    }

    .operation-buttons {
        justify-content: center;
    }

    .address-item {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
        padding: 16px;
    }

    .address-actions {
        width: 100%;
        justify-content: center;
    }

    .user-view .address-list-container {
        margin-top: 20px;
        padding: 16px;
    }
    
    .address-list-container h4 {
        font-size: 18px;
        margin-bottom: 16px;
    }
    
    .address-list-container h4::before {
        font-size: 20px;
    }
    
    .address-item {
        padding: 12px 16px;
        margin-bottom: 8px;
    }
}

/* 新的地址管理介绍样式 */
.address-management-intro {
    text-align: center;
    padding: 40px 24px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.address-management-intro .intro-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.address-management-intro h4 {
    margin: 0 0 16px 0;
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
}

.address-management-intro p {
    margin: 0 0 24px 0;
    font-size: 16px;
    color: #5a6c7d;
    line-height: 1.6;
}

.address-management-intro .feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
    text-align: left;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.address-management-intro .feature-list li {
    padding: 12px 0;
    font-size: 16px;
    color: #4a5568;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 12px;
}

.address-management-intro .feature-list li:last-child {
    border-bottom: none;
}

.address-management-intro .btn-large {
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
}

.address-management-intro .btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.6);
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

/* 响应式样式 */
@media (max-width: 768px) {
    .address-management-intro {
        padding: 24px 16px;
    }
    
    .address-management-intro .intro-icon {
        font-size: 48px;
    }
    
    .address-management-intro h4 {
        font-size: 22px;
    }
    
    .address-management-intro p {
        font-size: 14px;
    }
    
    .address-management-intro .feature-list li {
        font-size: 14px;
        padding: 8px 0;
    }
    
    .address-management-intro .btn-large {
        padding: 12px 24px;
        font-size: 14px;
    }
}

/* 地址数量统计样式 */
.address-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fc 0%, #e8ecf4 100%);
    border-radius: 12px;
    border: 1px solid #e1e8ed;
    transition: all 0.3s ease;
}

.summary-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.summary-icon {
    font-size: 36px;
    line-height: 1;
}

.summary-content {
    flex: 1;
}

.summary-value {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1;
    margin-bottom: 4px;
}

.summary-label {
    font-size: 14px;
    color: #718096;
    font-weight: 500;
}

.address-hint {
    text-align: center;
    padding: 16px;
    background: #f0f4f8;
    border-radius: 8px;
    color: #5a6c7d;
    font-size: 14px;
    border: 1px dashed #cbd5e0;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .user-view .address-list-container {
        margin-top: 20px;
        padding: 16px;
    }
    
    .address-list-container h4 {
        font-size: 18px;
        margin-bottom: 16px;
    }
    
    .address-list-container h4::before {
        font-size: 20px;
    }
    
    .address-item {
        padding: 12px 16px;
        margin-bottom: 8px;
    }
    
    .address-summary {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .summary-item {
        padding: 16px;
    }
    
    .summary-icon {
        font-size: 28px;
    }
    
    .summary-value {
        font-size: 24px;
    }
    
    .summary-label {
        font-size: 13px;
    }
    
    .address-hint {
        font-size: 13px;
        padding: 12px;
    }
} 