/* ===== 阿福的生活 - 统一样式表 ===== */

/* ===== SVG图标 ===== */
.svg-icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: middle;
    fill: currentColor;
}
.svg-icon-sm { width: 0.85em; height: 0.85em; }
.svg-icon-lg { width: 1.3em; height: 1.3em; }
.svg-icon-xl { width: 2em; height: 2em; }
.svg-icon-fire { color: #e65100; }
.svg-icon-comment { color: #555; }

/* ===== CSS变量 ===== */
:root {
    --primary: #00D47E;
    --primary-dark: #00B86B;
    --secondary: #00896B;
    --accent: #00FFD4;
    --dark: #0A1F15;
    --light: #E8F5F0;
    --white: #FFFFFF;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-dark: 0 4px 20px rgba(0, 30, 20, 0.3);
}

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

html {
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scrollbar-gutter: stable;
}

/* ===== Body ===== */
body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
    background: linear-gradient(180deg, #f5f7fa 0%, #e8ecf0 100%);
    min-height: 100vh;
    color: var(--dark);
}

/* ===== Header ===== */
header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
header h1 { color: var(--white); font-size: 1.5rem; font-weight: 700; }
header p, header .tagline { color: rgba(255,255,255,0.9); font-size: 0.9rem; margin-top: 0.5rem; }

/* ===== Nav ===== */
nav {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    flex-wrap: wrap;
}
nav a { color: var(--dark); text-decoration: none; font-weight: 500; padding: 0.5rem 1rem; border-radius: 20px; transition: all 0.3s; }
nav a:hover { background: var(--primary); color: var(--white); }
nav a.active { background: var(--primary); color: var(--white); }

/* ===== Container ===== */
.container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* ===== Modal ===== */
.modal { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 1000; align-items: center; justify-content: center; }
.modal.active { display: flex; }
.modal-content { background: var(--white); padding: 2rem; border-radius: 16px; width: 90%; max-width: 400px; }
.modal-content h3 { margin-bottom: 1rem; }
.modal-buttons { display: flex; gap: 1rem; margin-top: 1rem; }
.modal-buttons button { flex: 1; padding: 0.8rem; border: none; border-radius: 8px; cursor: pointer; font-size: 1rem; transition: all 0.3s; }
.modal-buttons .confirm { background: var(--primary); color: white; }
.modal-buttons .cancel { background: #eee; color: var(--dark); }

/* ===== Button ===== */
.btn { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); border: none; border-radius: 12px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: all 0.3s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(78, 205, 196, 0.4); }
.btn-secondary { background: #eee; color: var(--dark); }
.btn-danger { background: #ff6b6b; color: white; }

/* ===== Form ===== */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; color: var(--dark); }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 0.8rem 1rem; border: 2px solid #e0e0e0; border-radius: 10px; font-size: 1rem; font-family: inherit; transition: border-color 0.3s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--secondary); }

/* ===== Album Checklist ===== */
.album-checklist { text-align: left; padding-left: 0 !important; }
.album-checklist label { display: flex; align-items: center; gap: 0.5rem; padding: 0.25rem 0.5rem !important; cursor: pointer; margin: 0 !important; }
.album-checklist label input { flex-shrink: 0; margin: 0 !important; padding: 0 !important; width: auto !important; }
.album-checklist label span { text-align: left; padding: 0 !important; }

/* ===== Error / Success ===== */
.error { background: #fee; color: #c00; padding: 0.8rem; border-radius: 8px; margin-bottom: 1rem; text-align: center; }
.success { background: #efe; color: #060; padding: 0.8rem; border-radius: 8px; margin-bottom: 1rem; text-align: center; }

/* ===== Back Link ===== */
.back-link { display: inline-block; margin-top: 1.5rem; color: var(--secondary); text-decoration: none; font-weight: 500; }
.back-link:hover { text-decoration: underline; }

/* ===== Footer ===== */
footer { text-align: center; padding: 2rem; color: #888; font-size: 0.85rem; background: var(--white); margin-top: 2rem; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    header h1 { font-size: 1.8rem; }
    nav { gap: 1rem; padding: 1rem; }
    .albums-bar { padding: 0.8rem; gap: 0.5rem; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .albums-bar::-webkit-scrollbar { display: none; }
    .group-tag-wrapper { display: inline-flex !important; }
    .container { padding: 1rem; }
    .photo-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
    .photo-card img { height: 150px; }
}
