/* ============================================================
   猫咪图鉴小程序 - HTML 原型公共样式
   375x812 手机尺寸，高保真视觉稿风格
   ============================================================ */

:root {
  --primary: #f36f45;
  --primary-dark: #d95d37;
  --primary-soft: #fff0e9;
  --secondary: #4f6f8f;
  --secondary-soft: #eef4f7;
  --success: #2f9b7b;
  --success-soft: #eaf7f1;
  --warning: #d89a35;
  --warning-soft: #fff6e7;
  --rose: #d66d91;
  --ink: #17191f;
  --text-main: #17191f;
  --text-sub: #69707c;
  --text-light: #a6adb7;
  --line: #edf0f2;
  --border: #e4e8eb;
  --bg-page: #f7f8f8;
  --bg-card: #ffffff;
  --shadow-soft: 0 12px 30px rgba(27, 31, 35, 0.08);
  --shadow-tiny: 0 6px 18px rgba(27, 31, 35, 0.05);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  background: #eef1f2;
}

body {
  min-height: 100vh;
  padding: 20px 0;
  display: flex;
  justify-content: center;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text-main);
  background: linear-gradient(180deg, #f5f7f7 0%, #e8ecee 100%);
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.phone {
  width: 375px;
  height: 812px;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 34px;
  background: var(--bg-page);
  box-shadow: 0 22px 64px rgba(23, 25, 31, 0.16);
}

.phone::before {
  display: none;
}

.status-bar,
.nav-bar,
.content,
.tab-bar,
.save-bar {
  position: relative;
  z-index: 1;
}

.status-bar {
  height: 44px;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.status-bar .icons {
  display: flex;
  gap: 5px;
  font-size: 12px;
}

.status-bar .system-icons {
  align-items: center;
  gap: 7px;
  color: currentColor;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}

.status-bar .battery {
  position: relative;
  width: 22px;
  height: 11px;
  display: inline-block;
  border: 1.6px solid currentColor;
  border-radius: 3px;
}

.status-bar .battery::before {
  content: "";
  position: absolute;
  right: -4px;
  top: 3px;
  width: 2px;
  height: 5px;
  border-radius: 0 2px 2px 0;
  background: currentColor;
}

.status-bar .battery::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 14px;
  height: 5px;
  border-radius: 2px;
  background: currentColor;
}

.nav-bar {
  height: 46px;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
}

.nav-bar .title {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
}

.nav-bar .back {
  position: absolute;
  left: 16px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255,255,255,0.92);
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
  text-decoration: none;
  box-shadow: var(--shadow-tiny);
}

.nav-bar .right-btn {
  position: absolute;
  right: 16px;
  min-width: 50px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--primary-dark);
  background: rgba(255, 255, 255, 0.96);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--shadow-tiny);
}

.content {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px 86px;
}

.content::-webkit-scrollbar,
.recent-scroll::-webkit-scrollbar,
.filter-bar::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.card {
  margin-bottom: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-tiny);
}

.feature-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 82px;
  margin-bottom: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-main);
  background: #fff;
  box-shadow: var(--shadow-tiny);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.feature-card:active {
  transform: scale(0.985);
}

.feature-card .icon {
  width: 48px;
  height: 48px;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 24px;
  color: #fff;
}

.feature-card .info {
  flex: 1;
  min-width: 0;
}

.feature-card .info .name {
  margin-bottom: 4px;
  font-size: 16px;
  font-weight: 800;
}

.feature-card .info .desc {
  overflow: hidden;
  color: var(--text-sub);
  font-size: 12px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feature-card .arrow {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #f4f6f7;
  color: var(--text-light);
  font-size: 18px;
}

.bg-orange .icon { background: var(--primary); }
.bg-purple .icon { background: var(--secondary); }
.bg-teal .icon { background: var(--success); }
.bg-orange { background: linear-gradient(135deg, rgba(255,255,255,0.96), #fff3ed); }
.bg-purple { background: linear-gradient(135deg, rgba(255,255,255,0.96), #f0f2ff); }
.bg-teal { background: linear-gradient(135deg, rgba(255,255,255,0.96), #eaf8f2); }

.btn {
  display: inline-flex;
  width: 100%;
  height: 46px;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}

.btn-primary {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 10px 20px rgba(243, 111, 69, 0.22);
}

.btn-primary:active {
  background: var(--primary-dark);
}

.btn-secondary {
  border: 1px solid var(--line);
  color: var(--text-main);
  background: #fff;
}

.btn-block {
  margin-top: 14px;
}

.btn[disabled] {
  opacity: 0.5;
}

.tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 700;
}

.tag-orange { background: var(--primary-soft); color: var(--primary-dark); }
.tag-purple { background: var(--secondary-soft); color: var(--secondary); }
.tag-green { background: var(--success-soft); color: var(--success); }
.tag-gray { background: #f3f5f6; color: var(--text-sub); }

.tab-bar {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 72px;
  display: flex;
  padding: 8px 12px 12px;
  border-top: 1px solid rgba(237,240,242,0.96);
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(14px);
}

.tab-item {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 8px;
  color: var(--text-light);
  text-decoration: none;
  font-size: 10px;
  font-weight: 700;
}

.tab-item .tab-icon {
  font-size: 21px;
  line-height: 1;
  filter: grayscale(1);
  opacity: 0.7;
}

.tab-item.active {
  color: var(--primary-dark);
  background: #fff5f0;
}

.tab-item.active .tab-icon {
  opacity: 0.95;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 0 10px;
  font-size: 16px;
  font-weight: 850;
  color: var(--ink);
}

.section-title .more {
  color: var(--text-sub);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}

.text-sub { color: var(--text-sub); font-size: 13px; line-height: 1.55; }
.text-light { color: var(--text-light); font-size: 12px; }

.placeholder-img,
.cat-art {
  overflow: hidden;
  background: #edf1ef center / cover no-repeat;
}

.cat-art img,
.placeholder-img img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.art-british { background-image: url("assets/cat-british.png"); }
.art-ragdoll { background-image: url("assets/cat-ragdoll.png"); }
.art-american { background-image: url("assets/cat-american.png"); }
.art-siamese { background-image: url("assets/cat-siamese.png"); }
.art-maine { background-image: url("assets/cat-maine.png"); }
.art-persian { background-image: url("assets/cat-persian.png"); }
.art-hero { background-image: url("assets/hero-cat.png"); }

.spinner {
  width: 48px;
  height: 48px;
  margin: 0 auto;
  border: 4px solid var(--primary-soft);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.record-btn {
  width: 104px;
  height: 104px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  border: 7px solid rgba(255,255,255,0.94);
  border-radius: 50%;
  color: #fff;
  background: var(--primary);
  box-shadow: 0 14px 30px rgba(255, 118, 88, 0.32);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.record-btn .mic {
  margin-bottom: 3px;
  font-size: 30px;
  line-height: 1;
}

.record-btn.recording {
  background: #ef4f55;
  animation: pulse 1.2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 14px 30px rgba(239,79,85,0.30); }
  50% { transform: scale(1.06); box-shadow: 0 18px 38px rgba(239,79,85,0.46); }
}

.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  padding: 4px;
  border: 1px solid rgba(255,255,255,0.78);
  border-radius: 8px;
  background: rgba(255,255,255,0.72);
  box-shadow: var(--shadow-tiny);
}

.tab {
  flex: 1;
  min-width: 0;
  padding: 9px 8px;
  border-radius: 7px;
  color: var(--text-sub);
  cursor: pointer;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  transition: all 0.18s ease;
}

.tab.active {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 4px 12px rgba(58,62,72,0.08);
}

.steps {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.step-dot {
  flex: 1;
  height: 5px;
  border-radius: 999px;
  background: rgba(37,39,45,0.10);
}

.step-dot.active {
  background: var(--primary);
}

.disclaimer {
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.82);
  border-radius: 8px;
  color: #7c6b44;
  background: var(--warning-soft);
  text-align: center;
  font-size: 11px;
  line-height: 1.4;
}

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.rounded-full { border-radius: 50%; }
.text-center { text-align: center; }
.py-20 { padding: 20px 0; }

/* ============================================================
   Visual polish v3 - warm premium miniapp style
   ============================================================ */

:root {
  --primary: #d96f4b;
  --primary-dark: #b95a3c;
  --primary-soft: #fff1ea;
  --secondary: #5e7f82;
  --secondary-soft: #eef5f4;
  --success: #3b8f73;
  --success-soft: #edf8f3;
  --warning: #c99444;
  --warning-soft: #fff7e8;
  --ink: #1d1b19;
  --text-main: #1d1b19;
  --text-sub: #6f6b66;
  --text-light: #aaa39b;
  --line: #eee9e3;
  --border: #e5ded6;
  --bg-page: #faf7f2;
  --bg-card: #fffdf9;
  --shadow-soft: 0 16px 36px rgba(48, 38, 28, 0.10);
  --shadow-tiny: 0 7px 20px rgba(48, 38, 28, 0.06);
}

html {
  background: #ece7e1;
}

body {
  background: linear-gradient(180deg, #f7f3ed 0%, #e8eeeb 100%);
}

.phone {
  background: linear-gradient(180deg, #fbf8f3 0%, #f7f3ed 46%, #f8faf8 100%);
  border-color: rgba(255,255,255,0.92);
  box-shadow:
    0 28px 70px rgba(34, 28, 24, 0.18),
    inset 0 1px 0 rgba(255,255,255,0.72);
}

.status-bar {
  color: var(--ink);
}

.status-bar .icons {
  opacity: 0.78;
}

.nav-bar .title {
  font-weight: 900;
}

.nav-bar .back,
.nav-bar .right-btn,
.card,
.feature-card,
.tab-bar,
.tabs,
.disclaimer {
  border-color: rgba(238,233,227,0.92);
}

.card,
.feature-card,
.tab.active,
.nav-bar .back,
.nav-bar .right-btn {
  background: rgba(255,253,249,0.94);
}

.btn {
  height: 44px;
  letter-spacing: 0;
}

.btn-primary {
  background: linear-gradient(180deg, #dc7652 0%, #c86242 100%);
  box-shadow: 0 12px 22px rgba(185, 90, 60, 0.22);
}

.btn-primary:active {
  background: var(--primary-dark);
}

.btn-secondary {
  border-color: var(--line);
  background: rgba(255,253,249,0.96);
}

.tag-orange {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.tag-purple {
  background: var(--secondary-soft);
  color: var(--secondary);
}

.tab-bar {
  background: rgba(255,253,249,0.92);
  box-shadow: 0 -10px 26px rgba(48,38,28,0.06);
}

.tab-item {
  color: #b2aaa1;
}

.tab-item.active {
  color: var(--primary-dark);
  background: rgba(255,241,234,0.86);
}

.section-title {
  margin-top: 20px;
  color: var(--ink);
  font-weight: 950;
}

.section-title .more {
  color: #8d867e;
}

.cat-art,
.placeholder-img {
  background-color: #ebe7e0;
}

/* ============================================================
   Visual polish v4 - stronger premium tone + modern line icons
   ============================================================ */

:root {
  --primary: #b95637;
  --primary-dark: #8f3d27;
  --primary-soft: #f4dfd2;
  --secondary: #246963;
  --secondary-soft: #dfecea;
  --success: #2f7d60;
  --success-soft: #dff0e8;
  --warning: #b98132;
  --warning-soft: #f5e6c9;
  --ink: #171310;
  --text-main: #171310;
  --text-sub: #5f5750;
  --text-light: #91877e;
  --line: #ddd0c4;
  --border: #d4c4b6;
  --bg-page: #f2e8dd;
  --bg-card: #fff8ef;
  --shadow-soft: 0 18px 40px rgba(37, 27, 20, 0.15);
  --shadow-tiny: 0 8px 22px rgba(37, 27, 20, 0.09);
}

body {
  background: linear-gradient(180deg, #e8ddd3 0%, #dfe7e3 100%);
}

.phone {
  background: linear-gradient(180deg, #f7ede2 0%, #f0e4d8 46%, #eef4ef 100%);
}

.card,
.feature-card,
.btn-secondary,
.nav-bar .back,
.nav-bar .right-btn,
.tab.active {
  background: rgba(255,248,239,0.98);
}

.btn-primary {
  background: linear-gradient(180deg, #bd5c3b 0%, #963f29 100%);
  box-shadow: 0 14px 26px rgba(143, 61, 39, 0.28);
}

.tab-bar {
  background: rgba(255,248,239,0.94);
  border-top-color: rgba(212,196,182,0.86);
}

.tab-item {
  color: #766b62;
}

.tab-item.active {
  color: var(--primary-dark);
  background: rgba(244,223,210,0.92);
}

.tab-item .tab-icon {
  position: relative;
  width: 22px;
  height: 22px;
  display: block;
  font-size: 0;
  filter: none;
  opacity: 0.92;
}

.tab-icon::before,
.tab-icon::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
}

.tab-icon.home::before {
  left: 4px;
  bottom: 2px;
  width: 14px;
  height: 11px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 2px;
}

.tab-icon.home::after {
  left: 5px;
  top: 1px;
  width: 12px;
  height: 12px;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
  border-radius: 2px 0 0 0;
}

.tab-icon.scan::before {
  inset: 3px;
  border: 2px solid currentColor;
  border-radius: 6px;
}

.tab-icon.scan::after {
  left: 8px;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.tab-icon.catalog::before {
  left: 2px;
  top: 2px;
  width: 9px;
  height: 18px;
  border: 2px solid currentColor;
  border-right-width: 1px;
  border-radius: 3px 0 0 3px;
}

.tab-icon.catalog::after {
  right: 2px;
  top: 2px;
  width: 9px;
  height: 18px;
  border: 2px solid currentColor;
  border-left-width: 1px;
  border-radius: 0 3px 3px 0;
}

.tab-icon.knowledge::before {
  left: 4px;
  top: 2px;
  width: 14px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.tab-icon.knowledge::after {
  left: 7px;
  top: 7px;
  width: 8px;
  height: 3px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.tab-icon.pet::before {
  left: 7px;
  top: 2px;
  width: 8px;
  height: 8px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.tab-icon.pet::after {
  left: 4px;
  bottom: 2px;
  width: 14px;
  height: 10px;
  border: 2px solid currentColor;
  border-radius: 9px 9px 4px 4px;
}

.prototype-toast {
  position: fixed;
  left: 50%;
  bottom: 96px;
  z-index: 9999;
  max-width: 280px;
  padding: 10px 14px;
  border-radius: 8px;
  color: #fff;
  background: rgba(23,19,16,0.88);
  box-shadow: 0 16px 34px rgba(23,19,16,0.20);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
  transform: translateX(-50%) translateY(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.prototype-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.album-add,
.photo-upload,
.evidence-upload,
.upload-box,
.table-action,
[data-toast] {
  cursor: pointer;
}
