/* ========================================   迪士尼邮轮旅行App - 梦幻度假风格样式（优化版）   ======================================== */

/* CSS变量定义 - 迪士尼梦幻星空主题 */
:root {
    /* 背景渐变 - 星空海洋 */
    --bg-gradient-start: #0a1628;
    --bg-gradient-mid: #1a3a5c;
    --bg-gradient-end: #2d5a7b;

    /* 卡片样式 - 毛玻璃效果 */
    --card-bg: rgba(255, 255, 255, 0.08);
    --card-bg-hover: rgba(255, 255, 255, 0.12);
    --card-border: rgba(255, 255, 255, 0.15);
    --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);

    /* 迪士尼魔法金 */
    --gold-primary: #ffd700;
    --gold-soft: #f4d03f;
    --gold-glow: rgba(255, 215, 0, 0.5);

    /* 度假海洋点缀色 */
    --coral: #ff7f7f;
    --turquoise: #40e0d0;
    --ocean-blue: #3498db;
    --purple-dream: #9b59b6;

    /* 文字颜色 */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-gold: #ffd700;

    /* 功能色 */
    --accent-sos: #e74c3c;
    --accent-success: #2ecc71;
    --accent-warn: #f39c12;

    /* 字体 */
    --font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* 圆角 */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 16px;
    height: 100%;
}

body {
    font-family: var(--font-family);
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-mid) 50%, var(--bg-gradient-end) 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* 星空背景动画 */
.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* 流动星星 */
.shooting-star {
    position: absolute;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
    border-radius: 50%;
    animation: shooting 3s linear infinite;
    opacity: 0;
}

@keyframes shooting {
    0% {
        transform: translateX(-100px) rotate(-45deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateX(calc(100vw + 100px)) rotate(-45deg);
        opacity: 0;
    }
}

/* Toast 动画 */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes fadeOutScale {
    from {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    to {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
}

@keyframes nameFlash {
    0%, 100% { color: var(--text-primary); }
    50% { color: var(--gold-primary); text-shadow: 0 0 20px var(--gold-glow); }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    to {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
}

/* 应用容器 */
.app-container {
    position: relative;
    z-index: 1;
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 头部样式 */
.app-header {
    padding: 20px 16px;
    text-align: center;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, transparent 100%);
}

.magic-stars {
    font-size: 14px;
    letter-spacing: 8px;
    margin-bottom: 8px;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.main-title {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--gold-primary);
    text-shadow: 0 0 20px var(--gold-glow);
    margin-bottom: 4px;
}

.subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.date-range {
    font-size: 12px;
    color: var(--turquoise);
    letter-spacing: 2px;
    font-weight: 500;
}

.countdown {
    margin-top: 16px;
    text-align: center;
}

.countdown-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* 翻牌倒计时样式 */
.flip-countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.flip-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.flip-card {
    position: relative;
    width: 48px;
    height: 56px;
    background: var(--card-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--card-border);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.flip-top,
.flip-bottom {
    position: absolute;
    width: 100%;
    height: 49%;
    overflow: hidden;
    left: 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--gold-primary);
    text-shadow: 0 0 12px var(--gold-glow);
    background: transparent;
    line-height: 27px;
    text-align: center;
}

.flip-top {
    top: 0;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.6);
    padding-top: 1px;
}

.flip-bottom {
    bottom: 0;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 1px;
}

.flip-top span,
.flip-bottom span {
    display: block;
    width: 100%;
    height: 200%;
    line-height: 54px;
}

.flip-top span {
    margin-top: 0;
}

.flip-bottom span {
    margin-top: -27px;
}

.flip-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.flip-front,
.flip-back {
    position: absolute;
    width: 100%;
    height: 49%;
    overflow: hidden;
    left: 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--gold-primary);
    text-shadow: 0 0 12px var(--gold-glow);
    background: var(--card-bg);
    backface-visibility: hidden;
    transform-style: preserve-3d;
    line-height: 27px;
    text-align: center;
}

.flip-front {
    top: 0;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.6);
    transform-origin: bottom;
    padding-top: 1px;
}

.flip-front span {
    display: block;
    width: 100%;
    height: 200%;
    line-height: 54px;
    margin-top: 0;
}

.flip-back {
    bottom: 0;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    transform-origin: top;
    transform: rotateX(180deg);
    padding-bottom: 1px;
}

.flip-back span {
    display: block;
    width: 100%;
    height: 200%;
    line-height: 54px;
    margin-top: -27px;
}

.flip-card.flipping .flip-front {
    animation: flipDown 0.5s ease-in-out;
}

.flip-card.flipping .flip-back {
    animation: flipUp 0.5s ease-in-out;
}

@keyframes flipDown {
    0% { transform: rotateX(0deg); }
    100% { transform: rotateX(-180deg); }
}

@keyframes flipUp {
    0% { transform: rotateX(180deg); }
    100% { transform: rotateX(0deg); }
}

.flip-separator {
    font-size: 20px;
    font-weight: 700;
    color: var(--gold-primary);
    text-shadow: 0 0 8px var(--gold-glow);
    margin-top: -12px;
    opacity: 0.8;
}

.flip-label {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* 响应式优化 */
@media (max-width: 380px) {
    .flip-card {
        width: 36px;
        height: 42px;
    }

    .flip-top,
    .flip-bottom,
    .flip-front,
    .flip-back {
        font-size: 18px;
        line-height: 21px;
    }

    .flip-top span,
    .flip-bottom span,
    .flip-front span,
    .flip-back span {
        line-height: 42px;
    }

    .flip-bottom span,
    .flip-back span {
        margin-top: -21px;
    }

    .flip-separator {
        font-size: 16px;
    }

    .flip-label {
        font-size: 10px;
    }
}
    top: 0;
    border-radius: 6px 6px 0 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.4);
    transform-origin: bottom;
}

.flip-front::before {
    content: attr(data-value);
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%, -50%);
    line-height: 1;
}

.flip-back {
    bottom: 0;
    border-radius: 0 0 6px 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    transform-origin: top;
    transform: rotateX(180deg);
}

.flip-back::before {
    content: attr(data-value);
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    line-height: 1;
}

.flip-card.flipping .flip-front {
    animation: flipDown 0.5s ease-in-out;
}

.flip-card.flipping .flip-back {
    animation: flipUp 0.5s ease-in-out;
}

@keyframes flipDown {
    0% { transform: rotateX(0deg); }
    100% { transform: rotateX(-180deg); }
}

@keyframes flipUp {
    0% { transform: rotateX(180deg); }
    100% { transform: rotateX(0deg); }
}

.flip-separator {
    font-size: 20px;
    font-weight: 700;
    color: var(--gold-primary);
    text-shadow: 0 0 8px var(--gold-glow);
    margin-top: -14px;
    opacity: 0.8;
}

.flip-label {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* 响应式优化 */
@media (max-width: 380px) {
    .flip-card {
        width: 38px;
        height: 44px;
    }

    .flip-top,
    .flip-bottom,
    .flip-front,
    .flip-back {
        font-size: 20px;
    }

    .flip-separator {
        font-size: 18px;
    }

    .flip-label {
        font-size: 10px;
    }
}

/* 标签导航栏 */
.tab-bar {
    display: flex;
    justify-content: space-around;
    padding: 8px 12px;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    margin: 0 16px 16px;
    border: 1px solid var(--card-border);
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.tab-item:hover {
    background: var(--card-bg-hover);
}

.tab-item.active {
    background: linear-gradient(135deg, rgba(255,215,0,0.2) 0%, rgba(255,215,0,0.05) 100%);
    border: 1px solid rgba(255,215,0,0.3);
}

.tab-item.active .tab-icon {
    transform: scale(1.1);
}

.tab-item.active .tab-label {
    color: var(--gold-primary);
    font-weight: 600;
}

.tab-icon {
    font-size: 20px;
    margin-bottom: 4px;
    transition: transform 0.3s ease;
}

.tab-icon.sos-icon {
    color: var(--accent-sos);
}

.tab-label {
    font-size: 11px;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

/* 主内容区域 */
.main-content {
    flex: 1;
    padding: 0 16px 80px;
    overflow-y: auto;
}

/* 页面切换 */
.page {
    display: none;
    animation: fadeIn 0.4s ease;
}

.page.active {
    display: block;
}

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

/* 页面头部 */
.page-header {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
}

.page-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.page-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
}

/* 导出按钮 */
.export-btn {
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--gold-soft) 0%, var(--gold-primary) 100%);
    border: none;
    border-radius: 20px;
    color: #1a1a1a;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

.export-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px var(--gold-glow);
}

/* 进度条 */
.progress-bar {
    height: 6px;
    background: var(--card-bg);
    border-radius: 3px;
    margin: 12px 0 8px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold-soft) 0%, var(--gold-primary) 100%);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.progress-text {
    font-size: 12px;
    color: var(--gold-primary);
    text-align: right;
}

/* 卡片通用样式 - 毛玻璃效果 */
.card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.card:hover {
    background: var(--card-bg-hover);
    transform: translateY(-2px);
}

/* ========== 行程规划页 ========== */
.timeline-container {
    position: relative;
}

.timeline-day {
    margin-bottom: 24px;
}

.day-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.day-badge {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-soft) 0%, var(--gold-primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #1a1a1a;
    font-size: 14px;
    margin-right: 12px;
    box-shadow: 0 0 15px var(--gold-glow);
}

.day-info h3 {
    font-size: 16px;
    color: var(--text-primary);
}

.day-info p {
    font-size: 12px;
    color: var(--text-secondary);
}

.activity-list {
    padding-left: 20px;
    border-left: 2px solid rgba(255,255,255,0.1);
    margin-left: 20px;
}

.activity-item {
    position: relative;
    padding: 14px 16px;
    margin-bottom: 10px;
    background: var(--card-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--card-border);
    transition: all 0.3s ease;
}

.activity-item::before {
    content: '';
    position: absolute;
    left: -25px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--turquoise);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--turquoise);
}

.activity-item.completed::before {
    background: var(--accent-success);
    box-shadow: 0 0 10px var(--accent-success);
}

.activity-item.confirmed {
    border-color: rgba(46, 204, 113, 0.4);
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.05) 0%, var(--card-bg) 100%);
}

.activity-item.confirmed::before {
    background: var(--accent-success);
    box-shadow: 0 0 10px var(--accent-success);
}

/* 必须做的事 - 醒目样式 */
.activity-item.must-do {
    border-color: rgba(231, 76, 60, 0.5);
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1) 0%, var(--card-bg) 100%);
    box-shadow: 0 0 15px rgba(231, 76, 60, 0.2);
}

.activity-item.must-do::before {
    background: var(--accent-sos);
    box-shadow: 0 0 15px var(--accent-sos);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: translateY(-50%) scale(1); }
    50% { transform: translateY(-50%) scale(1.3); }
}

.activity-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.badge {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

.badge.mustdo {
    background: rgba(231, 76, 60, 0.3);
    color: #ff9f9f;
    border: 1px solid rgba(231, 76, 60, 0.5);
}

.badge.confirmed {
    background: rgba(46, 204, 113, 0.3);
    color: #7ee8a5;
}

.badge.highlight {
    background: rgba(255, 215, 0, 0.2);
    color: var(--gold-primary);
}

.badge.group {
    background: rgba(64, 224, 208, 0.2);
    color: var(--turquoise);
}

.activity-time {
    font-size: 12px;
    color: var(--gold-primary);
    font-weight: 600;
    margin-bottom: 4px;
}

.activity-title {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 4px;
    font-weight: 500;
}

.activity-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.activity-check {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border: 2px solid var(--card-border);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.activity-check:hover {
    border-color: var(--gold-primary);
    box-shadow: 0 0 10px var(--gold-glow);
}

.activity-check.checked {
    background: var(--accent-success);
    border-color: var(--accent-success);
    box-shadow: 0 0 10px var(--accent-success);
}

.activity-check.checked::after {
    content: '✓';
    color: white;
    font-size: 14px;
}

.activity-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.activity-edit-btn,
.activity-delete-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.activity-edit-btn:hover {
    opacity: 1;
    transform: scale(1.2);
}

.activity-delete-btn:hover {
    opacity: 1;
    transform: scale(1.2);
}

.day-edit-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 14px;
    padding: 4px 8px;
    opacity: 0.6;
    transition: all 0.3s ease;
    margin-left: auto;
}

.day-edit-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

.day-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.itinerary-actions {
    margin-bottom: 16px;
    display: flex;
    justify-content: flex-end;
}

/* ========== 待办事项页 ========== */
.todo-category {
    margin-bottom: 20px;
}

.category-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 0 4px;
}

.category-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 16px;
}

.category-icon.before { background: rgba(255, 127, 127, 0.2); }
.category-icon.boarding { background: rgba(64, 224, 208, 0.2); }
.category-icon.onboard { background: rgba(255, 215, 0, 0.2); }
.category-icon.shore { background: rgba(155, 89, 182, 0.2); }

.category-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.todo-item {
    position: relative;
    display: flex;
    align-items: center;
    padding: 22px 16px 12px;
    background: var(--card-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--card-border);
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.todo-item:hover {
    background: var(--card-bg-hover);
}

.todo-checkbox {
    width: 22px;
    height: 22px;
    border: 2px solid var(--card-border);
    border-radius: 6px;
    margin-right: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.todo-checkbox:hover {
    border-color: var(--gold-primary);
}

.todo-checkbox.checked {
    background: var(--accent-success);
    border-color: var(--accent-success);
}

.todo-checkbox.checked::after {
    content: '✓';
    color: white;
    font-size: 14px;
}

.todo-text {
    flex: 1;
    font-size: 14px;
    color: var(--text-primary);
}

.todo-text.completed {
    text-decoration: line-through;
    color: var(--text-secondary);
}

.todo-delete {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    font-size: 14px;
}

.todo-delete:hover {
    background: rgba(231, 76, 60, 0.2);
    color: var(--accent-sos);
}

.todo-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
}

.todo-edit {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    font-size: 14px;
}

.todo-edit:hover {
    background: rgba(64, 224, 208, 0.2);
    color: var(--turquoise);
}

/* ========== 预订管理页 ========== */
.booking-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--card-border);
    padding: 16px;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.booking-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.booking-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
}

.booking-card.cruise::before { background: var(--gold-primary); }
.booking-card.flight::before { background: var(--turquoise); }
.booking-card.hotel::before { background: var(--coral); }
.booking-card.tour::before { background: var(--purple-dream); }

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

.booking-type {
    display: flex;
    align-items: center;
}

.booking-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 20px;
}

.booking-icon.cruise { background: rgba(255, 215, 0, 0.15); }
.booking-icon.flight { background: rgba(64, 224, 208, 0.15); }
.booking-icon.hotel { background: rgba(255, 127, 127, 0.15); }
.booking-icon.tour { background: rgba(155, 89, 182, 0.15); }

.booking-type-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.booking-status {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.booking-status.confirmed {
    background: rgba(46, 204, 113, 0.2);
    color: var(--accent-success);
}

.booking-status.pending {
    background: rgba(243, 156, 18, 0.2);
    color: var(--accent-warn);
}

.booking-details {
    display: grid;
    gap: 8px;
}

.booking-detail {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.booking-detail-label {
    color: var(--text-secondary);
}

.booking-detail-value {
    color: var(--text-primary);
    font-weight: 500;
}

.booking-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--gold-primary);
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--card-border);
}

.booking-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--card-border);
}

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

.booking-edit-btn,
.booking-delete-btn {
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    border: none;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.booking-edit-btn {
    background: rgba(255, 215, 0, 0.2);
    color: var(--gold-primary);
}

.booking-edit-btn:hover {
    background: rgba(255, 215, 0, 0.3);
}

.booking-delete-btn {
    background: rgba(231, 76, 60, 0.2);
    color: #ff6b6b;
}

.booking-delete-btn:hover {
    background: rgba(231, 76, 60, 0.3);
}

.bookings-actions {
    margin-bottom: 16px;
    display: flex;
    justify-content: flex-end;
}

/* ========== 记账功能页 ========== */
.expense-summary {
    display: flex;
    gap: 16px;
    margin-top: 12px;
}

.summary-item {
    flex: 1;
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 14px;
    text-align: center;
    border: 1px solid var(--card-border);
    transition: all 0.3s ease;
}

.summary-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-shadow);
}

.summary-label {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.summary-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--gold-primary);
}

.expense-chart-container {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid var(--card-border);
}

.expense-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: var(--card-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--card-border);
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.expense-item:hover {
    background: var(--card-bg-hover);
}

.expense-category-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 18px;
}

.expense-info {
    flex: 1;
}

.expense-name {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.expense-category {
    font-size: 12px;
    color: var(--text-secondary);
}

.expense-amount {
    font-size: 18px;
    font-weight: 700;
    color: var(--gold-primary);
}

/* ========== SOS紧急联系页 ========== */
.sos-notice {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    font-size: 13px;
    color: var(--text-secondary);
}

.sos-icon-bell {
    margin-right: 8px;
    font-size: 16px;
}

.sos-card {
    display: flex;
    align-items: center;
    padding: 16px;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--card-border);
    margin-bottom: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.sos-card:hover {
    background: var(--card-bg-hover);
    transform: translateX(8px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.sos-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 14px;
    font-size: 24px;
    flex-shrink: 0;
}

.sos-card-icon.embassy { background: rgba(231, 76, 60, 0.15); }
.sos-card-icon.police { background: rgba(52, 152, 219, 0.15); }
.sos-card-icon.medical { background: rgba(46, 204, 113, 0.15); }
.sos-card-icon.fire { background: rgba(243, 156, 18, 0.15); }
.sos-card-icon.tourist { background: rgba(155, 89, 182, 0.15); }
.sos-card-icon.cruise { background: rgba(255, 215, 0, 0.15); }

.sos-info {
    flex: 1;
}

.sos-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.sos-subtitle {
    font-size: 12px;
    color: var(--text-secondary);
}

.sos-number {
    font-size: 18px;
    font-weight: 700;
    color: var(--gold-primary);
    text-shadow: 0 0 10px var(--gold-glow);
    padding: 6px 12px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 20px;
}

/* ========== 悬浮按钮 ========== */
.fab-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-soft) 0%, var(--gold-primary) 100%);
    border: none;
    color: #1a1a1a;
    font-size: 28px;
    font-weight: 300;
    cursor: pointer;
    box-shadow: 0 4px 20px var(--gold-glow);
    transition: all 0.3s ease;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fab-btn:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 6px 30px var(--gold-glow);
}

.fab-btn:active {
    transform: scale(0.95);
}

/* ========== 弹窗样式 ========== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    align-items: flex-end;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    border: 1px solid var(--card-border);
    border-bottom: none;
    width: 100%;
    max-width: 480px;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
    box-shadow: var(--card-shadow);
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--card-border);
}

.modal-header h3 {
    font-size: 18px;
    color: var(--text-primary);
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--card-bg-hover);
    color: var(--text-primary);
    transform: rotate(90deg);
}

.modal-body {
    padding: 20px;
}

.modal-input, .modal-select {
    width: 100%;
    padding: 14px 16px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 15px;
    margin-bottom: 12px;
    outline: none;
    transition: all 0.3s ease;
}

.modal-input:focus, .modal-select:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.modal-input::placeholder {
    color: var(--text-secondary);
}

.modal-footer {
    display: flex;
    gap: 12px;
    padding: 0 20px 20px;
}

.btn-secondary, .btn-primary {
    flex: 1;
    padding: 14px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-secondary {
    background: var(--card-bg);
    color: var(--text-secondary);
    border: 1px solid var(--card-border);
}

.btn-secondary:hover {
    background: var(--card-bg-hover);
    color: var(--text-primary);
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold-soft) 0%, var(--gold-primary) 100%);
    color: #1a1a1a;
}

.btn-primary:hover {
    box-shadow: 0 0 20px var(--gold-glow);
    transform: translateY(-2px);
}

/* ========== 隐藏类 ========== */
.hidden {
    display: none !important;
}

/* ========== 响应式优化 ========== */
@media (max-width: 380px) {
    .main-title {
        font-size: 24px;
    }

    .tab-icon {
        font-size: 18px;
    }

    .tab-label {
        font-size: 10px;
    }

    .page-title {
        font-size: 18px;
    }

    .page-header {
        flex-direction: column;
    }

    .export-btn {
        width: 100%;
    }
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--card-border);
    border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-primary);
}

/* 选中文字颜色 */
::selection {
    background: rgba(255, 215, 0, 0.3);
    color: var(--text-primary);
}

/* ========== 待办事项类型选择器 ========== */
.todo-type-selector {
    margin-top: 12px;
    padding: 12px;
    background: var(--card-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
}

.todo-type-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.todo-type-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.todo-type-option {
    display: flex;
    align-items: center;
    padding: 12px;
    background: var(--card-bg);
    border: 2px solid var(--card-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
}

.todo-type-option:hover {
    background: var(--card-bg-hover);
}

.todo-type-option input[type="radio"] {
    display: none;
}

.todo-type-option input[type="radio"]:checked + .option-icon + .option-text,
.todo-type-option:has(input[type="radio"]:checked) {
    border-color: var(--gold-primary);
    background: rgba(255, 215, 0, 0.1);
}

.todo-type-option:has(input[type="radio"]:checked) .option-icon {
    background: var(--gold-primary);
    color: #1a1a1a;
}

.option-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--card-bg-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-right: 12px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.option-text {
    display: flex;
    flex-direction: column;
}

.option-text strong {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 600;
}

.option-text small {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* 单人待办样式 */
.todo-item.single-person {
    border-left: 3px solid var(--turquoise);
}

.todo-item.single-person .todo-type-badge {
    position: absolute;
    top: 8px;
    right: 36px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    color: var(--turquoise);
    background: rgba(64, 224, 208, 0.15);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(64, 224, 208, 0.3);
    backdrop-filter: blur(4px);
}

/* 多人待办样式 */
.todo-item.multi-person {
    border-left: 3px solid var(--purple-dream);
}

.todo-item.multi-person .todo-type-badge {
    position: absolute;
    top: 8px;
    right: 36px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    color: var(--purple-dream);
    background: rgba(155, 89, 182, 0.15);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(155, 89, 182, 0.3);
    backdrop-filter: blur(4px);
}
.todo-content {
    flex: 1;
    min-width: 0;
}

.todo-user-status {
    display: flex;
    gap: 8px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.user-status {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.user-status.done {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
}

.user-status.pending {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    opacity: 0.6;
}

.todo-item.fully-completed {
    border-left: 3px solid #2ecc71;
}

.todo-item.fully-completed .todo-text {
    opacity: 0.7;
}

/* ========== 用户选择器 ========== */
.user-selector-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-mid) 50%, var(--bg-gradient-end) 100%);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: opacity 0.3s ease;
}

.user-selector-content {
    width: 100%;
    max-width: 360px;
    text-align: center;
}

.user-selector-header {
    margin-bottom: 32px;
}

.user-selector-header h2 {
    font-size: 24px;
    color: var(--gold-primary);
    margin-bottom: 8px;
    text-shadow: 0 0 20px var(--gold-glow);
}

.user-selector-header p {
    font-size: 14px;
    color: var(--text-secondary);
}

.user-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.user-option {
    display: flex;
    align-items: center;
    padding: 20px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-option:hover {
    background: var(--card-bg-hover);
    transform: translateY(-2px);
    box-shadow: var(--card-shadow);
    border-color: var(--gold-primary);
}

.user-option-emoji {
    font-size: 32px;
    margin-right: 16px;
}

.user-option-info {
    text-align: left;
    flex: 1;
}

.user-option-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.user-option-role {
    font-size: 12px;
    color: var(--text-secondary);
}

.user-selector-hint {
    font-size: 12px;
    color: var(--text-secondary);
    opacity: 0.8;
}

/* ========== 用户标识 ========== */
.user-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    padding: 8px 16px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    font-size: 13px;
    animation: fadeIn 0.5s ease;
}

.user-badge-emoji {
    font-size: 14px;
}

.user-badge-name {
    color: var(--text-primary);
    font-weight: 500;
}

.user-badge-admin {
    color: var(--gold-primary);
}

.user-switch-btn {
    margin-left: 8px;
    padding: 4px 10px;
    background: transparent;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 11px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-switch-btn:hover {
    background: var(--card-bg-hover);
    color: var(--text-primary);
}

.user-edit-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 12px;
    padding: 4px;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.user-edit-btn:hover {
    opacity: 1;
    transform: scale(1.2);
}

/* ========== 只读提示 ========== */
.read-only-notice {
    background: rgba(243, 156, 18, 0.1);
    border: 1px solid rgba(243, 156, 18, 0.3);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    margin-bottom: 16px;
    font-size: 12px;
    color: var(--accent-warn);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ========== 设置页样式 ========== */
.settings-container {
    padding: 0 16px 80px;
}

.settings-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.settings-card:hover {
    background: var(--card-bg-hover);
}

.settings-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sync-status {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}

.sync-status-icon {
    font-size: 32px;
}

.sync-status-text {
    flex: 1;
}

.sync-status-main {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.sync-status-sub {
    font-size: 13px;
    color: var(--text-secondary);
}

.sync-actions {
    margin-top: 16px;
}

.settings-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-full {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-icon {
    font-size: 16px;
}

.btn-danger {
    flex: 1;
    padding: 14px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    background: rgba(231, 76, 60, 0.2);
    color: #ff6b6b;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.btn-danger:hover {
    background: rgba(231, 76, 60, 0.3);
    transform: translateY(-2px);
}

.about-info {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}

.about-info p {
    margin-bottom: 4px;
}

.about-sub {
    font-size: 12px;
    opacity: 0.7;
}

/* ========== 同步弹窗样式 ========== */
.sync-modal-content {
    max-height: 90vh;
}

.sync-connection-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-success);
    box-shadow: 0 0 8px var(--accent-success);
}

.status-dot.offline {
    background: #888;
    box-shadow: none;
}

.status-dot.auto-sync {
    background: var(--gold-primary);
    box-shadow: 0 0 8px var(--gold-primary);
    animation: pulse 2s infinite;
}

.status-text {
    font-size: 14px;
    color: var(--text-secondary);
}

.sync-section {
    margin-bottom: 20px;
}

.sync-section-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.sync-section-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.token-input-group {
    margin-bottom: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 8px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--gold-primary);
}

.sync-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: var(--text-secondary);
    font-size: 13px;
}

.sync-divider::before,
.sync-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--card-border);
}

.sync-divider span {
    padding: 0 12px;
}

.sync-action-buttons {
    display: flex;
    gap: 12px;
}

.sync-action-buttons button {
    flex: 1;
}

.sync-info {
    margin-top: 16px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
    font-size: 12px;
    color: var(--text-secondary);
}

.sync-info p {
    margin-bottom: 4px;
}

.sync-info span {
    color: var(--text-primary);
    font-family: monospace;
}

.modal-textarea {
    width: 100%;
    min-height: 150px;
    padding: 14px 16px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 13px;
    font-family: monospace;
    resize: vertical;
    outline: none;
    transition: all 0.3s ease;
}

.modal-textarea:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.import-hint {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

/* 同步状态指示器 */
.sync-indicator {
    position: fixed;
    top: 12px;
    right: 12px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-success);
    box-shadow: 0 0 10px var(--accent-success);
    z-index: 500;
    animation: pulse 2s infinite;
}

.sync-indicator.syncing {
    background: var(--accent-warn);
    box-shadow: 0 0 10px var(--accent-warn);
}

.sync-indicator.error {
    background: var(--accent-sos);
    box-shadow: 0 0 10px var(--accent-sos);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ========== Tips 备注页样式 ========== */
.tips-filter {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    padding: 0 4px;
}

.tip-filter-btn {
    padding: 8px 14px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tip-filter-btn:hover {
    background: var(--card-bg-hover);
    transform: translateY(-1px);
}

.tip-filter-btn.active {
    background: linear-gradient(135deg, var(--gold-soft) 0%, var(--gold-primary) 100%);
    color: #1a1a1a;
    border-color: var(--gold-primary);
    font-weight: 600;
}

.tips-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tips-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

/* 通用空状态样式 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
    font-size: 14px;
    opacity: 0.7;
}

.tips-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.tips-empty p {
    font-size: 16px;
    margin-bottom: 8px;
}

.tips-empty-hint {
    font-size: 13px;
    opacity: 0.7;
}

.tip-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 16px;
    transition: all 0.3s ease;
    position: relative;
}

.tip-card:hover {
    background: var(--card-bg-hover);
    transform: translateY(-2px);
    box-shadow: var(--card-shadow);
}

.tip-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.tip-category-badge {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 500;
}

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

.tip-edit-btn,
.tip-delete-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.tip-edit-btn:hover,
.tip-delete-btn:hover {
    opacity: 1;
    transform: scale(1.2);
}

.tip-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.tip-content {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
    white-space: pre-wrap;
}

.tip-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--card-border);
    font-size: 12px;
    color: var(--text-secondary);
}

.tip-author {
    display: flex;
    align-items: center;
    gap: 4px;
}

.tip-date {
    opacity: 0.7;
}

.tip-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    background: linear-gradient(135deg, var(--gold-soft) 0%, var(--gold-primary) 100%);
    color: #1a1a1a;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.tip-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.tip-link:active {
    transform: translateY(0);
}

/* ========== 登录页面样式 ========== */
.login-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-mid) 50%, var(--bg-gradient-end) 100%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container.hidden {
    display: none;
}

.login-box {
    width: 100%;
    max-width: 360px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    backdrop-filter: blur(10px);
    box-shadow: var(--card-shadow);
    animation: fadeIn 0.5s ease;
}

.login-header {
    text-align: center;
    margin-bottom: 28px;
}

.login-header .magic-stars {
    font-size: 14px;
    letter-spacing: 8px;
    margin-bottom: 12px;
    animation: shimmer 2s infinite;
}

.login-header h1 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--gold-primary);
    text-shadow: 0 0 20px var(--gold-glow);
    margin-bottom: 8px;
}

.login-header p {
    font-size: 13px;
    color: var(--text-secondary);
}

.login-form {
    margin-bottom: 20px;
}

.login-input-group {
    margin-bottom: 16px;
}

.login-input-group label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.login-input-group input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 15px;
    outline: none;
    transition: all 0.3s ease;
}

.login-input-group input:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.login-input-group input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.login-error {
    color: #ff6b6b;
    font-size: 13px;
    margin-bottom: 12px;
    min-height: 20px;
    text-align: center;
}

.login-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--gold-soft) 0%, var(--gold-primary) 100%);
    border: none;
    border-radius: var(--radius-md);
    color: #1a1a1a;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-btn:hover {
    box-shadow: 0 0 20px var(--gold-glow);
    transform: translateY(-2px);
}

.login-btn:active {
    transform: translateY(0);
}

.login-hint {
    text-align: center;
    font-size: 12px;
    color: var(--text-secondary);
    opacity: 0.8;
}

/* ========== 用户管理样式 ========== */
.user-management {
    padding: 0 16px 80px;
}

.user-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.user-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-soft) 0%, var(--gold-primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.user-details h4 {
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.user-details p {
    font-size: 12px;
    color: var(--text-secondary);
}

.user-role-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.user-role-badge.admin {
    background: rgba(255, 215, 0, 0.2);
    color: var(--gold-primary);
}

.user-role-badge.member {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

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

.user-action-btn {
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-action-btn:hover {
    background: var(--card-bg-hover);
    color: var(--text-primary);
}

.user-action-btn.danger:hover {
    background: rgba(231, 76, 60, 0.2);
    color: #ff6b6b;
    border-color: rgba(231, 76, 60, 0.3);
}

/* 修改密码弹窗 */
.password-change-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.password-change-form input {
    padding: 12px 16px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
}

/* ========== 行程编辑样式 ========== */

/* 活动项编辑按钮 */
.activity-item {
    position: relative;
}

.activity-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.activity-item:hover .activity-actions {
    opacity: 1;
}

.activity-edit-btn,
.activity-delete-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
    line-height: 1;
}

.activity-edit-btn:hover {
    background: rgba(255, 215, 0, 0.2);
    transform: scale(1.1);
}

.activity-delete-btn:hover {
    background: rgba(231, 76, 60, 0.2);
    transform: scale(1.1);
}

/* 行程选项复选框 */
.itinerary-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-primary);
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: background 0.2s ease;
}

.checkbox-label:hover {
    background: rgba(255, 255, 255, 0.05);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--gold-primary);
    cursor: pointer;
}

.checkbox-label span {
    user-select: none;
}

/* 时间输入框样式 */
#itineraryTime {
    font-family: monospace;
    letter-spacing: 1px;
}
