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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: url('bg-image.png') center/cover no-repeat fixed;
    min-height: 100vh;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    position: relative;
}

.top-header {
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;
    z-index: 1001;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    margin: 0;
    letter-spacing: -0.02em;
}

.celebrate-button {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    padding: 12px 16px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    color: #333;
    font-size: 14px;
    font-family: inherit;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.celebrate-button:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.settings-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.settings-button:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.settings-button svg {
    width: 20px;
    height: 20px;
}

.settings-container {
    position: relative;
}

.settings-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    min-width: 180px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.settings-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    padding: 12px 16px;
    cursor: pointer;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: 8px;
    margin: 4px;
}

.dropdown-item:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #000;
}

.dropdown-item:first-child {
    margin-top: 8px;
}

.dropdown-item:last-child {
    margin-bottom: 8px;
}

.header {
    text-align: center;
    margin-top: 60px;
    margin-bottom: 40px;
}

.tab-container {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.tab-button {
    background: transparent;
    border: none;
    padding: 12px 28px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    font-family: inherit;
}

.tab-button.active {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.tab-button:hover:not(.active) {
    color: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

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

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

.today-question {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
    letter-spacing: -0.01em;
}

.today-birthday {
    margin-bottom: 50px;
}

.birthday-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 400px;
    margin: 0 auto 20px auto;
    cursor: pointer;
    position: relative;
}

.birthday-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.birthday-card.highlight {
    animation: pulse 2s infinite;
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    }
}

.birthday-card .emoji {
    font-size: 4rem;
    margin-bottom: 15px;
    display: block;
}

.birthday-card .name {
    font-size: 1.8rem;
    font-weight: 600;
    color: white;
    margin-bottom: 10px;
}

.birthday-card .message {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

.no-birthday {
    text-align: center;
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 40px 30px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    max-width: 400px;
    margin: 0 auto;
}

.upcoming-section {
    margin-top: 50px;
}

.upcoming-section h3 {
    color: white;
    font-size: 1.4rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 25px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.upcoming-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.upcoming-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.upcoming-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.upcoming-card .emoji {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

.upcoming-card .name {
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    margin-bottom: 5px;
}

.upcoming-card .date {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
}

.current-month {
    text-align: center;
    margin-bottom: 30px;
}

.current-month h2 {
    font-size: 2rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.birthday-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 120px;
}

.wall-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.wall-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.wall-card .emoji {
    font-size: 3rem;
    margin-bottom: 12px;
    display: block;
}

.wall-card .name {
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
}

.wall-card .date {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.month-selector {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    display: none;
    z-index: 1000;
    max-width: 90vw;
    overflow-x: auto;
}

.month-selector.show {
    display: block;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.month-pills {
    display: flex;
    gap: 8px;
    align-items: center;
}

.month-pill {
    background: transparent;
    border: none;
    padding: 10px 16px;
    border-radius: 18px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    white-space: nowrap;
}

.month-pill.active {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.month-pill:hover:not(.active) {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .top-header {
        top: 15px;
        left: 15px;
        right: 15px;
    }
    
    .top-header h1 {
        font-size: 1.5rem;
    }
    
    .celebrate-button {
        padding: 10px 14px;
        font-size: 13px;
        border-radius: 20px;
    }
    
    .header-actions {
        gap: 8px;
    }
    
    .settings-button {
        width: 36px;
        height: 36px;
    }
    
    .settings-button svg {
        width: 18px;
        height: 18px;
    }
    
    .settings-dropdown {
        top: 45px;
        min-width: 160px;
    }
    
    .dropdown-item {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .header {
        margin-top: 80px;
        margin-bottom: 30px;
    }
    
    .tab-button {
        padding: 10px 20px;
        font-size: 15px;
    }
    
    .today-question {
        font-size: 1.5rem;
    }
    
    .birthday-card {
        padding: 25px 20px;
        margin: 0 auto 20px auto;
    }
    
    .birthday-card .emoji {
        font-size: 3rem;
    }
    
    .birthday-card .name {
        font-size: 1.5rem;
    }
    
    .upcoming-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .birthday-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .month-pills {
        gap: 6px;
    }
    
    .month-pill {
        padding: 8px 12px;
        font-size: 13px;
    }
}

.fireworks-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.firework-particle {
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    box-shadow: 0 0 10px currentColor;
    pointer-events: none;
}

.firework {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    animation: firework 1.5s ease-out forwards;
}

@keyframes firework {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(-200px) scale(0);
        opacity: 0;
    }
}

.explosion {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: explosion 0.7s ease-out forwards;
}

@keyframes explosion {
    0% {
        transform: scale(0);
        opacity: 1;
        box-shadow: 0 0 5px currentColor;
    }
    30% {
        transform: scale(1.2);
        opacity: 0.9;
        box-shadow: 0 0 10px currentColor;
    }
    70% {
        transform: scale(2);
        opacity: 0.5;
        box-shadow: 0 0 15px currentColor;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
        box-shadow: 0 0 8px currentColor;
    }
}

.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: radial-gradient(circle, #fff 0%, transparent 70%);
    animation: sparkle 0.8s ease-out forwards;
}

@keyframes sparkle {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 1;
        box-shadow: 0 0 8px #fff;
    }
    25% {
        transform: scale(1.5) rotate(90deg);
        opacity: 0.9;
        box-shadow: 0 0 12px #fff;
    }
    50% {
        transform: scale(2) rotate(180deg);
        opacity: 0.7;
        box-shadow: 0 0 15px #fff;
    }
    75% {
        transform: scale(1.2) rotate(270deg);
        opacity: 0.4;
        box-shadow: 0 0 10px #fff;
    }
    100% {
        transform: scale(0) rotate(360deg);
        opacity: 0;
        box-shadow: 0 0 3px #fff;
    }
}

.firework-trail {
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    animation: trail 1.5s ease-out forwards;
}

@keyframes trail {
    0% {
        transform: translateY(100vh) scale(1);
        opacity: 1;
    }
    70% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-50px) scale(0);
        opacity: 0;
    }
}

/* 数据管理模态框样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.show .modal-content {
    transform: scale(1);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    color: #333;
    font-size: 1.5rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
}

.modal-body {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
}

.data-controls {
    margin-bottom: 20px;
}

.btn {
    background: #333;
    color: white;
    border: 1px solid #555;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn:hover {
    background: #444;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-add {
    background: #1a1a1a;
    color: white;
    border: 1px solid #333;
}

.btn-add:hover {
    background: #2a2a2a;
}

.btn-primary {
    background: #1a1a1a;
    color: white;
    border: 1px solid #333;
}

.btn-primary:hover {
    background: #2a2a2a;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border: 1px solid #777;
}

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

.btn-danger {
    background: #dc3545;
    color: white;
    border: 1px solid #c82333;
    padding: 6px 12px;
    font-size: 12px;
}

.btn-danger:hover {
    background: #c82333;
}

.data-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 300px;
    overflow-y: auto;
}

.data-item {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
}

.data-item:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.data-item input {
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.9);
    transition: border-color 0.2s ease;
    font-family: inherit;
}

.data-item input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.data-item .name-input {
    flex: 2;
    min-width: 150px;
}

.data-item .emoji-input {
    width: 60px;
    text-align: center;
}

.data-item .month-input,
.data-item .day-input {
    width: 70px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .modal-header {
        padding: 16px;
    }
    
    .modal-body {
        padding: 16px;
    }
    
    .modal-footer {
        padding: 16px;
    }
    
    .data-item {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .data-item .name-input {
        min-width: 120px;
        flex: 1;
    }
    
    .data-item .emoji-input {
        width: 50px;
    }
    
    .data-item .month-input,
    .data-item .day-input {
        width: 60px;
    }
}

/* 涟漪效果动画 */
@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}
