/* ============================================
   个人中心/工作台 - 专属样式
   设计理念：驱动行为，不只是展示
   ============================================ */

/* 顶部主任务+成就卡 */
.profile-hero-card {
    display: flex;
    align-items: stretch;
    background: white;
    border-radius: 16px;
    border: 1px solid #E9EDF3;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    margin-bottom: 16px;
}

/* 左侧身份区 55% */
.profile-identity {
    flex: 0 0 55%;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: linear-gradient(135deg, #F8FAFC 0%, white 100%);
}

.profile-avatar-wrap {
    position: relative;
}

.profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.profile-level-badge {
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    padding: 2px 10px;
    background: linear-gradient(135deg, var(--reward-gold) 0%, #E5B85C 100%);
    color: white;
    font-size: 10px;
    font-weight: 600;
    border-radius: 10px;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(212, 168, 83, 0.4);
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-name .vip-tag {
    padding: 2px 8px;
    background: linear-gradient(135deg, var(--reward-gold-light) 0%, #FFF5D6 100%);
    color: #8B6914;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
}

.profile-meta {
    font-size: 13px;
    color: var(--text-gray);
}

/* 右侧成就+主任务区 45% */
.profile-action {
    flex: 0 0 45%;
    padding: 20px 24px;
    background: linear-gradient(135deg, var(--brand-blue-light) 0%, #E0EFFC 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.achievement-row {
    display: flex;
    gap: 20px;
    margin-bottom: 14px;
}

.achievement-item {
    text-align: center;
}

.achievement-value {
    font-family: "DIN Alternate", sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
}

.achievement-value.red {
    color: var(--action-red);
}

.achievement-label {
    font-size: 11px;
    color: var(--text-gray);
    margin-top: 2px;
}

/* 主任务条 */
.main-task-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: white;
    border-radius: 10px;
    border: 1px solid rgba(30, 58, 95, 0.1);
    cursor: pointer;
    transition: all 0.2s;
}

.main-task-bar:hover {
    border-color: var(--brand-blue);
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.1);
}

.main-task-bar.has-active {
    background: linear-gradient(90deg, var(--action-red-light) 0%, white 100%);
    border-color: rgba(227, 77, 89, 0.2);
}

.main-task-icon {
    width: 36px;
    height: 36px;
    background: var(--bg-section);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.main-task-bar.has-active .main-task-icon {
    background: white;
}

.main-task-content {
    flex: 1;
    min-width: 0;
}

.main-task-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.main-task-desc {
    font-size: 11px;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-task-desc .progress-text {
    color: var(--action-red);
    font-weight: 600;
}

.btn-main-task {
    height: 32px;
    padding: 0 16px;
    background: var(--action-red);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-main-task:hover {
    background: var(--action-red-dark);
}

.btn-main-task.secondary {
    background: var(--brand-blue);
}

.btn-main-task.secondary:hover {
    background: #162D4A;
}

/* 进行中主会话卡 */
.active-session-card {
    background: white;
    border-radius: 16px;
    border: 1px solid #E9EDF3;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    padding: 20px 24px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}

.active-session-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--action-red) 0%, #FF6B7A 100%);
}

.session-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.session-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.session-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    background: var(--action-red);
    color: white;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.session-status::before {
    content: '';
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.session-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

.session-timer {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--bg-section);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-body);
}

.session-timer .icon {
    font-size: 14px;
}

.session-timer .time {
    font-family: "DIN Alternate", monospace;
    font-weight: 600;
    color: var(--text-dark);
}

.session-body {
    display: flex;
    align-items: center;
    gap: 24px;
}

.session-main {
    flex: 1;
}

.session-gap {
    margin-bottom: 12px;
}

.session-gap-label {
    font-size: 12px;
    color: var(--text-gray);
    margin-bottom: 4px;
}

.session-gap-value {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.session-gap-amount {
    font-family: "DIN Alternate", sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--action-red);
}

.session-gap-people {
    font-size: 13px;
    color: var(--text-body);
}

.session-gap-people strong {
    color: var(--brand-blue);
    font-weight: 600;
}

.session-progress {
    display: flex;
    align-items: center;
    gap: 12px;
}

.session-progress-bar {
    flex: 1;
    height: 8px;
    background: #F0F2F5;
    border-radius: 4px;
    overflow: hidden;
}

.session-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--brand-blue) 0%, var(--action-red) 100%);
    border-radius: 4px;
}

.session-progress-text {
    font-family: "DIN Alternate", sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--action-red);
    min-width: 40px;
}

.session-today {
    font-size: 12px;
    color: var(--text-gray);
    margin-top: 8px;
}

.session-today strong {
    color: var(--brand-blue);
}

.session-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-session {
    height: 36px;
    padding: 0 24px;
    border-radius: 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    border: none;
}

.btn-session.primary {
    background: var(--action-red);
    color: white;
}

.btn-session.primary:hover {
    background: var(--action-red-dark);
}

.btn-session.secondary {
    background: white;
    color: var(--brand-blue);
    border: 1px solid var(--brand-blue);
}

.btn-session.secondary:hover {
    background: var(--brand-blue-light);
}

.session-copy-link {
    text-align: center;
    font-size: 12px;
    color: var(--text-gray);
    cursor: pointer;
}

.session-copy-link:hover {
    color: var(--brand-blue);
}

/* 资产卡片（服务器列表） */
.asset-card {
    background: white;
    border-radius: 12px;
    border: 1px solid #E9EDF3;
    margin-bottom: 16px;
}

.asset-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #E9EDF3;
}

.asset-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.asset-link {
    font-size: 13px;
    color: var(--brand-blue);
    text-decoration: none;
}

.asset-link:hover {
    text-decoration: underline;
}

.asset-list {
    padding: 12px 20px;
}

.asset-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-section);
    border-radius: 10px;
    margin-bottom: 10px;
    transition: all 0.2s;
}

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

.asset-item:hover {
    background: #F0F2F5;
}

.asset-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--brand-blue-light) 0%, #D6E8F7 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.asset-info {
    flex: 1;
    min-width: 0;
}

.asset-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.asset-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.asset-source-tag {
    padding: 2px 6px;
    background: linear-gradient(135deg, var(--reward-gold-light) 0%, #FFF5D6 100%);
    color: #8B6914;
    font-size: 10px;
    font-weight: 500;
    border-radius: 3px;
}

.asset-specs {
    font-size: 12px;
    color: var(--text-gray);
}

.asset-expire {
    text-align: center;
    padding: 0 16px;
}

.asset-expire-label {
    font-size: 11px;
    color: var(--text-light);
    margin-bottom: 2px;
}

.asset-expire-date {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
}

.asset-expire-date.warning {
    color: var(--status-warning);
}

.asset-expire-date.danger {
    color: var(--action-red);
}

.asset-status {
    padding: 4px 10px;
    background: #E8F8EC;
    color: var(--status-success);
    font-size: 11px;
    font-weight: 500;
    border-radius: 4px;
}

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

.btn-asset {
    height: 32px;
    padding: 0 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-asset.primary {
    background: var(--brand-blue);
    color: white;
}

.btn-asset.primary:hover {
    background: #162D4A;
}

.btn-asset.secondary {
    background: white;
    color: var(--text-body);
    border: 1px solid #E9EDF3;
}

.btn-asset.secondary:hover {
    border-color: var(--brand-blue);
    color: var(--brand-blue);
}

/* 订单价格信息 */
.asset-price-info {
    text-align: center;
    padding: 0 12px;
}

.asset-price-saved {
    font-size: 13px;
    font-weight: 600;
    color: var(--action-red);
    margin-bottom: 2px;
}

.asset-price-final {
    font-size: 11px;
    color: var(--text-gray);
}

/* 资产卡片底部 */
.asset-footer {
    padding: 12px 20px;
    border-top: 1px solid #E9EDF3;
    background: var(--bg-section);
}

.asset-console-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    color: var(--brand-blue);
    text-decoration: none;
    transition: all 0.2s;
}

.asset-console-link:hover {
    color: #162D4A;
}

/* 订单空态 */
.asset-empty {
    padding: 32px 20px;
    text-align: center;
}

.asset-empty-icon {
    font-size: 36px;
    margin-bottom: 8px;
    opacity: 0.5;
}

.asset-empty-text {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 12px;
}

.asset-empty-link {
    font-size: 13px;
    color: var(--action-red);
    text-decoration: none;
}

.asset-empty-link:hover {
    text-decoration: underline;
}

/* 订单项可点击样式 */
.asset-item {
    cursor: pointer;
}

/* ============================================
   右侧行动栈
   ============================================ */

/* 今日冲刺卡 */
.sprint-card {
    background: white;
    border-radius: 12px;
    border: 1px solid #E9EDF3;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    margin-bottom: 16px;
}

.sprint-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #E9EDF3;
}

.sprint-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sprint-progress {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-gray);
}

.sprint-progress .done {
    color: var(--status-success);
    font-weight: 600;
}

.sprint-tasks {
    padding: 12px 20px;
}

.sprint-task-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--bg-section);
    border-radius: 10px;
    margin-bottom: 10px;
    transition: all 0.2s;
}

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

.sprint-task-item:hover {
    background: #F0F2F5;
}

.sprint-task-item.completed {
    background: #F8FFF8;
}

.sprint-task-icon {
    width: 36px;
    height: 36px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.sprint-task-item.completed .sprint-task-icon {
    background: #E8F8EC;
}

.sprint-task-info {
    flex: 1;
}

.sprint-task-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.sprint-task-item.completed .sprint-task-name {
    color: var(--text-gray);
}

.sprint-task-desc {
    font-size: 12px;
    color: var(--text-gray);
}

.sprint-task-status {
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
}

.sprint-task-status.done {
    background: #E8F8EC;
    color: var(--status-success);
}

.sprint-task-status.todo {
    background: var(--action-red);
    color: white;
    cursor: pointer;
    transition: all 0.2s;
}

.sprint-task-status.todo:hover {
    background: var(--action-red-dark);
}

/* 冲刺奖励条 */
.sprint-reward {
    padding: 14px 20px;
    background: linear-gradient(90deg, var(--reward-gold-light) 0%, #FFFDF5 100%);
    border-top: 1px solid #F5E6C4;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sprint-reward-icon {
    font-size: 20px;
}

.sprint-reward-text {
    flex: 1;
    font-size: 13px;
    color: #92400E;
}

.sprint-reward-text strong {
    color: var(--action-red);
}

.sprint-reward-badge {
    padding: 4px 10px;
    background: var(--reward-gold);
    color: white;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
}

/* 快捷入口网格 */
.quick-grid-card {
    background: white;
    border-radius: 12px;
    border: 1px solid #E9EDF3;
    padding: 16px;
    margin-bottom: 16px;
}

.quick-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.quick-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 12px;
    background: var(--bg-section);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.quick-item:hover {
    background: var(--brand-blue-light);
}

.quick-item-icon {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 8px;
}

.quick-item-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.quick-item-desc {
    font-size: 11px;
    color: var(--text-gray);
}

/* 本周目标卡 */
.weekly-goal-card {
    background: linear-gradient(135deg, var(--brand-blue) 0%, #2E5A8B 100%);
    border-radius: 12px;
    padding: 20px;
    color: white;
    margin-bottom: 16px;
}

.weekly-goal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.weekly-goal-title {
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.weekly-goal-badge {
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    font-size: 11px;
}

.weekly-goal-content {
    margin-bottom: 14px;
}

.weekly-goal-text {
    font-size: 15px;
    margin-bottom: 12px;
    line-height: 1.5;
}

.weekly-goal-text .highlight {
    color: var(--reward-gold);
    font-weight: 600;
}

.weekly-goal-progress {
    display: flex;
    align-items: center;
    gap: 12px;
}

.weekly-goal-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.weekly-goal-fill {
    height: 100%;
    background: var(--reward-gold);
    border-radius: 4px;
}

.weekly-goal-num {
    font-family: "DIN Alternate", sans-serif;
    font-size: 14px;
    font-weight: 700;
}

.weekly-goal-reward {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 12px;
}

.weekly-goal-reward .icon {
    font-size: 16px;
}

/* 空态卡片 */
.empty-session-card {
    background: var(--bg-section);
    border-radius: 12px;
    border: 1px dashed #DFE3E8;
    padding: 32px;
    text-align: center;
    margin-bottom: 16px;
}

.empty-session-icon {
    font-size: 40px;
    margin-bottom: 12px;
    opacity: 0.6;
}

.empty-session-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.empty-session-desc {
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 16px;
}

.btn-empty {
    height: 40px;
    padding: 0 28px;
    background: var(--action-red);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-empty:hover {
    background: var(--action-red-dark);
}
