/**
 * YF User - 7Magic风格前端样式
 * 
 * @package YFUser
 * @since 1.0.0
 */

/* 基础重置和字体 */
.yfuser-dashboard,
.yfuser-dashboard * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.yfuser-dashboard {
    font-family: 'Inter', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    min-height: 100vh;
    color: #1e293b;
    line-height: 1.6;
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* 容器和布局 */
.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 22px;
}

/* 头部区域 - 粉色风格 */
.dashboard-header {
    background: linear-gradient(135deg, #fff2ed 0%, #fed7c3 50%, #fecaca 100%);
    border-bottom: none;
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 24px 0;
    box-shadow: 0 4px 20px rgba(255, 242, 237, 0.25);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 22px;
}

.site-logo img {
    height: 44px;
    width: auto;
}

.welcome-section {
    flex: 1;
    text-align: center;
    margin: 0 40px;
}

.welcome-section h1 {
    font-size: 32px;
    font-weight: 700;
    color: #7c2d12;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.user-greeting {
    font-size: 19px;
    color: #9a3412;
    margin-bottom: 4px;
    font-weight: 400;
}

.site-description {
    font-size: 17px;
    color: #a16207;
    font-weight: 400;
}

.header-actions .btn {
    background: rgba(124, 45, 18, 0.1);
    color: #7c2d12;
    border: 2px solid rgba(124, 45, 18, 0.2);
    border-radius: 25px;
    padding: 12px 24px;
    font-size: 17px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.header-actions .btn:hover {
    background: rgba(124, 45, 18, 0.15);
    border-color: rgba(124, 45, 18, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 45, 18, 0.2);
    color: #7c2d12;
}

/* 导航菜单 - 粉色风格 */
.dashboard-nav {
    background: white;
    border-radius: 20px;
    margin: 30px auto;
    max-width: 1200px;
    padding: 0 22px;
    box-shadow: 0 8px 32px rgba(255, 242, 237, 0.2);
    border: 1px solid rgba(254, 215, 195, 0.3);
}

.nav-tabs {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.nav-tabs::-webkit-scrollbar {
    display: none;
}

.nav-tab {
    display: flex;
    align-items: center;
    padding: 20px 24px;
    text-decoration: none;
    color: #64748b;
    font-size: 17px;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    position: relative;
    border-radius: 12px 12px 0 0;
}

.nav-tab i {
    margin-right: 8px;
    font-size: 20px;
}

.nav-tab:hover {
    color: #ea580c;
    background: linear-gradient(135deg, rgba(255, 242, 237, 0.3), rgba(254, 215, 195, 0.3));
}

.nav-tab.active {
    color: #ea580c;
    border-bottom-color: #ea580c;
    background: linear-gradient(135deg, rgba(255, 242, 237, 0.5), rgba(254, 215, 195, 0.5));
    box-shadow: 0 -2px 8px rgba(234, 88, 12, 0.15);
}

/* 主要内容区域 */
.dashboard-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 22px 60px;
}

.tab-pane {
    display: none;
    animation: fadeInUp 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.tab-pane.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 卡片设计 - 粉色风格 */
.dashboard-card {
    background: white;
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 8px 32px rgba(255, 242, 237, 0.15);
    border: 1px solid rgba(254, 215, 195, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #fff2ed, #fed7c3, #fecaca);
}

.dashboard-card:hover {
    box-shadow: 0 12px 48px rgba(255, 242, 237, 0.25);
    transform: translateY(-4px);
    border-color: rgba(254, 215, 195, 0.3);
}

.card-header {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(254, 215, 195, 0.2);
}

.card-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
    background: linear-gradient(135deg, #ea580c, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-header p {
    font-size: 17px;
    color: #64748b;
    font-weight: 400;
}

/* 网格布局 */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

/* 用户信息卡片 */
.user-info-card .card-body {
    display: flex;
    align-items: center;
    gap: 24px;
}

.user-avatar {
    position: relative;
}

.user-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #f5f5f7;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.avatar-upload {
    position: absolute;
    bottom: -5px;
    right: -5px;
}

.avatar-upload .btn {
    background: #007aff;
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.avatar-upload .btn:hover {
    background: #0051d5;
    transform: scale(1.1);
}

.user-details h4 {
    font-size: 22px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 8px;
}

.user-details p {
    font-size: 17px;
    color: #86868b;
    margin-bottom: 4px;
}

/* 统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: #f5f5f7;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.stat-item:hover {
    background: #e8e8ed;
    transform: scale(1.02);
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #ea580c, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.stat-label {
    font-size: 15px;
    color: #64748b;
    font-weight: 500;
}

/* 表单样式 - 7Magic风格 */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 17px;
    font-weight: 500;
    color: #1d1d1f;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 16px 20px;
    border: 1.5px solid #d2d2d7;
    border-radius: 12px;
    font-size: 17px;
    background: white;
    color: #1d1d1f;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    -webkit-appearance: none;
    appearance: none;
}

.form-control:focus {
    outline: none;
    border-color: #007aff;
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
    transform: scale(1.01);
}

.form-control::placeholder {
    color: #86868b;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

select.form-control {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2386868b' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 16px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 48px;
}

.form-help {
    font-size: 15px;
    color: #86868b;
    margin-top: 8px;
    display: block;
}

/* 按钮样式 - 7Magic风格 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border: none;
    border-radius: 25px;
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 56px;
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #ea580c 0%, #f97316 50%, #fb923c 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(234, 88, 12, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #dc2626 0%, #ea580c 50%, #f97316 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(234, 88, 12, 0.4);
    color: white;
}

.btn-secondary {
    background: #f8fafc;
    color: #1e293b;
    border: 2px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    background: transparent;
    color: #ea580c;
    border: 2px solid #ea580c;
}

.btn-outline:hover {
    background: linear-gradient(135deg, #ea580c, #f97316);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(234, 88, 12, 0.3);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 15px;
    min-height: 36px;
    border-radius: 8px;
}

/* 订单信息样式 */
.order-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.order-item {
    background: #f5f5f7;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.order-item:hover {
    background: #e8e8ed;
    transform: scale(1.01);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.order-number {
    font-size: 17px;
    font-weight: 600;
    color: #1d1d1f;
}

.order-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.order-status.completed {
    background: #d1f2eb;
    color: #00875a;
}

.order-status.processing {
    background: #fff3cd;
    color: #856404;
}

.order-status.pending {
    background: #f8d7da;
    color: #721c24;
}

.order-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    font-size: 15px;
    color: #86868b;
}

.order-detail-item {
    display: flex;
    flex-direction: column;
}

.order-detail-label {
    font-weight: 500;
    margin-bottom: 4px;
}

.order-detail-value {
    font-weight: 400;
    color: #1d1d1f;
}

/* 活动列表 */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: #f5f5f7;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.activity-item:hover {
    background: #e8e8ed;
}

.activity-icon {
    width: 40px;
    height: 40px;
    background: #007aff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-icon i {
    color: white;
    font-size: 16px;
}

.activity-content {
    flex: 1;
}

.activity-content p {
    font-size: 17px;
    color: #1d1d1f;
    margin-bottom: 4px;
    line-height: 1.4;
}

.activity-time {
    font-size: 15px;
    color: #86868b;
    font-weight: 400;
}

/* 安全提醒 */
.security-tips {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.tip-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f5f5f7;
    border-radius: 8px;
}

.tip-item i {
    color: #34c759;
    font-size: 16px;
}

.tip-item span {
    font-size: 15px;
    color: #1d1d1f;
}

/* 信息表格 */
.info-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.info-table td {
    padding: 12px 0;
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.1);
    font-size: 15px;
}

.info-table td:first-child {
    color: #86868b;
    font-weight: 500;
    width: 40%;
}

.info-table td:last-child {
    color: #1d1d1f;
    font-weight: 400;
}

/* 复选框样式 */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 17px;
    color: #1d1d1f;
    padding: 12px;
    border-radius: 8px;
    transition: background-color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.checkbox-label:hover {
    background: #f5f5f7;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    border: 2px solid #d2d2d7;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    position: relative;
    -webkit-appearance: none;
    appearance: none;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.checkbox-label input[type="checkbox"]:checked {
    background: #007aff;
    border-color: #007aff;
}

.checkbox-label input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* 页脚 */
.dashboard-footer {
    background: white;
    border-top: 0.5px solid rgba(0, 0, 0, 0.1);
    padding: 40px 0;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 22px;
}

.footer-content p {
    font-size: 15px;
    color: #86868b;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 15px;
    color: #007aff;
    text-decoration: none;
    transition: color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.footer-links a:hover {
    color: #0051d5;
}

/* 通知系统 */
.notifications-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    max-width: 400px;
}

.notification {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-left: 4px solid #007aff;
    animation: slideInRight 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.notification.success {
    border-left-color: #34c759;
}

.notification.error {
    border-left-color: #ff3b30;
}

.notification.warning {
    border-left-color: #ff9500;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 头像上传区域 */
.avatar-upload-section {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-bottom: 40px;
    padding: 32px;
    background: #f5f5f7;
    border-radius: 18px;
    border: 2px dashed #d2d2d7;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.avatar-upload-section:hover,
.avatar-upload-section.dragover {
    border-color: #007aff;
    background: rgba(0, 122, 255, 0.04);
}

.current-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.avatar-actions {
    flex: 1;
}

.avatar-actions .btn {
    margin-bottom: 12px;
}

/* 消费统计样式 */
.spending-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.spending-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #f5f5f7;
    border-radius: 12px;
}

.spending-label {
    font-size: 17px;
    color: #86868b;
    font-weight: 500;
}

.spending-value {
    font-size: 19px;
    color: #1d1d1f;
    font-weight: 600;
}

/* 会员等级样式 */
.member-level {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.member-level.bronze {
    background: #d4b5a0;
    color: #8b4513;
}

.member-level.silver {
    background: #e6e6fa;
    color: #4b0082;
}

.member-level.gold {
    background: #ffd700;
    color: #b8860b;
}

.member-level.diamond {
    background: linear-gradient(135deg, #b9f2ff 0%, #66d9ef 100%);
    color: #0066cc;
}

/* 订单商品样式 */
.order-items {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.order-item-product {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f7;
}

.order-item-product:last-child {
    border-bottom: none;
}

.product-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    flex: 1;
}

.product-name {
    font-size: 15px;
    font-weight: 500;
    color: #1d1d1f;
    margin-bottom: 4px;
}

.product-meta {
    font-size: 13px;
    color: #86868b;
}

.product-total {
    font-size: 17px;
    font-weight: 600;
    color: #1d1d1f;
}

.more-items {
    text-align: center;
    padding: 16px;
    font-size: 15px;
    color: #86868b;
    font-style: italic;
}

/* 订单详情页面样式 */
.order-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-item label {
    font-size: 15px;
    color: #86868b;
    font-weight: 500;
}

.info-item span {
    font-size: 17px;
    color: #1d1d1f;
    font-weight: 500;
}

.order-items-detailed {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.order-item-detailed {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: #f5f5f7;
    border-radius: 12px;
}

.order-item-detailed .product-image {
    width: 80px;
    height: 80px;
}

.product-details {
    flex: 1;
}

.product-details h5 {
    font-size: 17px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 8px;
}

.product-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.meta-item {
    font-size: 13px;
    color: #86868b;
}

.product-quantity,
.product-price {
    font-size: 15px;
    color: #1d1d1f;
    font-weight: 500;
    text-align: right;
    min-width: 80px;
}

/* 订单总计样式 */
.order-totals {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e8e8ed;
}

.totals-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 17px;
}

.totals-row.total {
    font-size: 19px;
    font-weight: 700;
    color: #007aff;
    border-top: 1px solid #e8e8ed;
    margin-top: 12px;
    padding-top: 20px;
}

/* 配送地址样式 */
.shipping-address p {
    margin-bottom: 8px;
    font-size: 17px;
    line-height: 1.5;
}

/* 订单备注样式 */
.order-note p {
    font-size: 17px;
    line-height: 1.6;
    color: #1d1d1f;
    background: #f5f5f7;
    padding: 20px;
    border-radius: 12px;
    margin: 0;
}

/* 订单历史样式 */
.history-summary {
    margin-bottom: 40px;
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.history-timeline {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.timeline-month {
    background: white;
    border-radius: 18px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.month-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.month-header h4 {
    font-size: 22px;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0;
}

.month-stats {
    font-size: 15px;
    color: #86868b;
}

.month-orders {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.timeline-order {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px;
    background: #f5f5f7;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.timeline-order:hover {
    background: #e8e8ed;
    transform: scale(1.01);
}

.order-date {
    font-size: 15px;
    color: #86868b;
    font-weight: 500;
    min-width: 50px;
}

.timeline-order .order-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 16px;
}

.timeline-order .order-number {
    font-size: 15px;
    font-weight: 600;
    color: #1d1d1f;
}

.timeline-order .order-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.timeline-order .order-total {
    font-size: 17px;
    font-weight: 600;
    color: #007aff;
}

/* 无订单状态 */
.yfuser-no-orders {
    text-align: center;
    padding: 60px 20px;
    color: #86868b;
}

.no-orders-icon {
    width: 80px;
    height: 80px;
    background: #f5f5f7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.no-orders-icon i {
    font-size: 32px;
    color: #86868b;
}

.yfuser-no-orders h3 {
    font-size: 24px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 12px;
}

.yfuser-no-orders p {
    font-size: 17px;
    margin-bottom: 24px;
}

/* 登录卡片样式 */
.yfuser-login-required {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 40px 20px;
}

.login-card {
    background: white;
    border-radius: 18px;
    padding: 48px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
}

.login-card h3 {
    font-size: 28px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 16px;
}

.login-card p {
    font-size: 17px;
    color: #86868b;
    margin-bottom: 32px;
}

.login-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.login-buttons .btn {
    flex: 1;
    max-width: 140px;
}

/* 加载状态 */
.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 2px solid #f5f5f7;
    border-top: 2px solid #007aff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 表单验证状态 */
.form-control.invalid {
    border-color: #ff3b30;
    box-shadow: 0 0 0 4px rgba(255, 59, 48, 0.1);
}

.form-control.valid {
    border-color: #34c759;
    box-shadow: 0 0 0 4px rgba(52, 199, 89, 0.1);
}

/* 密码强度指示器 */
.password-strength {
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

.password-strength.weak {
    background: #ffebee;
    color: #c62828;
}

.password-strength.medium {
    background: #fff3e0;
    color: #ef6c00;
}

.password-strength.strong {
    background: #e8f5e8;
    color: #2e7d32;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .dashboard-container,
    .header-content,
    .dashboard-content {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .welcome-section {
        margin: 0;
    }
    
    .welcome-section h1 {
        font-size: 28px;
    }
    
    .nav-tabs {
        padding: 0 16px;
    }
    
    .nav-tab {
        padding: 16px 20px;
        font-size: 15px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .dashboard-card {
        padding: 24px;
        border-radius: 16px;
    }
    
    .user-info-card .card-body {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
    
    .notifications-container {
        left: 16px;
        right: 16px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .welcome-section h1 {
        font-size: 24px;
    }
    
    .nav-tab {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .nav-tab i {
        margin-right: 6px;
        font-size: 16px;
    }
    
    .dashboard-card {
        padding: 20px;
        border-radius: 14px;
    }
    
    .card-header h3 {
        font-size: 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .btn {
        font-size: 15px;
        padding: 14px 24px;
        min-height: 48px;
    }
}
