/* ============================================================
   Jet Model Photos - 全站统一样式表
   所有页面统一引用 assets/css/site.css
   ============================================================ */

:root {
    --navy: #0a1628;
    --navy-light: #1a3a5c;
    --gold: #ffd700;
    --bg: #f5f6f8;
    --text: #333;
    --text-muted: #666;
    --border: #e3e6ea;
    --radius: 10px;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a { color: var(--navy-light); }

/* ---------------- 顶部导航 ---------------- */
.site-header {
    background: var(--navy);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 24px;
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 100;
}
.site-header .site-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 17px;
    flex-shrink: 0;
}
.site-header .site-brand img { height: 34px; width: auto; display: block; }
.site-header .site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; flex: 1 1 auto; }
.site-header .site-nav a {
    color: #c9d3e0;
    text-decoration: none;
    font-size: 13.5px;
    padding: 7px 12px;
    border-radius: 6px;
    white-space: nowrap;
    transition: background .2s, color .2s;
}
.site-header .site-nav a:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.site-header .site-nav a.active { background: rgba(255, 255, 255, 0.16); color: #fff; font-weight: 600; }
.site-header .site-account {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 13px;
    color: #c9d3e0;
    flex-shrink: 0;
}
.site-header .site-account a { color: #fff; text-decoration: none; }
.site-header .site-account a:hover { text-decoration: underline; }

/* ---------------- 布局容器 ---------------- */
.page { max-width: 1200px; margin: 0 auto; padding: 24px 20px 60px; }
.page-narrow { max-width: 820px; }

.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-title { font-size: 24px; font-weight: 700; color: var(--navy); }
.page-subtitle { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* ---------------- 卡片 ---------------- */
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; margin-bottom: 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.card-title { font-size: 17px; font-weight: 600; color: var(--navy); }
.card-desc { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* ---------------- 表单 ---------------- */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13.5px; font-weight: 600; color: #444; margin-bottom: 6px; }
.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    color: var(--text);
    transition: border-color .2s, box-shadow .2s;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #4a90d9;
    box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.13);
}
.form-textarea { resize: vertical; min-height: 100px; }
.form-hint { font-size: 12px; color: #999; margin-top: 5px; }
.form-row { display: flex; gap: 14px; flex-wrap: wrap; }
.form-row > * { flex: 1 1 220px; }

.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.switch-row:last-child { border-bottom: none; }
.switch-row .switch-text { flex: 1; }
.switch-row .switch-title { font-size: 14px; font-weight: 600; color: #333; }
.switch-row .switch-desc { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
.switch { position: relative; display: inline-block; width: 46px; height: 26px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider { position: absolute; inset: 0; background: #ccc; border-radius: 26px; cursor: pointer; transition: .2s; }
.switch .slider::before { content: ''; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.switch input:checked + .slider { background: #28a745; }
.switch input:checked + .slider::before { transform: translateX(20px); }

/* ---------------- 按钮 ---------------- */
.btn {
    display: inline-block;
    padding: 9px 18px;
    border: none;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    background: #eef1f5;
    color: #333;
    transition: opacity .2s, background .2s;
    line-height: 1.5;
}
.btn:hover { opacity: .88; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-success { background: #28a745; color: #fff; }
.btn-info { background: #17a2b8; color: #fff; }
.btn-warning { background: #fd7e14; color: #fff; }
.btn-danger { background: #dc3545; color: #fff; }
.btn-muted { background: #6c757d; color: #fff; }
.btn-sm { padding: 5px 11px; font-size: 12px; border-radius: 6px; }
.btn-block { display: block; width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------------- 提示 ---------------- */
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 13.5px; border: 1px solid transparent; }
.alert-success { background: #e8f6ec; color: #1d6b33; border-color: #c3e6cb; }
.alert-error { background: #fdecee; color: #8b1f2b; border-color: #f5c2c7; }
.alert-info { background: #e8f2fb; color: #14507a; border-color: #b6dcf5; }
.alert-warning { background: #fff6e5; color: #8a5a00; border-color: #ffe1a8; }

/* ---------------- 标签页 ---------------- */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--border); margin-bottom: 20px; flex-wrap: wrap; }
.tabs a {
    padding: 11px 18px;
    font-size: 14px;
    text-decoration: none;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}
.tabs a:hover { color: var(--navy); }
.tabs a.active { color: var(--navy); border-bottom-color: var(--navy); font-weight: 600; }

/* ---------------- 数据展示 ---------------- */
.info-list { display: grid; grid-template-columns: 150px 1fr; gap: 12px 16px; font-size: 13.5px; }
.info-list dt { color: var(--text-muted); }
.info-list dd { color: #333; word-break: break-all; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; }
.stat-card { background: #f8f9fb; border-radius: 10px; padding: 18px; text-align: center; }
.stat-number { font-size: 26px; font-weight: 700; color: var(--navy); line-height: 1.2; }
.stat-label { font-size: 12.5px; color: var(--text-muted); margin-top: 4px; }

.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; }
.badge-success { background: #e8f6ec; color: #1d6b33; }
.badge-danger { background: #fdecee; color: #8b1f2b; }
.badge-warning { background: #fff6e5; color: #8a5a00; }
.badge-info { background: #e8f2fb; color: #14507a; }
.badge-muted { background: #eef1f5; color: #555; }

/* ---------------- 头像 ---------------- */
.avatar { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; background: linear-gradient(135deg, var(--navy), var(--navy-light)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 32px; font-weight: 700; overflow: hidden; flex-shrink: 0; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

/* ---------------- 空状态 ---------------- */
.empty { text-align: center; padding: 50px 20px; color: #999; font-size: 14px; }
.empty .empty-icon { font-size: 52px; margin-bottom: 12px; }

/* ---------------- 照片网格 ---------------- */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.photo-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s; }
.photo-card:hover { transform: translateY(-3px); }
.photo-card .photo-thumb { display: block; position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #eaeef2; }
.photo-card .photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-card .photo-body { padding: 12px 14px; }
.photo-card .photo-name { font-size: 13.5px; font-weight: 600; color: #333; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.photo-card .photo-meta { font-size: 12px; color: var(--text-muted); }

/* ---------------- 页脚 ---------------- */
.site-footer { background: var(--navy); color: #aebccd; padding: 30px 20px; margin-top: auto; }
.site-footer .footer-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 12.5px; }
.site-footer a { color: #d5dfea; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 860px) {
    .site-header { padding: 10px 14px; }
    .site-header .site-nav { order: 3; width: 100%; }
    .page { padding: 18px 14px 50px; }
    .info-list { grid-template-columns: 110px 1fr; }
}
@media (max-width: 560px) {
    .photo-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .card { padding: 16px; }
    .page-title { font-size: 20px; }
}
