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

html, body {
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg-gradient, linear-gradient(135deg, #ff9a9e 0%, #ff69b4 33%, #667eea 66%, #764ba2 100%));
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: #333;
    overflow-x: hidden;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===== 页面容器 ===== */
.page {
    display: none;
    width: 100%;
    min-height: 100vh;
    padding: 20px 16px 100px;
    -webkit-overflow-scrolling: touch;
}

.page.active {
    display: block;
}

/* ===== 首页 ===== */
.home-header {
    text-align: center;
    padding: 20px 0 12px;
}

.app-title {
    color: white;
    font-size: 1.75rem;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.2);
    letter-spacing: 4px;
}

.app-subtitle {
    color: rgba(255,255,255,0.85);
    font-size: 0.95rem;
    margin-top: 8px;
}

/* ===== 语句卡片 ===== */
.quote-section {
    text-align: center;
    margin-bottom: 24px;
}

.quote-card {
    background: rgba(255,255,255,0.98);
    border-radius: 24px;
    padding: 32px 24px;
    margin-bottom: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    position: relative;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quote-card::before {
    content: '"';
    position: absolute;
    top: 16px;
    left: 24px;
    font-size: 4rem;
    color: rgba(102,126,234,0.12);
    font-family: Georgia, serif;
    line-height: 1;
}

.quote-text {
    font-size: 1.4rem;
    line-height: 1.7;
    color: #444;
    font-weight: 600;
    word-break: break-word;
    text-align: center;
    background: linear-gradient(135deg, #ff9a9e 0%, #ff69b4 33%, #667eea 66%, #764ba2 100%);
    background-size: 400% 400%;
    animation: gradientText 8s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes gradientText {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.action-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 36px;
    margin: 16px 0;
    min-height: 80px;
}

.action-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: opacity 0.3s, visibility 0.3s;
}

.action-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.85);
    font-weight: 500;
}

.round-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.15);
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    backdrop-filter: blur(4px);
    line-height: 1;
}

.round-btn:active {
    transform: scale(0.9);
}

.like-btn {
    color: white;
}

.like-btn.liked {
    background: linear-gradient(135deg, #ff9a9e, #ff69b4);
    border-color: transparent;
}

.dislike-btn {
    filter: grayscale(1);
    opacity: 0.6;
}

.dislike-btn.disliked {
    filter: grayscale(0);
    opacity: 1;
    background: rgba(100,100,100,0.3);
    border-color: rgba(100,100,100,0.5);
}

/* ===== 按钮 ===== */
.btn-primary {
    background: linear-gradient(135deg, #ff9a9e 0%, #ff69b4 100%);
    color: white;
    border: none;
    padding: 16px 48px;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(255,105,180,0.4);
    transition: transform 0.15s, box-shadow 0.15s;
    display: inline-block;
}

.btn-primary:active {
    transform: scale(0.96);
    box-shadow: 0 4px 15px rgba(255,105,180,0.3);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary {
    background: #f0f0f0;
    color: #666;
    border: none;
    padding: 12px 32px;
    font-size: 1rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
}

.btn-small {
    background: white;
    border: 1px solid #ddd;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    color: #666;
}

.btn-save {
    border-color: #667eea;
    color: #667eea;
}

.btn-danger {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 14px;
    font-size: 0.78rem;
    cursor: pointer;
    font-weight: 500;
}

.btn-share {
    background: white;
    border: 2px solid rgba(255,255,255,0.5);
    color: #667eea;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    margin: 4px;
}

/* ===== 打卡区域 ===== */
.checkin-section {
    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    padding: 24px 20px;
    margin-bottom: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    overflow-x: hidden;
}

.checkin-options {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    justify-content: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 1rem;
    color: #555;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #ff69b4;
    cursor: pointer;
}

.garden-opt {
    margin-top: 12px;
    justify-content: center;
    font-size: 0.9rem;
    color: #888;
}

/* ===== 录音区域 ===== */
.record-area {
    text-align: center;
    padding: 16px 0;
}

.record-timer {
    font-size: 1.5rem;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 16px;
    font-variant-numeric: tabular-nums;
}

.record-btn {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid #ff69b4;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(255,105,180,0.2);
}

.record-btn.recording {
    background: #ff69b4;
    transform: scale(1.1);
    animation: pulse 1s infinite;
}

.record-btn.recording .record-icon,
.record-btn.recording .record-label {
    color: white;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(255,105,180,0.4); }
    50% { box-shadow: 0 4px 30px rgba(255,105,180,0.7); }
}

.record-icon {
    font-size: 2rem;
    color: #ff69b4;
}

.record-label {
    font-size: 0.75rem;
    color: #ff69b4;
    margin-top: 4px;
    font-weight: 600;
}

.record-hint {
    color: #999;
    font-size: 0.8rem;
    margin-top: 12px;
}

.record-result {
    margin-top: 20px;
}

.record-player {
    width: 100%;
    max-width: 100%;
    display: block;
    margin-bottom: 12px;
    border-radius: 30px;
}

.record-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 12px;
}

/* ===== 文字区域 ===== */
.text-area {
    padding: 12px 0;
}

.thought-input {
    width: 100%;
    min-height: 100px;
    border: 2px solid #eee;
    border-radius: 16px;
    padding: 16px;
    font-size: 1rem;
    resize: vertical;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.thought-input:focus {
    border-color: #ff69b4;
}

.char-count {
    text-align: right;
    color: #999;
    font-size: 0.8rem;
    margin-top: 6px;
}

/* ===== 打卡完成状态 ===== */
.checkin-done {
    text-align: center;
    padding: 20px 0;
}

.done-msg {
    font-size: 1.2rem;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 16px;
}

.btn-complete {
    display: block;
    margin: 16px auto 0;
}

.share-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

/* ===== 今日人数 ===== */
.today-count {
    text-align: center;
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
    padding: 12px;
}

.today-count span {
    font-weight: 700;
    color: white;
}

/* ===== 页面通用头部 ===== */
.page-header {
    text-align: center;
    padding: 20px 0;
    color: white;
}

.page-header h2 {
    font-size: 1.5rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.2);
}

.page-subtitle {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    margin-top: 4px;
}

/* ===== 今日能量花园 ===== */
.garden-list {
    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    padding: 16px;
    margin-bottom: 16px;
    min-height: 200px;
}

.empty-garden {
    text-align: center;
    color: #999;
    padding: 40px 20px;
    font-size: 0.95rem;
}

.garden-item {
    background: #f8f8ff;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    border-left: 4px solid #667eea;
}

.garden-item-quote {
    font-size: 1.05rem;
    color: #444;
    margin-bottom: 8px;
    font-weight: 700;
}

.garden-item-audio {
    width: 100%;
    height: 36px;
    border-radius: 18px;
}

.garden-item-text {
    background: rgba(255,255,255,0.15);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 0.9rem;
    color: #444;
    line-height: 1.6;
    word-break: break-word;
}

.garden-item-time {
    font-size: 0.75rem;
    color: #aaa;
}

.garden-item-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
}

.garden-comment-btn {
    background: none;
    border: 1px solid #ddd;
    color: #888;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.72rem;
    cursor: pointer;
    transition: all 0.2s;
}

.garden-comment-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

/* ===== 评论区 ===== */
.garden-comments {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e8e8e8;
    margin-left: 12px;
}

.garden-comments-list {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 8px;
}

.garden-comment-item {
    margin-bottom: 6px;
}

.garden-comment-item {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 6px;
}

.garden-comment-bubble {
    flex: 1;
    background: #f0f0ff;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 0.82rem;
    color: #444;
    line-height: 1.5;
    word-break: break-word;
}

.garden-comment-name {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #667eea;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
}

.garden-comment-name-anon {
    background: #ccc;
}

.garden-comment-write-btn {
    background: none;
    border: 1px dashed #ccc;
    color: #999;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    cursor: pointer;
    width: 100%;
    margin-bottom: 8px;
    transition: all 0.2s;
}

.garden-comment-write-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.garden-comment-name-row {
    margin-bottom: 6px;
}

.garden-comment-name-input {
    width: 60px;
    padding: 4px 8px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.8rem;
    text-align: center;
    outline: none;
}

.garden-comment-name-input:focus {
    border-color: #667eea;
}

/* 评论模式切换 */
.garden-comment-mode-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 8px;
    background: #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
}

.garden-comment-mode-tab {
    flex: 1;
    padding: 5px 0;
    border: none;
    background: transparent;
    font-size: 0.75rem;
    color: #999;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.garden-comment-mode-tab.active {
    background: #667eea;
    color: #fff;
}

/* 语音模式各状态 */
.garden-comment-voice-idle {
    text-align: center;
}

.garden-comment-record-start {
    background: #fff0f0;
    border: 1px solid #ffcdd2;
    color: #e53935;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    font-weight: 600;
}

.garden-comment-record-start:hover {
    background: #ffe0e0;
}

.garden-comment-voice-done {
    margin-top: 6px;
}

.garden-comment-voice-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 6px;
}

.garden-comment-re-record {
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 14px;
    padding: 5px 14px;
    font-size: 0.75rem;
    cursor: pointer;
    color: #666;
}

.garden-comment-input-area {
    background: #f8f8ff;
    border-radius: 12px;
    padding: 8px;
}

.garden-comment-audio {
    width: 100%;
    height: 32px;
    border-radius: 16px;
}

.garden-comment-input-area {
    background: #f8f8ff;
    border-radius: 12px;
    padding: 8px;
}

.garden-comment-input {
    width: 100%;
    height: 40px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 0.82rem;
    font-family: inherit;
    resize: none;
    outline: none;
    box-sizing: border-box;
}

.garden-comment-input:focus {
    border-color: #667eea;
}

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

.garden-comment-charcount {
    font-size: 0.7rem;
    color: #aaa;
    margin-right: auto;
}

.garden-comment-send {
    background: #667eea;
    color: #fff;
    border: none;
    border-radius: 16px;
    padding: 5px 16px;
    font-size: 0.78rem;
    cursor: pointer;
    font-weight: 600;
}

.garden-comment-recording {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    padding: 6px 10px;
    background: #fff0f0;
    border-radius: 10px;
}

.garden-record-timer {
    font-size: 0.8rem;
    color: #e53935;
    font-weight: 600;
}

.garden-record-stop {
    background: #e53935;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 3px 12px;
    font-size: 0.72rem;
    cursor: pointer;
    font-weight: 600;
}

.garden-note {
    text-align: center;
    color: rgba(255,255,255,0.7);
    font-size: 0.8rem;
    padding: 8px;
}

/* ===== 我的记录 ===== */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 20px;
    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    margin-bottom: 16px;
}

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

.stat-num {
    font-size: 2rem;
    font-weight: 700;
    color: #667eea;
}

.stat-label {
    font-size: 0.85rem;
    color: #888;
    margin-top: 4px;
}

/* ===== 日历 ===== */
.calendar-section {
    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    padding: 16px;
    margin-bottom: 16px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 4px 16px;
    font-weight: 600;
    color: #444;
}

.cal-nav {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #667eea;
    cursor: pointer;
    padding: 4px 12px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    text-align: center;
}

.cal-day-header {
    font-size: 0.75rem;
    color: #999;
    padding: 8px 0;
}

.cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.85rem;
    color: #555;
    cursor: default;
}

.cal-day.checked {
    background: linear-gradient(135deg, #ff9a9e, #ff69b4);
    color: white;
    font-weight: 600;
}

.cal-day.today {
    border: 2px solid #667eea;
}

.cal-day.other-month {
    color: #ddd;
}

/* ===== 历史记录 ===== */
.history-section {
    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 16px;
}

.history-section h3 {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.history-list {
    max-height: 300px;
    overflow-y: auto;
}

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

.btn-delete {
    background: none;
    border: none;
    color: #ff6b6b;
    font-size: 0.75rem;
    cursor: pointer;
    padding: 2px 8px;
    border-radius: 10px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.btn-delete:hover {
    opacity: 1;
    background: rgba(255,107,107,0.1);
}

.history-item {
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
}

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

.history-date {
    font-size: 0.75rem;
    color: #aaa;
    margin-bottom: 4px;
}

.history-quote {
    font-size: 0.9rem;
    color: #555;
    font-weight: 500;
    margin-bottom: 4px;
}

.history-thought {
    font-size: 0.85rem;
    color: #777;
    line-height: 1.5;
}

.history-audio {
    width: 100%;
    height: 32px;
    margin-top: 6px;
}

/* ===== 语句管理后台 ===== */
.admin-header {
    color: white;
    padding: 12px 0 20px;
}

.admin-header h2 {
    font-size: 1.5rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.2);
}

.admin-header p {
    color: rgba(255,255,255,0.78);
    font-size: 0.86rem;
    margin-top: 4px;
}

.admin-back {
    background: rgba(255,255,255,0.22);
    border: 1px solid rgba(255,255,255,0.35);
    color: white;
    padding: 8px 14px;
    border-radius: 18px;
    margin-bottom: 14px;
    cursor: pointer;
}

.admin-panel {
    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    padding: 18px;
    margin-bottom: 16px;
}

.admin-panel h3 {
    color: #444;
    margin-bottom: 12px;
    font-size: 1.05rem;
}

.admin-input,
.admin-edit-input {
    width: 100%;
    min-height: 72px;
    border: 2px solid #eee;
    border-radius: 14px;
    padding: 12px;
    font-size: 0.95rem;
    line-height: 1.5;
    font-family: inherit;
    resize: vertical;
    outline: none;
}

.admin-input:focus,
.admin-edit-input:focus {
    border-color: #ff69b4;
}

.admin-add-btn {
    width: 100%;
    margin-top: 12px;
}

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

.admin-toolbar h3 {
    margin-bottom: 0;
}

.admin-toolbar span {
    color: #999;
    font-size: 0.85rem;
}

.admin-sortbar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    padding: 10px;
    background: #faf8ff;
    border-radius: 14px;
}

.admin-sortbar span {
    color: #888;
    font-size: 0.82rem;
    margin-right: 2px;
}

.admin-sort-btn {
    border: 1px solid #e8e1ff;
    background: white;
    color: #667eea;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.8rem;
    cursor: pointer;
}

.admin-sort-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.admin-table-wrap {
    border: 1px solid #eee;
    border-radius: 16px;
    background: white;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.admin-table-head,
.admin-quote-row {
    display: grid;
    grid-template-columns: 180px 44px 44px 44px 48px 55px 90px;
    gap: 8px;
    align-items: center;
    min-width: 540px;
}

@media (min-width: 600px) {
    .admin-table-head,
    .admin-quote-row {
        grid-template-columns: minmax(200px, 1.6fr) 72px 72px 72px 80px 80px 108px;
        gap: 12px;
        min-width: 0;
    }
}

.admin-table-head {
    padding: 8px 6px;
    background: #f8f8ff;
    color: #888;
    font-size: 0.66rem;
    font-weight: 600;
    border-bottom: 1px solid #eee;
    white-space: nowrap;
}

@media (min-width: 600px) {
    .admin-table-head {
        padding: 10px 14px;
        font-size: 0.8rem;
    }
}

.admin-col-sort {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 3px;
    transition: color 0.2s;
}

.admin-col-sort:hover {
    color: #667eea;
}

.admin-col-sort.active {
    color: #667eea;
}

.sort-icon {
    font-size: 0.7rem;
    opacity: 0.5;
}

.admin-col-sort.active .sort-icon {
    opacity: 1;
}

.admin-quote-row {
    padding: 8px 6px;
    border-bottom: 1px solid #f0f0f0;
}

@media (min-width: 600px) {
    .admin-quote-row {
        padding: 12px 14px;
    }
}

.admin-quote-row:last-child {
    border-bottom: none;
}

.admin-quote-text {
    color: #444;
    line-height: 1.5;
    font-weight: 600;
    word-break: normal;
    overflow-wrap: break-word;
    font-size: 0.82rem;
}

@media (min-width: 600px) {
    .admin-quote-text {
        font-size: 0.92rem;
        line-height: 1.55;
    }
}

.admin-stat-num {
    color: #667eea;
    font-size: 0.82rem;
    font-weight: 700;
    text-align: center;
}

@media (min-width: 600px) {
    .admin-stat-num {
        font-size: 1rem;
    }
}

.admin-actions {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

@media (min-width: 600px) {
    .admin-actions {
        flex-direction: row;
        gap: 6px;
    }
}

.admin-actions .btn-small {
    background: #f8f8ff;
    padding: 4px 2px;
    font-size: 0.66rem;
    width: 100%;
}

@media (min-width: 600px) {
    .admin-actions .btn-small {
        padding: 7px 10px;
        font-size: 0.78rem;
        width: auto;
    }
}

.admin-status-cell {
    font-size: 0.72rem;
    text-align: center;
    padding: 3px 6px;
    border-radius: 8px;
    font-weight: 600;
    white-space: nowrap;
}

.admin-status-cell.normal {
    color: #2e7d32;
    background: #e8f5e9;
}

.admin-status-cell.submitted {
    color: #e65100;
    background: #fff3e0;
}

.admin-status-cell.banned {
    color: #c62828;
    background: #ffebee;
}

.admin-actions .btn-delete-quote {
    color: #ff6b6b;
    border-color: #ffd4d4;
    background: #fff8f8;
}

/* 管理员登录 */
.admin-login-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #eee;
    border-radius: 14px;
    font-size: 1rem;
    margin-bottom: 12px;
    outline: none;
}

.admin-login-input:focus {
    border-color: #ff69b4;
}

.admin-login-hint {
    color: #ff6b6b;
    font-size: 0.85rem;
    margin-bottom: 12px;
}

/* ===== 后台管理标签页 ===== */
.admin-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 16px;
    background: rgba(255,255,255,0.6);
    border-radius: 14px;
    overflow: hidden;
}

.admin-tab {
    flex: 1;
    padding: 12px 8px;
    border: none;
    background: transparent;
    font-size: 0.85rem;
    font-weight: 600;
    color: #999;
    cursor: pointer;
    transition: all 0.2s;
}

.admin-tab.active {
    background: rgba(255,255,255,0.8);
    color: #ff69b4;
    box-shadow: 0 2px 8px rgba(255,105,180,0.15);
}

.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
}

/* ===== 能量花园管理 ===== */
.admin-garden-list {
    background: rgba(255,255,255,0.95);
    border-radius: 16px;
    overflow: hidden;
}

.admin-garden-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.85rem;
}

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

.admin-garden-type {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 8px;
    white-space: nowrap;
    flex-shrink: 0;
}

.admin-garden-type.voice {
    background: #e8f5e9;
    color: #2e7d32;
}

.admin-garden-type.text {
    background: #e3f2fd;
    color: #1565c0;
}

.admin-garden-quote {
    flex: 1;
    color: #444;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-garden-time {
    color: #bbb;
    font-size: 0.75rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.admin-garden-delete {
    background: #ffebee;
    color: #e53935;
    border: none;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.72rem;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    font-weight: 500;
}

.admin-garden-delete:hover {
    background: #ffcdd2;
}

/* ===== 主题选择 ===== */
.theme-selector {
    position: fixed;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 6px;
    z-index: 200;
}

.theme-dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid rgba(255,255,255,0.6);
    transition: all 0.25s;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.theme-dot:hover {
    transform: scale(1.15);
}

.theme-dot.active {
    border-color: #fff;
    box-shadow: 0 0 8px rgba(255,255,255,0.5);
    transform: scale(1.1);
}

.theme-dot-label {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.55rem;
    color: rgba(255,255,255,0.9);
    white-space: nowrap;
    margin-top: 4px;
    pointer-events: none;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.theme-dot:hover .theme-dot-label {
    display: block;
}

/* ===== 我页面 ===== */
.me-section {
    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    padding: 8px 20px;
}

.me-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 1rem;
    color: #444;
}

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

.me-item-column {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.me-item-row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.me-item-desc {
    font-size: 0.75rem;
    color: #999;
    line-height: 1.7;
    margin-top: 4px;
}

.version {
    color: #999;
    font-size: 0.9rem;
}

/* ===== 底部导航 ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-around;
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    z-index: 100;
}

.nav-item {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 4px 16px;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
}

.nav-item.active {
    color: #ff69b4;
}

.nav-icon {
    font-size: 1.4rem;
}

.nav-label {
    font-size: 0.65rem;
}

/* ===== 模态框 ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 24px;
    padding: 24px 20px;
    max-width: 340px;
    width: 92%;
    text-align: center;
    z-index: 201;
    max-height: 85vh;
    overflow-y: auto;
}

.modal-title {
    font-size: 1.2rem;
    color: #444;
    margin-bottom: 16px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
}

/* ===== 分享卡片预览 ===== */
.share-card {
    background: linear-gradient(135deg, #ff9a9e 0%, #ff69b4 50%, #667eea 100%);
    border-radius: 20px;
    padding: 28px 20px 20px;
    position: relative;
    overflow: hidden;
    width: 280px;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
}

.share-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.share-card-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.share-card-quote {
    background: white;
    border-radius: 16px;
    padding: 24px 16px;
    font-size: 1.2rem;
    color: #667eea;
    line-height: 1.7;
    margin-top: auto;
    margin-bottom: 12px;
    font-weight: 600;
    word-break: break-word;
    width: 100%;
    text-align: center;
}

.share-card-thought {
    text-align: left;
    padding: 10px 0 4px;
    margin-bottom: 12px;
    border-top: 1px dashed rgba(255,255,255,0.4);
    color: white;
    font-size: 0.85rem;
    line-height: 1.6;
    word-break: break-word;
    width: 100%;
}

.share-card-thought::before {
    content: '此刻感想';
    display: block;
    font-size: 0.6rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 6px;
    letter-spacing: 2px;
}

.share-card-meta {
    margin-top: auto;
    text-align: center;
    padding-bottom: 4px;
}

.share-card-date {
    color: white;
    font-size: 0.75rem;
    margin-bottom: 6px;
    font-weight: 500;
}

.share-card-footer {
    color: rgba(255,255,255,0.9);
    font-size: 0.7rem;
    font-weight: 500;
}

/* ===== 投稿入口 ===== */
.submit-entry {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(6px);
    border-radius: 16px;
}

.submit-entry-text {
    font-size: 0.85rem;
    color: #555;
}

.btn-submit {
    background: none;
    border: 1.5px solid #ff69b4;
    color: #ff69b4;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-submit:hover {
    background: #ff69b4;
    color: #fff;
}

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

.submit-input {
    width: 100%;
    height: 100px;
    padding: 12px;
    border: 1.5px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    resize: none;
    outline: none;
    transition: border-color 0.2s;
}

.submit-input:focus {
    border-color: #ff69b4;
}

.submit-char-count {
    text-align: right;
    font-size: 0.8rem;
    color: #999;
    margin-top: 6px;
    margin-bottom: 10px;
}

.submit-hint {
    font-size: 0.75rem;
    color: #999;
    line-height: 1.6;
    margin-bottom: 16px;
}

/* ===== 响应式 ===== */
@media (min-width: 480px) {
    .page {
        max-width: 480px;
        margin: 0 auto;
    }

    #page-admin.page {
        max-width: 900px;
    }
}
