/* 个人中心页面样式 */
.profile-main {
    margin-top: 90px; /* 为固定导航栏留出空间 */
}

.profile-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 30px;
    min-height: calc(100vh - 120px);
}

/* 侧边栏样式 */
.profile-sidebar {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    height: fit-content;
    position: sticky;
    top: 20px;
}

/* 用户信息卡片 */
.user-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 30px 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.user-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    transform: rotate(45deg);
}

.avatar-container {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.avatar-upload-btn {
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 32px;
    height: 32px;
    background: #fff;
    border: none;
    border-radius: 50%;
    color: #667eea;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 3;
}

.avatar-upload-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.user-name {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    position: relative;
    z-index: 2;
}

.user-role {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
    position: relative;
    z-index: 2;
}

/* 导航菜单 */
.profile-nav {
    padding: 0;
}

.nav-item {
    border-bottom: 1px solid #f0f0f0;
}

.nav-item:last-child {
    border-bottom: none;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 18px 25px;
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 500;
}

.nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: #667eea;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background: #f8f9ff;
    color: #667eea;
    transform: translateX(8px);
}

.nav-link:hover::before,
.nav-link.active::before {
    transform: scaleY(1);
}

.nav-link i {
    margin-right: 12px;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

/* 主内容区 */
.profile-main {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* 标签页导航 */
.tab-nav {
    display: none; /* 隐藏，因为使用侧边栏导航 */
}

/* 内容区域 */
.tab-content {
    display: none;
    padding: 30px;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 内容头部 */
.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.content-header h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
    position: relative;
}

.content-header h2::after {
    content: '';
    position: absolute;
    bottom: -22px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.status-note {
    color: #666;
    font-size: 0.9rem;
    font-style: italic;
}

/* 表单样式 */
.info-form {
    margin-top: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: #555;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.form-group input[readonly] {
    background: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
}

/* 按钮样式 */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    text-align: center;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #f8f9fa;
    color: #6c757d;
    border: 2px solid #e9ecef;
}

.btn-secondary:hover {
    background: #e9ecef;
    color: #495057;
    transform: translateY(-1px);
}

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

/* 状态徽章 */
.status-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.status-pending {
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
    color: #e17055;
}

.status-badge.status-approved {
    background: linear-gradient(135deg, #55efc4 0%, #00b894 100%);
    color: #00695c;
}

.status-badge.status-rejected {
    background: linear-gradient(135deg, #fd79a8 0%, #e84393 100%);
    color: #ad1457;
}

/* 文件显示 */
.file-display {
    margin-top: 8px;
}

.file-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.file-link:hover {
    color: #764ba2;
    transform: translateX(4px);
}

/* 筛选组 */
.filter-group {
    display: flex;
    gap: 15px;
    align-items: center;
}

.filter-group select {
    padding: 8px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: #fff;
    color: #495057;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 投标列表 */
.bids-list {
    margin-top: 20px;
}

.bid-item {
    background: #f8f9ff;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.bid-item:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.bid-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.bid-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 5px 0;
}

.bid-date {
    color: #666;
    font-size: 0.9rem;
}

.bid-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.bid-info-item {
    display: flex;
    flex-direction: column;
}

.bid-info-label {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.bid-info-value {
    color: #2c3e50;
    font-weight: 600;
}

/* 安全设置 */
.security-form {
    margin-top: 20px;
}

.security-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    background: #f8f9ff;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.security-item:hover {
    border-color: #667eea;
    transform: translateY(-1px);
}

.security-info h4 {
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.security-info p {
    color: #666;
    margin: 0;
    font-size: 0.95rem;
}

/* 投标文件样式 */
.bid-files {
    margin-top: 15px;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.file-item:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

.file-info {
    display: flex;
    align-items: center;
    flex: 1;
}

.file-info i {
    font-size: 1.5rem;
    margin-right: 12px;
    color: #6c757d;
}

.file-info .fa-file-pdf {
    color: #dc3545;
}

.file-info .fa-file-word {
    color: #0d6efd;
}

.file-info .fa-file-image {
    color: #198754;
}

.file-info .fa-file-archive {
    color: #fd7e14;
}

.file-details {
    display: flex;
    flex-direction: column;
}

.file-name {
    font-weight: 500;
    color: #212529;
    margin-bottom: 2px;
}

.file-size {
    font-size: 0.85rem;
    color: #6c757d;
}

.file-actions {
    margin-left: 15px;
}

.no-files {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 0;
}

/* 按钮样式优化 */
.btn-sm {
    padding: 6px 12px;
    font-size: 0.875rem;
    border-radius: 6px;
}

.btn-outline {
    background: transparent;
    border: 1px solid #6c757d;
    color: #6c757d;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: #6c757d;
    color: #fff;
    text-decoration: none;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .profile-container {
        grid-template-columns: 280px 1fr;
        gap: 20px;
        padding: 15px;
    }
    
    .user-card {
        padding: 25px 20px;
    }
    
    .user-avatar {
        width: 70px;
        height: 70px;
    }
    
    .nav-link {
        padding: 15px 20px;
    }
    
    .tab-content {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .profile-container {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 10px;
    }
    
    .profile-sidebar {
        position: static;
        order: 2;
    }
    
    .profile-main {
        order: 1;
    }
    
    .user-card {
        padding: 20px;
    }
    
    .user-name {
        font-size: 1.2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .content-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .content-header h2 {
        font-size: 1.5rem;
    }
    
    .bid-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .bid-info {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .security-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        text-align: left;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .tab-content {
        padding: 20px 15px;
    }
    
    .user-card {
        padding: 15px;
    }
    
    .user-avatar {
        width: 60px;
        height: 60px;
    }
    
    .user-name {
        font-size: 1.1rem;
    }
    
    .nav-link {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .content-header h2 {
        font-size: 1.3rem;
    }
    
    .bid-item {
        padding: 15px;
    }
    
    .security-item {
        padding: 20px 15px;
    }
}

/* 加载动画 */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    color: #666;
}

.loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #e9ecef;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-state i {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: #999;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.empty-state p {
    color: #bbb;
    font-size: 0.95rem;
}