/* 基础设置 */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Noto Sans SC', sans-serif; -webkit-tap-highlight-color: transparent; }
body { min-height: 100vh; overflow-x: hidden; color: #fff; position: relative; overscroll-behavior-y: none; }
.background { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-image: url('https://images.unsplash.com/photo-1519681393784-d120267933ba?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80'); background-size: cover; background-position: center; filter: brightness(0.7); z-index: -1; }
#hearts-container { position: fixed; width: 100%; height: 100%; pointer-events: none; z-index: -1; }
.heart { position: absolute; font-size: 24px; color: #ff6b6b; opacity: 0; animation: float 8s linear infinite; }
@keyframes float { 0% { transform: translateY(100vh) rotate(0deg); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { transform: translateY(-100px) rotate(360deg); opacity: 0; } }

.container { max-width: 1200px; margin: 0 auto; padding: 15px; display: flex; flex-direction: column; min-height: 100vh; }
header { text-align: center; padding: 20px 0; margin-bottom: 15px; position: relative; }
.header-heart { position: absolute; top: 5px; right: 10px; font-size: 1.5rem; color: #ff6b6b; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }
header h1 { font-size: 1.8rem; margin-bottom: 8px; text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); color: #ff6b6b; line-height: 1.3; }
.heart-pulse { animation: heartbeat 1.5s infinite; display: inline-block; }
@keyframes heartbeat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.2); } }
.subtitle { font-size: 1rem; opacity: 0.9; margin-bottom: 8px; color: #ffd43b; }
.secret-message { background: rgba(255, 107, 107, 0.2); border: 1px solid rgba(255, 107, 107, 0.3); border-radius: 10px; padding: 8px; margin-top: 10px; display: inline-block; animation: fadeIn 2s; font-family: 'Dancing Script', cursive; font-size: 1.1rem; color: #ffd43b; max-width: 90%; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* 生日倒计时样式 */
.birthday-section { background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(10px); border-radius: 15px; padding: 20px; margin-bottom: 20px; text-align: center; border: 1px solid rgba(255, 107, 107, 0.3); }
.birthday-section h3 { color: #ff6b6b; margin-bottom: 15px; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; gap: 8px; }
.birthday-countdown { display: flex; justify-content: center; align-items: baseline; gap: 5px; }
.b-number { font-size: 3rem; font-weight: 800; color: #ffd43b; text-shadow: 0 0 10px rgba(255, 212, 59, 0.5); }
.b-label { font-size: 1.2rem; color: #fff; }
.birthday-wish { margin-top: 10px; font-size: 0.9rem; color: #ccc; font-style: italic; }

.info-card { display: grid; grid-template-columns: 1fr; gap: 15px; margin-bottom: 20px; }
.current-time, .countdown, .weather { background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(10px); border-radius: 15px; padding: 20px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 255, 255, 0.1); }
h2 { font-size: 1.2rem; margin-bottom: 15px; display: flex; align-items: center; gap: 8px; }
h2 i { color: #ff6b6b; }
.time-display { text-align: center; }
.date { font-size: 1.2rem; font-weight: 700; margin-bottom: 5px; color: #ffd43b; }
.time { font-size: 2.5rem; font-weight: 700; margin: 10px 0; color: #ff6b6b; text-shadow: 0 0 10px rgba(255, 107, 107, 0.5); font-variant-numeric: tabular-nums; }
.weekday { font-size: 1.1rem; color: #b197fc; }
.countdown-display { display: flex; justify-content: center; align-items: center; margin: 20px 0; }
.time-unit { display: flex; flex-direction: column; align-items: center; margin: 0 5px; }
.time-unit .number { font-size: 2.8rem; font-weight: 800; color: #ff6b6b; text-shadow: 0 0 15px rgba(255, 107, 107, 0.6); min-width: 60px; text-align: center; transition: transform 0.3s ease; font-variant-numeric: tabular-nums; }
.time-unit .label { font-size: 0.9rem; margin-top: 5px; color: #ccc; }
.separator { font-size: 1.5rem; font-weight: bold; color: #ff6b6b; margin-bottom: 20px; animation: heartbeat 1.5s infinite; }
.status { text-align: center; font-size: 1.2rem; font-weight: 700; padding: 8px; border-radius: 10px; background: rgba(255, 107, 107, 0.2); margin-top: 10px; }
.love-note { text-align: center; font-style: italic; margin-top: 10px; color: #ffd43b; font-size: 1rem; animation: fadeInOut 5s infinite; }
@keyframes fadeInOut { 0%, 100% { opacity: 0.7; } 50% { opacity: 1; } }
.weather-info { min-height: 100px; display: flex; flex-direction: column; justify-content: center; }
.weather-loading { text-align: center; font-size: 1rem; }
.weather-details { display: flex; align-items: center; gap: 15px; }
.weather-icon { font-size: 3rem; color: #ffd43b; }
.weather-text { flex-grow: 1; }
.temperature { font-size: 2rem; font-weight: 700; margin-bottom: 5px; color: #ff6b6b; }
.description { font-size: 1.1rem; margin-bottom: 8px; color: #ccc; }
.location { font-size: 0.9rem; color: #aaa; }
.weather-suggestion { margin-top: 10px; padding: 8px; background: rgba(255, 215, 0, 0.1); border-radius: 8px; font-size: 0.85rem; color: #ffd43b; }

.work-schedule { background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(10px); border-radius: 15px; padding: 20px; margin-bottom: 20px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 255, 255, 0.1); }
.schedule-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.schedule-header h3 { font-size: 1.2rem; display: flex; align-items: center; gap: 8px; }
.edit-btn { background: linear-gradient(45deg, #4dabf7, #339af0); color: white; border: none; padding: 6px 12px; border-radius: 20px; font-size: 0.85rem; cursor: pointer; transition: all 0.3s ease; display: flex; align-items: center; gap: 5px; }
.edit-btn:active { transform: scale(0.95); }
.schedule-display { background: rgba(255, 255, 255, 0.05); border-radius: 10px; padding: 10px; margin-bottom: 10px; }
.schedule-item { display: flex; justify-content: space-between; align-items: center; padding: 8px; margin-bottom: 5px; background: rgba(255, 255, 255, 0.03); border-radius: 8px; }
.schedule-label { display: flex; align-items: center; gap: 8px; color: #ffd43b; font-size: 0.95rem; }
.schedule-value { color: #74c0fc; font-weight: 600; font-size: 1rem; }
.weekday-list { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.weekday-tag { background: rgba(255, 107, 107, 0.2); color: #ff6b6b; padding: 3px 8px; border-radius: 15px; font-size: 0.75rem; font-weight: 500; }
.after-work { margin-top: 10px; text-align: center; padding: 8px; background: rgba(105, 219, 124, 0.2); border-radius: 8px; color: #69db7c; font-style: italic; font-size: 0.9rem; }

.quote-section { background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(10px); border-radius: 15px; padding: 20px; margin-bottom: 20px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 255, 255, 0.1); text-align: center; }
.quote-section h3 { font-size: 1.2rem; margin-bottom: 15px; display: flex; align-items: center; gap: 8px; justify-content: center; color: #ff6b6b; }
.quote { font-size: 1.1rem; font-style: italic; color: #ffd43b; margin: 15px 0; min-height: 60px; display: flex; align-items: center; justify-content: center; padding: 10px; background: rgba(255, 215, 0, 0.1); border-radius: 10px; font-family: 'Dancing Script', cursive; }
.new-quote-btn { background: linear-gradient(45deg, #ff6b6b, #ff8e8e); color: white; border: none; padding: 10px 20px; border-radius: 50px; font-size: 0.9rem; cursor: pointer; transition: all 0.3s ease; display: inline-flex; align-items: center; gap: 8px; }
.new-quote-btn:active { transform: scale(0.95); }

.surprise-section { background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(10px); border-radius: 15px; padding: 20px; margin-bottom: 20px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 255, 255, 0.1); text-align: center; }
.surprise-section h3 { font-size: 1.2rem; margin-bottom: 15px; display: flex; align-items: center; gap: 8px; justify-content: center; color: #ff6b6b; }
.surprise-content p { margin-bottom: 15px; font-size: 1rem; color: #ffd43b; }
.surprise-btn { background: linear-gradient(45deg, #ff6b6b, #ff8e8e); color: white; border: none; padding: 12px 25px; border-radius: 50px; font-size: 1rem; cursor: pointer; transition: all 0.3s ease; display: inline-flex; align-items: center; gap: 10px; }
.surprise-btn:active { transform: scale(0.95); }

.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.8); z-index: 1000; align-items: center; justify-content: center; backdrop-filter: blur(5px); }
.modal-content { background: rgba(255, 255, 255, 0.98); color: #333; width: 95%; max-width: 500px; max-height: 90vh; border-radius: 20px; padding: 25px; position: relative; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); animation: modalFadeIn 0.5s; overflow-y: auto; }
@keyframes modalFadeIn { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: scale(1); } }
.modal-content h2 { color: #ff6b6b; text-align: center; margin-bottom: 20px; font-size: 1.5rem; }
.close-modal { position: absolute; top: 15px; right: 20px; font-size: 28px; cursor: pointer; color: #ff6b6b; line-height: 1; }
.modal-body { padding: 10px 0; text-align: center; font-size: 1.1rem; line-height: 1.6; }
.modal-btn { background: linear-gradient(45deg, #ff6b6b, #ff8e8e); color: white; border: none; padding: 12px 25px; border-radius: 50px; font-size: 1rem; cursor: pointer; transition: all 0.3s ease; display: block; margin: 20px auto 0; }
.modal-btn:active { transform: scale(0.95); }

.edit-form { padding: 10px 0; }
.form-group { margin-bottom: 20px; }
.form-group label { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; color: #333; font-weight: 500; font-size: 1rem; }
.form-group label i { color: #ff6b6b; width: 18px; }
.time-input { width: 100%; padding: 12px; border: 2px solid #e9ecef; border-radius: 8px; font-size: 1rem; transition: all 0.3s ease; -webkit-appearance: none; }
.time-input:focus { outline: none; border-color: #ff6b6b; box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1); }
.weekday-selector { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.weekday-option { display: flex; align-items: center; gap: 6px; padding: 8px; background: #f8f9fa; border-radius: 8px; cursor: pointer; transition: all 0.3s ease; font-size: 0.9rem; }
.weekday-option:active { background: #e9ecef; }
.weekday-option input[type="checkbox"] { width: 18px; height: 18px; accent-color: #ff6b6b; }
.form-actions { display: flex; gap: 10px; margin-top: 25px; }
.btn-primary, .btn-secondary { flex: 1; padding: 12px; border: none; border-radius: 8px; font-size: 1rem; cursor: pointer; transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn-primary { background: linear-gradient(45deg, #ff6b6b, #ff8e8e); color: white; }
.btn-secondary { background: #e9ecef; color: #495057; }
.btn-primary:active, .btn-secondary:active { transform: scale(0.95); }

footer { text-align: center; padding: 15px; margin-top: auto; color: #ff6b6b; font-size: 0.85rem; border-top: 1px solid rgba(255, 255, 255, 0.1); }

@media (min-width: 768px) {
    .container { padding: 20px; }
    header h1 { font-size: 2.5rem; }
    .info-card { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; }
    .time { font-size: 3.5rem; }
    .time-unit .number { font-size: 4.5rem; min-width: 100px; }
    .separator { font-size: 2.5rem; margin-bottom: 30px; }
}
