/* 个人中心整体布局 */
.profile-container {
    padding: 40px 0;
    margin-top: 80px;
    min-height: calc(100vh - 80px - 200px);
    background-color: #f5f5f5;
}

.profile-container .container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

/* 侧边栏样式 */
.sidebar {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 100px;
    height: fit-content;
}

.user-info {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.avatar-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-upload {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.6);
    padding: 5px;
    border-bottom-left-radius: 60px;
    border-bottom-right-radius: 60px;
    opacity: 0;
    transition: opacity 0.3s;
}

.avatar-wrapper:hover .avatar-upload {
    opacity: 1;
}

.avatar-upload input {
    display: none;
}

.avatar-upload label {
    color: white;
    font-size: 12px;
    cursor: pointer;
}

.username {
    font-size: 20px;
    color: #333;
    margin: 10px 0 5px;
}

.user-level {
    color: #DE2910;
    font-size: 14px;
}

.profile-nav {
    margin-top: 20px;
}

.profile-nav a {
    display: block;
    padding: 12px 15px;
    color: #666;
    text-decoration: none;
    border-radius: 4px;
    margin-bottom: 5px;
    transition: all 0.3s;
}

.profile-nav a:hover,
.profile-nav a.active {
    background: #DE2910;
    color: white;
}

/* 主内容区样式 */
.main-content {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #DE2910;
    outline: none;
}

.modify-btn {
    padding: 5px 15px;
    background: #FFD700;
    border: none;
    border-radius: 4px;
    margin-left: 10px;
    cursor: pointer;
}

.save-btn {
    background: #DE2910;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.save-btn:hover {
    background: #c62410;
}

/* 订单列表样式 */
.order-item {
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
}

.order-header {
    background: #f9f9f9;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-id {
    color: #666;
    font-size: 14px;
}

.order-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
}

.order-status.completed {
    background: #e8f5e9;
    color: #4caf50;
}

.order-content {
    padding: 20px;
    display: grid;
    grid-template-columns: 200px 1fr auto;
    gap: 20px;
    align-items: center;
}

.order-content img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
}

.order-info h4 {
    margin: 0 0 10px;
    font-size: 18px;
}

.order-date {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

.order-price {
    color: #DE2910;
    font-size: 18px;
    font-weight: bold;
}

.order-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-review,
.btn-detail {
    padding: 8px 20px;
    border: 1px solid #DE2910;
    border-radius: 4px;
    background: white;
    color: #DE2910;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-review:hover,
.btn-detail:hover {
    background: #DE2910;
    color: white;
}

/* 时间轴样式 */
.trip-timeline {
    position: relative;
    padding-left: 30px;
}

.timeline-item {
    position: relative;
    padding-bottom: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #eee;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: -34px;
    top: 10px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
}

.timeline-item.active::after {
    background: #DE2910;
}

.timeline-date {
    margin-bottom: 10px;
}

.timeline-date .date {
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.timeline-date .year {
    color: #666;
    margin-left: 5px;
}

.timeline-content {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
}

.timeline-content h4 {
    margin: 0 0 10px;
}

.timeline-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

/* 设置组样式 */
.settings-group {
    margin-bottom: 30px;
}

.settings-group h4 {
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

/* 开关按钮样式 */
.switch-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    cursor: pointer;
}

.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
    background: #ddd;
    border-radius: 20px;
    transition: background 0.3s;
}

.switch-item input:checked + .switch {
    background: #DE2910;
}

.switch::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: white;
    top: 1px;
    left: 1px;
    transition: transform 0.3s;
}

.switch-item input:checked + .switch::after {
    transform: translateX(20px);
}

.switch-item input {
    display: none;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .profile-container .container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        margin-bottom: 20px;
    }

    .order-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .order-actions {
        flex-direction: row;
        justify-content: center;
    }
} 