/* ==================== 芯忆 H5 — 温暖回忆主题 ==================== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;600;700&display=swap');

:root {
    /* 主色 — 暖金 */
    --primary: #C88A4A;
    --primary-light: #E0B87B;
    --primary-dark: #A06830;
    --primary-bg: rgba(200, 138, 74, 0.08);
    --primary-bg-hover: rgba(200, 138, 74, 0.14);

    /* 强调色 — 暖珊瑚 */
    --accent: #E07050;
    --accent-light: #F09078;
    --accent-bg: rgba(224, 112, 80, 0.08);

    /* 语义色 */
    --success: #52A879;
    --success-bg: rgba(82, 168, 121, 0.08);
    --warning: #E8A840;
    --warning-bg: rgba(232, 168, 64, 0.08);
    --danger: #D15252;
    --danger-bg: rgba(209, 82, 82, 0.08);

    /* 背景 */
    --bg: #FFFAF5;
    --bg-warm: #FFF5EB;
    --card-bg: #FFFFFF;
    --card-bg-hover: #FFFBF7;

    /* 文字 */
    --text: #2D2420;
    --text-secondary: #7A6E64;
    --text-muted: #B0A59A;
    --text-on-primary: #FFFFFF;

    /* 边框 */
    --border: #EDE4DA;
    --border-light: #F5EFE8;
    --border-focus: rgba(200, 138, 74, 0.35);

    /* 圆角 */
    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius: 14px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* 阴影 */
    --shadow-xs: 0 1px 3px rgba(45, 36, 32, 0.04);
    --shadow-sm: 0 2px 8px rgba(45, 36, 32, 0.06);
    --shadow: 0 4px 16px rgba(45, 36, 32, 0.07);
    --shadow-lg: 0 8px 32px rgba(45, 36, 32, 0.10);
    --shadow-xl: 0 16px 48px rgba(45, 36, 32, 0.12);

    /* 间距 */
    --space-xs: 4px;
    --space-sm: 8px;
    --space: 12px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;

    /* 字号 */
    --text-xs: 11px;
    --text-sm: 13px;
    --text-base: 15px;
    --text-md: 17px;
    --text-lg: 20px;
    --text-xl: 24px;
    --text-2xl: 30px;

    /* 安全区 */
    --safe-bottom: env(safe-area-inset-bottom, 0px);

    /* 字体 */
    --font-heading: 'Noto Serif SC', 'STSong', 'Songti SC', 'KaiTi', 'Times New Roman', serif;
    --font-body: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    --font-mono: 'SF Mono', 'Cascadia Code', 'Consolas', 'Monaco', monospace;
}

/* ==================== Reset ==================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    font-size: var(--text-base);
    line-height: 1.65;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    color: var(--primary-dark);
}

/* ==================== Scrollbar ==================== */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ==================== Selection ==================== */
::selection {
    background: var(--primary-bg-hover);
    color: var(--text);
}

/* ==================== Focus ==================== */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 2px;
}

/* ==================== Typography ==================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.35;
    color: var(--text);
}

h1 { font-size: var(--text-2xl); letter-spacing: 0.3px; }
h2 { font-size: var(--text-xl); letter-spacing: 0.2px; }
h3 { font-size: var(--text-lg); }
h4 { font-size: var(--text-md); }

/* ==================== Navigation Bar — Glassmorphism ==================== */
.nav-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    padding: 0 12px;
    background: rgba(255, 250, 245, 0.85);
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 1px 4px rgba(45, 36, 32, 0.03);
}

.nav-bar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15%;
    right: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(200, 138, 74, 0.3), transparent);
}

.nav-bar .back-btn {
    position: absolute;
    left: 10px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: rgba(45, 36, 32, 0.04);
    border-radius: 50%;
    color: var(--text);
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.nav-bar .back-btn:active {
    background: rgba(45, 36, 32, 0.1);
    transform: scale(0.94);
}

.nav-bar .back-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.nav-bar .title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
    font-family: var(--font-heading);
    letter-spacing: 0.3px;
}

.nav-bar .right-action {
    position: absolute;
    right: 16px;
    font-size: 14px;
    color: var(--primary);
    border: none;
    background: none;
    cursor: pointer;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: var(--radius-xs);
    transition: background 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.nav-bar .right-action:active {
    background: var(--primary-bg);
}

/* ==================== Bottom Tab Bar — Glassmorphism ==================== */
.tab-bar {
    position: fixed;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 20px);
    max-width: 394px;
    display: flex;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    border-radius: 22px;
    border: 1px solid var(--border);
    padding: 4px 8px;
    padding-bottom: calc(4px + var(--safe-bottom));
    z-index: 100;
    box-shadow:
        0 4px 24px rgba(45, 36, 32, 0.08),
        0 1px 0 rgba(200, 138, 74, 0.06) inset;
}

.tab-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(200, 138, 74, 0.35), transparent);
    border-radius: 1px;
}

.tab-bar .tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 4px 2px;
    font-size: 10px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.25s, transform 0.25s;
    text-decoration: none;
    border-radius: 16px;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.tab-bar .tab-item:active {
    transform: scale(0.94);
}

.tab-bar .tab-item.active {
    color: var(--primary);
}

.tab-bar .tab-item.active::after {
    content: '';
    position: absolute;
    bottom: 1px;
    left: 50%;
    transform: translateX(-50%);
    width: 22px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 3px;
}

.tab-bar .tab-item .tab-icon {
    width: 26px;
    height: 26px;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s;
}

.tab-bar .tab-item.active .tab-icon {
    transform: translateY(-1px);
}

.tab-bar .tab-item .tab-icon svg {
    width: 100%;
    height: 100%;
    display: block;
    transition: filter 0.25s;
}

.tab-bar .tab-item.active .tab-icon svg {
    filter: drop-shadow(0 1px 3px rgba(200, 138, 74, 0.4));
}

.tab-bar .tab-item .tab-label {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* ==================== Page Utils ==================== */
.page-with-tab {
    padding-bottom: 100px;
}

.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* ==================== Buttons ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: var(--text-base);
    font-weight: 500;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.2s;
    gap: 6px;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    white-space: nowrap;
    letter-spacing: 0.2px;
}

.btn:active {
    transform: scale(0.97);
}

.btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    box-shadow: 0 2px 12px rgba(200, 138, 74, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    box-shadow: 0 4px 16px rgba(200, 138, 74, 0.35);
}

.btn-primary:active {
    background: var(--primary-dark);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary-bg);
}

.btn-outline:active {
    background: var(--primary-bg-hover);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: #fff;
    box-shadow: 0 2px 12px rgba(224, 112, 80, 0.2);
}

.btn-accent:hover {
    box-shadow: 0 4px 18px rgba(224, 112, 80, 0.3);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    background: rgba(45, 36, 32, 0.04);
    color: var(--text);
}

.btn-block {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius);
}

.btn-sm {
    padding: 6px 14px;
    font-size: var(--text-sm);
    border-radius: var(--radius-xs);
}

.btn-lg {
    padding: 14px 32px;
    font-size: var(--text-md);
    border-radius: var(--radius);
}

/* ==================== Cards ==================== */
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: var(--space-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all 0.2s;
}

.card:hover {
    box-shadow: var(--shadow);
}

.card-clickable {
    cursor: pointer;
}

.card-clickable:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.card-clickable:active {
    transform: scale(0.985);
}

/* ==================== Forms ==================== */
.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
    letter-spacing: 0.2px;
}

.form-group label .required {
    color: var(--danger);
    margin-left: 2px;
}

.form-control {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: var(--text-base);
    font-family: var(--font-body);
    background: var(--card-bg);
    color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    -webkit-appearance: none;
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-control:hover {
    border-color: var(--primary-light);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--border-focus);
}

textarea.form-control {
    resize: vertical;
    min-height: 90px;
    line-height: 1.6;
}

select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237A6E64' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    appearance: none;
}

/* ==================== Search ==================== */
.search-bar {
    display: flex;
    align-items: center;
    background: var(--card-bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-full);
    padding: 10px 16px;
    gap: 8px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-bar:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--border-focus);
}

.search-bar input {
    flex: 1;
    border: none;
    outline: none;
    font-size: var(--text-base);
    font-family: var(--font-body);
    color: var(--text);
    background: transparent;
}

.search-bar input::placeholder {
    color: var(--text-muted);
}

.search-bar .search-icon {
    color: var(--text-muted);
    flex-shrink: 0;
}

/* ==================== Tags / Badges ==================== */
.tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.3px;
}

.tag-primary {
    background: var(--primary-bg);
    color: var(--primary-dark);
}

.tag-success {
    background: var(--success-bg);
    color: var(--success);
}

.tag-warning {
    background: var(--warning-bg);
    color: var(--warning);
}

.tag-danger {
    background: var(--danger-bg);
    color: var(--danger);
}

.tag-neutral {
    background: rgba(45, 36, 32, 0.05);
    color: var(--text-secondary);
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    font-size: 10px;
    font-weight: 600;
    background: var(--danger);
    color: #fff;
}

/* ==================== Product Cards ==================== */
.product-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    cursor: pointer;
    transition: all 0.25s;
}

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

.product-card:active {
    transform: scale(0.985);
}

.product-card .cover {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, #FDF6ED, #FEF9F3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card .cover .cover-icon {
    width: 64px;
    height: 64px;
    color: var(--primary);
    opacity: 0.5;
}

.product-card .info {
    padding: 14px 16px;
}

.product-card .info .name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text);
    font-family: var(--font-heading);
}

.product-card .info .desc {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.product-card .info .meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-light);
}

.product-card .info .price {
    color: var(--accent);
    font-weight: 600;
    font-size: 18px;
}

.product-card .info .price::before {
    content: '¥';
    font-size: 12px;
    margin-right: 1px;
}

/* ==================== Album Cards ==================== */
.album-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    cursor: pointer;
    transition: all 0.25s;
}

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

.album-card:active {
    transform: scale(0.985);
}

.album-card .cover {
    width: 100%;
    height: 210px;
    object-fit: cover;
    position: relative;
    background: linear-gradient(135deg, #F5F2EF, #FAF7F4);
}

.album-card .cover .photo-count {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
    color: #fff;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 500;
}

.album-card .info {
    padding: 14px 16px;
}

.album-card .info .title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text);
    font-family: var(--font-heading);
}

.album-card .info .desc {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.5;
}

.album-card .info .meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-light);
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

/* ==================== Photo Grid ==================== */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
}

.photo-grid .photo-item {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
    cursor: pointer;
    border-radius: 2px;
}

.photo-grid .photo-item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.photo-grid .photo-item .like-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    color: #fff;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 10px;
    display: flex;
    align-items: center;
    gap: 3px;
    font-weight: 500;
}

/* ==================== Photo Viewer ==================== */
.photo-viewer {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-viewer img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.photo-viewer .close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(6px);
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.photo-viewer .close-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ==================== User Wall ==================== */
.user-wall .wall-item {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    margin-bottom: 14px;
    transition: box-shadow 0.2s;
}

.user-wall .wall-item:hover {
    box-shadow: var(--shadow);
}

.user-wall .wall-item .wall-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
}

.user-wall .wall-item .wall-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FDF6ED, #FEF9F3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid var(--border-light);
}

.user-wall .wall-item .wall-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.user-wall .wall-item .wall-name {
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--text);
}

.user-wall .wall-item .wall-product {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.user-wall .wall-item .wall-photos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
}

.user-wall .wall-item .wall-photos img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

/* ==================== Profile Header ==================== */
.profile-header {
    text-align: center;
    padding: 32px 20px 28px;
    background: linear-gradient(160deg, #3D3226 0%, #5C4A3A 40%, #8B6C4E 100%);
    color: #fff;
    border-radius: 0 0 28px 28px;
    position: relative;
    overflow: hidden;
}

.profile-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(200, 138, 74, 0.2) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 60%, rgba(224, 112, 80, 0.12) 0%, transparent 50%);
    pointer-events: none;
}

.profile-header .avatar {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    margin: 0 auto 12px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.profile-header .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-header .nickname {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 2px;
    font-family: var(--font-heading);
    position: relative;
    z-index: 1;
}

.profile-header .phone {
    font-size: var(--text-sm);
    opacity: 0.7;
    position: relative;
    z-index: 1;
}

/* ==================== Menu List ==================== */
.menu-list {
    margin: 16px 0;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 15px 18px;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid var(--border-light);
    -webkit-tap-highlight-color: transparent;
}

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

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

.menu-item:active {
    background: rgba(45, 36, 32, 0.05);
}

.menu-item .menu-icon {
    width: 24px;
    height: 24px;
    margin-right: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary);
}

.menu-item .menu-icon svg {
    width: 22px;
    height: 22px;
}

.menu-item .menu-label {
    flex: 1;
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--text);
}

.menu-item .menu-value {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-right: 8px;
}

.menu-item .menu-arrow {
    color: var(--text-muted);
    font-size: 16px;
}

/* ==================== Login Page ==================== */
.login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(200, 138, 74, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(224, 112, 80, 0.05) 0%, transparent 50%),
        var(--bg);
}

.login-logo {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-logo svg {
    width: 56px;
    height: 56px;
    color: var(--primary);
}

.login-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
}

.login-subtitle {
    font-size: var(--text-base);
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.login-form {
    width: 100%;
    max-width: 360px;
}

.login-form .form-control {
    background: var(--card-bg);
}

.login-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    background: rgba(45, 36, 32, 0.04);
    border-radius: var(--radius-sm);
    padding: 3px;
    width: 100%;
}

.login-tabs .tab-btn {
    flex: 1;
    padding: 9px 12px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: var(--text-sm);
    font-weight: 500;
    font-family: var(--font-body);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.25s;
    -webkit-tap-highlight-color: transparent;
}

.login-tabs .tab-btn.active {
    background: var(--card-bg);
    color: var(--primary-dark);
    box-shadow: var(--shadow-xs);
    font-weight: 600;
}

.login-panel {
    display: none;
}

.login-panel.active {
    display: block;
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 20px 0;
}

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

.login-divider span {
    font-size: var(--text-sm);
    color: var(--text-muted);
    white-space: nowrap;
}

/* GitHub Login Button */
.btn-github {
    background: #24292e;
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 500;
}

.btn-github:hover {
    background: #1b1f23;
}

.btn-github svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

/* ==================== FAQ ==================== */
.faq-item {
    background: var(--card-bg);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: box-shadow 0.2s;
}

.faq-item:hover {
    box-shadow: var(--shadow-sm);
}

.faq-item .faq-q {
    padding: 16px;
    font-size: var(--text-base);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    color: var(--text);
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s;
}

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

.faq-item .faq-q::after {
    content: '';
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23B0A59A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'%3E%3C/polyline%3E%3C/svg%3E");
    flex-shrink: 0;
    transition: transform 0.25s;
}

.faq-item.open .faq-q::after {
    transform: rotate(90deg);
}

.faq-item .faq-a {
    padding: 0 16px;
    font-size: var(--text-sm);
    color: var(--text-secondary);
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s;
    line-height: 1.7;
}

.faq-item.open .faq-a {
    padding: 0 16px 16px;
    max-height: 500px;
}

/* ==================== Anniversary Items ==================== */
.anniversary-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

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

.anniversary-item .ann-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary);
}

.anniversary-item .ann-icon svg {
    width: 22px;
    height: 22px;
}

.anniversary-item .ann-info {
    flex: 1;
    min-width: 0;
}

.anniversary-item .ann-name {
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--text);
}

.anniversary-item .ann-date {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.anniversary-item .ann-days {
    font-size: var(--text-base);
    color: var(--accent);
    font-weight: 600;
    flex-shrink: 0;
}

/* ==================== Upload Area ==================== */
.upload-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 32px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.upload-area:hover {
    border-color: var(--primary-light);
    background: var(--primary-bg);
}

.upload-area:active {
    border-color: var(--primary);
}

.upload-area .upload-icon {
    color: var(--text-muted);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-area .upload-icon svg {
    width: 40px;
    height: 40px;
}

.upload-area .upload-text {
    font-size: var(--text-base);
    color: var(--text-secondary);
    font-weight: 500;
}

.upload-area .upload-hint {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-top: 6px;
}

/* ==================== Image Preview List ==================== */
.preview-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.preview-list .preview-item {
    position: relative;
    width: 76px;
    height: 76px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid var(--border-light);
}

.preview-list .preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-list .preview-item .remove-btn {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    border: none;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.preview-list .preview-item .remove-btn:hover {
    background: rgba(0, 0, 0, 0.75);
}

/* ==================== Modal ==================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.modal {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    width: 86%;
    max-width: 380px;
    padding: 24px;
    animation: slideUp 0.3s ease;
    box-shadow: var(--shadow-xl);
}

.modal .modal-title {
    font-size: var(--text-md);
    font-weight: 600;
    text-align: center;
    margin-bottom: 10px;
    color: var(--text);
    font-family: var(--font-heading);
}

.modal .modal-body {
    font-size: var(--text-base);
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 22px;
    line-height: 1.6;
}

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

.modal .modal-actions .btn {
    flex: 1;
}

/* ==================== Toast ==================== */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(45, 36, 32, 0.88);
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    font-size: var(--text-base);
    z-index: 9999;
    animation: fadeIn 0.2s ease;
    pointer-events: none;
    font-weight: 500;
}

/* ==================== Loading ==================== */
.loading {
    text-align: center;
    padding: 24px;
    color: var(--text-muted);
    font-size: var(--text-sm);
}

.loading::before {
    content: '';
    display: inline-block;
    width: 22px;
    height: 22px;
    border: 2.5px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin-right: 10px;
    vertical-align: middle;
}

/* ==================== Empty State ==================== */
.empty-state {
    text-align: center;
    padding: 64px 24px;
    color: var(--text-muted);
}

.empty-state .icon {
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-state .icon svg {
    width: 48px;
    height: 48px;
    color: var(--text-muted);
}

.empty-state .text {
    font-size: var(--text-base);
    margin-bottom: 16px;
}

/* ==================== Load More ==================== */
.load-more {
    text-align: center;
    padding: 20px;
}

.load-more .btn {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

/* ==================== Skeleton Loading ==================== */
.skeleton {
    background: linear-gradient(90deg, var(--border-light) 25%, var(--border) 50%, var(--border-light) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-xs);
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ==================== Hidden Utility ==================== */
.hidden-input {
    display: none;
}

/* ==================== Animations ==================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

@keyframes spin {
    to { transform: rotate(360deg); }
}

.fade-in {
    animation: fadeInUp 0.35s ease;
}

/* ==================== Reduced Motion ==================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==================== Responsive ==================== */
@media (min-width: 600px) {
    .photo-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 4px;
    }

    .user-wall .wall-item .wall-photos {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 768px) {
    body {
        font-size: 15px;
    }

    .container {
        max-width: 520px;
    }

    .photo-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
