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

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    background: linear-gradient(135deg, #ffe6f0 0%, #fff0f5 50%, #ffe6f0 100%);
    min-height: 100vh;
    color: #5a4a50;
    padding-bottom: 30px;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 16px;
}

.card {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 18px;
    margin-bottom: 14px;
    box-shadow: 0 6px 20px rgba(255, 182, 193, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

h3 {
    color: #d87093;
    font-size: 16px;
    margin-bottom: 12px;
}

.input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ffd1dc;
    border-radius: 16px;
    font-size: 14px;
    background: #fffafc;
    outline: none;
    margin-bottom: 10px;
    font-family: inherit;
}

.input:focus {
    border-color: #ff9eb5;
    box-shadow: 0 0 0 3px rgba(255, 158, 181, 0.15);
}

textarea.input {
    min-height: 90px;
    resize: vertical;
}

.btn {
    display: inline-block;
    padding: 11px 22px;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    font-weight: 500;
}

.btn-primary {
    background: linear-gradient(135deg, #ff9eb5 0%, #ff6b9d 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(255, 107, 157, 0.3);
}

.btn-secondary {
    background: #fff0f5;
    color: #d87093;
    border: 1px solid #ffb6c1;
}

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

.btn-block {
    width: 100%;
}

.muted {
    color: #a06778;
    font-size: 13px;
}

.small {
    font-size: 12px;
}

.center {
    text-align: center;
}

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

.row-gap {
    display: flex;
    gap: 10px;
}

.nav {
    display: flex;
    justify-content: space-around;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 20px;
    padding: 6px;
    margin-bottom: 16px;
    box-shadow: 0 4px 16px rgba(255, 182, 193, 0.15);
    position: sticky;
    top: 10px;
    z-index: 99;
}

.nav a {
    flex: 1;
    text-align: center;
    padding: 9px 4px;
    text-decoration: none;
    color: #a06778;
    border-radius: 14px;
    font-size: 13px;
}

.nav a.active {
    background: linear-gradient(135deg, #ff9eb5 0%, #ff6b9d 100%);
    color: white;
    font-weight: 500;
}

.page-section {
    display: none;
}

.page-section.active {
    display: block;
}

.couple-header {
    text-align: center;
    padding: 18px 0 8px;
}

.couple-names {
    font-size: 19px;
    font-weight: 600;
    color: #d87093;
    margin-bottom: 6px;
}

.love-days {
    font-size: 13px;
    color: #a06778;
}

.love-days span {
    font-size: 22px;
    font-weight: 600;
    color: #ff6b9d;
}

.anni-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #fffafc;
    border-radius: 14px;
    margin-bottom: 10px;
}

.anni-days {
    text-align: right;
}

.anni-days .num {
    font-size: 20px;
    font-weight: 600;
    color: #ff6b9d;
}

.stat-row {
    display: flex;
    justify-content: space-around;
    margin-bottom: 14px;
}

.stat-row > div {
    text-align: center;
}

.stat-row .num {
    font-size: 22px;
    font-weight: 600;
}

.num.pink {
    color: #ff6b9d;
}

.num.green {
    color: #7cc48a;
}

.num.orange {
    color: #ffb347;
}

.wish-item {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    background: #fffafc;
    border-radius: 14px;
    margin-bottom: 10px;
}

.wish-checkbox {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    accent-color: #ff6b9d;
}

.wish-text {
    flex: 1;
    font-size: 14px;
}

.wish-item.done .wish-text {
    text-decoration: line-through;
    opacity: 0.55;
}

.del-btn {
    color: #ff9eb5;
    cursor: pointer;
    font-size: 13px;
}

.del-btn:hover {
    color: #ff6b9d;
}

/* 相册瀑布流 */
.album-grid {
    column-count: 2;
    column-gap: 10px;
}

.album-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 10px;
    break-inside: avoid;
    background: #f5f0f2;
    cursor: pointer;
}

.album-item img {
    width: 100%;
    height: auto;
    max-height: 380px;
    object-fit: cover;
    display: block;
    border-radius: 16px;
}

.album-item .del-mask {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
    background: rgba(255, 107, 157, 0.92);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* 留言 */
.message-card {
    padding: 14px;
}

#msgList {
    max-height: 420px;
    overflow-y: auto;
}

.msg-item {
    margin-bottom: 12px;
    display: flex;
}

.msg-item.mine {
    justify-content: flex-end;
}

.msg-bubble {
    max-width: 72%;
    padding: 10px 14px;
    border-radius: 18px;
    background: #fffafc;
}

.msg-item.mine .msg-bubble {
    background: linear-gradient(135deg, #ff9eb5 0%, #ff6b9d 100%);
    color: white;
}

.msg-time {
    font-size: 11px;
    opacity: 0.7;
    margin-top: 4px;
}

/* 菜单 */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.menu-card {
    background: #fffafc;
    border-radius: 18px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 10px;
}

.menu-card img {
    width: 100%;
    height: 110px;
    object-fit: cover;
}

.menu-empty {
    height: 110px;
    background: #ffe6f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
}

.menu-name {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 500;
}

.menu-type {
    font-size: 12px;
    color: #d87093;
    margin-top: 2px;
}

/* 我的 */
.center {
    text-align: center;
}

.avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ffb6c1;
    margin-bottom: 8px;
}

.form-label {
    display: block;
    font-size: 13px;
    color: #8a6a75;
    margin-bottom: 6px;
}

.done-text {
    color: #7cc48a;
    font-size: 13px;
}

/* 弹窗 */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.lightbox img {
    max-width: 92%;
    max-height: 86%;
    border-radius: 16px;
    object-fit: contain;
}

.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 12px 22px;
    border-radius: 14px;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
}

.toast.show {
    opacity: 1;
}
