* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --secondary-gradient: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%);
    --success-gradient: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
    --warning-gradient: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.12);
    --border-radius: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'SF Pro Display', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    margin: 0;
    padding: 0;
    color: #1e293b;
    overflow-x: hidden;
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* APP容器 */
.app-container {
    max-width: 414px;
    margin: 0 auto;
    background: #fff;
    min-height: 100vh;
    position: relative;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.container {
    width: 100%;
    padding: 0;
    margin: 0;
}

/* APP顶部导航 */
.app-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: env(safe-area-inset-top, 20px) 20px 24px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 24px rgba(99, 102, 241, 0.15);
    backdrop-filter: blur(20px);
    width: 100%;
    max-width: 414px;
    margin: 0 auto;
}

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

.app-title {
    font-size: 1.4em;
    font-weight: 700;
    margin: 0;
}

.header-actions {
    display: flex;
    gap: 10px;
}

.header-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    overflow: hidden;
    flex-shrink: 0;
    padding: 0;
}

.header-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.05);
}

.header-btn:active {
    transform: scale(0.98);
}

.header-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

body.mode-journal .header-btn {
    background: rgba(255,182,193,0.25);
}

body.mode-journal .header-btn:hover {
    background: rgba(255,182,193,0.4);
}

.header-btn:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
}

.date-display {
    font-size: 0.9em;
    opacity: 0.9;
    font-weight: 400;
}

/* APP页面内容 */
.app-content {
    padding: 0;
    background: #f8f9fa;
    min-height: calc(100vh - 120px);
}

.page-section {
    background: linear-gradient(135deg, #fff 0%, #fafbfc 100%);
    margin: 0 0 1px 0;
    padding: 24px 20px;
    border-radius: 0;
    box-shadow: none;
    border-bottom: 1px solid #f0f2f5;
    position: relative;
    transition: all 0.3s ease;
}

.page-section:last-child {
    border-bottom: none;
    margin-bottom: env(safe-area-inset-bottom, 0);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f3f4;
}

.section-header button {
    padding: 10px 18px;
    border-radius: 20px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.section-header button:first-child {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.section-header button:last-child {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.section-header button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.section-header button:active {
    transform: translateY(0);
}

body.mode-work .section-header button:first-child {
    background: linear-gradient(135deg, #003d82, #0051a5);
}

body.mode-work .section-header button:last-child {
    background: linear-gradient(135deg, #0066cc, #0080ff);
}

body.mode-leisure .section-header button:first-child {
    background: linear-gradient(135deg, #ff9a9e, #fecfef);
}

body.mode-leisure .section-header button:last-child {
    background: linear-gradient(135deg, #fad0c4, #ffd1ff);
}

body.mode-fitness .section-header button:first-child {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
}

body.mode-fitness .section-header button:last-child {
    background: linear-gradient(135deg, #ffb347, #ffc837);
}

body.mode-custom .section-header button:first-child {
    background: linear-gradient(135deg, #9c27b0, #ba68c8);
}

body.mode-custom .section-header button:last-child {
    background: linear-gradient(135deg, #ba68c8, #ce93d8);
}

.section-title {
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title i {
    color: #667eea;
    font-size: 1em;
}

body.mode-work .section-title i {
    color: #003d82;
}

body.mode-leisure .section-title i {
    color: #ff9a9e;
}

body.mode-fitness .section-title i {
    color: #ff6b35;
}

body.mode-custom .section-title i {
    color: #9c27b0;
}



/* 日历样式 */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-month {
    font-size: 1.3em;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.calendar-nav {
    background: #667eea;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.calendar-nav:active {
    transform: scale(0.95);
    background: #5a6fd8;
}

body.mode-journal .calendar-nav {
    background: linear-gradient(135deg, #FFB6C1, #FFD4E5);
}

body.mode-journal .calendar-nav:active {
    background: linear-gradient(135deg, #FFA0B0, #FFC0D5);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 12px;
}

.calendar-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 12px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    font-weight: 600;
    color: #1e293b;
    font-size: 0.9em;
    min-height: 50px;
    height: 50px;
    padding: 4px 2px;
}

.calendar-day .solar {
    font-size: 1em;
    font-weight: 600;
    line-height: 1;
}

.calendar-day .lunar {
    font-size: 0.65em;
    color: #64748b;
    margin-top: 2px;
    font-weight: 400;
    line-height: 1;
}

.calendar-day .holiday {
    font-size: 0.65em;
    color: #ef4444;
    margin-top: 2px;
    font-weight: 500;
    line-height: 1;
}

body.mode-work .calendar-day .holiday {
    color: #0066cc;
}

body.mode-leisure .calendar-day .holiday {
    color: #ff6b9d;
}

body.mode-fitness .calendar-day .holiday {
    color: #ff6b35;
}

body.mode-journal .calendar-day .holiday {
    color: #ff69b4;
}

body.mode-chinese .calendar-day .holiday {
    color: #c41e3a;
}

body.mode-coffee .calendar-day .holiday {
    color: #8B4513;
}

body.mode-custom .calendar-day .holiday {
    color: #9c27b0;
}

.calendar-day:active {
    transform: scale(0.95);
}

.calendar-day.today {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.calendar-day.today .lunar,
.calendar-day.today .holiday {
    color: rgba(255,255,255,0.9);
}

.calendar-day.has-schedule {
    background: #28a745;
    color: white;
}

.calendar-day.has-schedule::after {
    content: '•';
    position: absolute;
    bottom: 3px;
    right: 6px;
    font-size: 10px;
    color: #fff;
}

.calendar-day.other-month {
    color: #ccc;
    background: #f1f3f4;
}

.calendar-weekday {
    text-align: center;
    font-weight: 600;
    color: #666;
    padding: 8px 0;
    font-size: 0.8em;
}

.calendar-legend {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 16px;
    padding: 12px;
    background: #f1f3f4;
    border-radius: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8em;
    color: #666;
    font-weight: 500;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.has-schedule {
    background: #28a745;
}

.dot.today {
    background: #667eea;
}

/* 日程详情页面 */
.day-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: env(safe-area-inset-top, 20px) 20px 24px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    box-shadow: 0 4px 24px rgba(99, 102, 241, 0.15);
    backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 100;
    position: relative;
    overflow: hidden;
}

.day-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.day-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-20px) translateX(10px); }
}

body.mode-work .day-header {
    background: linear-gradient(135deg, #003d82, #0051a5);
}

body.mode-leisure .day-header {
    background: linear-gradient(135deg, #ff9a9e, #fecfef, #fad0c4);
}

body.mode-fitness .day-header {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.95), rgba(247, 147, 30, 0.95));
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
}

body.mode-custom .day-header {
    background: linear-gradient(135deg, #9c27b0, #ba68c8);
}

.day-header button {
    background: rgba(255,255,255,0.15);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 12px;
    cursor: pointer;
    font-size: 18px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
    position: absolute;
    left: 20px;
    z-index: 10;
}

.day-header button:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
}

.day-header button:active {
    transform: translateY(0);
}

.day-header h2 {
    color: white;
    font-weight: 600;
    font-size: 1.3em;
    width: 100%;
    text-align: center;
    margin: 0;
    padding: 0 60px;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 8px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.day-header h2 .date-main {
    font-size: 1em;
    font-weight: 700;
}

.day-header h2 .date-sub {
    font-size: 0.7em;
    font-weight: 400;
    opacity: 0.9;
}

.day-section > div {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.day-section > div:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

/* 照片区域 */
.photo-upload button {
    background: var(--warning-gradient);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 12px;
    cursor: pointer;
    width: 100%;
    margin-bottom: 20px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(67, 233, 123, 0.4);
    transition: var(--transition);
}

.photo-upload button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(67, 233, 123, 0.6);
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.photo-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    transition: var(--transition);
    cursor: pointer;
}

.photo-item:hover {
    transform: scale(1.05) rotate(1deg);
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.photo-item:hover img {
    transform: scale(1.1);
}

.photo-delete {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(231, 76, 60, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    opacity: 0;
}

.photo-item:hover .photo-delete {
    opacity: 1;
    transform: scale(1.1);
}

/* 感想区域 */
.thoughts-section textarea {
    min-height: 140px;
    margin-bottom: 20px;
    resize: vertical;
    line-height: 1.6;
}

.thoughts-section button {
    background: linear-gradient(135deg, #17a2b8, #20c997);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.4);
    transition: var(--transition);
}

.thoughts-section button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(23, 162, 184, 0.6);
}

/* APP表单样式 */
.form-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 0.9em;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

input, select, textarea {
    padding: 12px 16px;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    background: #fff;
    transition: border-color 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

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

textarea {
    resize: vertical;
    font-family: inherit;
}

/* 按钮样式 */
.primary-btn {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.25);
}

.primary-btn:active {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.upload-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.upload-btn:active {
    transform: scale(0.98);
    background: #218838;
}

.save-btn {
    background: #17a2b8;
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.2s ease;
}

.save-btn:active {
    transform: scale(0.98);
    background: #138496;
}

/* 交通选项 */
.transport-options {
    margin-top: 8px;
}

.route-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.route-btn:active {
    transform: scale(0.98);
    background: #0056b3;
}

/* 功能卡片网格 */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 16px;
}

.import-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.import-card {
    background: white;
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 2px 16px rgba(0,0,0,0.04);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.import-card h3 {
    font-size: 1.2em;
    color: #1e293b;
    margin: 0 0 8px 0;
}

.import-card p {
    color: #64748b;
    font-size: 0.9em;
    margin: 0;
    text-align: left;
}

.import-tips {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-radius: 16px;
    padding: 20px;
    border-left: 4px solid #0ea5e9;
}

.import-tips h4 {
    color: #0369a1;
    margin: 0 0 12px 0;
    font-size: 1em;
}

.import-tips ul {
    margin: 0;
    padding-left: 20px;
    color: #0c4a6e;
}

.import-tips li {
    margin: 8px 0;
    font-size: 0.9em;
    line-height: 1.6;
}

.feature-card {
    background: linear-gradient(135deg, #fff 0%, #fafbfc 100%);
    border-radius: 20px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid rgba(226, 232, 240, 0.6);
    position: relative;
    overflow: hidden;
    min-height: 140px;
    display: flex;
    flex-direction: column;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:active {
    transform: scale(0.97);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.3);
    background: linear-gradient(135deg, #fff 0%, #f8f9ff 100%);
}

.feature-card i {
    font-size: 2.5em;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(102, 126, 234, 0.3));
    height: 60px;
}

.weather-icon-wrapper {
    font-size: 2.5em;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
}

.weather-icon-wrapper .weather-icon {
    width: 60px !important;
    height: 60px !important;
}

.weather-icon.weather-night-thunder {
    background-image: url('https://cdn-icons-png.flaticon.com/512/1146/1146860.png');
    filter: drop-shadow(0 0 10px rgba(100, 100, 255, 0.6)) brightness(0.7);
    animation: thunderFlash 2s ease-in-out infinite;
}

.weather-icon.weather-night-rain {
    background-image: url('https://cdn-icons-png.flaticon.com/512/3351/3351979.png');
    filter: drop-shadow(0 2px 6px rgba(102, 126, 234, 0.4)) brightness(0.7);
    animation: rainBounce 1.5s ease-in-out infinite;
}

.weather-icon.weather-night-snow {
    background-image: url('https://cdn-icons-png.flaticon.com/512/642/642102.png');
    filter: drop-shadow(0 0 8px rgba(200, 200, 255, 0.6)) brightness(0.8);
    animation: snowfall 3s ease-in-out infinite;
}

.weather-icon.weather-night-cloudy {
    background-image: url('https://cdn-icons-png.flaticon.com/512/414/414927.png');
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.3)) brightness(0.6);
    animation: float 3s ease-in-out infinite;
}

.weather-icon-wrapper {
    font-size: 2.5em;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(102, 126, 234, 0.3));
}

.weather-icon-wrapper i {
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
    filter: none;
}



.feature-card h3 {
    font-size: 1.1em;
    font-weight: 700;
    color: #333;
    margin: 0 0 6px 0;
    letter-spacing: -0.3px;
}

.feature-card p {
    font-size: 0.8em;
    color: #666;
    margin: 0 0 8px 0;
    line-height: 1.4;
    font-weight: 500;
}

.feature-card .card-preview {
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid #f1f3f4;
    font-size: 0.7em;
    color: #999;
    min-height: 30px;
    max-height: 80px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow: visible;
}

.feature-card .schedule-preview-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85em;
    color: #555;
    background: #f8f9fa;
    padding: 5px 6px;
    border-radius: 6px;
    border-left: 2px solid #667eea;
    white-space: nowrap;
    overflow: hidden;
    line-height: 1.3;
}

.feature-card .schedule-preview-item i {
    font-size: 0.9em;
    color: #667eea;
    width: 12px;
}

.feature-card .schedule-preview-item span {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.feature-card .photo-thumbnails {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    padding: 4px;
    background: #f8f9fa;
    border-radius: 6px;
}

.feature-card .photo-thumbnails img {
    width: 56px;
    height: 56px;
    border-radius: 4px;
    object-fit: cover;
    border: 1px solid #e9ecef;
    flex-shrink: 0;
}

.feature-card .thoughts-preview {
    font-style: italic;
    line-height: 1.3;
    padding: 4px 6px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #667eea;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 0.9em;
}

.feature-card .share-preview-mini {
    text-align: center;
    font-weight: 600;
    color: #667eea;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card .status-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #28a745;
}

.feature-card .status-badge.empty {
    background: #dee2e6;
}

.feature-card .status-badge.partial {
    background: #ffc107;
}

/* 三级页面 */
.detail-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0;
}

.detail-header button {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    color: #667eea;
    border: 2px solid rgba(102, 126, 234, 0.2);
    padding: 10px 14px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

.detail-header button:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.detail-header button:active {
    transform: translateY(0);
}

body.mode-work .detail-header button {
    background: linear-gradient(135deg, rgba(0, 61, 130, 0.1), rgba(0, 81, 165, 0.1));
    color: #003d82;
    border-color: rgba(0, 61, 130, 0.2);
}

body.mode-work .detail-header button:hover {
    background: linear-gradient(135deg, #003d82, #0051a5);
    color: white;
}

body.mode-leisure .detail-header button {
    background: linear-gradient(135deg, rgba(255, 154, 158, 0.1), rgba(254, 207, 239, 0.1));
    color: #ff9a9e;
    border-color: rgba(255, 154, 158, 0.2);
}

body.mode-leisure .detail-header button:hover {
    background: linear-gradient(135deg, #ff9a9e, #fecfef);
    color: white;
}

body.mode-fitness .detail-header button {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(247, 147, 30, 0.1));
    color: #ff6b35;
    border-color: rgba(255, 107, 53, 0.2);
}

body.mode-fitness .detail-header button:hover {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
}

body.mode-custom .detail-header button {
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.1), rgba(186, 104, 200, 0.1));
    color: #9c27b0;
    border-color: rgba(156, 39, 176, 0.2);
}

body.mode-custom .detail-header button:hover {
    background: linear-gradient(135deg, #9c27b0, #ba68c8);
    color: white;
}

.detail-title {
    font-size: 1.2em;
    font-weight: 600;
    color: #333;
    margin: 0;
    flex: 1;
}

.detail-content {
    padding: 0;
}

/* 主题选择 */
.theme-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.theme-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.theme-card:active {
    transform: scale(0.98);
}

.theme-card.active {
    border-color: #667eea;
    background: #f8f9ff;
}

.theme-preview {
    width: 100%;
    height: 60px;
    border-radius: 6px;
    margin-bottom: 8px;
}

.journal-preview {
    background: linear-gradient(135deg, #f4e4bc, #d4a574);
}

.business-preview {
    background: linear-gradient(135deg, #2c3e50, #34495e);
}

.cute-preview {
    background: linear-gradient(135deg, #ff9a9e, #fecfef);
}

.sport-preview {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.theme-card h4 {
    font-size: 0.9em;
    font-weight: 500;
    color: #333;
    margin: 0;
}

/* 卡片预览增强 */
.card-preview {
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid #f1f3f4;
    min-height: 50px;
}

.photo-thumbnails {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.photo-thumbnails img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid #e9ecef;
    transition: transform 0.2s ease;
}

.photo-thumbnails img:hover {
    transform: scale(1.1);
}

.photo-count {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #f8f9fa;
    border: 1px dashed #dee2e6;
    border-radius: 6px;
    font-size: 0.7em;
    color: #666;
    font-weight: 600;
}

.thoughts-preview {
    font-style: italic;
    font-size: 0.75em;
    color: #666;
    line-height: 1.4;
    margin-top: 8px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #667eea;
    max-height: 45px;
    overflow: hidden;
    position: relative;
}

.thoughts-preview::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 20px;
    background: linear-gradient(to right, transparent, #f8f9fa);
}

.schedule-preview {
    margin-top: 8px;
}

.schedule-preview-item {
    font-size: 0.75em;
    color: #666;
    margin: 4px 0;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    background: #f8f9fa;
    border-radius: 4px;
    border-left: 2px solid #667eea;
}

.schedule-preview-item i {
    font-size: 0.9em;
    color: #667eea;
    width: 12px;
}

.schedule-preview-item .time {
    font-weight: 600;
    color: #333;
}

.schedule-preview-item .title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.weather-preview {
    margin-top: 8px;
    padding: 8px;
    background: linear-gradient(135deg, #667eea20, #764ba220);
    border-radius: 6px;
    text-align: center;
}

.weather-preview .temp {
    font-size: 1.2em;
    font-weight: 700;
    color: #667eea;
}

.weather-preview .condition {
    font-size: 0.7em;
    color: #666;
    margin-top: 2px;
}

.empty-preview {
    font-size: 0.7em;
    color: #999;
    text-align: center;
    padding: 12px;
    font-style: italic;
}

/* 位置设置 */
.location-settings {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f3f4;
    font-size: 0.9em;
}

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

/* 分享功能 */
.share-preview {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    min-height: 120px;
}

.share-content {
    font-size: 0.9em;
    line-height: 1.5;
    color: #333;
}

.share-thumbnails {
    display: flex;
    gap: 8px;
    margin: 12px 0;
    flex-wrap: wrap;
}

.share-thumbnail {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid #e9ecef;
}

.share-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.share-btn {
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 0.9em;
    font-weight: 500;
    cursor: pointer;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.share-btn:active {
    transform: scale(0.98);
}

.share-btn.wechat {
    background: #07c160;
}

.share-btn.weibo {
    background: #e6162d;
}

.share-btn.copy {
    background: #6c757d;
}

.share-btn.download {
    background: #fd7e14;
}

/* 分享页面增强 */
.share-preview-full {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    min-height: 200px;
}

.share-preview-mini {
    font-size: 0.7em;
    color: #666;
    text-align: center;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 6px;
    margin-top: 8px;
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 15px;
}

.platform-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 12px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    color: white;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.2s ease;
}

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

.platform-btn i {
    font-size: 1.5em;
}

.platform-btn.wechat {
    background: linear-gradient(135deg, #07c160, #00d4aa);
}

.platform-btn.weibo {
    background: linear-gradient(135deg, #e6162d, #ff6b6b);
}

.platform-btn.xiaohongshu {
    background: linear-gradient(135deg, #ff2442, #ff6b6b);
}

.platform-btn.qq {
    background: linear-gradient(135deg, #12b7f5, #00a6ff);
}

.platform-btn.qzone {
    background: linear-gradient(135deg, #ffc107, #ff9800);
}

.platform-btn.douyin {
    background: linear-gradient(135deg, #000000, #333333);
}

.platform-btn.copy {
    background: linear-gradient(135deg, #6c757d, #495057);
}

.platform-btn.download {
    background: linear-gradient(135deg, #fd7e14, #ff922b);
}

.share-platforms h3 {
    font-size: 1.1em;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

/* 主题样式 */
body.theme-journal {
    --primary-color: #d4a574;
    --secondary-color: #f4e4bc;
    --accent-color: #8b6914;
}

body.theme-journal .app-header {
    background: linear-gradient(135deg, #d4a574, #f4e4bc);
}

body.theme-journal .feature-card i {
    color: #d4a574;
}

body.theme-business {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #3498db;
}

body.theme-business .app-header {
    background: linear-gradient(135deg, #2c3e50, #34495e);
}

body.theme-business .feature-card i {
    color: #2c3e50;
}

body.theme-cute {
    --primary-color: #ff9a9e;
    --secondary-color: #fecfef;
    --accent-color: #e91e63;
}

body.theme-cute .app-header {
    background: linear-gradient(135deg, #ff9a9e, #fecfef);
}

body.theme-cute .feature-card i {
    color: #ff9a9e;
}

body.theme-sport {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #4facfe;
}

body.theme-sport .app-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

body.theme-sport .feature-card i {
    color: #667eea;
}

/* 路线规划页面 */
.route-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
}

.route-header button {
    background: rgba(108, 117, 125, 0.8);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.route-header button:hover {
    background: rgba(108, 117, 125, 1);
    transform: translateY(-2px);
}

.route-header h2 {
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    font-weight: 600;
    margin: 0;
}

/* 路线概览 */
.route-summary {
    margin-bottom: 25px;
}

.route-info-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.route-points {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px 0;
}

.point {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #333;
}

.point.start i {
    color: #28a745;
    font-size: 18px;
}

.point.end i {
    color: #dc3545;
    font-size: 18px;
}

.route-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, #28a745, #dc3545);
    margin: 0 20px;
    position: relative;
}

.route-line::after {
    content: '';
    position: absolute;
    right: -5px;
    top: -3px;
    width: 0;
    height: 0;
    border-left: 8px solid #dc3545;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
}

/* 交通方式标签 */
.transport-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
}

.tab-btn {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border: 2px solid rgba(102, 126, 234, 0.2);
    padding: 12px 15px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-btn:hover, .tab-btn.active {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.map-section {
    margin-bottom: 25px;
}

.map-container {
    position: relative;
    height: 350px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.map-container.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    border-radius: 0;
}

#mapContainer {
    width: 100%;
    height: 100%;
}

.map-controls {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 10px;
    z-index: 1000;
}

.map-controls button {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border: none;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.map-controls button:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.05);
}

.route-details-section {
    margin-bottom: 25px;
}

.route-details {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
    border-left: 5px solid transparent;
    border-image: var(--primary-gradient) 1;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.route-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

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

.route-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

.route-icon.driving {
    background: var(--primary-gradient);
}

.route-icon.transit {
    background: var(--success-gradient);
}

.route-icon.walking {
    background: var(--warning-gradient);
}

.route-text {
    flex: 1;
}

.route-time {
    font-weight: 600;
    color: #667eea;
}

.route-distance {
    font-size: 0.9em;
    color: #666;
}

.bus-info {
    background: linear-gradient(135deg, rgba(116, 185, 255, 0.1), rgba(9, 132, 227, 0.1));
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* 操作按钮 */
.route-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

.confirm-btn {
    background: var(--success-gradient);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.4);
    transition: var(--transition);
}

.confirm-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.6);
}

.share-btn {
    background: var(--secondary-gradient);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(240, 147, 251, 0.4);
    transition: var(--transition);
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(240, 147, 251, 0.6);
}

.bus-line {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    margin-bottom: 10px;
    transition: var(--transition);
}

.bus-line:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateX(5px);
}

.bus-number {
    background: var(--primary-gradient);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-weight: 600;
    font-size: 0.9em;
}

.bus-status {
    flex: 1;
}

.bus-arrival {
    font-weight: 600;
    color: #28a745;
}

.bus-distance {
    font-size: 0.9em;
    color: #666;
}

/* 分享预览 */
.share-preview {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 249, 250, 0.95));
    border: 2px dashed rgba(102, 126, 234, 0.3);
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 20px;
    min-height: 220px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.share-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--secondary-gradient);
    opacity: 0.6;
}

.share-content {
    font-family: 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
}

.share-content h4 {
    color: #667eea;
    margin-bottom: 10px;
}

.share-content .date-header {
    font-size: 18px;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 15px;
    text-align: center;
}

.share-content .schedule-summary {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0;
}

.share-content .thoughts-summary {
    background: #e8f4fd;
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0;
    font-style: italic;
}

.share-content .photo-count {
    color: #28a745;
    font-weight: bold;
}

/* 表单样式 */
form {
    display: grid;
    gap: 20px;
}

.add-item {
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.9), rgba(233, 236, 239, 0.9)) !important;
    border: 2px solid rgba(102, 126, 234, 0.1) !important;
}

input, select, textarea {
    padding: 15px 20px;
    border: 2px solid rgba(225, 229, 233, 0.5);
    border-radius: 12px;
    font-size: 16px;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    font-weight: 500;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1), 0 4px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 1);
}

input::placeholder, textarea::placeholder {
    color: #999;
    font-weight: 400;
}

textarea {
    resize: vertical;
    min-height: 80px;
}

button {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
}

button::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;
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

button:hover::before {
    left: 100%;
}

button:active {
    transform: translateY(-1px);
}

/* 天气信息 */
.weather-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.weather-card {
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    color: white;
    padding: 25px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 4px 20px rgba(116, 185, 255, 0.3);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.weather-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shimmer 3s infinite;
}

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

.weather-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 30px rgba(116, 185, 255, 0.5);
}

.weather-card h3 {
    font-size: 1.1em;
    margin-bottom: 10px;
    font-weight: 600;
}

.weather-card p {
    font-size: 1.4em;
    font-weight: 700;
}

.weather-warning {
    background: linear-gradient(135deg, #fd79a8, #e84393);
    padding: 20px;
    border-radius: var(--border-radius);
    color: white;
    margin-top: 15px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(253, 121, 168, 0.4);
    font-weight: 600;
    animation: pulse 2s infinite;
}

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

/* 行程列表 */
.schedule-item {
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.9), rgba(233, 236, 239, 0.9));
    border-left: 5px solid transparent;
    border-image: var(--primary-gradient) 1;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.schedule-item:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 249, 250, 0.95));
}

.schedule-item h3 {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    font-size: 1.3em;
    font-weight: 700;
}

.schedule-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-item i {
    color: #667eea;
    width: 20px;
}

.schedule-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.complete-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.complete-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

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

.schedule-item.completed {
    opacity: 0.7;
}

.schedule-item.completed h3 {
    text-decoration: line-through;
}

.schedule-item.completed .complete-btn {
    background: linear-gradient(135deg, #6c757d, #5a6268);
}

.delete-btn {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.delete-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

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

.schedule-notes {
    margin-top: 12px;
    padding: 12px;
    background: rgba(102, 126, 234, 0.05);
    border-left: 3px solid #667eea;
    border-radius: 6px;
    color: #666;
    font-size: 0.95em;
    line-height: 1.6;
}

/* 分享功能 */
.share-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.share-buttons button {
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    transition: var(--transition);
}

.share-buttons button:nth-child(1) { 
    background: linear-gradient(135deg, #07c160, #00d4aa);
    box-shadow: 0 4px 15px rgba(7, 193, 96, 0.4);
}
.share-buttons button:nth-child(2) { 
    background: linear-gradient(135deg, #e6162d, #ff6b6b);
    box-shadow: 0 4px 15px rgba(230, 22, 45, 0.4);
}
.share-buttons button:nth-child(3) { 
    background: linear-gradient(135deg, #6c757d, #495057);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.4);
}
.share-buttons button:nth-child(4) { 
    background: linear-gradient(135deg, #fd7e14, #ff922b);
    box-shadow: 0 4px 15px rgba(253, 126, 20, 0.4);
}

.share-buttons button:hover {
    transform: translateY(-3px);
}

/* APP样式优化 */
@media (display-mode: standalone) {
    body {
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* 响应式设计 */
@media (max-width: 600px) {
    .container {
        padding: 10px;
    }
    
    header h1 {
        font-size: 2em;
    }
    
    section {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    /* 移动端优化 */
    input, select, textarea {
        font-size: 16px; /* 防止iOS缩放 */
    }
    
    button {
        min-height: 44px; /* 触摸友好 */
    }
    
    .calendar-day {
        min-height: 40px;
        font-size: 14px;
    }
    
    .day-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .photo-gallery {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 12px;
    }
    
    .share-buttons {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .share-buttons button {
        font-size: 13px;
        padding: 12px 15px;
    }
    
    .weather-info {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .weather-card {
        padding: 20px 15px;
    }
    
    section {
        padding: 20px;
    }
    
    header h1 {
        font-size: 2.2em;
    }
    
/* 移动端优化 */
@media (max-width: 480px) {
    .app-header {
        padding: env(safe-area-inset-top, 16px) 16px 16px;
    }
    
    .page-section {
        padding: 16px;
    }
    
    .feature-grid {
        padding: 12px;
        gap: 12px;
    }
    
    .feature-card {
        padding: 16px;
        min-height: 120px;
    }
    
    .feature-card i {
        font-size: 1.8em;
    }
    
    .schedule-preview-item {
        font-size: 0.7em;
        padding: 3px 6px;
    }
    
    .photo-thumbnails img {
        width: 24px;
        height: 24px;
    }
    
    .photo-count {
        width: 24px;
        height: 24px;
        font-size: 0.65em;
    }
    
    .calendar-grid {
        padding: 8px;
        gap: 2px;
    }
    
    .calendar-day {
        min-height: 36px;
        font-size: 0.8em;
    }
    
    .weather-container {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .photo-gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
    
    .share-actions {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .theme-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .card-preview {
        max-height: 30px;
        font-size: 0.65em;
    }
    
    .photo-thumbnails img {
        width: 16px;
        height: 16px;
    }
    
    .form-container {
        gap: 12px;
    }
    
    input, select, textarea {
        padding: 10px 12px;
        font-size: 16px;
    }
    
    .platform-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .platform-btn {
        padding: 12px 8px;
        font-size: 0.8em;
    }
    
    .platform-btn i {
        font-size: 1.3em;
    }
}
}

.weather-loading {
    text-align: center;
    color: #666;
    font-style: italic;
}

.empty-schedule {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 50px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    border: 2px dashed rgba(153, 153, 153, 0.3);
    font-size: 1.1em;
}

/* 事项摘要页面 */
.summary-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.2s ease;
    border-left: 4px solid #667eea;
}

.summary-item:active {
    transform: scale(0.98);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.summary-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.summary-content {
    flex: 1;
}

.summary-time {
    font-size: 0.9em;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 4px;
}

.summary-title {
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.summary-location {
    font-size: 0.85em;
    color: #666;
    display: flex;
    align-items: center;
    gap: 4px;
}

.summary-location i {
    color: #28a745;
}

/* 分享页面样式 */
.share-preview-card {
    background: linear-gradient(135deg, #fff, #f8f9fa);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.share-date {
    font-size: 1.2em;
    font-weight: 700;
    color: #667eea;
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f3f4;
}

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

.share-section h4 {
    font-size: 1em;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.share-item {
    padding: 12px 12px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 0.9em;
    color: #333;
    border-left: 3px solid #667eea;
    line-height: 1.6;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.share-item .location {
    color: #28a745;
    font-size: 0.85em;
}

.share-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.share-photo {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    background: #f1f3f4;
}

.share-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.share-photo.more-count {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-size: 1.5em;
    font-weight: 700;
}

.share-thoughts {
    padding: 12px;
    background: #e8f4fd;
    border-radius: 8px;
    font-size: 0.9em;
    line-height: 1.6;
    color: #333;
    font-style: italic;
    border-left: 3px solid #667eea;
}

.share-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 1em;
    line-height: 1.8;
}

.toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 0.9em;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.share-weather {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: linear-gradient(135deg, #74b9ff, #a29bfe);
    border-radius: 12px;
    color: white;
    font-weight: 600;
    margin-bottom: 16px;
    font-size: 0.95em;
}

.weather-icon {
    font-size: 1.3em;
}

.weather-detail {
    font-size: 0.85em;
    opacity: 0.9;
}

.share-item .time {
    color: #667eea;
    font-weight: 600;
}

.share-item .transport {
    color: #fd7e14;
    font-size: 0.85em;
}

.share-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 2px dashed #e9ecef;
    color: #667eea;
    font-size: 0.9em;
    font-weight: 600;
    justify-content: center;
}

.share-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

@media (max-width: 480px) {
    .share-photo-grid {
        gap: 4px;
    }
}

/* 日历预览 */
.calendar-preview {
    display: none;
    margin-top: 16px;
    padding: 16px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.preview-title {
    font-size: 1em;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 12px;
}

.preview-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.preview-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 0.85em;
}

.preview-time {
    color: #667eea;
    font-weight: 600;
    min-width: 45px;
}

.preview-more {
    text-align: center;
    color: #999;
    font-size: 0.8em;
    padding: 4px;
}

.preview-empty {
    text-align: center;
    color: #999;
    padding: 20px;
    font-style: italic;
}

/* 二级页面行程预览 */
.day-schedule-preview {
    display: none;
    background: white;
    margin: 0 0 8px 0;
    padding: 24px 20px;
    border-bottom: 1px solid #e9ecef;
}

.day-schedule-preview h3 {
    font-size: 1em;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.schedule-preview-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.schedule-preview-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: linear-gradient(135deg, #f8f9fa 0%, #f5f6f8 100%);
    border-radius: 8px;
    border-left: 3px solid #667eea;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    min-height: 44px;
}

.schedule-preview-item:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #e3e6ea 100%);
    transform: translateX(6px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

.schedule-preview-item::after {
    content: '✏️';
    position: absolute;
    right: 8px;
    opacity: 0;
    transition: opacity 0.2s ease;
    font-size: 0.9em;
}

.schedule-preview-item:hover::after {
    opacity: 1;
}

.schedule-preview-item .time {
    color: #667eea;
    font-weight: 600;
    font-size: 15px;
    min-width: 55px;
    flex-shrink: 0;
}

.schedule-preview-item .title {
    flex: 1;
    font-size: 15px;
    color: #333;
    font-weight: 500;
}

.schedule-preview-item .dest {
    color: #28a745;
    font-size: 13px;
    flex-shrink: 0;
}

/* 模式切换 */
.mode-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.mode-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mode-card:active {
    transform: scale(0.98);
}

.mode-card.active {
    border-color: var(--mode-primary, #667eea);
    background: rgba(102, 126, 234, 0.1);
}

body.mode-work .mode-card.active {
    border-color: #003d82;
    background: rgba(0, 61, 130, 0.1);
}

body.mode-leisure .mode-card.active {
    border-color: #ff9a9e;
    background: rgba(255, 154, 158, 0.1);
}

body.mode-fitness .mode-card.active {
    border-color: #ff6b35;
    background: rgba(255, 107, 53, 0.1);
}

body.mode-custom .mode-card.active {
    border-color: #9c27b0;
    background: rgba(156, 39, 176, 0.1);
}

.mode-card i {
    font-size: 2em;
    color: var(--mode-primary, #667eea);
    margin-bottom: 8px;
}

body.mode-work .mode-card i {
    color: #003d82;
}

body.mode-leisure .mode-card i {
    color: #ff9a9e;
}

body.mode-fitness .mode-card i {
    color: #ff6b35;
}

body.mode-custom .mode-card i {
    color: #9c27b0;
}

.mode-card h4 {
    font-size: 0.9em;
    font-weight: 600;
    color: #333;
    margin: 8px 0 4px 0;
}

.mode-card p {
    font-size: 0.75em;
    color: #666;
    margin: 0;
}

/* 开关按钮 */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .3s;
    border-radius: 26px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #667eea;
}

input:checked + .slider:before {
    transform: translateX(24px);
}

/* 分享模板 */
.template-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.template-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.template-card:active {
    transform: scale(0.98);
}

.template-card.active {
    border-color: #667eea;
    background: #f8f9ff;
}

.template-preview {
    width: 100%;
    height: 80px;
    border-radius: 6px;
    margin-bottom: 8px;
}

.classic-template {
    background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
}

.modern-template {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.minimal-template {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border: 1px solid #dee2e6;
}

.colorful-template {
    background: linear-gradient(135deg, #ff9a9e, #fecfef, #a8edea);
}

.template-card span {
    font-size: 0.85em;
    font-weight: 500;
    color: #333;
}

/* 模式背景 */
body.mode-work {
    --mode-primary: #003d82;
    --mode-secondary: #0051a5;
    background: linear-gradient(180deg, #e8f2ff 0%, #d4e7ff 100%);
}

body.mode-work .app-header {
    background: linear-gradient(135deg, #003d82, #0051a5);
}

body.mode-work .app-content {
    background: linear-gradient(180deg, #e8f2ff, #d4e7ff);
}

body.mode-work .feature-card {
    background: linear-gradient(135deg, #fff, #f0f7ff);
    border: 2px solid #b3d9ff;
}

body.mode-work .feature-card i {
    background: linear-gradient(135deg, #003d82, #0051a5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.mode-work .calendar-day.today {
    background: linear-gradient(135deg, #003d82, #0051a5);
}

body.mode-work .primary-btn {
    background: linear-gradient(135deg, #003d82, #0051a5);
}

body.mode-travel {
    --mode-primary: #667eea;
    --mode-secondary: #764ba2;
}

body.mode-travel .app-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

body.mode-leisure {
    --mode-primary: #ff9a9e;
    --mode-secondary: #fecfef;
    background: linear-gradient(180deg, #fff5f8 0%, #ffe8f0 100%);
}

body.mode-leisure .app-header {
    background: linear-gradient(135deg, #ff9a9e, #fecfef, #fad0c4);
}

body.mode-leisure .app-content {
    background: linear-gradient(180deg, #fff5f8, #ffe8f0);
}

body.mode-leisure .feature-card {
    background: linear-gradient(135deg, #fff, #fff5f8);
    border: 2px solid #ffc0cb;
}

body.mode-leisure .feature-card i {
    background: linear-gradient(135deg, #ff9a9e, #fecfef);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.mode-leisure .calendar-day.today {
    background: linear-gradient(135deg, #ff9a9e, #fecfef);
}

body.mode-leisure .primary-btn {
    background: linear-gradient(135deg, #ff9a9e, #fecfef);
}

/* 分享模板样式 */
.share-preview-card.template-classic {
    background: #f5f5f5;
    border: 2px solid #333;
}

.share-preview-card.template-modern {
    background: linear-gradient(135deg, #fff, #f8f9fa);
}

.share-preview-card.template-minimal {
    background: white;
    border: 1px solid #e9ecef;
}

.share-preview-card.template-colorful {
    background: linear-gradient(135deg, #fff5f5, #f5f5ff, #f5fffa);
}

/* 天气标签页 */
.weather-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    justify-content: center;
}

.weather-tab-btn {
    padding: 8px 20px;
    border: 2px solid #667eea;
    background: white;
    color: #667eea;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 600;
    transition: all 0.3s ease;
}

.weather-tab-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.multi-day-weather {
    margin-bottom: 20px;
}

/* 登录页面 */
.login-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.login-page::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite reverse;
}

.login-container {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 45px 35px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 25px 70px rgba(0,0,0,0.25), 0 10px 30px rgba(0,0,0,0.15);
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255,255,255,0.3);
}

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

.app-logo {
    position: relative;
    width: 110px;
    height: 110px;
    margin: 0 auto 20px;
}

.logo-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 28px;
    transform: rotate(45deg);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.35);
    animation: logoRotate 20s linear infinite;
}

.logo-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.calendar-icon {
    width: 50px;
    height: 55px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    position: relative;
    animation: calendarBounce 2s ease-in-out infinite;
}

.calendar-top {
    width: 100%;
    height: 12px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 8px 8px 0 0;
    position: relative;
}

.calendar-top::before,
.calendar-top::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 8px;
    background: white;
    border-radius: 2px;
    top: -4px;
}

.calendar-top::before { left: 12px; }
.calendar-top::after { right: 12px; }

.calendar-body {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 43px;
}

.date-num {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-map {
    position: absolute;
    bottom: 8px;
    right: 8px;
    font-size: 28px;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    animation: mapFloat 3s ease-in-out infinite;
}

@keyframes logoRotate {
    0% { transform: rotate(45deg); }
    100% { transform: rotate(405deg); }
}

@keyframes calendarBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes mapFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-3px) scale(1.05); }
}

.login-header h1 {
    font-size: 2em;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 10px 0;
    font-weight: 700;
}

.login-header p {
    color: #666;
    font-size: 0.95em;
    margin-top: 8px;
}

.login-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 35px;
    background: #f8f9fa;
    padding: 6px;
    border-radius: 14px;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    border: none;
    background: transparent;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    color: #666;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.tab-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.auth-form .input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-form .input-group i {
    position: absolute;
    left: 18px;
    color: #667eea;
    font-size: 1.1em;
    z-index: 1;
    top: 50%;
    transform: translateY(-50%);
}

.auth-form input {
    width: 100%;
    padding: 16px 18px 16px 50px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
}

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

.auth-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 1.05em;
    font-weight: 600;
    cursor: pointer;
    margin-top: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

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

.auth-btn:active {
    transform: translateY(-1px);
}

.auth-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9em;
    color: #666;
    margin-top: 10px;
}

.auth-footer label {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-footer input[type="checkbox"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #667eea;
}

.quick-login {
    margin-top: 35px;
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid #e9ecef;
}

.quick-login p {
    color: #999;
    font-size: 0.9em;
    margin-bottom: 18px;
    position: relative;
}

.quick-login p::before,
.quick-login p::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: #e9ecef;
}

.quick-login p::before {
    left: 0;
}

.quick-login p::after {
    right: 0;
}

.guest-btn {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: white;
    border: none;
    padding: 14px 35px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.95em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.guest-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.4);
}

.guest-btn:active {
    transform: translateY(-1px);
}

.toast.error {
    background: #dc3545;
}

.toast.success {
    background: #28a745;
}

/* 用户信息 */
.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.2);
    padding: 6px 12px;
    border-radius: 20px;
    margin-right: 10px;
}

.user-info img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid white;
}

.user-info span {
    color: white;
    font-size: 0.9em;
    font-weight: 500;
}

.user-info button {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.user-info button:hover {
    background: rgba(255,255,255,0.3);
}

/* 云端同步 */
.cloud-sync-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sync-status {
    color: #666;
    font-size: 0.9em;
    text-align: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

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

.sync-buttons button {
    padding: 12px;
    font-size: 0.9em;
}

.secondary-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    grid-column: 1 / -1;
}

.secondary-btn:hover {
    background: #5a6268;
}

.cloud-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.cloud-modal-content {
    background: white;
    border-radius: 16px;
    padding: 30px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.cloud-modal-content h3 {
    margin: 0 0 10px 0;
    color: #333;
}

.cloud-modal-content p {
    color: #666;
    margin: 0 0 20px 0;
}

.setup-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

.step {
    display: flex;
    gap: 15px;
}

.step-number {
    width: 30px;
    height: 30px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h4 {
    margin: 0 0 8px 0;
    color: #333;
}

.step-content p {
    margin: 5px 0;
    font-size: 0.9em;
}

.step-content code {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

.step-content input {
    width: 100%;
    padding: 10px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    margin-top: 8px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.modal-actions button {
    flex: 1;
}

/* Firebase自动同步信息 */
.sync-info {
    text-align: center;
    padding: 30px 20px;
}

.sync-info h4 {
    margin: 15px 0 10px 0;
    color: #333;
    font-size: 1.1em;
}

.sync-info p {
    color: #666;
    margin: 8px 0;
    font-size: 0.9em;
}

.sync-detail {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.sync-detail i {
    color: #667eea;
}
/* 照片标签页 */
.photo-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}

.photo-tab-btn {
    flex: 1;
    padding: 12px;
    border: none;
    background: transparent;
    color: #666;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.photo-tab-btn.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.photo-tab-content {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.all-photo-gallery {
    max-height: 70vh;
    overflow-y: auto;
}

.photo-date-group {
    margin-bottom: 30px;
}

.photo-date-group h4 {
    font-size: 18px;
    color: #667eea;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f3f4;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
}
/* 工作模式背景元素 */
body.mode-work::before {
    content: '💼';
    position: fixed;
    top: 15%;
    right: 10%;
    font-size: 150px;
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
    transform: rotate(-15deg);
}

body.mode-work::after {
    content: '📊';
    position: fixed;
    bottom: 20%;
    left: 8%;
    font-size: 120px;
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
    transform: rotate(10deg);
}

/* 工作模式按钮配色 */
body.mode-work .upload-btn {
    background: linear-gradient(135deg, #003d82, #0051a5);
}

body.mode-work .save-btn {
    background: linear-gradient(135deg, #0051a5, #0066cc);
}

body.mode-work .calendar-nav {
    background: #003d82;
}

body.mode-work .action-btn {
    background: linear-gradient(135deg, #003d82, #0051a5);
}

body.mode-work .page-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

body.mode-work .feature-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* 旅行模式背景元素 */
body.mode-travel::before {
    content: '✈️';
    position: fixed;
    top: 20%;
    right: 12%;
    font-size: 140px;
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
    transform: rotate(-20deg);
}

body.mode-travel::after {
    content: '🗺️';
    position: fixed;
    bottom: 15%;
    left: 10%;
    font-size: 130px;
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
    transform: rotate(15deg);
}

/* 旅行模式按钮配色 */
body.mode-travel .upload-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
}

body.mode-travel .save-btn {
    background: linear-gradient(135deg, #17a2b8, #20c997);
}

body.mode-travel .calendar-nav {
    background: #667eea;
}

body.mode-travel .action-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

body.mode-travel .page-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

body.mode-travel .feature-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* 休闲模式背景元素 */
body.mode-leisure::before {
    content: '☕';
    position: fixed;
    top: 18%;
    right: 15%;
    font-size: 130px;
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
    transform: rotate(-12deg);
}

body.mode-leisure::after {
    content: '🎵';
    position: fixed;
    bottom: 22%;
    left: 12%;
    font-size: 110px;
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
    transform: rotate(18deg);
}

/* 休闲模式按钮配色 */
body.mode-leisure .upload-btn {
    background: linear-gradient(135deg, #ff9a9e, #fecfef);
}

body.mode-leisure .save-btn {
    background: linear-gradient(135deg, #fecfef, #fad0c4);
}

body.mode-leisure .calendar-nav {
    background: #ff9a9e;
}

body.mode-leisure .action-btn {
    background: linear-gradient(135deg, #ff9a9e, #fecfef);
}

body.mode-leisure .page-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

body.mode-leisure .feature-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
/* 运动模式样式 */
body.mode-fitness {
    --mode-primary: #ff6b35;
    --mode-secondary: #f7931e;
    background: linear-gradient(180deg, #fff5f0 0%, #ffe8e0 100%);
    position: relative;
}

body.mode-fitness::before {
    content: '💪';
    position: fixed;
    top: 20%;
    left: 10%;
    font-size: 140px;
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
    transform: rotate(-18deg);
}

body.mode-fitness::after {
    content: '🏃';
    position: fixed;
    bottom: 20%;
    right: 10%;
    font-size: 130px;
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
    transform: rotate(15deg);
}

body.mode-fitness .app-container {
    position: relative;
    z-index: 1;
}

body.mode-fitness .app-header {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.95), rgba(247, 147, 30, 0.95));
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
}

body.mode-fitness .app-content {
    background: transparent;
}

body.mode-fitness .page-section {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 107, 53, 0.2);
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.1);
}

body.mode-fitness .feature-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 107, 53, 0.3);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.15);
}

body.mode-fitness .feature-card:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(255, 107, 53, 0.5);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.25);
}

body.mode-fitness .feature-card i {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(255, 107, 53, 0.3));
}

body.mode-fitness .calendar-section {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 107, 53, 0.2);
}

body.mode-fitness .calendar-day {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 107, 53, 0.1);
}

body.mode-fitness .calendar-day.today {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

body.mode-fitness .calendar-day.has-schedule {
    background: rgba(255, 107, 53, 0.8);
}

body.mode-fitness .primary-btn {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

body.mode-fitness .primary-btn:hover {
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

body.mode-fitness .upload-btn {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
}

body.mode-fitness .save-btn {
    background: linear-gradient(135deg, #f7931e, #ffb347);
}

body.mode-fitness .calendar-nav {
    background: #ff6b35;
}

body.mode-fitness .action-btn {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
}

body.mode-fitness input:focus,
body.mode-fitness select:focus,
body.mode-fitness textarea:focus {
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}
/* 设置页面动态配色 */
.settings-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.settings-primary-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.settings-icon {
    margin-right: 8px;
    color: #667eea;
}

.settings-accent {
    color: #667eea;
}

body.mode-travel .settings-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

body.mode-travel .settings-primary-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

body.mode-travel .settings-icon {
    color: #667eea;
}

body.mode-travel .settings-accent {
    color: #667eea;
}

body.mode-work .settings-header {
    background: linear-gradient(135deg, #003d82, #0051a5);
}

body.mode-work .settings-primary-btn {
    background: linear-gradient(135deg, #003d82, #0051a5);
}

body.mode-work .settings-icon {
    color: #003d82;
}

body.mode-work .settings-accent {
    color: #003d82;
}

body.mode-leisure .settings-header {
    background: linear-gradient(135deg, #ff9a9e, #fecfef);
}

body.mode-leisure .settings-primary-btn {
    background: linear-gradient(135deg, #ff9a9e, #fecfef);
}

body.mode-leisure .settings-icon {
    color: #ff9a9e;
}

body.mode-leisure .settings-accent {
    color: #ff9a9e;
}

body.mode-fitness .settings-header {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
}

body.mode-fitness .settings-primary-btn {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
}

body.mode-fitness .settings-icon {
    color: #ff6b35;
}

body.mode-fitness .settings-accent {
    color: #ff6b35;
}

body.mode-custom .settings-header {
    background: linear-gradient(135deg, #9c27b0, #ba68c8);
}

body.mode-custom .settings-primary-btn {
    background: linear-gradient(135deg, #9c27b0, #ba68c8);
}

body.mode-custom .settings-icon {
    color: #9c27b0;
}

body.mode-custom .settings-accent {
    color: #9c27b0;
}

/* 自定义模式样式 */
body.mode-custom {
    --mode-primary: #9c27b0;
    --mode-secondary: #ba68c8;
    background: linear-gradient(180deg, #f3e5f5 0%, #e1bee7 100%);
}

body.mode-custom .app-header {
    background: linear-gradient(135deg, #9c27b0, #ba68c8);
}

body.mode-custom .feature-card i {
    background: linear-gradient(135deg, #9c27b0, #ba68c8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.mode-custom .calendar-day.today {
    background: linear-gradient(135deg, #9c27b0, #ba68c8);
}

body.mode-custom .primary-btn {
    background: linear-gradient(135deg, #9c27b0, #ba68c8);
}

body.mode-custom .upload-btn {
    background: linear-gradient(135deg, #9c27b0, #ba68c8);
}

body.mode-custom .save-btn {
    background: linear-gradient(135deg, #ba68c8, #ce93d8);
}

body.mode-custom .calendar-nav {
    background: #9c27b0;
}

body.mode-custom .action-btn {
    background: linear-gradient(135deg, #9c27b0, #ba68c8);
}

/* 自定义模式弹窗 */
.custom-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.custom-modal-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 400px;
    width: 100%;
}

.custom-modal-content h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 1.3em;
}

.custom-modal-content input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 16px;
    margin-bottom: 20px;
}

.custom-modal-actions {
    display: flex;
    gap: 10px;
}

.custom-modal-actions button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.custom-modal-actions .cancel-btn {
    background: #6c757d;
    color: white;
}

.custom-modal-actions .confirm-btn {
    background: linear-gradient(135deg, #9c27b0, #ba68c8);
    color: white;
}

.save-btn[onclick="saveAndShare()"] {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
}

body.mode-work .save-btn[onclick="saveAndShare()"] {
    background: linear-gradient(135deg, #003d82, #0051a5) !important;
}

body.mode-leisure .save-btn[onclick="saveAndShare()"] {
    background: linear-gradient(135deg, #ff9a9e, #fecfef) !important;
}

body.mode-fitness .save-btn[onclick="saveAndShare()"] {
    background: linear-gradient(135deg, #ff6b35, #f7931e) !important;
}

body.mode-custom .save-btn[onclick="saveAndShare()"] {
    background: linear-gradient(135deg, #9c27b0, #ba68c8) !important;
}

/* 模板选择弹窗 */
.template-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.template-modal-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 400px;
    width: 100%;
}

.template-modal-content h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 1.3em;
    text-align: center;
}

.template-modal .template-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.template-modal .template-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.template-modal .template-card:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.template-modal .close-modal {
    width: 100%;
    padding: 12px;
    border: none;
    background: #e9ecef;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

/* 手账手绘模式 - 可爱胶带贴纸风格 */
body.mode-journal {
    --mode-primary: #FFB6C1;
    --mode-secondary: #FFE4E1;
    background: linear-gradient(180deg, #FFF5F7 0%, #FFE8EC 100%);
    position: relative;
}

body.mode-journal::before {
    content: '✏️ 📓 📖 📝 ✏️ 📓 📖 📝 ✏️ 📓 📖 📝';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    font-size: 40px;
    opacity: 0.08;
    word-wrap: break-word;
    word-break: break-all;
    line-height: 2;
    pointer-events: none;
    z-index: 0;
    padding: 20px;
}

body.mode-journal::after {
    content: '💖';
    position: fixed;
    bottom: 60px;
    right: 40px;
    font-size: 80px;
    opacity: 0.15;
    transform: rotate(15deg);
    pointer-events: none;
    z-index: 1;
    animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: rotate(15deg) scale(1); }
    50% { transform: rotate(15deg) scale(1.1); }
}

body.mode-journal .app-container {
    position: relative;
    z-index: 1;
    box-shadow: 0 0 30px rgba(212, 165, 116, 0.2);
}

body.mode-journal .app-header {
    background: linear-gradient(135deg, #FFB6C1, #FFD4E5);
    box-shadow: 0 4px 20px rgba(255, 182, 193, 0.4);
    position: relative;
}

body.mode-journal .app-header::before {
    content: '✏️';
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%) rotate(-15deg);
    font-size: 24px;
    opacity: 0.4;
}

body.mode-journal .app-content {
    background: transparent;
}

body.mode-journal .page-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 182, 193, 0.4);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(255, 182, 193, 0.2);
    position: relative;
}

body.mode-journal .page-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 12px;
    background: repeating-linear-gradient(90deg, transparent, transparent 8px, rgba(255,182,193,0.3) 8px, rgba(255,182,193,0.3) 10px, transparent 10px, transparent 18px, rgba(255,182,193,0.4) 18px, rgba(255,182,193,0.4) 20px);
    border-radius: 16px 16px 0 0;
}

body.mode-journal .page-section::after {
    content: '✨';
    position: absolute;
    bottom: 10px;
    left: 15px;
    font-size: 20px;
    opacity: 0.3;
    animation: sparkle 3s ease-in-out infinite;
}

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

body.mode-journal .feature-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(255,245,247,0.98));
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 182, 193, 0.4);
    box-shadow: 0 4px 15px rgba(255, 182, 193, 0.25);
    position: relative;
}

body.mode-journal .feature-card::before {
    content: '📓';
    position: absolute;
    top: -10px;
    right: 10px;
    font-size: 20px;
    opacity: 0.3;
    transform: rotate(15deg);
}

body.mode-journal .feature-card:hover {
    transform: translateY(-5px) rotate(1deg);
    box-shadow: 0 8px 25px rgba(255, 182, 193, 0.35);
}

body.mode-journal .feature-card:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(212, 165, 116, 0.6);
    box-shadow: 0 6px 20px rgba(212, 165, 116, 0.3);
}

body.mode-journal .feature-card i {
    background: linear-gradient(135deg, #FFB6C1, #FFD4E5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(255, 182, 193, 0.4));
}

body.mode-journal .calendar-day.today {
    background: linear-gradient(135deg, #FFB6C1, #FFD4E5);
    box-shadow: 0 4px 12px rgba(255, 182, 193, 0.4);
}

body.mode-journal .primary-btn {
    background: linear-gradient(135deg, #FFB6C1, #FFD4E5);
    box-shadow: 0 4px 15px rgba(255, 182, 193, 0.4);
}

body.mode-journal .day-header {
    background: linear-gradient(135deg, #FFB6C1, #FFD4E5);
}

body.mode-journal .section-title i {
    color: #FFB6C1;
}

body.mode-journal .settings-header {
    background: linear-gradient(135deg, #FFB6C1, #FFD4E5);
}

body.mode-journal .settings-icon {
    color: #FFB6C1;
}

body.mode-journal .settings-accent {
    color: #FFB6C1;
}

/* 中国风手绘模式 - 水墨印章写意风格 */
body.mode-chinese {
    --mode-primary: #c41e3a;
    --mode-secondary: #f4d03f;
    background: #fff8f0;
    position: relative;
}

body.mode-chinese::before {
    content: '';
    position: fixed;
    top: 50px;
    right: 30px;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(196,30,58,0.15) 0%, rgba(196,30,58,0.05) 50%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    filter: blur(2px);
}

body.mode-chinese::after {
    content: '🐉';
    position: fixed;
    bottom: 80px;
    left: 40px;
    font-size: 120px;
    opacity: 0.12;
    transform: rotate(-15deg);
    pointer-events: none;
    z-index: 1;
    filter: drop-shadow(2px 2px 6px rgba(196,30,58,0.3));
}

body.mode-chinese .app-container {
    position: relative;
    z-index: 1;
    box-shadow: 0 0 30px rgba(196, 30, 58, 0.2);
}

body.mode-chinese .app-header {
    background: linear-gradient(135deg, #c41e3a, #d4af37);
    box-shadow: 0 4px 20px rgba(196, 30, 58, 0.3);
}

body.mode-chinese .app-content {
    background: transparent;
}

body.mode-chinese .page-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(196, 30, 58, 0.4);
    border-radius: 0;
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.15);
    position: relative;
}

body.mode-chinese .page-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: repeating-linear-gradient(90deg, #c41e3a 0px, #c41e3a 20px, #d4af37 20px, #d4af37 40px);
    opacity: 0.6;
}

body.mode-chinese .page-section::after {
    content: '';
    position: absolute;
    top: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    background: radial-gradient(circle, rgba(196,30,58,0.2) 30%, transparent 70%);
    border-radius: 50%;
    filter: blur(8px);
}

body.mode-chinese .feature-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(196, 30, 58, 0.3);
    border-radius: 0;
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.2);
    position: relative;
}

body.mode-chinese .feature-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #c41e3a 50%, transparent 50%);
    opacity: 0.6;
}

body.mode-chinese .feature-card::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 30px;
    height: 30px;
    background: linear-gradient(-45deg, #d4af37 50%, transparent 50%);
    opacity: 0.6;
}

body.mode-chinese .feature-card:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(196, 30, 58, 0.5);
    box-shadow: 0 6px 20px rgba(196, 30, 58, 0.3);
}

body.mode-chinese .feature-card i {
    background: linear-gradient(135deg, #c41e3a, #d4af37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(196, 30, 58, 0.3));
}

body.mode-chinese .calendar-day.today {
    background: linear-gradient(135deg, #c41e3a, #d4af37);
}

body.mode-chinese .primary-btn {
    background: linear-gradient(135deg, #c41e3a, #d4af37);
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.3);
}

body.mode-chinese .day-header {
    background: linear-gradient(135deg, #c41e3a, #d4af37);
}

body.mode-chinese .section-title i {
    color: #c41e3a;
}

body.mode-chinese .settings-header {
    background: linear-gradient(135deg, #c41e3a, #d4af37);
}

body.mode-chinese .settings-icon {
    color: #c41e3a;
}

body.mode-chinese .settings-accent {
    color: #c41e3a;
}

/* 咖啡休闲模式 - 咖啡馆文艺风格 */
body.mode-coffee {
    --mode-primary: #8B4513;
    --mode-secondary: #D2691E;
    background: linear-gradient(180deg, #FFF8DC 0%, #FAEBD7 100%);
    position: relative;
}

body.mode-coffee::before {
    content: '☕';
    position: fixed;
    top: 18%;
    right: 12%;
    font-size: 140px;
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
    transform: rotate(-15deg);
}

body.mode-coffee::after {
    content: '📖';
    position: fixed;
    bottom: 22%;
    left: 10%;
    font-size: 120px;
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
    transform: rotate(12deg);
}

body.mode-coffee .app-container {
    position: relative;
    z-index: 1;
    box-shadow: 0 0 30px rgba(139, 69, 19, 0.2);
    background: rgba(255, 248, 220, 0.95);
}

body.mode-coffee .app-header {
    background: linear-gradient(135deg, #8B4513, #D2691E);
    box-shadow: 0 4px 20px rgba(139, 69, 19, 0.3);
    position: relative;
}

body.mode-coffee .app-header::before {
    content: '☕';
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    font-size: 24px;
    opacity: 0.3;
}

body.mode-coffee .app-content {
    background: rgba(250, 235, 215, 0.3);
}

body.mode-coffee .page-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 69, 19, 0.25);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.15);
    position: relative;
}

body.mode-coffee .page-section::before {
    content: '';
    display: none;
}

body.mode-coffee .page-section::after {
    content: '';
    display: none;
}

body.mode-coffee .feature-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 69, 19, 0.3);
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.2);
    border-radius: 16px;
    position: relative;
}

body.mode-coffee .feature-card::before {
    content: '';
    display: none;
}

body.mode-coffee .feature-card::after {
    content: '☕';
    position: absolute;
    bottom: 5px;
    left: 8px;
    font-size: 16px;
    opacity: 0.1;
    transform: rotate(-15deg);
}

body.mode-coffee .feature-card:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(111, 78, 55, 0.4);
    box-shadow: 0 6px 20px rgba(111, 78, 55, 0.3);
}

body.mode-coffee .feature-card i {
    background: linear-gradient(135deg, #8B4513, #D2691E);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(139, 69, 19, 0.3));
}

body.mode-coffee .calendar-day.today {
    background: linear-gradient(135deg, #8B4513, #D2691E);
}

body.mode-coffee .primary-btn {
    background: linear-gradient(135deg, #8B4513, #D2691E);
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
}

body.mode-coffee .day-header {
    background: linear-gradient(135deg, #8B4513, #D2691E);
}

body.mode-coffee .section-title i {
    color: #8B4513;
}

body.mode-coffee .settings-header {
    background: linear-gradient(135deg, #8B4513, #D2691E);
}

body.mode-coffee .settings-header .back-btn {
    background: rgba(255,255,255,0.25) !important;
    color: white !important;
    border-color: rgba(255,255,255,0.3) !important;
    pointer-events: auto !important;
    z-index: 10 !important;
}

body.mode-coffee .settings-icon {
    color: #8B4513;
}

body.mode-coffee .settings-accent {
    color: #8B4513;
}

body.mode-coffee .calendar-nav {
    background: linear-gradient(135deg, #8B4513, #D2691E);
}

body.mode-coffee .upload-btn {
    background: linear-gradient(135deg, #8B4513, #D2691E);
}

body.mode-coffee .save-btn {
    background: linear-gradient(135deg, #D2691E, #CD853F);
}

/* 快捷操作按钮 */
.quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.quick-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    color: white;
    padding: 14px 20px;
    border-radius: 16px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.quick-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.quick-btn:active {
    transform: translateY(-1px);
}

.quick-btn.explore-schedule {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.3);
}

.quick-btn.explore-schedule:hover {
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.4);
}

/* 工作模式按钮配色 */
body.mode-work .quick-btn.my-schedule {
    background: linear-gradient(135deg, #003d82, #0051a5);
    box-shadow: 0 4px 15px rgba(0, 61, 130, 0.3);
}

body.mode-work .quick-btn.my-schedule:hover {
    box-shadow: 0 6px 20px rgba(0, 61, 130, 0.4);
}

body.mode-work .quick-btn.explore-schedule {
    background: linear-gradient(135deg, #0066cc, #0080ff);
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

body.mode-work .quick-btn.explore-schedule:hover {
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
}

/* 旅行模式按钮配色 */
body.mode-travel .quick-btn.my-schedule {
    background: linear-gradient(135deg, #667eea, #764ba2);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

body.mode-travel .quick-btn.explore-schedule {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.3);
}

/* 休闲模式按钮配色 */
body.mode-leisure .quick-btn.my-schedule {
    background: linear-gradient(135deg, #ff9a9e, #fecfef);
    box-shadow: 0 4px 15px rgba(255, 154, 158, 0.3);
}

body.mode-leisure .quick-btn.my-schedule:hover {
    box-shadow: 0 6px 20px rgba(255, 154, 158, 0.4);
}

body.mode-leisure .quick-btn.explore-schedule {
    background: linear-gradient(135deg, #fad0c4, #ffd1ff);
    box-shadow: 0 4px 15px rgba(250, 208, 196, 0.3);
}

body.mode-leisure .quick-btn.explore-schedule:hover {
    box-shadow: 0 6px 20px rgba(250, 208, 196, 0.4);
}

/* 运动模式按钮配色 */
body.mode-fitness .quick-btn.my-schedule {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

body.mode-fitness .quick-btn.my-schedule:hover {
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

body.mode-fitness .quick-btn.explore-schedule {
    background: linear-gradient(135deg, #ffb347, #ffc837);
    box-shadow: 0 4px 15px rgba(255, 179, 71, 0.3);
}

body.mode-fitness .quick-btn.explore-schedule:hover {
    box-shadow: 0 6px 20px rgba(255, 179, 71, 0.4);
}

/* 手账手绘模式按钮配色 */
body.mode-journal .quick-btn.my-schedule {
    background: linear-gradient(135deg, #FFB6C1, #FFD4E5);
    box-shadow: 0 4px 15px rgba(255, 182, 193, 0.4);
}

body.mode-journal .quick-btn.my-schedule:hover {
    box-shadow: 0 6px 20px rgba(255, 182, 193, 0.5);
}

body.mode-journal .quick-btn.explore-schedule {
    background: linear-gradient(135deg, #FFD4E5, #FFE8F0);
    box-shadow: 0 4px 15px rgba(255, 212, 229, 0.4);
}

body.mode-journal .quick-btn.explore-schedule:hover {
    box-shadow: 0 6px 20px rgba(255, 212, 229, 0.5);
}

/* 中国风模式按钮配色 */
body.mode-chinese .quick-btn.my-schedule {
    background: linear-gradient(135deg, #c41e3a, #d4af37);
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.3);
}

body.mode-chinese .quick-btn.my-schedule:hover {
    box-shadow: 0 6px 20px rgba(196, 30, 58, 0.4);
}

body.mode-chinese .quick-btn.explore-schedule {
    background: linear-gradient(135deg, #d4af37, #f4d03f);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

body.mode-chinese .quick-btn.explore-schedule:hover {
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

/* 咖啡休闲模式按钮配色 */
body.mode-coffee .quick-btn.my-schedule {
    background: linear-gradient(135deg, #8B4513, #D2691E);
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
}

body.mode-coffee .quick-btn.my-schedule:hover {
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.4);
}

body.mode-coffee .quick-btn.explore-schedule {
    background: linear-gradient(135deg, #D2691E, #CD853F);
    box-shadow: 0 4px 15px rgba(210, 105, 30, 0.3);
}

body.mode-coffee .quick-btn.explore-schedule:hover {
    box-shadow: 0 6px 20px rgba(210, 105, 30, 0.4);
}

body.mode-chinese .calendar-nav {
    background: linear-gradient(135deg, #c41e3a, #d4af37);
}

/* 自定义模式按钮配色 */
body.mode-custom .quick-btn.my-schedule {
    background: linear-gradient(135deg, #9c27b0, #ba68c8);
    box-shadow: 0 4px 15px rgba(156, 39, 176, 0.3);
}

body.mode-custom .quick-btn.my-schedule:hover {
    box-shadow: 0 6px 20px rgba(156, 39, 176, 0.4);
}

body.mode-custom .quick-btn.explore-schedule {
    background: linear-gradient(135deg, #ba68c8, #ce93d8);
    box-shadow: 0 4px 15px rgba(186, 104, 200, 0.3);
}

body.mode-custom .quick-btn.explore-schedule:hover {
    box-shadow: 0 6px 20px rgba(186, 104, 200, 0.4);
}
