/* User Page Styles - 优化版本 */
/* 注意：此文件依赖于 base.css，只包含用户页面特有的样式 */

body.user-page {
    font-family: 'Noto Serif SC', serif;
    padding: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.main-content {
    min-height: calc(100vh - 130px - 80px);
    padding: 0 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 10px 20px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 用户信息区域优化 */
.user-info {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 2rem;
    border-radius: 20px;
    margin-bottom: 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(26, 115, 232, 0.3);
}

/* 删除旋转动画，改为静态装饰 */
.user-info::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    /* 移除动画，保持静态 */
}

.user-details {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.avatar-container {
    position: relative;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.avatar-container:hover {
    transform: scale(1.05);
}

.avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.avatar-container:hover .avatar {
    transform: scale(1.1);
}

.user-text {
    flex: 1;
}

.user-text h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.user-text p {
    opacity: 0.95;
    font-size: 1rem;
    margin: 0;
}

/* 内容网格布局优化 */
.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

/* 左侧管理面板 - 修复布局问题 */
.control-panel {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* 快捷操作按钮框样式 */
.quick-actions-section {
    margin-bottom: 2.5rem;
}

.quick-actions {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 18px;
    padding: 26px 20px 20px 20px;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.08),
        0 4px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.quick-actions::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.quick-actions:hover::before {
    transform: scaleX(1);
}

.quick-actions:hover {
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.12),
        0 4px 8px rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.98);
}

.quick-actions h3 {
    margin: 0 0 15px 0;
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.quick-actions h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #1a73e8, #1557b0);
    border-radius: 2px;
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    overflow-x: auto;
    overflow-y: visible;
    padding-bottom: 8px;
    padding-top: 3px;
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 transparent;
}

.action-buttons::-webkit-scrollbar {
    height: 4px;
}

.action-buttons::-webkit-scrollbar-track {
    background: transparent;
}

.action-buttons::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 2px;
}

.action-buttons::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    background: #f8f9fa;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid #e9ecef;
    min-height: 60px;
    justify-content: center;
    border-color: #2751a0;
    border-width: 2.5px;
    flex-shrink: 0;
    min-width: 80px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(26, 115, 232, 0.1), transparent);
    transition: left 0.5s ease;
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:hover {
    background: #e3f2fd;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(26, 115, 232, 0.2);
    border-color: #1a73e8;
}

.action-btn span:first-child {
    font-size: 1.3rem;
    margin-bottom: 2px;
}

.action-btn span:last-child {
    font-size: 0.75rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
}

.section {
    background: white;
    border-radius: 18px;
    padding: 1.8rem;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.08),
        0 4px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.section:hover::before {
    transform: scaleX(1);
}

.section:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.12),
        0 8px 15px rgba(0, 0, 0, 0.08);
}

.section h3 {
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 600;
}

/* 表单样式优化 */
.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8fafc;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.1);
    background: white;
    transform: translateY(-1px);
}

.form-control[readonly] {
    background-color: #f1f5f9;
    color: #64748b;
    cursor: not-allowed;
}

/* 按钮样式优化 */
.btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    padding: 0.9rem 1.8rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(26, 115, 232, 0.3);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(26, 115, 232, 0.4);
}

.btn:active {
    transform: translateY(-1px);
}

/* 头像上传区域优化 */
.avatar-upload {
    border: 3px dashed #cbd5e1;
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    margin-bottom: 1.5rem;
}

.avatar-upload:hover {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(26, 115, 232, 0.05) 0%, rgba(26, 115, 232, 0.1) 100%);
    transform: scale(1.02);
}

.avatar-upload input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.avatar-preview {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    display: block;
    border: 4px solid var(--primary-color);
    box-shadow: 0 8px 25px rgba(26, 115, 232, 0.3);
    transition: all 0.3s ease;
}

.avatar-upload:hover .avatar-preview {
    transform: scale(1.05);
}

/* 车站展示区域优化 */
.stations-section {
    grid-column: 1 / -1;
    margin-top: 1rem;
}

.stations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.station-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    user-select: none;
}

.station-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.station-card:hover::before {
    transform: scaleX(1);
}

.station-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.station-card:active {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
    transition: all 0.1s ease;
}

.station-link-hint {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.station-card:hover .station-link-hint {
    opacity: 1;
    color: var(--primary-color);
}

.station-name {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
    line-height: 1.3;
}

.station-info {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 0.6rem;
    line-height: 1.4;
}

.station-info strong {
    color: #475569;
    font-weight: 600;
}

.station-description {
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.5;
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid #f1f5f9;
}

.no-stations {
    text-align: center;
    padding: 3rem 2rem;
    color: #64748b;
    font-style: italic;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 16px;
    border: 2px dashed #cbd5e1;
}

.no-stations p {
    margin: 0.5rem 0;
    font-size: 1rem;
}

/* 搜索框样式优化 */
.search-container {
    position: relative;
    margin-bottom: 1.5rem;
}

.search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #f8fafc;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.1), 0 4px 15px rgba(0, 0, 0, 0.1);
    background: white;
    transform: translateY(-2px);
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 1.3rem;
    pointer-events: none;
    transition: color 0.3s ease;
}

.search-input:focus + .search-icon {
    color: var(--primary-color);
}

/* 无搜索结果提示样式优化 */
.no-results {
    text-align: center;
    padding: 3rem 2rem;
    color: #64748b;
    font-style: italic;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-radius: 16px;
    border: 2px dashed #fecaca;
}

/* 管理员链接样式优化 */
.admin-link {
    display: inline-block;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    margin: 0.5rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    position: relative;
    overflow: hidden;
    min-width: 200px;
    text-align: center;
}

.admin-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.admin-link:hover::before {
    left: 100%;
}

.admin-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(16, 185, 129, 0.4);
}

/* 快捷操作区域按钮样式 */
.section .btn {
    min-width: 200px;
    text-align: center;
}

/* 会话信息样式优化 */
.session-info {
    text-align: center;
    margin-top: 2.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(26, 115, 232, 0.1) 0%, rgba(26, 115, 232, 0.05) 100%);
    border-radius: 16px;
    color: var(--text-color);
    border: 1px solid rgba(26, 115, 232, 0.2);
    font-size: 0.9rem;
}

/* 消息提示样式 */
.message {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    animation: slideIn 0.3s ease;
}

.message.success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border: 1px solid #10b981;
}

.message.error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border: 1px solid #ef4444;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计优化 */
@media (max-width: 1200px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .stations-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .control-panel {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }
    
    .action-buttons {
        gap: 10px;
    }
    
    .action-btn {
        min-width: 70px;
        padding: 10px 6px;
    }
}

@media (max-width: 992px) {
    .container {
        padding: 2rem;
        margin: 20px 10px;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .control-panel {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stations-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .quick-actions {
        padding: 24px 18px 18px 18px;
    }
    
    .action-buttons {
        gap: 8px;
    }
    
    .action-btn {
        min-width: 65px;
        padding: 8px 4px;
        min-height: 55px;
    }
    
    .action-btn span:first-child {
        font-size: 1.2rem;
    }
    
    .action-btn span:last-child {
        font-size: 0.7rem;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 0 10px;
    }
    
    .container {
        padding: 1.5rem;
        margin: 15px 5px;
        border-radius: 20px;
    }
    
    .user-info {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        padding: 1.5rem;
    }
    
    .user-details {
        flex-direction: column;
        gap: 1rem;
    }
    
    .avatar-container {
        width: 80px;
        height: 80px;
    }
    
    .user-text h2 {
        font-size: 1.5rem;
    }
    
    .control-panel {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stations-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .section {
        padding: 1.5rem;
    }
    
    .search-input {
        padding: 0.9rem 0.9rem 0.9rem 2.8rem;
    }
    
    .search-icon {
        left: 12px;
    }
    
    .quick-actions {
        padding: 20px 15px 15px 15px;
    }
    
    .action-buttons {
        gap: 6px;
    }
    
    .action-btn {
        min-width: 60px;
        padding: 6px 3px;
        min-height: 50px;
    }
    
    .action-btn span:first-child {
        font-size: 1.1rem;
    }
    
    .action-btn span:last-child {
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1rem;
        margin: 10px 5px;
    }
    
    .user-info {
        padding: 1.2rem;
    }
    
    .avatar-container {
        width: 70px;
        height: 70px;
    }
    
    .user-text h2 {
        font-size: 1.3rem;
    }
    
    .control-panel {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .section {
        padding: 1.2rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .station-card {
        padding: 1.2rem;
    }
    
    .station-card:active {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    }
    
    .station-link-hint {
        font-size: 0.7rem;
        margin-top: 8px;
    }
    
    .quick-actions {
        padding: 18px 12px 12px 12px;
    }
    
    .action-buttons {
        gap: 4px;
    }
    
    .action-btn {
        min-width: 55px;
        padding: 4px 2px;
        min-height: 45px;
    }
    
    .action-btn span:first-child {
        font-size: 1rem;
    }
    
    .action-btn span:last-child {
        font-size: 0.6rem;
    }
}

/* 禁用深色模式，强制使用浅色主题 */
@media (prefers-color-scheme: dark) {
    /* 不应用任何深色模式样式，保持浅色主题 */
} 