/* 档案系统
   —— 由 styles.css 第 1395–1539 行原样切分，规则与顺序未改动。 */
/* ====== 新版档案系统 CSS ====== */
.arc-list-view { flex:1; overflow-y:auto; display:flex; flex-direction:column; background:rgba(255,255,255,0.15); }
.arc-search-row { padding:12px 16px 4px; flex-shrink:0; }
.arc-search-wrap { position:relative; }
.arc-search-icon { position:absolute; left:12px; top:50%; transform:translateY(-50%); width:16px; height:16px; fill:#bbb; }
.arc-search-box { width:100%; padding:10px 14px 10px 36px; border:none; border-radius:12px; background:rgba(255,255,255,0.85); font-size:13px; outline:none; font-family:inherit; color:#2C2C2C; box-shadow:0 2px 8px rgba(0,0,0,0.04); }
.arc-cat-row { display:flex; gap:8px; padding:10px 16px 4px; overflow-x:auto; flex-shrink:0; }
.arc-cat-row::-webkit-scrollbar{ display:none; }
.arc-cat-tag { padding:6px 14px; border-radius:16px; font-size:12px; font-weight:600; background:rgba(255,255,255,0.5); color:#666; cursor:pointer; white-space:nowrap; transition:all 0.2s; }
.arc-cat-tag.active{ background:#2C2C2C; color:#fff; }
.arc-actions { display:flex; gap:10px; padding:8px 16px; flex-shrink:0; }
.arc-act-btn { flex:1; padding:11px; border-radius:12px; border:none; font-size:13px; font-weight:700; cursor:pointer; font-family:inherit; box-shadow:0 4px 12px rgba(0,0,0,0.05); }
.arc-act-btn.dark{ background:#2C2C2C; color:#fff; }
.arc-act-btn.white{ background:#fff; color:#2C2C2C; border:1px solid rgba(0,0,0,0.08); }

.arc-carousel { flex:1; overflow-x:auto; overflow-y:hidden; display:flex; gap:14px; padding:12px 16px 20px; scroll-snap-type:x mandatory; align-items:center; }
.arc-carousel::-webkit-scrollbar{ display:none; }
/* 卡片高度微调：500px，比撑满短一丢丢 */
.arc-card-new {
  flex:0 0 78%; scroll-snap-align:center; height:500px;
  border-radius:12px; border:1px solid rgba(0,0,0,0.08); box-shadow:0 10px 28px rgba(0,0,0,0.1);
  position:relative; cursor:pointer; display:flex; flex-direction:column; padding:20px;
  background-color: #F8F9FA;
  background-image: radial-gradient(circle at 100% 0%, rgba(255,212,232,0.15) 0%, transparent 40%), linear-gradient(180deg, #FAFAFA 0%, #F0F2F5 100%);
}
.arc-card-new:active{ transform:scale(0.98); }
.arc-card-clip { position:absolute; top:-8px; left:26px; width:20px; height:42px; border:2.5px solid #ccc; border-radius:8px; z-index:5; box-shadow:2px 2px 4px rgba(0,0,0,0.1); opacity:0.85; }
.arc-card-head { display:flex; justify-content:space-between; align-items:center; border-bottom:2px solid #2C2C2C; padding-bottom:8px; margin-bottom:16px; }
.arc-card-no { font-family:'Courier New',monospace; font-size:11px; font-weight:700; color:#2C2C2C; }
.arc-card-type { font-size:9px; font-weight:600; color:#999; letter-spacing:1px; }
.arc-card-photo { width:110px; height:130px; margin:0 auto 16px; background:#fff; border:5px solid #fff; box-shadow:0 4px 12px rgba(0,0,0,0.1); display:flex; align-items:center; justify-content:center; font-size:50px; flex-shrink:0; overflow:hidden; background-size:cover; background-position:center; }
.arc-card-info { text-align:center; flex-shrink:0; margin-bottom:16px; }
.arc-card-name { font-size:24px; font-weight:800; color:#2C2C2C; letter-spacing:1px; }
.arc-card-en { font-size:10px; font-weight:600; color:#999; letter-spacing:2px; text-transform:uppercase; margin-top:4px; }
.arc-card-tags { display:flex; justify-content:center; gap:6px; margin-top:10px; flex-wrap:wrap; }
.arc-card-tag { font-size:10px; font-weight:600; padding:3px 8px; border-radius:4px; background:rgba(0,0,0,0.05); color:#2C2C2C; }
.arc-card-tag.pink { background:#FFD4E8; color:#B83B5E; }
.arc-card-desc { padding-top:14px; border-top:1px dashed rgba(0,0,0,0.12); font-size:13px; color:#666; line-height:1.6; flex:1; overflow:hidden; display:-webkit-box; -webkit-line-clamp:4; -webkit-box-orient:vertical; }

/* 关系网一级 */
.arc-net-level1 { flex:1; overflow-y:auto; padding:16px; background:rgba(255,255,255,0.35); display:flex; flex-direction:column; gap:16px; }
.arc-net-group { background:#fff; border-radius:16px; padding:16px; border:1px solid rgba(0,0,0,0.05); box-shadow:0 4px 12px rgba(0,0,0,0.03); cursor:pointer; transition:transform 0.2s; }
.arc-net-group:active{ transform:scale(0.98); }
.arc-net-title { font-size:15px; font-weight:700; color:#2C2C2C; margin-bottom:12px; display:flex; justify-content:space-between; align-items:center; }
.arc-net-title span { font-size:11px; color:#999; font-weight:500; background:#f5f5f5; padding:2px 8px; border-radius:10px; }
.arc-net-avatars { display:flex; gap:12px; overflow:hidden; }
.arc-net-avatars .node { width:44px; height:44px; border-radius:50%; background:#f0f0f0; display:flex; align-items:center; justify-content:center; font-size:22px; border:2px solid #fff; box-shadow:0 2px 6px rgba(0,0,0,0.08); flex-shrink:0; background-size:cover; background-position:center;}

/* 关系网二级 */
.arc-net-level2 { flex:1; display:flex; flex-direction:column; background:#f9f9f9; position:relative; overflow:hidden; }
.arc-net-toolbar { padding:10px 16px; background:#fff; border-bottom:1px solid #eee; display:flex; gap:10px; }
.arc-net-canvas { flex:1; position:relative; background-image:radial-gradient(#ddd 1px, transparent 1px); background-size:20px 20px; overflow:hidden; touch-action:none; }
.arc-net-node { position:absolute; display:flex; flex-direction:column; align-items:center; gap:6px; cursor:grab; user-select:none; z-index:2; }
.arc-net-node:active{ cursor:grabbing; }
.arc-net-node-avatar { width:50px; height:50px; border-radius:50%; background:#fff; display:flex; align-items:center; justify-content:center; font-size:26px; border:2px solid #ddd; box-shadow:0 4px 10px rgba(0,0,0,0.1); pointer-events:none; background-size:cover; background-position:center; }
.arc-net-node-name { font-size:11px; font-weight:600; color:#2C2C2C; pointer-events:none; background:rgba(255,255,255,0.8); padding:2px 6px; border-radius:4px; }

/* 详情页 */
.arc-detail-scroll { flex:1; overflow-y:auto; background:#FAFAFA; display:flex; flex-direction:column; }
.arc-detail-scroll::-webkit-scrollbar{ display:none; }
.arc-hero { padding:20px 18px 16px; background:#fff; border-bottom:2px solid #2C2C2C; position:relative; }
.arc-hero-main { display:flex; gap:16px; align-items:center; }
.arc-hero-photo { width:90px; height:110px; background:#f5f5f5; border:4px solid #fff; box-shadow:0 4px 12px rgba(0,0,0,0.08); display:flex; align-items:center; justify-content:center; font-size:46px; flex-shrink:0; overflow:hidden; background-size:cover; background-position:center; }
.arc-hero-info { flex:1; min-width:0; }
.arc-hero-name { font-size:24px; font-weight:800; color:#2C2C2C; line-height:1.2; }
.arc-hero-en { font-size:10px; font-weight:600; color:#999; letter-spacing:2px; text-transform:uppercase; margin-top:2px; }
.arc-hero-tags { display:flex; gap:6px; margin-top:8px; flex-wrap:wrap; }
.arc-hero-tag { font-size:11px; padding:3px 8px; background:#F0F0F0; color:#2C2C2C; border-radius:4px; font-weight:600; }
.arc-hero-no { position:absolute; right:18px; top:18px; font-family:'Courier New',monospace; font-size:12px; font-weight:700; color:#ddd; }

.arc-tab-nav { display:flex; background:#fff; border-bottom:1px solid rgba(0,0,0,0.08); position:sticky; top:0; z-index:10; overflow-x:auto; }
.arc-tab-nav::-webkit-scrollbar{ display:none; }
.arc-tab-item { flex:0 0 20%; padding:12px 0 10px; text-align:center; font-size:11px; color:#999; font-weight:600; cursor:pointer; position:relative; display:flex; flex-direction:column; align-items:center; gap:3px; }
.arc-tab-item .num { font-family:'Courier New',monospace; font-size:9px; opacity:0.5; }
.arc-tab-item.active{ color:#2C2C2C; }
.arc-tab-item.active::after{ content:''; position:absolute; bottom:0; left:20%; right:20%; height:2.5px; background:#2C2C2C; border-radius:2px 2px 0 0; }

.arc-tab-content { padding:18px; background:#FAFAFA; flex:1; }
.arc-pane { display:none; animation:fadeIn 0.25s ease; }
.arc-pane.active{ display:block; }
@keyframes fadeIn { from{opacity:0; transform:translateY(4px);} to{opacity:1; transform:translateY(0);} }

.arc-data-table { width:100%; border-collapse:collapse; }
.arc-data-table tr { border-bottom:1px dashed rgba(0,0,0,0.1); }
.arc-data-table tr:last-child { border-bottom:none; }
.arc-data-table th { text-align:left; padding:12px 0; font-size:10px; font-weight:700; color:#999; width:76px; vertical-align:top; font-family:'Courier New',monospace; }
.arc-data-table td { padding:12px 0; font-size:13px; color:#2C2C2C; line-height:1.6; word-break:break-word; }
.arc-data-table td.hl { font-weight:600; }
.arc-data-table td.warn { color:#D9433A; }

.arc-text-block { font-size:13px; color:#2C2C2C; line-height:1.8; background:#fff; padding:16px; border-radius:8px; border:1px solid rgba(0,0,0,0.04); margin-bottom:12px; white-space:pre-wrap; }
.arc-bind-item { display:flex; justify-content:space-between; align-items:center; background:#fff; padding:14px 16px; border-radius:8px; border:1px solid rgba(0,0,0,0.04); margin-bottom:8px; }
.arc-bind-name { font-size:13px; font-weight:600; color:#2C2C2C; }
.arc-bind-meta { font-size:11px; color:#999; font-family:'Courier New',monospace; }

.arc-detail-actions { padding:14px 18px 22px; background:#fff; display:flex; gap:10px; border-top:1px solid rgba(0,0,0,0.05); margin-top:auto; flex-shrink:0; }
.arc-detail-actions button { flex:1; padding:13px; border-radius:12px; border:none; font-size:14px; font-weight:700; font-family:inherit; cursor:pointer; }
.arc-btn-cancel { background:#F0F0F0; color:#666; }
.arc-btn-del { flex:0.6 !important; background:rgba(255,59,48,0.1); color:#ff3b30; }
.arc-btn-save { flex:1.4 !important; background:#2C2C2C; color:#fff; }

.store-section-title{
  font-size:14px;color:#fff;font-weight:600;
  margin-bottom:16px;margin-top:16px;opacity:0.9;
}
.store-item{
  background:rgba(255,255,255,0.9);
  border-radius:16px;padding:16px;margin-bottom:16px;
  display:flex;align-items:center;gap:16px;
}
.store-item-icon{
  width:48px;height:48px;border-radius:12px;
  background:rgba(0,0,0,0.05);
  display:flex;align-items:center;justify-content:center;
  font-size:22px;flex-shrink:0;
}
.store-item-icon svg{width:24px;height:24px;fill:#666;}
.store-item-info{flex:1;min-width:0;}
.store-item-name{font-size:16px;font-weight:600;color:#333;}
.store-item-desc{font-size:12px;color:#999;margin-top:2px;}
.store-btn{
  padding:8px 16px;border:none;border-radius:20px;
  font-size:14px;font-weight:600;cursor:pointer;
  background:#FFD4E8;color:white;font-family:inherit;flex-shrink:0;
}
.store-btn.installed{background:rgba(0,0,0,0.05);color:#999;}
.store-add-custom{
  width:100%;padding:16px;
  border:1.5px dashed rgba(255,255,255,0.6);
  border-radius:24px;
  background:rgba(255,255,255,0.2);
  color:white;font-size:14px;font-weight:600;
  cursor:pointer;margin-top:16px;
}

.notify-card{
  background:rgba(255,255,255,0.9);
  border-radius:16px;padding:16px;margin-bottom:16px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.notify-card:active {
  transform: scale(0.98);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

