/* ===== 设计系统 - 自嘲熊可爱风·米色版 ===== */
:root {
    /* 温暖米色系 */
    --color-bg: #FFFCF6;
    --color-surface: #ffffff;
    --color-sidebar: #FFFCF8;
    --color-sidebar-hover: #f8f3ea;
    --color-sidebar-active: #f0e8d8;
    --color-text-primary: #3d2e1f;
    --color-text-secondary: #6b5540;
    --color-text-muted: #8c7966;
    --color-text-light: #6b5540;
    --color-pink: #b8945a;
    --color-pink-light: #f7f0e6;
    --color-pink-dark: #9a7a44;
    --color-coral: #c4a070;
    --color-mint: #a0b8a8;
    --color-mint-light: #d8e8dc;
    --color-cream: #FFFBF5;
    --color-brown: #b8945a;
    --color-brown-light: #f8f2e8;
    --color-rose: #a06050;
    --color-sage: #5a8a60;
    --color-sage-light: #d8e8d8;
    --color-border: #d8cdb8;
    --color-border-light: #ede3d4;

    /* 阴影 */
    --shadow-sm: 0 2px 12px rgba(180, 160, 140, 0.08);
    --shadow-md: 0 6px 24px rgba(180, 160, 140, 0.12);
    --shadow-lg: 0 12px 40px rgba(180, 160, 140, 0.16);
    --shadow-pink: 0 4px 16px rgba(200, 170, 130, 0.2);

    /* 圆角 */
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-xl: 36px;

    /* 尺寸 */
    --sidebar-width: 260px;
    --mobile-nav-height: 72px;
    --content-max-width: 1440px;

    /* 字体 */
    --font-display: 'Georgia', 'Times New Roman', 'Noto Serif SC', serif;
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

/* ===== 基础重置 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 18px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== 滚动条美化 ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--color-pink-light);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-pink);
}

/* ===== 布局 ===== */
#app {
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* ===== 侧边栏 - 可爱粉嫩设计 ===== */
.sidebar {
    width: var(--sidebar-width);
    background: var(--color-sidebar);
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 100;
    padding: 24px 20px 16px;
    overflow-y: auto;
    border-right: 2px solid var(--color-border-light);
    box-shadow: 2px 0 20px rgba(150, 120, 100, 0.04);
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding-bottom: 20px;
    border-bottom: 2px dashed var(--color-pink-light);
    margin-bottom: 16px;
}

.logo-icon {
    font-size: 38px;
    animation: bearBounce 2s ease-in-out infinite;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--color-pink-dark) 0%, var(--color-coral) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 3px;
}

.logo-sub {
    font-size: 11px;
    color: var(--color-text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    background: var(--color-pink-light);
    padding: 2px 12px;
    border-radius: 20px;
}

.nav-list {
    list-style: none;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 4px;
    color: var(--color-text-secondary);
    position: relative;
}

.nav-item:hover {
    background: var(--color-sidebar-hover);
    color: var(--color-text-primary);
    transform: translateX(4px);
}

.nav-item.active {
    background: var(--color-sidebar-active);
    color: var(--color-text-primary);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(150, 120, 100, 0.08);
}

.nav-icon {
    font-size: 22px;
    width: 32px;
    text-align: center;
    transition: transform 0.3s;
}

.nav-item:hover .nav-icon {
    transform: scale(1.2) rotate(-5deg);
}

.nav-text {
    font-size: 15px;
    letter-spacing: 0.5px;
}

.sidebar-footer {
    padding-top: 14px;
    border-top: 2px dashed var(--color-pink-light);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar-footer button {
    padding: 8px 12px;
    border-radius: var(--radius-md);
    background: var(--color-surface);
    color: var(--color-text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    border: 1.5px solid var(--color-border);
    font-family: inherit;
    font-weight: 600;
}

.sidebar-footer button:hover {
    background: var(--color-sidebar-hover);
    color: var(--color-text-primary);
    border-color: var(--color-pink);
    transform: translateY(-2px);
    box-shadow: var(--shadow-pink);
}

/* ===== 移动端底部导航 ===== */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--mobile-nav-height);
    background: var(--color-surface);
    border-top: 2px solid var(--color-pink-light);
    z-index: 100;
    justify-content: space-around;
    align-items: center;
    padding: 0 8px;
    box-shadow: 0 -4px 20px rgba(200, 150, 140, 0.08);
    border-radius: 20px 20px 0 0;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 14px;
    cursor: pointer;
    color: var(--color-text-muted);
    transition: all 0.3s;
    border-radius: 16px;
}

.mobile-nav-item.active {
    color: var(--color-pink);
    background: var(--color-pink-light);
}

.mobile-nav-icon {
    font-size: 24px;
    transition: transform 0.3s;
}

.mobile-nav-item.active .mobile-nav-icon {
    transform: scale(1.15);
}

.mobile-nav-text {
    font-size: 10px;
    font-weight: 600;
}

/* ===== 主内容区 ===== */
.main-content {
    margin-left: var(--sidebar-width);
    padding: 24px 36px;
    width: calc(100% - var(--sidebar-width));
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* ===== 页面标题 ===== */
.page-header {
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 2px dashed var(--color-pink-light);
    position: relative;
}

.page-header::after {
    content: '🧸';
    position: absolute;
    right: 0;
    bottom: -14px;
    font-size: 20px;
    animation: bearWiggle 3s ease-in-out infinite;
}

.page-title {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 4px;
    letter-spacing: 1px;
}

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

/* ===== 卡片 - 贴纸风格 ===== */
.card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 22px;
    margin-bottom: 14px;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--color-border-light);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%) rotate(-2deg);
    width: 80px;
    height: 16px;
    background: var(--color-pink-light);
    border-radius: 3px;
    opacity: 0.6;
    z-index: 2;
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--color-pink-light);
}

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

/* ===== 仪表盘 ===== */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}

.stat-card {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: 18px;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--color-border-light);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: default;
}

.stat-card:nth-child(1) { border-top: 4px solid var(--color-pink); }
.stat-card:nth-child(2) { border-top: 4px solid var(--color-coral); }
.stat-card:nth-child(3) { border-top: 4px solid var(--color-rose); }
.stat-card:nth-child(4) { border-top: 4px solid var(--color-mint); }

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.stat-card:hover::after {
    content: '🐾';
    position: absolute;
    bottom: 8px;
    right: 12px;
    font-size: 20px;
    animation: pawAppear 0.5s ease-out;
}

.stat-label {
    font-size: 13px;
    color: var(--color-text-secondary);
    margin-bottom: 4px;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 600;
    color: var(--color-text-primary);
    line-height: 1.2;
}

.stat-value.gold { color: var(--color-text-primary); }
.stat-value.rose { color: #a06050; }
.stat-value.sage { color: #5a8a60; }

.green { color: var(--color-sage) !important; }

.stat-value[style*="color:var(--color-sage)"] {
    color: var(--color-sage) !important;
}

.countdown-section {
    text-align: center;
    padding: 28px 32px;
    position: relative;
}

.countdown-section::before {
    content: '💕';
    position: absolute;
    top: 10px;
    left: 18px;
    font-size: 22px;
    animation: floatHeart 2.5s ease-in-out infinite;
}

.countdown-section::after {
    content: '💕';
    position: absolute;
    bottom: 10px;
    right: 18px;
    font-size: 18px;
    animation: floatHeart 2.5s ease-in-out 0.8s infinite;
}

.countdown-label {
    font-size: 12px;
    color: var(--color-text-secondary);
    margin-bottom: 6px;
    letter-spacing: 2px;
    font-weight: 600;
}

.countdown-value {
    font-family: var(--font-display);
    font-size: 60px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--color-pink) 0%, var(--color-coral) 50%, var(--color-rose) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    animation: countdownPulse 2s ease-in-out infinite;
}

.countdown-unit {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-top: 4px;
    letter-spacing: 3px;
    font-weight: 600;
}

.countdown-event {
    font-family: var(--font-display);
    font-size: 18px;
    color: var(--color-text-primary);
    margin-top: 12px;
    font-weight: 600;
}

.countdown-date {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-top: 2px;
    letter-spacing: 1px;
}

/* ===== 按钮 ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    border: none;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-pink) 0%, var(--color-coral) 100%);
    color: white;
    box-shadow: var(--shadow-pink);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(240, 168, 160, 0.4);
}

.btn-secondary {
    background: var(--color-cream);
    color: var(--color-text-primary);
    border: 1.5px solid var(--color-pink-light);
}

.btn-secondary:hover {
    background: var(--color-pink-light);
    border-color: var(--color-pink);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 7px 14px;
    font-size: 12px;
    border-radius: var(--radius-sm);
}

.btn-danger {
    background: #fff0f0;
    color: #d08080;
    border: 1.5px solid #ffd4d4;
}

.btn-danger:hover {
    background: #ffe0e0;
    border-color: #d08080;
}

/* ===== 表单 ===== */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 15px;
    color: var(--color-text-secondary);
    margin-bottom: 6px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 16px;
    font-family: inherit;
    background: #ffffff;
    color: var(--color-text-primary);
    transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-pink);
    background: var(--color-surface);
    box-shadow: 0 0 0 4px rgba(240, 168, 160, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.8;
}

/* ===== 任务列表 ===== */
.phase-section {
    margin-bottom: 28px;
}

.phase-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding: 14px 18px;
    background: var(--color-cream);
    border-radius: var(--radius-md);
    border: 1.5px solid var(--color-border-light);
}

.phase-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text-primary);
}

.phase-progress {
    font-size: 15px;
    color: var(--color-pink-dark);
    font-weight: 600;
    background: white;
    padding: 4px 14px;
    border-radius: 20px;
}

.task-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 8px;
    border-bottom: 1px dashed var(--color-border-light);
    transition: all 0.2s;
    border-radius: var(--radius-sm);
    padding-left: 12px;
    padding-right: 12px;
    margin: 0 -8px;
}

.task-item:hover {
    background: var(--color-cream);
}

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

.task-checkbox {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--color-pink);
    flex-shrink: 0;
}

.task-content {
    flex: 1;
}

.task-title {
    font-size: 16px;
    color: var(--color-text-primary);
    transition: all 0.2s;
    font-weight: 500;
}

.task-item.completed .task-title {
    text-decoration: line-through;
    color: var(--color-text-muted);
}

.task-meta {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-top: 3px;
}

.task-actions {
    display: flex;
    gap: 2px;
    opacity: 0;
    transition: opacity 0.2s;
}

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

.task-actions button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
    padding: 4px 8px;
    border-radius: 8px;
    color: var(--color-text-muted);
    transition: all 0.2s;
}

.task-actions button:hover {
    background: var(--color-pink-light);
    color: var(--color-pink-dark);
}

.add-task-form {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 2px dotted var(--color-pink-light);
}

.add-task-form input {
    flex: 1;
}

/* ===== 预算 ===== */
.budget-category {
    margin-bottom: 28px;
}

.budget-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 14px 18px;
    background: var(--color-cream);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--color-pink);
}

.budget-category-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
}

.budget-category-total {
    font-size: 15px;
    color: var(--color-text-secondary);
    font-weight: 600;
}

.budget-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px dashed var(--color-border-light);
}

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

.budget-item-info {
    flex: 1;
}

.budget-item-name {
    font-size: 16px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.budget-item-note {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.budget-item-amounts {
    text-align: right;
    min-width: 150px;
}

.budget-item-estimated {
    font-size: 14px;
    color: var(--color-text-muted);
}

.budget-item-actual {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text-primary);
    font-family: var(--font-display);
}

.budget-item-actual.over {
    color: #d08080;
}

.budget-progress-bar {
    width: 130px;
    height: 6px;
    background: var(--color-border-light);
    border-radius: 6px;
    overflow: hidden;
    margin-top: 5px;
    margin-left: auto;
}

.budget-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-pink) 0%, var(--color-coral) 100%);
    border-radius: 6px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.budget-progress-fill.over {
    background: linear-gradient(90deg, #f0b0b0 0%, #e08080 100%);
}

.budget-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 28px;
    padding-top: 28px;
    border-top: 2px dashed var(--color-pink-light);
}

.budget-summary-item {
    text-align: center;
    padding: 18px;
    border-radius: var(--radius-md);
    background: var(--color-cream);
}

.budget-summary-label {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-bottom: 6px;
    letter-spacing: 1px;
    font-weight: 600;
}

.budget-summary-value {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 600;
}

/* ===== 供应商 ===== */
.vendor-list {
    display: grid;
    gap: 14px;
}

.vendor-card {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 22px;
    background: var(--color-surface);
    border-radius: var(--radius-md);
    border: 2px solid var(--color-border-light);
    transition: all 0.3s ease;
}

.vendor-card:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--color-pink-light);
    transform: translateX(4px);
}

.vendor-info h4 {
    font-size: 17px;
    margin-bottom: 5px;
    font-weight: 600;
}

.vendor-category {
    display: inline-block;
    font-size: 13px;
    padding: 3px 10px;
    background: white;
    border-radius: 20px;
    color: var(--color-text-secondary);
    margin-bottom: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: 1px solid var(--color-pink-light);
}

.vendor-contact {
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.vendor-actions {
    display: flex;
    gap: 6px;
}

/* ===== 宾客 ===== */
.guest-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.guest-filter {
    padding: 7px 16px;
    border-radius: 24px;
    border: 1.5px solid var(--color-pink-light);
    background: var(--color-surface);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: var(--color-text-secondary);
}

.guest-filter:hover {
    border-color: var(--color-pink);
    background: var(--color-pink-light);
}

.guest-filter.active {
    background: linear-gradient(135deg, var(--color-pink) 0%, var(--color-coral) 100%);
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-pink);
}

.guest-table {
    width: 100%;
    border-collapse: collapse;
}

.guest-table th,
.guest-table td {
    text-align: left;
    padding: 14px;
    border-bottom: 1px solid var(--color-border-light);
    font-size: 15px;
}

.guest-table th {
    font-weight: 600;
    color: var(--color-text-secondary);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--color-cream);
}

.guest-table tr:hover td {
    background: var(--color-cream);
}

.guest-status {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.guest-status.confirmed {
    background: #e8f8ec;
    color: #6aaa7a;
}

.guest-status.pending {
    background: #fff5e8;
    color: #c89860;
}

.guest-status.declined {
    background: #fff0f0;
    color: #c88080;
}

/* ===== 流程表 ===== */
.schedule-timeline {
    position: relative;
    padding-left: 40px;
}

.schedule-timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--color-pink-light), var(--color-mint-light), var(--color-pink-light));
    border-radius: 3px;
}

.schedule-item {
    position: relative;
    padding-bottom: 28px;
}

.schedule-item::before {
    content: '';
    position: absolute;
    left: -34px;
    top: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--color-surface);
    border: 3px solid var(--color-pink-light);
    transition: all 0.3s ease;
}

.schedule-item.completed::before {
    background: var(--color-pink);
    border-color: var(--color-pink);
    box-shadow: 0 0 0 5px rgba(240, 168, 160, 0.2);
}

.schedule-time {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 600;
    color: var(--color-pink);
    margin-bottom: 4px;
}

.schedule-title {
    font-size: 19px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.schedule-desc {
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* ===== 设置页面 ===== */
.settings-form {
    max-width: 600px;
}

/* ===== 响应式 ===== */
@media (min-width: 1920px) {
    .main-content {
        padding: 32px 56px;
    }

    .dashboard-stats {
        gap: 18px;
    }

    .stat-value {
        font-size: 34px;
    }

    .vendor-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .budget-item-amounts {
        min-width: 180px;
    }

    .budget-progress-bar {
        width: 160px;
    }
}

/* ===== 折叠屏内屏 / 平板 (769px - 1024px) ===== */
@media (max-width: 1024px) {
    .sidebar {
        width: 200px;
    }

    .main-content {
        margin-left: 200px;
        padding: 20px 24px;
        width: calc(100% - 200px);
    }

    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stat-value {
        font-size: 28px;
    }

    .countdown-inline .countdown-value {
        font-size: 72px;
    }

    .hero-countdown-row {
        grid-template-columns: 1fr 1fr;
    }

    .hero-names {
        font-size: 32px;
    }

    .hero-theme {
        font-size: 20px;
    }

    :root {
        --sidebar-width: 200px;
    }

    .vendor-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .guest-table th, .guest-table td {
        padding: 10px 8px;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        display: none;
    }

    .mobile-nav {
        display: flex;
    }

    .main-content {
        margin-left: 0;
        padding: 16px 14px 96px;
        max-width: 100%;
        width: 100%;
    }

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

    .dashboard-stats {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .stat-card {
        padding: 16px 14px;
    }

    .stat-value {
        font-size: 24px;
    }

    .countdown-value {
        font-size: 42px;
    }

    .countdown-section {
        padding: 28px 16px;
    }

    .countdown-inline .countdown-value {
        font-size: 48px;
    }

    .budget-summary {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .budget-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .budget-progress-bar {
        margin-left: 0;
        width: 100%;
    }

    .guest-table {
        font-size: 13px;
    }

    .guest-table th,
    .guest-table td {
        padding: 10px 6px;
        font-size: 12px;
    }

    .vendor-card {
        flex-direction: column;
        gap: 12px;
    }

    .vendor-list {
        grid-template-columns: 1fr;
    }

    .task-actions {
        opacity: 1;
    }

    .card {
        padding: 18px 14px;
    }

    .hero-countdown-row {
        grid-template-columns: 1fr;
    }

    .hero-countdown-row::after {
        top: auto;
        left: 20%;
        bottom: 0;
        right: 20%;
        width: 60%;
        height: 1px;
        transform: none;
    }

    .hero-left {
        padding: 24px 16px;
    }

    .hero-right {
        padding: 16px;
    }

    .hero-names {
        font-size: 28px;
        letter-spacing: 3px;
    }

    .hero-theme {
        font-size: 20px;
        letter-spacing: 3px;
    }

    .hero-section {
        padding: 20px 16px 24px;
    }

    .countdown-inline .countdown-event {
        font-size: 16px;
    }

    .countdown-inline .countdown-unit {
        font-size: 13px;
        letter-spacing: 2px;
    }

    .countdown-inline .countdown-date {
        font-size: 12px;
    }

    .budget-category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 12px 14px;
    }

    .budget-item-amounts {
        min-width: auto;
        text-align: left;
    }

    .budget-item-actual {
        font-size: 18px;
    }

    .budget-summary-value {
        font-size: 24px;
    }

    .hero-countdown-row::before {
        font-size: 16px;
        top: 6px;
        left: 8px;
    }

    .hero-desc {
        font-size: 14px;
    }

    .page-header {
        margin-bottom: 14px;
        padding-bottom: 10px;
    }

    .phase-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}

/* ===== 超窄屏 / 折叠屏外屏 20:9 (max-width: 420px) ===== */
@media (max-width: 420px) {
    html {
        font-size: 15px;
    }

    .main-content {
        padding: 12px 10px 88px;
    }

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

    .dashboard-stats {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .stat-card {
        padding: 12px 10px;
    }

    .stat-value {
        font-size: 20px;
    }

    .stat-label {
        font-size: 11px;
    }

    .countdown-inline .countdown-value {
        font-size: 38px;
    }

    .countdown-inline .countdown-label {
        font-size: 13px;
    }

    .countdown-inline .countdown-unit {
        font-size: 12px;
        letter-spacing: 1px;
    }

    .countdown-inline .countdown-event {
        font-size: 14px;
    }

    .countdown-inline .countdown-date {
        font-size: 11px;
    }

    .hero-names {
        font-size: 24px;
        letter-spacing: 2px;
    }

    .hero-theme {
        font-size: 17px;
        letter-spacing: 2px;
    }

    .hero-theme-en {
        font-size: 11px;
        padding: 2px 10px;
    }

    .hero-left,
    .hero-right {
        padding: 16px 12px;
    }

    .hero-desc {
        font-size: 12px;
    }

    .hero-divider {
        margin: 10px auto;
    }

    .card {
        padding: 14px 10px;
        border-radius: var(--radius-md);
    }

    .card::before {
        width: 50px;
        height: 10px;
        top: -5px;
    }

    .card-title {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .mobile-nav {
        height: 64px;
        padding: 0 4px;
    }

    .mobile-nav-item {
        padding: 6px 8px;
        gap: 1px;
    }

    .mobile-nav-icon {
        font-size: 20px;
    }

    .mobile-nav-text {
        font-size: 9px;
    }

    :root {
        --mobile-nav-height: 64px;
    }

    .guest-table th,
    .guest-table td {
        padding: 8px 4px;
        font-size: 11px;
    }

    .guest-filter {
        padding: 5px 10px;
        font-size: 11px;
    }

    .budget-category-title {
        font-size: 15px;
    }

    .budget-item-name {
        font-size: 14px;
    }

    .budget-item-actual {
        font-size: 16px;
    }

    .phase-title {
        font-size: 15px;
    }

    .schedule-title {
        font-size: 16px;
    }

    .schedule-time {
        font-size: 15px;
    }

    .btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    .form-input,
    .form-select,
    .form-textarea {
        padding: 10px 12px;
        font-size: 14px;
    }
}

/* ===== 动画 ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.nav-item {
    animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

.nav-item:nth-child(1) { animation-delay: 0.05s; }
.nav-item:nth-child(2) { animation-delay: 0.1s; }
.nav-item:nth-child(3) { animation-delay: 0.15s; }
.nav-item:nth-child(4) { animation-delay: 0.2s; }
.nav-item:nth-child(5) { animation-delay: 0.25s; }
.nav-item:nth-child(6) { animation-delay: 0.3s; }
.nav-item:nth-child(7) { animation-delay: 0.35s; }

/* 小熊弹跳 */
@keyframes bearBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* 小熊摇摆 */
@keyframes bearWiggle {
    0%, 100% { transform: rotate(0); }
    25% { transform: rotate(10deg); }
    75% { transform: rotate(-10deg); }
}

/* 爱心浮动 */
@keyframes floatHeart {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.8; }
    50% { transform: translateY(-12px) scale(1.15); opacity: 1; }
}

/* 倒计时脉冲 */
@keyframes countdownPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

/* 熊掌出现 */
@keyframes pawAppear {
    from { opacity: 0; transform: scale(0) rotate(-30deg); }
    to { opacity: 1; transform: scale(1) rotate(0); }
}

/* 按钮点击波纹 */
.btn:active {
    transform: scale(0.95) !important;
}

/* ===== 空状态 ===== */
.empty-state {
    text-align: center;
    padding: 56px 20px;
    color: var(--color-text-muted);
}

.empty-state-icon {
    font-size: 52px;
    margin-bottom: 14px;
    opacity: 0.6;
    animation: bearBounce 2s ease-in-out infinite;
}

.empty-state-text {
    font-size: 14px;
}

/* ===== 标签 ===== */
.tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 8px;
    font-size: 11px;
    background: var(--color-cream);
    color: var(--color-text-secondary);
    margin-right: 4px;
    font-weight: 600;
}

.tag-gold {
    background: #fff5e8;
    color: #c89860;
}

.tag-rose {
    background: #fff0f0;
    color: #c88080;
}

.tag-green {
    background: #e8f8ec;
    color: #6aaa7a;
}

/* ===== 首页英雄+倒计时并排 ===== */
.hero-countdown-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-bottom: 14px;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--color-border-light);
    overflow: hidden;
    position: relative;
}

.hero-countdown-row::before {
    content: '🧸';
    position: absolute;
    top: 10px;
    left: 16px;
    font-size: 22px;
    animation: bearWiggle 3s ease-in-out infinite;
    z-index: 1;
    opacity: 0.7;
}

.hero-countdown-row::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1px;
    height: 60%;
    background: var(--color-border-light);
}

.hero-left {
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-right {
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-desc {
    font-size: 16px;
    color: var(--color-text-muted);
    letter-spacing: 2px;
    margin-top: 4px;
}

.countdown-inline {
    text-align: center;
}

.countdown-inline .countdown-label {
    font-size: 16px;
    color: var(--color-text-secondary);
    margin-bottom: 10px;
    letter-spacing: 1px;
    font-weight: 600;
}

.countdown-inline .countdown-value {
    font-family: var(--font-display);
    font-size: 96px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--color-pink) 0%, var(--color-coral) 50%, var(--color-rose) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    animation: countdownPulse 2s ease-in-out infinite;
}

.countdown-inline .countdown-unit {
    font-size: 15px;
    color: var(--color-text-secondary);
    margin-top: 6px;
    letter-spacing: 4px;
    font-weight: 600;
}

.countdown-inline .countdown-event {
    font-family: var(--font-display);
    font-size: 18px;
    color: var(--color-text-primary);
    margin-top: 10px;
    font-weight: 600;
}

.countdown-inline .countdown-date {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-top: 4px;
}

/* ===== 首页英雄区 ===== */
.hero-section {
    text-align: center;
    padding: 24px 32px 28px;
    margin-bottom: 14px;
    position: relative;
    overflow: hidden;
    background: var(--color-cream);
    border: 2px solid var(--color-pink-light);
}

.hero-section::before {
    content: '🧸';
    position: absolute;
    top: 8px;
    left: 16px;
    font-size: 26px;
    animation: bearWiggle 3s ease-in-out infinite;
}

.hero-section::after {
    content: '🐻';
    position: absolute;
    bottom: 8px;
    right: 16px;
    font-size: 22px;
    animation: bearBounce 2s ease-in-out 0.5s infinite;
}

.hero-names {
    font-family: var(--font-display);
    font-size: 44px;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 8px;
    letter-spacing: 5px;
}

.hero-theme {
    font-family: var(--font-display);
    font-size: 26px;
    background: linear-gradient(135deg, var(--color-pink-dark) 0%, var(--color-coral) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
    letter-spacing: 5px;
}

.hero-theme-en {
    font-size: 13px;
    color: var(--color-text-muted);
    letter-spacing: 3px;
    text-transform: uppercase;
    background: var(--color-pink-light);
    display: inline-block;
    padding: 2px 12px;
    border-radius: 10px;
}

.hero-divider {
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-pink), transparent);
    margin: 14px auto;
    border-radius: 3px;
}

/* ===== 浮动装饰 ===== */
.floating-decorations {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
}

.float-item {
    position: absolute;
    font-size: 24px;
    animation: floatUp 8s ease-in infinite;
    opacity: 0;
}

@keyframes floatUp {
    0% { transform: translateY(105vh) rotate(0deg) scale(0); opacity: 0; }
    10% { opacity: 0.5; }
    20% { transform: translateY(85vh) rotate(20deg) scale(1); opacity: 0.7; }
    80% { opacity: 0.5; }
    100% { transform: translateY(-10vh) rotate(360deg) scale(0.3); opacity: 0; }
}

.float-item:nth-child(odd) { animation-duration: 10s; }
.float-item:nth-child(3n) { animation-duration: 7s; }
.float-item:nth-child(4n) { animation-duration: 12s; }
.float-item:nth-child(5n) { animation-duration: 9s; }

/* ===== 内联编辑 ===== */
.editable {
    cursor: pointer;
    border-bottom: 1.5px dashed var(--color-border);
    transition: all 0.2s;
    padding: 1px 4px;
    border-radius: 4px;
}
.editable:hover {
    border-bottom-color: var(--color-pink);
    background: var(--color-pink-light);
}
.inline-edit-input {
    width: 80px;
    padding: 2px 6px;
    border: 1.5px solid var(--color-pink);
    border-radius: 6px;
    font-size: inherit;
    font-family: inherit;
    color: var(--color-text-primary);
    background: var(--color-bg);
    outline: none;
}
.inline-edit-input:focus {
    box-shadow: 0 0 0 3px rgba(184, 148, 90, 0.15);
}
.inline-edit-input-wide {
    width: 160px;
}

/* 时间线快速导航 */
.phase-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.phase-nav-item {
    padding: 8px 14px;
    border-radius: 20px;
    border: 1.5px solid var(--color-border-light);
    background: var(--color-surface);
    cursor: pointer;
    font-size: 13px;
    color: var(--color-text-secondary);
    transition: all 0.2s;
    white-space: nowrap;
}
.phase-nav-item:hover {
    border-color: var(--color-pink);
    color: var(--color-pink);
    background: var(--color-pink-light);
}

/* 宾客状态可点击 */
.guest-status-clickable {
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}
.guest-status-clickable:hover {
    transform: scale(1.05);
}
