/* Dimension 风格 - 保留云彩背景，使用黑色文字 */

@import url("https://fonts.googleapis.com/css?family=Source+Sans+Pro:300italic,600italic,300,600");

html, body, div, span, applet, object,
iframe, h1, h2, h3, h4, h5, h6, p, blockquote,
pre, a, abbr, acronym, address, big, cite,
code, del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var, b,
u, i, center, dl, dt, dd, ol, ul, li, fieldset,
form, label, legend, table, caption, tbody,
tfoot, thead, tr, th, td, article, aside,
canvas, details, embed, figure, figcaption,
footer, header, hgroup, menu, nav, output, ruby,
section, summary, time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}

article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
	display: block;
}

body {
	line-height: 1;
}

ol, ul {
	list-style: none;
}

blockquote, q {
	quotes: none;
}

blockquote:before, blockquote:after, q:before, q:after {
	content: '';
	content: none;
}

table {
	border-collapse: collapse;
	border-spacing: 0;
}

html {
	box-sizing: border-box;
}

*, *:before, *:after {
	box-sizing: inherit;
}

/* Basic */

html {
	background: #d8c9ea;
	-webkit-text-size-adjust: none;
}

/* 兜底色只放 html 上，body 必须透明：
   body 自己的底色会画在负 z-index 的 Vanta 雾层上面，把雾效整个盖住 */
body {
	background: transparent;
}

html {
	font-size: 16pt;
}

@media screen and (max-width: 1680px) {
	html {
		font-size: 12pt;
	}
}

@media screen and (max-width: 736px) {
	html {
		font-size: 11pt;
	}
}

body, input, select, textarea {
	color: #2c3e50;
	font-family: "Source Sans Pro", sans-serif;
	font-weight: 300;
	font-size: 1rem;
	line-height: 1.65;
}

a {
	-moz-transition: color 0.2s ease-in-out, border-color 0.2s ease-in-out;
	-webkit-transition: color 0.2s ease-in-out, border-color 0.2s ease-in-out;
	-ms-transition: color 0.2s ease-in-out, border-color 0.2s ease-in-out;
	transition: color 0.2s ease-in-out, border-color 0.2s ease-in-out;
	text-decoration: none;
	color: inherit;
}

strong, b {
	color: #2c3e50;
	font-weight: 600;
}

h1, h2, h3, h4, h5, h6 {
	color: #2c3e50;
	font-weight: 600;
	line-height: 1.5;
	margin: 0 0 1rem 0;
	text-transform: uppercase;
	letter-spacing: 0.2rem;
}

h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
	color: inherit;
	text-decoration: none;
}

h1.major, h2.major, h3.major {
	border-bottom: solid 1px rgba(44, 62, 80, 0.3);
	width: max-content;
	padding-bottom: 0.5rem;
	margin: 0 0 2rem 0;
}

h1 {
	font-size: 2.25rem;
	line-height: 1.3;
	letter-spacing: 0.5rem;
}

h2 {
	font-size: 1.5rem;
	line-height: 1.4;
	letter-spacing: 0.5rem;
}

h3 {
	font-size: 1rem;
}

@media screen and (max-width: 736px) {
	h1 {
		font-size: 1.75rem;
		line-height: 1.4;
	}

	h2 {
		font-size: 1.25em;
		line-height: 1.5;
	}
}

/* Button - 通用样式（新拟态） */

input[type="submit"],
input[type="reset"],
input[type="button"],
button,
.button {
	-moz-appearance: none;
	-webkit-appearance: none;
	-ms-appearance: none;
	appearance: none;
	outline: 0;
	text-decoration: none;
	white-space: nowrap;
	display: flex;
	justify-content: center;
	align-items: center;
	color: #090909;
	padding: 0.7em 1.7em;
	font-size: 18px;
	border-radius: 0.5em;
	background: #e8e8e8;
	cursor: pointer;
	border: 1px solid #e8e8e8;
	transition: all 0.3s;
	box-shadow: 6px 6px 12px #c5c5c5, -6px -6px 12px #ffffff;
}

input[type="submit"]:hover,
input[type="reset"]:hover,
input[type="button"]:hover,
button:hover,
.button:hover {
	transform: translateY(-2px);
}

input[type="submit"]:active,
input[type="reset"]:active,
input[type="button"]:active,
button:active,
.button:active {
	color: #666;
	box-shadow: inset 4px 4px 12px #c5c5c5, inset -4px -4px 12px #ffffff;
	transform: translateY(0);
}

@keyframes animStar {
	from {
		transform: translateY(0);
	}

	to {
		transform: translateY(-135rem);
	}
}

@keyframes animStarRotate {
	from {
		transform: rotate(360deg);
	}

	to {
		transform: rotate(0);
	}
}

@keyframes gradient_301 {
	0% {
		background-position: 0% 50%;
	}

	50% {
		background-position: 100% 50%;
	}

	100% {
		background-position: 0% 50%;
	}
}

@keyframes pulse_3011 {
	0% {
		transform: scale(0.75);
		box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.7);
	}

	70% {
		transform: scale(1);
		box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
	}

	100% {
		transform: scale(0.75);
		box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
	}
}

/* Form */

form {
	margin: 0 0 2rem 0;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

form button[type="submit"] {
	margin: 0 auto;
}

form > :last-child {
	margin-bottom: 0;
}

label {
	color: #2c3e50;
	display: block;
	font-size: 0.8rem;
	font-weight: 300;
	letter-spacing: 0.2rem;
	line-height: 1.5;
	margin: 0 0 1rem 0;
	text-transform: uppercase;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
	-moz-appearance: none;
	-webkit-appearance: none;
	-ms-appearance: none;
	appearance: none;
	-moz-transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out, background-color 0.2s ease-in-out;
	-webkit-transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out, background-color 0.2s ease-in-out;
	-ms-transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out, background-color 0.2s ease-in-out;
	transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out, background-color 0.2s ease-in-out;
	background-color: transparent;
	border-radius: 4px;
	border: solid 1px rgba(44, 62, 80, 0.3);
	color: inherit;
	display: block;
	outline: 0;
	padding: 0 1rem;
	text-decoration: none;
	width: 100%;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
	background: rgba(255, 255, 255, 0.075);
	border-color: rgba(44, 62, 80, 0.5);
	box-shadow: 0 0 0 1px rgba(44, 62, 80, 0.3);
}

select {
	background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' preserveAspectRatio='none' viewBox='0 0 40 40'%3E%3Cpath d='M9.4,12.3l10.4,10.4l10.4-10.4c0.2-0.2,0.5-0.4,0.9-0.4c0.3,0,0.6,0.1,0.9,0.4l3.3,3.3c0.2,0.2,0.4,0.5,0.4,0.9 c0,0.4-0.1,0.6-0.4,0.9L20.7,31.9c-0.2,0.2-0.5,0.4-0.9,0.4c-0.3,0-0.6-0.1-0.9-0.4L4.3,17.3c-0.2-0.2-0.4-0.5-0.4-0.9 c0-0.4,0.1-0.6,0.4-0.9l3.3-3.3c0.2-0.2,0.5-0.4,0.9-0.4S9.1,12.1,9.4,12.3z' fill='%232c3e50' /%3E%3C/svg%3E");
	background-size: 1.25rem;
	background-repeat: no-repeat;
	background-position: calc(100% - 1rem) center;
	height: 2.75rem;
	padding-right: 2.75rem;
	text-overflow: ellipsis;
}

select option {
	color: #2c3e50;
	background: #ffffff;
}

select:focus::-ms-value {
	background-color: transparent;
}

select::-ms-expand {
	display: none;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="number"],
select {
	height: 2.75rem;
}

textarea {
	padding: 0.75rem 1rem;
	text-align: left;
}

/* Box */

.box {
	border-radius: 8px;
	border: solid 1px rgba(44, 62, 80, 0.2);
	margin-bottom: 2rem;
	padding: 1.5em;
	background: rgba(255, 255, 255, 0.95);
}

.box > :last-child,
.box > :last-child > :last-child,
.box > :last-child > :last-child > :last-child {
	margin-bottom: 0;
}

/* Our App Styles */

/* 拍照按钮 - 星星和发光效果（原版） */
.btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 13rem;
  overflow: hidden;
  height: 3rem;
  background-size: 300% 300%;
  cursor: pointer;
  backdrop-filter: blur(1rem);
  border-radius: 5rem;
  transition: 0.5s;
  animation: gradient_301 5s ease infinite;
  border: double 4px transparent;
  background-image: linear-gradient(#212121, #212121),
    linear-gradient(
      137.48deg,
      #ffdb3b 10%,
      #fe53bb 45%,
      #8f51ea 67%,
      #0044ff 87%
    );
  background-origin: border-box;
  background-clip: content-box, border-box;
}

#container-stars {
  position: absolute;
  z-index: -1;
  width: 100%;
  height: 100%;
  overflow: hidden;
  transition: 0.5s;
  backdrop-filter: blur(1rem);
  border-radius: 5rem;
}

strong {
  z-index: 2;
  font-family: "Avalors Personal Use";
  font-size: 12px;
  letter-spacing: 5px;
  color: #ffffff;
  text-shadow: 0 0 4px white;
}

#glow {
  position: absolute;
  display: flex;
  width: 12rem;
}

.circle {
  width: 100%;
  height: 30px;
  filter: blur(2rem);
  animation: pulse_3011 4s infinite;
  z-index: -1;
}

.circle:nth-of-type(1) {
  background: rgba(254, 83, 186, 0.636);
}

.circle:nth-of-type(2) {
  background: rgba(142, 81, 234, 0.704);
}

.btn:hover #container-stars {
  z-index: 1;
  background-color: #212121;
}

.btn:hover {
  transform: scale(1.1);
}

.btn:active {
  border: double 4px #fe53bb;
  background-origin: border-box;
  background-clip: content-box, border-box;
  animation: none;
}

.btn:active .circle {
  background: #fe53bb;
}

#stars {
  position: relative;
  background: transparent;
  width: 200rem;
  height: 200rem;
}

#stars::after {
  content: "";
  position: absolute;
  top: -10rem;
  left: -100rem;
  width: 100%;
  height: 100%;
  animation: animStarRotate 90s linear infinite;
  background-image: radial-gradient(#ffffff 1px, transparent 1%);
  background-size: 50px 50px;
}

#stars::before {
  content: "";
  position: absolute;
  top: 0;
  left: -50%;
  width: 170%;
  height: 500%;
  animation: animStar 60s linear infinite;
  background-image: radial-gradient(#ffffff 1px, transparent 1%);
  background-size: 50px 50px;
  opacity: 0.5;
}

.btn:disabled,
input[type="submit"]:disabled,
input[type="reset"]:disabled,
input[type="button"]:disabled,
button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

#app {
	position: relative;
	width: 100%;
}

/* Login/Register Page */

#auth-page {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	width: 100%;
	padding: 20px;
	box-sizing: border-box;
}

.auth-container {
	background: rgba(255, 255, 255, 0.95);
	border-radius: 8px;
	padding: 3rem;
	box-shadow: 0 10px 40px rgba(0,0,0,0.2);
	width: 100%;
	max-width: 450px;
}

.auth-container h1 {
	text-align: center;
	margin-bottom: 2rem;
	color: #2c3e50;
}

.auth-container form {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.auth-container form button[type="submit"] {
	margin: 0 auto;
}

#toggle-auth {
	text-align: center;
	margin-top: 1.5rem;
	color: #666;
	font-size: 0.9rem;
}

#toggle-auth a {
	color: #2c3e50;
	text-decoration: none;
	font-weight: 600;
	border-bottom: dotted 1px rgba(44, 62, 80, 0.5);
}

#toggle-auth a:hover {
	border-bottom-color: transparent;
}

/* Main Page */

.page {
	max-width: 1000px;
	margin: 0 auto;
	padding: 2rem 1rem;
}

.page.hidden {
	display: none;
}

header {
	background: rgba(255, 255, 255, 0.95);
	border-radius: 8px;
	padding: 1.5rem 2rem;
	margin-bottom: 2rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	box-shadow: 0 5px 25px rgba(0,0,0,0.15);
}

header h1 {
	font-size: 1.5rem;
	letter-spacing: 0.3rem;
	margin: 0;
}

.user-info {
	display: flex;
	align-items: center;
	gap: 1.5rem;
}

#logout-btn {
	padding: 0.5rem 1.5rem;
}

/* Tabs */

.tabs {
	display: flex;
	gap: 0.5rem;
	margin-bottom: 2rem;
}

.tab-btn,
#logout-btn,
.simple-btn {
	flex: 1;
	padding: 1rem;
	display: flex;
	justify-content: center;
	align-items: center;
	color: #090909 !important;
	border-radius: 0.5em;
	background: #e8e8e8;
	cursor: pointer;
	border: 1px solid #e8e8e8;
	transition: all 0.3s;
	box-shadow: 6px 6px 12px #c5c5c5, -6px -6px 12px #ffffff;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1rem;
	font-size: 14px;
	width: auto;
	height: auto;
	animation: none;
	background-image: none;
	border-style: solid;
	backdrop-filter: none;
}

.tab-btn:hover,
#logout-btn:hover,
.simple-btn:hover {
	transform: translateY(-2px);
}

.tab-btn:active,
#logout-btn:active,
.simple-btn:active {
	color: #666 !important;
	box-shadow: inset 4px 4px 12px #c5c5c5, inset -4px -4px 12px #ffffff;
	transform: translateY(0);
}

.tab-btn.active {
	background: rgba(44, 62, 80, 0.9);
	color: #ffffff !important;
	box-shadow: 6px 6px 12px #a0a0a0, -6px -6px 12px #ffffff;
}

.tab-content {
	display: none;
}

.tab-content.active {
	display: block;
}

/* Cards */

.card {
	background: rgba(255, 255, 255, 0.95);
	border-radius: 8px;
	padding: 2rem;
	margin-bottom: 2rem;
	box-shadow: 0 5px 25px rgba(0,0,0,0.15);
}

.card h2 {
	margin-bottom: 1.5rem;
	font-size: 1.2rem;
	border-bottom: solid 1px rgba(44, 62, 80, 0.3);
	padding-bottom: 0.5rem;
}

.hint {
	color: #666;
	margin-bottom: 1rem;
	font-size: 0.9rem;
}

/* Progress Rings - Desktop */

.progress-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 2rem;
	justify-items: center;
}

.progress-item {
	position: relative;
	width: 160px;
	height: 160px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.progress-ring {
	width: 130px;
	height: 130px;
	position: absolute;
	transform: rotate(-90deg);
}

.progress-ring-bg {
	fill: none;
	stroke: rgba(44, 62, 80, 0.1);
	stroke-width: 8;
}

.progress-ring-bar {
	fill: none;
	stroke-width: 8;
	stroke-linecap: round;
	stroke-dasharray: 364.424;
	stroke-dashoffset: 364.424;
	transition: stroke-dashoffset 0.5s ease;
}

.progress-ring-bar#ring-calories { stroke: #3498db; }
.progress-ring-bar#ring-protein { stroke: #27ae60; }
.progress-ring-bar#ring-carbs { stroke: #f39c12; }
.progress-ring-bar#ring-fat { stroke: #e74c3c; }

.progress-ring-tdee {
	fill: none;
	stroke: rgba(231, 76, 60, 0.15);
	stroke-width: 8;
	stroke-linecap: round;
	stroke-dasharray: 364.424;
	stroke-dashoffset: 364.424;
	transition: stroke-dashoffset 0.5s ease;
}

.progress-tdee-label {
	display: block;
	font-size: 0.55rem;
	color: #e74c3c;
	opacity: 0.7;
	margin-top: 1px;
}

.progress-info {
	position: absolute;
	text-align: center;
	width: 70px;
	pointer-events: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.progress-label {
	font-size: 0.6rem;
	color: #666;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05rem;
	margin-bottom: 2px;
}

.progress-current {
	font-size: 1.5rem;
	font-weight: 700;
	color: #2c3e50;
	line-height: 1.2;
}

.progress-goal {
	font-size: 0.8rem;
	color: #999;
	line-height: 1;
}

.progress-unit {
	font-size: 0.7rem;
	color: #999;
}

/* Log Items */

.logs-list {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.log-item {
	display: flex;
	flex-direction: column;
	padding: 1rem;
	background: rgba(255, 255, 255, 0.5);
	border-radius: 6px;
	border-left: 3px solid rgba(44, 62, 80, 0.3);
	transition: all 0.3s;
}

.log-item:hover {
	background: rgba(255, 255, 255, 0.8);
	border-left-color: rgba(44, 62, 80, 0.6);
}

/* 简化视图（默认显示） */
.log-simple-view {
	display: flex;
	align-items: center;
	gap: 1rem;
	cursor: pointer;
}

/* 详细视图（默认隐藏） */
.log-detail-view {
	display: none;
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid rgba(44, 62, 80, 0.1);
	animation: slideDown 0.3s ease;
}

.log-item.expanded .log-detail-view {
	display: block;
}

/* 桌面端视图 */
.log-desktop-view {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
}

.log-desktop-view .log-info {
	flex: 1;
	min-width: 0;
}

/* 桌面端右侧操作区域 */
.log-actions-right {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	min-width: 180px;
	flex-shrink: 0;
	justify-content: flex-end;
}

.log-action-buttons {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-shrink: 0;
}

/* 移动端视图容器 */
.log-mobile-view {
	display: none;
	flex-direction: column;
}

/* 桌面端：隐藏移动视图 */
@media (min-width: 601px) {
	.log-mobile-view {
		display: none !important;
	}
	.log-desktop-view {
		display: flex !important;
	}
}

/* 移动端：隐藏桌面视图，显示移动视图 */
@media (max-width: 600px) {
	.log-desktop-view {
		display: none !important;
	}
	.log-mobile-view {
		display: flex !important;
	}
}

/* History Date Group */
.history-day {
	margin-bottom: 2rem;
}

.history-date {
	background: rgba(102, 126, 234, 0.15);
	padding: 1rem 1.5rem;
	border-radius: 8px;
	margin-bottom: 1rem;
}

.history-date h3 {
	margin: 0 0 0.5rem 0;
	color: #2c3e50;
	font-size: 1.1rem;
}

.history-summary {
	color: #666;
	font-size: 0.9rem;
}

.log-info {
	flex: 1;
}

.log-name {
	font-weight: 600;
	color: #2c3e50;
	margin-bottom: 0.5rem;
	font-size: 1rem;
}

.log-details {
	font-size: 0.9rem;
	color: #666;
}

.log-delete {
	padding: 0.4em 0.8em;
	font-size: 16px;
}

/* 食物明细展开 */
.log-expand-btn {
	background: none;
	border: none;
	color: #667eea;
	cursor: pointer;
	padding: 0.4em 0.6em;
	font-size: 12px;
	border-radius: 4px;
	transition: all 0.2s;
	margin-right: 0.5rem;
}

/* 收藏按钮 */
.log-favorite-btn {
	background: none;
	border: none;
	color: inherit;
	cursor: pointer;
	padding: 0.2rem 0.4rem;
	font-size: 16px;
	border-radius: 4px;
	transition: all 0.2s;
	touch-action: manipulation;
}

.log-favorite-btn:hover {
	background: rgba(0, 0, 0, 0.05);
}

.log-expand-btn:hover {
	background: rgba(102, 126, 234, 0.1);
}

.log-expand-btn:active {
	background: rgba(102, 126, 234, 0.2);
}

/* 编辑按钮 - 只在移动端显示，和明细一样大 */
.log-edit-btn-mobile {
	display: none;
	font-size: 12px;
	padding: 0.4em 0.7em;
	font-weight: 600;
}

/* 明细按钮 - 放大 */
.log-items-btn {
	font-size: 14px;
	padding: 0.5em 0.8em;
	font-weight: 600;
}

/* 删除按钮 - 缩小 */
.log-delete {
	padding: 0.3em 0.5em;
	font-size: 14px;
}

/* 移动端覆盖：明细按钮缩小 */
@media (max-width: 600px) {
	.log-items-btn {
		font-size: 12px;
		padding: 0.6em 1em;
		min-height: 36px;
		min-width: 60px;
	}

	.log-expand-btn {
		min-height: 32px;
		touch-action: manipulation;
	}
}

.log-items {
	display: none;
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid rgba(44, 62, 80, 0.1);
	animation: slideDown 0.3s ease;
}

.log-items.expanded {
	display: block !important;
}

@keyframes slideDown {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.log-item-detail {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.6rem 0.8rem;
	background: rgba(255, 255, 255, 0.3);
	border-radius: 4px;
	margin-bottom: 0.5rem;
	font-size: 0.85rem;
}

.log-item-detail-name {
	color: #2c3e50;
	font-weight: 500;
}

.log-item-detail-nutrition {
	color: #666;
	font-size: 0.8rem;
}

/* Meal Tags */

.meal-tag {
	display: inline-block;
	padding: 0.2rem 0.6rem;
	border-radius: 3px;
	font-size: 0.65rem;
	font-weight: 700;
	margin-right: 0.5rem;
	text-transform: uppercase;
	letter-spacing: 0.05rem;
}

.meal-tag.早餐 { background: #ffeaa7; color: #d63031; }
.meal-tag.中餐 { background: #81ecec; color: #00cec9; }
.meal-tag.晚餐 { background: #a29bfe; color: #6c5ce7; }
.meal-tag.下午茶 { background: #fab1a0; color: #e17055; }
.meal-tag.夜宵 { background: #636e72; color: #fff; }

/* AI Response */

.ai-response {
	margin-top: 1.5rem;
	padding: 1.5rem;
	background: rgba(255, 255, 255, 0.5);
	border-radius: 6px;
	white-space: pre-line;
	line-height: 1.8;
	min-height: 100px;
	color: #2c3e50;
	border-left: 3px solid rgba(44, 62, 80, 0.3);
}

.primary-btn {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
}

.primary-btn button {
	margin: 0 auto;
}

.ai-response.loading::after {
	content: '正在分析中...';
	color: #2c3e50;
	font-weight: 600;
}

/* Weight List */

.weight-list {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin-top: 1rem;
}

.weight-item {
	display: flex;
	justify-content: space-between;
	padding: 1rem 1.5rem;
	background: rgba(255, 255, 255, 0.5);
	border-radius: 6px;
	color: #2c3e50;
	font-weight: 600;
}

/* Hidden */

.hidden {
	display: none !important;
}

/* 月度分析报告 */
#monthly-analysis {
	margin-top: 1rem;
	padding: 1rem;
	background: rgba(255, 255, 255, 0.7);
	border-radius: 8px;
	line-height: 1.6;
}

#monthly-analysis h3 {
	color: #2c3e50;
	margin: 1rem 0 0.5rem;
	font-size: 1.1rem;
}

#monthly-analysis h3:first-child {
	margin-top: 0;
}

#monthly-analysis strong {
	color: #667eea;
}

#monthly-analysis li {
	margin-left: 1.5rem;
	margin-bottom: 0.3rem;
}

/* BMI 进度条 */
.bmi-bar {
	position: relative;
	margin-top: 0.5rem;
	padding-bottom: 20px;
}

.bmi-scale {
	display: flex;
	height: 30px;
	border-radius: 4px;
	overflow: hidden;
}

.bmi-zone {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.75rem;
	color: white;
	position: relative;
}

.bmi-underweight {
	background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%);
}

.bmi-normal {
	background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
}

.bmi-overweight {
	background: linear-gradient(90deg, #f97316 0%, #fb923c 100%);
}

.bmi-obese {
	background: linear-gradient(90deg, #ef4444 0%, #f87171 100%);
}

.bmi-label {
	position: relative;
	z-index: 1;
}

.bmi-indicator {
	position: absolute;
	top: -10px;
	width: 0;
	height: 0;
	border-left: 8px solid transparent;
	border-right: 8px solid transparent;
	border-top: 10px solid #2c3e50;
	transition: left 0.3s ease;
}

.bmi-indicator::after {
	content: '';
	position: absolute;
	top: -10px;
	left: -6px;
	width: 12px;
	height: 12px;
	background: #2c3e50;
	border-radius: 50%;
}

/* BMI 状态标签 */
#bmi-status.bmi-underweight {
	background: #fef3c7;
	color: #d97706;
}

#bmi-status.bmi-normal {
	background: #d1fae5;
	color: #059669;
}

#bmi-status.bmi-overweight {
	background: #ffedd5;
	color: #ea580c;
}

#bmi-status.bmi-obese {
	background: #fee2e2;
	color: #dc2626;
}

/* 收藏列表样式 */
#favorites-list {
	display: none;  /* 默认隐藏 */
	flex-direction: column;
	gap: 0.75rem;
	margin-top: 1rem;
}

#favorites-list.visible {
	display: flex;
}

.favorite-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.75rem;
	background: rgba(255, 255, 255, 0.5);
	border-radius: 8px;
	transition: all 0.2s;
}

.favorite-item:hover {
	background: rgba(255, 255, 255, 0.8);
	transform: translateY(-2px);
}

.favorite-info {
	flex: 1;
	min-width: 0;
}

.favorite-name {
	font-weight: 600;
	color: #2c3e50;
	display: block;
	margin-bottom: 0.25rem;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.favorite-nutrition {
	font-size: 0.8rem;
	color: #666;
	display: block;
}

.favorite-actions {
	display: flex;
	gap: 0.5rem;
}

/* Responsive - Mobile */

@media (max-width: 600px) {
	.page {
		padding: 1rem;
	}

	.card {
		background: rgba(255, 255, 255, 0.85);
		backdrop-filter: blur(10px);
	}

	header {
		background: rgba(255, 255, 255, 0.85);
		backdrop-filter: blur(10px);
	}

	.auth-container {
		background: rgba(255, 255, 255, 0.85);
		backdrop-filter: blur(10px);
	}

	.progress-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 1rem;
	}

	.progress-item {
		width: 100%;
		aspect-ratio: 1;
		min-height: 100px;
	}

	.progress-ring {
		width: 100%;
		height: 100%;
	}

	.progress-ring-bg,
	.progress-ring-bar,
	.progress-ring-tdee {
		stroke-width: 6;
	}

	.progress-info {
		width: 50%;
	}

	.progress-label {
		font-size: 0.45rem;
		letter-spacing: 0.03rem;
		margin-bottom: 1px;
	}

	.progress-current {
		font-size: 1rem;
		line-height: 1.1;
	}

	.progress-goal {
		font-size: 0.5rem;
	}

	.progress-unit {
		font-size: 0.45rem;
	}

	.tabs {
		flex-wrap: wrap;
	}

	.tab-btn {
		min-width: calc(50% - 0.25rem);
	}

	header {
		flex-direction: column;
		gap: 1rem;
		text-align: center;
	}

	.auth-container {
		padding: 2rem;
	}

	/* 移动端日志项优化 */
	.log-item {
		padding: 0.75rem;
	}

	.log-simple-view {
		padding: 0.25rem 0;
	}

	.log-name {
		font-size: 0.9rem;
	}

	.log-details {
		font-size: 0.8rem;
		flex-wrap: wrap;
	}

	.log-detail-view {
		margin-top: 0.75rem;
		padding-top: 0.75rem;
	}

	/* 移动端：展开的详情视图必须显示 */
	.log-item.expanded .log-detail-view {
		display: block !important;
	}

	.meal-tag {
		padding: 0.15rem 0.4rem;
		font-size: 0.55rem;
	}

	/* 移动端显示编辑按钮 */
	.log-edit-btn-mobile {
		display: inline-block;
	}

	/* 移动端隐藏桌面端时间 */
	.log-time-desktop {
		display: none;
	}

		/* 移动端隐藏明细按钮 */
	.log-items-btn-desktop {
		display: none !important;
	}

	/* 移动端收藏按钮 - 减小点击区域 */
	.log-favorite-btn {
		padding: 0.2rem 0.4rem;
		min-width: auto;
		min-height: auto;
		touch-action: manipulation;
	}

	/* 移动端食材明细展开 - 点击卡片直接显示 */
	.log-item.expanded .log-items,
	.log-mobile-view .log-item.expanded .log-items {
		display: block !important;
	}

	/* 移动端编辑弹窗优化 */
	.edit-modal .modal-footer {
		padding: 10px 15px;
	}

	.edit-modal .edit-options {
		margin-bottom: 6px;
	}

	.people-selector {
		margin-bottom: 6px;
	}

	.people-selector select {
		padding: 6px 8px;
		font-size: 13px;
		min-width: 80px;
	}

	.remark-input input {
		padding: 6px 8px;
		font-size: 13px;
	}

	.edit-modal-buttons .modal-btn {
		padding: 6px 12px;
		font-size: 13px;
	}

	.edit-modal-buttons {
		gap: 8px;
	}

	.food-edit-list {
		max-height: 250px;
	}

	.food-edit-item {
		padding: 10px;
		margin-bottom: 8px;
	}

	.food-edit-input {
		padding: 6px 8px;
		font-size: 13px;
		margin-bottom: 4px;
	}

	.food-edit-info {
		font-size: 12px;
		gap: 8px;
	}

	.food-edit-delete-btn {
		width: 24px;
		height: 24px;
		font-size: 14px;
	}

	.food-edit-add-btn {
		padding: 8px;
		font-size: 13px;
	}
}

/* Custom Modal */
.modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 9999;
	animation: fadeIn 0.3s ease;
}

.modal.active {
	display: block;
}

.modal-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
}

.modal-content {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: white;
	border-radius: 12px;
	min-width: 320px;
	max-width: 500px;
	width: 90%;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
	animation: slideUp 0.3s ease;
}

.modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px;
	border-bottom: 1px solid #eee;
}

.modal-header h3 {
	margin: 0;
	color: #2c3e50;
	font-size: 1.2rem;
}

.modal-close {
	background: none;
	border: none;
	font-size: 28px;
	color: #999;
	cursor: pointer;
	padding: 0;
	width: 32px;
	height: 32px;
	line-height: 32px;
	text-align: center;
	display: flex;
	justify-content: center;
	align-items: center;
}

.modal-close:hover {
	color: #333;
}

.modal-body {
	padding: 20px;
	color: #666;
	line-height: 1.6;
}

.modal-footer {
	padding: 15px 20px;
	border-top: 1px solid #eee;
	text-align: right;
	display: flex;
	gap: 10px;
	justify-content: flex-end;
}

.modal-btn {
	padding: 10px 24px;
}

/* Food Edit Modal */
.edit-modal {
	max-width: 600px;
}

.edit-modal .modal-footer {
	flex-direction: column;
	gap: 8px;
}

.food-edit-list {
	max-height: 400px;
	overflow-y: auto;
}

.food-edit-item {
	background: #f8f9fa;
	border-radius: 8px;
	padding: 15px;
	margin-bottom: 12px;
	border: 1px solid #e9ecef;
	position: relative;
}

.food-edit-item-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 8px;
}

.food-edit-item-num {
	font-size: 13px;
	color: #999;
	font-weight: 600;
}

.food-edit-delete-btn {
	background: none;
	border: none;
	color: #ccc;
	font-size: 16px;
	cursor: pointer;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s;
}

.food-edit-delete-btn:hover {
	background: #fee;
	color: #e74c3c;
}

.food-edit-item h4 {
	margin: 0 0 10px 0;
	font-size: 14px;
	color: #666;
}

.food-edit-add-btn {
	display: block;
	width: 100%;
	padding: 10px;
	border: 2px dashed #ddd;
	border-radius: 8px;
	background: none;
	color: #999;
	font-size: 14px;
	cursor: pointer;
	transition: all 0.2s;
	margin-bottom: 8px;
}

.food-edit-add-btn:hover {
	border-color: #667eea;
	color: #667eea;
	background: rgba(102, 126, 234, 0.05);
}

.food-edit-input {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 14px;
	margin-bottom: 8px;
	background: white;
}

.food-edit-input:focus {
	outline: none;
	border-color: #667eea;
	box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.food-edit-info {
	display: flex;
	gap: 15px;
	font-size: 13px;
	color: #888;
}

.food-edit-info span {
	display: flex;
	align-items: center;
	gap: 4px;
}

.people-selector {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
}

.people-selector label {
	font-size: 14px;
	color: #666;
}

.people-selector select {
	padding: 8px 12px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 14px;
	background: white;
	min-width: 100px;
}

.edit-modal-buttons {
	display: flex;
	gap: 10px;
	justify-content: flex-end;
}

.edit-modal-buttons .modal-btn {
	padding: 8px 16px;
	font-size: 14px;
	white-space: nowrap;
}

.edit-modal-buttons .modal-btn.secondary {
	background: #f8f9fa;
	color: #666;
}

.edit-modal-buttons .modal-btn.secondary:hover {
	background: #e9ecef;
}

.edit-modal-buttons .modal-btn.primary {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
}

.edit-modal-buttons .modal-btn.primary:hover {
	background: linear-gradient(135deg, #5568d3 0%, #653a91 100%);
}

/* Edit Options */
.edit-options {
	margin-bottom: 10px;
}

.remark-input {
	margin-top: 10px;
}

.remark-input input {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 14px;
	background: white;
}

.remark-input input:focus {
	outline: none;
	border-color: #667eea;
	box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.remark-input input::placeholder {
	color: #ccc;
}

/* WeChat Guide */
.wechat-guide {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.9);
	z-index: 10000;
	padding: 20px;
	animation: fadeIn 0.3s ease;
}

.wechat-guide.active {
	display: flex;
	align-items: center;
	justify-content: center;
}

.guide-content {
	background: white;
	border-radius: 16px;
	padding: 40px 30px;
	text-align: center;
	max-width: 320px;
	animation: scaleIn 0.3s ease;
}

.guide-icon {
	font-size: 64px;
	margin-bottom: 20px;
}

.guide-content h3 {
	color: #2c3e50;
	font-size: 1.5rem;
	margin-bottom: 15px;
}

.guide-content p {
	color: #666;
	line-height: 1.8;
	margin-bottom: 20px;
}

.guide-arrow {
	display: inline-block;
	font-size: 24px;
	color: #07c160;
	animation: bounce 1s infinite;
}

@keyframes bounce {
	0%, 100% { transform: translateX(0); }
	50% { transform: translateX(10px); }
}

.guide-image {
	margin: 20px 0;
}

.guide-image svg {
	width: 120px;
	height: 120px;
}

.guide-close {
	padding: 12px 32px;
}

/* Animations */
@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes slideUp {
	from {
		opacity: 0;
		transform: translate(-50%, -40%);
	}
	to {
		opacity: 1;
		transform: translate(-50%, -50%);
	}
}

@keyframes scaleIn {
	from {
		opacity: 0;
		transform: scale(0.8);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

/* ============ 健身房器械多选弹窗 ============ */
.gym-modal {
	max-width: 580px;
}

.gym-groups {
	display: flex;
	flex-direction: column;
	gap: 14px;
	max-height: 320px;
	overflow-y: auto;
	padding-right: 4px;
}

.gym-group {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.gym-group-title {
	font-size: 0.85rem;
	color: #888;
	font-weight: 600;
	padding-left: 2px;
}

.gym-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.gym-chip {
	padding: 6px 12px !important;
	font-size: 0.9rem !important;
	background: #f4f4f8 !important;
	color: #444 !important;
	border: 1px solid #e2e2ea !important;
	box-shadow: none !important;
	border-radius: 999px !important;
	transition: all 0.2s !important;
}

.gym-chip:hover {
	background: #ececf2 !important;
	transform: none !important;
}

.gym-chip.active {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
	color: #fff !important;
	border-color: transparent !important;
	box-shadow: 0 2px 8px rgba(118, 75, 162, 0.3) !important;
}

.gym-selected-wrap {
	margin-top: 18px;
	border-top: 1px dashed #e0e0e0;
	padding-top: 12px;
}

.gym-selected-title {
	font-size: 0.9rem;
	color: #555;
	margin-bottom: 8px;
	font-weight: 600;
}

.gym-selected-count {
	color: #764ba2;
	font-weight: 700;
}

.gym-selected-list {
	display: flex;
	flex-direction: column;
	gap: 6px;
	max-height: 200px;
	overflow-y: auto;
}

.gym-selected-item {
	display: flex;
	align-items: center;
	gap: 8px;
	background: #f8f8fc;
	border: 1px solid #ececf2;
	border-radius: 8px;
	padding: 6px 10px;
}

.gym-selected-name {
	flex: 1;
	font-size: 0.92rem;
	color: #333;
	font-weight: 500;
}

.gym-duration-input {
	width: 90px !important;
	padding: 5px 8px !important;
	font-size: 0.88rem !important;
	border: 1px solid #d8d8e0 !important;
	border-radius: 6px !important;
	background: #fff !important;
	box-shadow: none !important;
}

.gym-duration-input:focus {
	border-color: #764ba2 !important;
	outline: none !important;
}

.gym-remove {
	width: 26px !important;
	height: 26px !important;
	padding: 0 !important;
	font-size: 18px !important;
	line-height: 1 !important;
	color: #c00 !important;
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	border-radius: 50% !important;
}

.gym-remove:hover {
	background: #fee !important;
	transform: none !important;
}

.gym-empty {
	text-align: center;
	color: #aaa;
	font-size: 0.85rem;
	padding: 12px 0;
}

/* 小屏适配 */
@media (max-width: 480px) {
	.gym-modal {
		width: 95%;
	}
	.gym-duration-input {
		width: 75px !important;
	}
}

/* ============ 训练模块（workout.js） ============ */

/* 首页横幅：今天该练 */
.wk-banner-card {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1rem;
  cursor: pointer;
  border-left: 4px solid #667eea;
  font-size: 0.95rem;
  transition: background 0.2s ease;
}
.wk-banner-card:hover { background: rgba(102, 126, 234, 0.08); }
.wk-banner-emoji { font-size: 1.2rem; }
.wk-banner-go { margin-left: auto; color: #667eea; font-size: 0.85rem; white-space: nowrap; }
.wk-banner-done { color: #10b981; font-size: 0.8rem; margin-left: 0.3rem; }

/* 进度卡 */
.wk-prog-head { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; flex-wrap: wrap; }
.wk-prog-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.3rem; }
.wk-prog-cur { font-size: 0.95rem; margin-bottom: 0.25rem; }
.wk-prog-cur b { color: #667eea; }
.wk-prog-meta { font-size: 0.8rem; color: #999; }
.wk-prog-btns { display: flex; gap: 0.5rem; flex-shrink: 0; }
.wk-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white; border: none; border-radius: 4px;
  padding: 0.5rem 0.9rem; font-size: 0.85rem; cursor: pointer; white-space: nowrap;
}
.wk-btn.ghost { background: white; color: #667eea; border: 1px solid #667eea; }
.wk-btn:active { opacity: 0.8; }
.wk-prog-log { margin-top: 0.6rem; padding-top: 0.6rem; border-top: 1px dashed rgba(0,0,0,0.08); font-size: 0.78rem; color: #999; }
.wk-tag-ext { background: #ffeaa7; color: #d63031; border-radius: 3px; padding: 0 4px; margin-left: 3px; font-size: 0.7rem; }

/* 设置卡 */
.wk-setup-line { font-size: 0.92rem; display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.wk-link { background: none; border: none; color: #667eea; cursor: pointer; font-size: 0.82rem; margin-left: auto; text-decoration: underline; }
.wk-setup-form { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.wk-setup-form select { flex: 1; min-width: 8rem; padding: 0.5rem; border: 1px solid #ddd; border-radius: 6px; font-size: 0.9rem; }

/* 分化 chips：固定网格保持对称（6 个 = 3+3，手机 2×3） */
#workout-split-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin-bottom: 1rem; }
#workout-lib-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-bottom: 1rem; }
.wk-chip {
  background: white; border: 1px solid #ddd; border-radius: 1.2rem;
  padding: 0.4rem 0.85rem; font-size: 0.85rem; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem; text-align: center;
  transition: all 0.15s ease; min-height: 2.6rem;
}
#workout-split-chips .wk-chip { flex-direction: column; gap: 0.15rem; border-radius: 0.6rem; padding: 0.5rem 0.4rem; }
.wk-chip:hover { border-color: #667eea; color: #667eea; }
.wk-chip.on { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; border-color: transparent; }
.wk-chip.small { padding: 0.25rem 0.7rem; font-size: 0.78rem; }
.wk-rec { background: #ffdb3b; color: #b45309; border-radius: 3px; padding: 0 4px; font-size: 0.68rem; }
.wk-mini { color: #999; font-size: 0.7rem; }
.wk-chip.on .wk-mini { color: rgba(255,255,255,0.8); }

/* 说明块 */
.wk-note { background: rgba(102, 126, 234, 0.07); border-radius: 6px; padding: 0.7rem 0.9rem; font-size: 0.82rem; line-height: 1.6; margin-bottom: 0.7rem; }
.wk-note.orange { background: rgba(245, 158, 11, 0.1); }
.wk-note.warn { background: rgba(239, 68, 68, 0.08); }
.wk-info { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; font-size: 0.78rem; color: #999; margin-bottom: 0.8rem; }

/* 训练日卡片 */
.wk-day { border: 1px solid rgba(0,0,0,0.08); border-radius: 8px; margin-bottom: 0.7rem; overflow: hidden; background: rgba(255,255,255,0.6); }
.wk-day-head {
  display: flex; align-items: center; justify-content: space-between; gap: 0.6rem;
  padding: 0.7rem 0.9rem; cursor: pointer; user-select: none;
}
.wk-day-head:hover { background: rgba(102, 126, 234, 0.05); }
.wk-day-head h4 { margin: 0; font-size: 0.95rem; font-weight: 700; letter-spacing: 0.02rem; text-transform: none; color: #333; }
.wk-next-tag { background: #10b981; color: white; border-radius: 3px; padding: 1px 5px; font-size: 0.68rem; margin-left: 0.4rem; vertical-align: middle; }
.wk-cnt { font-size: 0.75rem; color: #999; white-space: nowrap; }
.wk-arrow { color: #999; font-size: 0.75rem; transition: transform 0.2s ease; }
.wk-day.open .wk-arrow { transform: rotate(180deg); }
.wk-day-body { display: none; padding: 0 0.9rem 0.9rem; }
.wk-day.open .wk-day-body { display: block; }

/* 热身 / 拉伸块 */
.wk-warm { background: rgba(245, 158, 11, 0.08); border-left: 3px solid #f59e0b; border-radius: 4px; padding: 0.6rem 0.8rem; margin-bottom: 0.7rem; }
.wk-cool { background: rgba(102, 126, 234, 0.08); border-left: 3px solid #667eea; border-radius: 4px; padding: 0.6rem 0.8rem; margin-top: 0.7rem; }
.wk-block-t { font-size: 0.82rem; font-weight: 700; margin-bottom: 0.35rem; }
.wk-warm ul, .wk-cool ul { margin: 0; padding-left: 1.1rem; }
.wk-warm li, .wk-cool li { font-size: 0.8rem; line-height: 1.6; color: #555; }

/* 课表表格 */
.wk-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.wk-ex { width: 100%; min-width: 480px; font-size: 0.82rem; }
.wk-ex th { text-align: left; font-size: 0.72rem; color: #999; font-weight: 600; padding: 0.4rem 0.5rem; border-bottom: 1px solid rgba(0,0,0,0.1); white-space: nowrap; }
.wk-ex td { padding: 0.45rem 0.5rem; border-bottom: 1px solid rgba(0,0,0,0.05); vertical-align: top; }
.wk-ex tr:last-child td { border-bottom: none; }
.wk-ex .nm { font-weight: 600; color: #333; white-space: nowrap; }
.wk-ex .mu { color: #667eea; white-space: nowrap; }
.wk-ex .st { white-space: nowrap; }
.wk-ex .rs { color: #999; white-space: nowrap; }
.wk-ex .tp { color: #777; min-width: 7rem; }

/* 动作库 */
.wk-lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0.7rem; }
.wk-ex-card { border: 1px solid rgba(0,0,0,0.08); border-radius: 8px; padding: 0.7rem 0.85rem; background: rgba(255,255,255,0.6); }
.wk-ex-card .nm { font-weight: 700; font-size: 0.92rem; margin-bottom: 0.4rem; }
.wk-ex-card .tags { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-bottom: 0.4rem; }
.wk-ex-card .tags span { font-size: 0.68rem; color: #888; background: rgba(0,0,0,0.05); border-radius: 3px; padding: 1px 5px; }
.wk-ex-card .tags .t-compound { background: rgba(102, 126, 234, 0.12); color: #5568d3; }
.wk-ex-card .tags .t-iso { background: rgba(245, 158, 11, 0.14); color: #b45309; }
.wk-ex-card .st { font-size: 0.78rem; color: #666; margin-bottom: 0.4rem; }
.wk-ex-card .tips { padding-left: 1rem; }
.wk-ex-card .tips li { font-size: 0.76rem; color: #888; line-height: 1.55; }

@media (max-width: 480px) {
  .wk-prog-btns { width: 100%; }
  .wk-prog-btns .wk-btn { flex: 1; }
  .wk-lib-grid { grid-template-columns: 1fr; }
}

/* ---- 训练模块 v2：进度按钮 3 等分 / 周历条 / 打勾 / 弹窗 ---- */
.wk-prog-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.wk-prog-btns .wk-btn { width: 100%; padding: 0.5rem 0.4rem; font-size: 0.8rem; }

/* 周历条 */
.wk-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.3rem; margin: 0.8rem 0 1rem; }
.wk-wd { border-radius: 6px; padding: 0.45rem 0.15rem; text-align: center; border: 1px solid rgba(0,0,0,0.08); background: rgba(255,255,255,0.6); }
.wk-wd .d { font-size: 0.68rem; color: #999; margin-bottom: 0.2rem; white-space: nowrap; }
.wk-wd .l { font-size: 0.62rem; line-height: 1.35; color: #5568d3; word-break: keep-all; }
.wk-wd.rest { background: rgba(0,0,0,0.035); }
.wk-wd.rest .l { color: #aaa; }
.wk-wd.today { border: 2px solid #10b981; }
.wk-wd.today .d { color: #10b981; font-weight: 700; }
.wk-wd.train:not(.rest) { cursor: pointer; }
.wk-wd.train:not(.rest):hover { border-color: #667eea; }
.wk-wd.cur { background: rgba(102, 126, 234, 0.12); border-color: #667eea; }

/* 动作打勾 */
.wk-ex .ck { width: 2rem; text-align: center; }
.wk-check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.5rem; height: 1.5rem; border-radius: 50%;
  border: 1.5px solid #ccc; cursor: pointer; font-size: 0.85rem; color: transparent;
  background: white; user-select: none; transition: all 0.15s ease;
}
.wk-check:hover { border-color: #10b981; }
.wk-check.on { background: #10b981; border-color: #10b981; color: white; }
.wk-ex tr.done .nm, .wk-ex tr.done .mu, .wk-ex tr.done .st { opacity: 0.45; text-decoration: line-through; text-decoration-color: rgba(16,185,129,0.6); }
.wk-ex td .wk-exlink { cursor: pointer; }
.wk-exlink:hover { color: #5568d3; text-decoration: underline; }

/* 动作详情弹窗 */
#wk-modal { display: none; position: fixed; inset: 0; z-index: 1000; }
#wk-modal.active { display: block; }
.wk-modal-mask { position: absolute; inset: 0; background: rgba(0,0,0,0.45); }
.wk-modal-card {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(26rem, calc(100vw - 2rem)); max-height: 80vh; overflow-y: auto;
  background: white; border-radius: 12px; padding: 1.1rem 1.2rem; box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}
.wk-modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.7rem; }
.wk-modal-head span { font-size: 1.05rem; font-weight: 700; }
#wk-modal-x { background: none; border: none; font-size: 1rem; color: #999; cursor: pointer; padding: 0.2rem 0.4rem; }
.wk-modal-card .tags { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-bottom: 0.5rem; }
.wk-modal-card .tags span { font-size: 0.7rem; color: #888; background: rgba(0,0,0,0.05); border-radius: 3px; padding: 2px 6px; }
.wk-modal-card .tags .t-compound { background: rgba(102, 126, 234, 0.12); color: #5568d3; }
.wk-modal-card .tags .t-iso { background: rgba(245, 158, 11, 0.14); color: #b45309; }
.wk-md-st { font-size: 0.85rem; color: #555; margin-bottom: 0.6rem; }
.wk-modal-card .tips { padding-left: 1.1rem; }
.wk-modal-card .tips li { font-size: 0.83rem; color: #666; line-height: 1.65; }

@media (max-width: 480px) {
  #workout-split-chips { grid-template-columns: repeat(2, 1fr); }
  .wk-prog-btns { grid-template-columns: 1fr; }
  .wk-wd .l { font-size: 0.56rem; }
}

/* ---- 训练模块 v3：前期减量 / 体重调次 ---- */
.wk-note.green { background: rgba(16, 185, 129, 0.1); }
.wk-ex tr.skip td { opacity: 0.5; }
.wk-ex tr.skip .nm { text-decoration: none; }
.wk-orig { display: block; font-style: normal; font-size: 0.68rem; color: #aaa; text-decoration: line-through; }
.wk-skip-tag { font-size: 0.7rem; color: #b45309; background: rgba(245, 158, 11, 0.12); border-radius: 3px; padding: 1px 5px; }
.wk-adjust-note { font-size: 0.74rem; color: #888; margin-top: 0.5rem; }

/* ---- Vanta 挂载层：固定铺满视口，整页都是雾效，内容再长也不露底 ---- */
#vanta-bg {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: -1;
}

/* ---- 训练模块 v4：编辑动作（排序/删除/自加） ---- */
.wk-edit-note { font-size: 0.75rem; color: #888; margin: 0.6rem 0; }
.wk-ex .ed { white-space: nowrap; }
.wk-mini-op {
  background: white; border: 1px solid #ddd; border-radius: 4px;
  width: 1.6rem; height: 1.6rem; font-size: 0.75rem; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0; margin-right: 0.25rem; box-shadow: none;
}
.wk-mini-op:hover { border-color: #667eea; color: #667eea; }
.wk-mini-op.del:hover { border-color: #ef4444; color: #ef4444; }
.wk-mini-op:disabled { opacity: 0.35; cursor: not-allowed; }
.wk-custom-tag { font-size: 0.62rem; color: #10b981; border: 1px solid #10b981; border-radius: 3px; padding: 0 3px; vertical-align: middle; }
.wk-add-row { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 0.4rem; margin-top: 0.7rem; align-items: center; }
.wk-add-row input { height: 2.2rem; padding: 0 0.6rem; border: 1px solid #ddd; border-radius: 6px; font-size: 0.8rem; }
.wk-add-row .wk-btn { padding: 0.45rem 0.8rem; font-size: 0.78rem; white-space: nowrap; }
.wk-edit-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin-top: 0.6rem; }
.wk-edit-foot .hint { margin: 0; font-size: 0.72rem; color: #aaa; }
@media (max-width: 480px) {
  .wk-add-row { grid-template-columns: 1fr 1fr; }
  .wk-add-row .wk-btn { grid-column: 1 / -1; }
}

/* ---- 训练模块 v5：游戏化（冒险卡/怪物/动画）+ AI教练 ---- */
.wk-game { display: flex; gap: 1rem; align-items: center; }
.wk-monster-box { position: relative; flex-shrink: 0; width: 8.5rem; height: 8.5rem; display: flex; align-items: center; justify-content: center; }
.wk-msvg { width: 96px; height: 96px; image-rendering: pixelated; }
.wk-monster { animation: wk-bob 2.4s ease-in-out infinite; }
@keyframes wk-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.wk-monster.hit { animation: wk-hit 0.35s; }
@keyframes wk-hit { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-7px); } 40% { transform: translateX(6px); filter: brightness(1.9) saturate(2.4); } 60% { transform: translateX(-4px); } 80% { transform: translateX(2px); } }
.wk-monster.die { animation: wk-die 0.6s forwards; }
@keyframes wk-die { to { transform: scale(0.2) rotate(18deg); opacity: 0; filter: blur(3px); } }
.wk-monster.spawn { animation: wk-spawn 0.5s ease-out; }
@keyframes wk-spawn { from { transform: translateX(60px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.wk-slash { position: absolute; width: 140%; height: 4px; top: 50%; left: -20%; background: linear-gradient(90deg, transparent, #fff, transparent); transform: rotate(-35deg) scaleX(0); opacity: 0; pointer-events: none; z-index: 2; }
.wk-slash.go { animation: wk-slash 0.18s ease-out; }
@keyframes wk-slash { 0% { transform: rotate(-35deg) scaleX(0); opacity: 0; } 40% { opacity: 1; } 100% { transform: rotate(-35deg) scaleX(1.3); opacity: 0; } }
.wk-dmg { position: absolute; top: 4px; left: 50%; transform: translateX(-50%); font-weight: 800; font-size: 1.3rem; color: #ef4444; opacity: 0; pointer-events: none; text-shadow: 0 1px 3px #fff; z-index: 3; }
.wk-dmg.go { animation: wk-dmg 0.9s ease-out; }
@keyframes wk-dmg { 0% { opacity: 0; transform: translate(-50%, 8px) scale(0.6); } 25% { opacity: 1; transform: translate(-50%, -8px) scale(1.15); } 100% { opacity: 0; transform: translate(-50%, -36px) scale(1); } }
.wk-xpfloat { position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%); font-size: 0.8rem; font-weight: 700; color: #667eea; opacity: 0; pointer-events: none; z-index: 3; }
.wk-xpfloat.go { animation: wk-xpf 1s ease-out; }
@keyframes wk-xpf { 0% { opacity: 0; transform: translate(-50%, 4px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -22px); } }
.wk-game-info { flex: 1; min-width: 0; }
.wk-quest { font-size: 0.95rem; margin-bottom: 0.4rem; }
.wk-quest b { color: #ef4444; }
.wk-mlv { background: #ef4444; color: #fff; border-radius: 3px; padding: 0 5px; font-size: 0.68rem; margin-left: 0.4rem; vertical-align: middle; }
.wk-streak { margin-left: 0.5rem; font-size: 0.75rem; color: #f59e0b; }
.wk-hp, .wk-xp { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.35rem; }
.wk-hp span, .wk-xp span { font-size: 0.72rem; color: #999; white-space: nowrap; }
.wk-hp-bar, .wk-xp-bar { flex: 1; height: 10px; background: rgba(0,0,0,0.08); border-radius: 5px; overflow: hidden; }
.wk-hp-bar i { display: block; height: 100%; background: linear-gradient(90deg, #ef4444, #f97316); border-radius: 5px; transition: width 0.5s ease; }
.wk-xp-bar i { display: block; height: 100%; background: linear-gradient(90deg, #667eea, #10b981); border-radius: 5px; transition: width 0.5s ease; }
.wk-lvrow { display: flex; align-items: center; gap: 0.5rem; margin: 0.45rem 0 0.35rem; }
.wk-lv-badge { background: linear-gradient(135deg, #667eea, #764ba2); color: #fff; border-radius: 4px; padding: 2px 7px; font-size: 0.78rem; font-weight: 700; }
.wk-lvrow b { font-size: 0.9rem; }
.wk-xp-num { margin-left: auto; font-size: 0.75rem; color: #999; }
.wk-badges { display: flex; gap: 0.4rem; margin-top: 0.45rem; font-size: 1.1rem; }
.wk-badges span { filter: grayscale(1); opacity: 0.25; }
.wk-badges span.on { filter: none; opacity: 1; }
.wk-lvup { text-align: center; padding: 0.6rem 0; }
.wk-lvup .big { font-size: 2.4rem; }
.wk-lvup .badge { display: inline-block; margin: 0.3rem 0; font-size: 1.6rem; font-weight: 800; color: #667eea; }
.wk-lvup .title { font-size: 1.1rem; font-weight: 700; }
.wk-lvup .sub { margin-top: 0.4rem; font-size: 0.78rem; color: #999; }
#wk-toast { position: fixed; top: 14%; left: 50%; transform: translateX(-50%); background: rgba(17, 24, 39, 0.88); color: #fff; font-size: 0.85rem; border-radius: 2rem; padding: 0.55rem 1.1rem; opacity: 0; pointer-events: none; z-index: 1600; transition: opacity 0.25s ease; }
#wk-toast.go { opacity: 1; }
.wk-coach-form { display: flex; gap: 0.5rem; margin: 0.8rem 0; }
.wk-coach-form input { flex: 1; height: 2.4rem; padding: 0 0.8rem; border: 1px solid #ddd; border-radius: 6px; font-size: 0.85rem; }
.wk-kcal-tag { font-size: 0.65rem; color: #f59e0b; background: rgba(245, 158, 11, 0.1); border-radius: 3px; padding: 1px 4px; white-space: nowrap; }
@media (max-width: 480px) {
  .wk-game { flex-direction: column; }
  .wk-monster-box { width: 100%; }
}

/* ---- 今天吃什么（meals.js） ---- */
.wk-meal-head { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin-bottom: 0.8rem; flex-wrap: wrap; }
.wk-meal-sub { font-size: 0.78rem; color: #999; }
.wk-meal { border: 1px solid rgba(0,0,0,0.08); border-radius: 8px; padding: 0.7rem 0.9rem; margin-bottom: 0.6rem; background: rgba(255,255,255,0.6); }
.wk-meal.off { opacity: 0.55; cursor: pointer; }
.wk-meal-t { font-weight: 700; font-size: 0.92rem; margin-bottom: 0.45rem; display: flex; align-items: center; gap: 0.4rem; }
.wk-meal-x { color: #bbb; cursor: pointer; font-size: 0.8rem; padding: 0 0.3rem; }
.wk-meal-x:hover { color: #ef4444; }
.wk-meal-off-note { font-size: 0.78rem; color: #999; }
.wk-meal-items { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.4rem; }
.wk-meal-item { background: rgba(102, 126, 234, 0.1); color: #4557c9; border-radius: 4px; padding: 0.25rem 0.55rem; font-size: 0.82rem; }
.wk-meal-item i { font-style: normal; font-size: 0.68rem; color: #999; margin-left: 0.3rem; }
.wk-meal-sum { font-size: 0.74rem; color: #999; }

/* ---- 打卡记录删除小叉 ---- */
.wk-log-x { color: #ccc; cursor: pointer; font-size: 0.7rem; margin-left: 0.25rem; padding: 0 0.15rem; }
.wk-log-x:hover { color: #ef4444; }

/* 本周已击杀：怪物半灰显示 */
.wk-monster.settled { filter: grayscale(0.45); opacity: 0.8; }

/* ---- 怪物图鉴 ---- */
.wk-dex-link { margin-left: auto; font-size: 0.72rem; color: #667eea; cursor: pointer; }
.wk-dex-link:hover { text-decoration: underline; }
.wk-dex { display: grid; grid-template-columns: repeat(auto-fill, minmax(5rem, 1fr)); gap: 0.5rem; }
.wk-dex-item { text-align: center; border: 1px solid rgba(0,0,0,0.08); border-radius: 8px; padding: 0.5rem 0.3rem; background: rgba(255,255,255,0.6); }
.wk-dex-item .svg { display: flex; justify-content: center; }
.wk-dex-item .svg svg { width: 52px; height: 52px; image-rendering: pixelated; }
.wk-dex-item .nm { font-size: 0.62rem; color: #555; margin: 0.25rem 0 0.15rem; line-height: 1.3; }
.wk-dex-item .tag { font-size: 0.6rem; border-radius: 3px; padding: 1px 4px; display: inline-block; }
.wk-dex-item .tag.ok { background: rgba(16,185,129,0.12); color: #059669; }
.wk-dex-item .tag.now { background: rgba(239,68,68,0.12); color: #dc2626; }
.wk-dex-item .tag.lock { background: rgba(0,0,0,0.05); color: #aaa; }
.wk-dex-item.dead .svg { filter: none; opacity: 1; }
.wk-dex-item.dead { border-color: rgba(16, 185, 129, 0.45); box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.08); }
.wk-dex-item.cur { border-color: #ef4444; box-shadow: 0 0 0 2px rgba(239,68,68,0.15); }
.wk-dex-note { font-size: 0.72rem; color: #999; margin-top: 0.7rem; }

/* ---- 课程升级建议 ---- */
.wk-upgrade { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin-top: 0.6rem; }
.wk-upgrade .wk-btn { margin-left: auto; padding: 0.4rem 0.8rem; font-size: 0.78rem; white-space: nowrap; }

/* ---- 力量自测 ---- */
.wk-max-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
.wk-max-form label { font-size: 0.78rem; color: #666; display: block; }
.wk-max-form input { height: 2.2rem; margin-top: 0.25rem; padding: 0 0.6rem; border: 1px solid #ddd; border-radius: 6px; font-size: 0.9rem; }
.wk-max-tip { background: rgba(102, 126, 234, 0.07); border-radius: 6px; padding: 0.6rem 0.8rem; font-size: 0.78rem; color: #666; line-height: 1.6; margin-top: 0.7rem; }
.wk-w-hint { display: block; font-style: normal; font-size: 0.68rem; color: #10b981; white-space: nowrap; }

/* ---- 训练打卡月历（设置 tab） ---- */
.wk-cal-head { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.7rem; flex-wrap: wrap; }
.wk-cal-head b { font-size: 0.95rem; }
.wk-cal-stat { margin-left: auto; font-size: 0.74rem; color: #999; }
.wk-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.25rem; }
.wk-cal-dow { text-align: center; font-size: 0.7rem; color: #999; padding: 0.2rem 0; }
.wk-cal-cell { border: 1px solid rgba(0,0,0,0.07); border-radius: 6px; min-height: 2.6rem; text-align: center; padding: 0.2rem 0; background: rgba(255,255,255,0.6); }
.wk-cal-cell.blank { border: none; background: none; }
.wk-cal-cell .d { font-size: 0.72rem; color: #888; display: block; }
.wk-cal-cell.future { opacity: 0.4; }
.wk-cal-cell.today { border: 2px solid #10b981; }
.wk-cal-cell.today .d { color: #10b981; font-weight: 700; }
.wk-cal-ok, .wk-cal-extra { font-size: 0.8rem; }
.wk-cal-legend { font-size: 0.7rem; color: #aaa; margin-top: 0.5rem; }

/* ---- 怪物贴图模式（gallery/monsters/*.png）---- */
img.wk-msvg { object-fit: contain; }
.wk-tier-elite { filter: sepia(0.9) saturate(2.8) hue-rotate(-8deg) brightness(1.05); }
.wk-tier-boss { filter: saturate(2.2) hue-rotate(-28deg) brightness(0.85) contrast(1.15); }

/* 魔王形态：体型放大（精英靠金冠+金瞳区分，不用放大免得溢出卡片） */
svg.wk-msvg.wk-tier-boss, img.wk-msvg.wk-tier-boss { transform: scale(1.15); transform-origin: center; }

/* 图鉴未知怪 */
.wk-dex-unknown { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; font-size: 1.6rem; color: #ccc; }

/* ---- 加练方案弹窗 ---- */
.wk-plan { border: 1px solid rgba(0,0,0,0.08); border-radius: 8px; padding: 0.7rem 0.9rem; margin-bottom: 0.6rem; background: rgba(255,255,255,0.6); }
.wk-plan .t { font-weight: 700; font-size: 0.92rem; margin-bottom: 0.3rem; }
.wk-plan .d { font-size: 0.8rem; color: #666; line-height: 1.6; margin-bottom: 0.5rem; }
.wk-plan .wk-btn { padding: 0.4rem 0.9rem; font-size: 0.78rem; }

/* 力量自测：器械二选一 */
.wk-var-sel { width: 100%; height: 2rem; margin-bottom: 0.25rem; border: 1px solid #ddd; border-radius: 6px; font-size: 0.75rem; padding: 0 0.3rem; background: #fff; }

/* 力量自测下拉：带明显箭头（默认器械在前） */
.wk-var-sel {
  width: 100%; height: 2.1rem; margin-bottom: 0.25rem;
  border: 1px solid #cbd5e1; border-radius: 6px; font-size: 0.75rem;
  padding: 0 1.4rem 0 0.4rem;
  background: #fff url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23334155' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 0.4rem center;
  background-size: 0.65rem;
  color: #334155;
}

/* AI 定制加练方案 */
.wk-plan.ai { border-color: rgba(102, 126, 234, 0.4); background: rgba(102, 126, 234, 0.06); }
.wk-ai-plan-text { max-height: 16rem; overflow-y: auto; white-space: normal; }

/* 月历未来推算 */
.wk-cal-plan { font-size: 0.75rem; }
.wk-cal-rest { color: #ccc; font-size: 1rem; line-height: 1; }

/* 教练调整应用区 */
.wk-coach-apply { margin-top: 0.8rem; padding-top: 0.7rem; border-top: 1px dashed rgba(0,0,0,0.12); display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.wk-coach-prev { font-size: 0.8rem; color: #4557c9; width: 100%; line-height: 1.6; }

/* ---- 页头：标题+副标整体居中，用户信息贴右（左右对称）---- */
main header, #main-page header {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
header .brand { text-align: center; }
header .brand h1 { margin: 0 0 0.2rem; }
header .brand-tag { font-size: 0.78rem; color: #999; letter-spacing: 0.12rem; }
header .user-info {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; gap: 0.6rem;
}
header .user-info #logout-btn { margin: 0; padding: 0.4rem 0.9rem; font-size: 0.8rem; }
@media (max-width: 736px) {
  header .user-info { position: static; transform: none; justify-content: center; }
}

/* 页头标题+副标：紧凑基线对齐，副标不再靠上飘 */
header .brand h1 { margin: 0; line-height: 1.15; }
header .brand-tag { margin-top: 0.3rem; }

/* AI 教练聊天框：与全站输入框一致（加粗易读） */
.wk-coach-form input { font-size: 0.95rem; font-weight: 500; color: #334155; }
.wk-coach-form input::placeholder { font-weight: 300; color: #aaa; }

/* 今日已完成标签 */
.wk-done-tag { background: #10b981; color: #fff; border-radius: 3px; padding: 1px 5px; font-size: 0.68rem; margin-left: 0.4rem; vertical-align: middle; }

/* 撤销打卡按钮 + 最近记录删除叉（更显眼） */
.wk-btn-danger { color: #ef4444 !important; border-color: rgba(239, 68, 68, 0.5) !important; }
.wk-log-x { color: #dc2626; font-size: 1rem; margin-left: 0.5rem; padding: 0.1rem 0.4rem; font-weight: 800; cursor: pointer; background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.35); border-radius: 4px; }
.wk-log-x:hover { background: #ef4444; color: #fff; }

/* AI 思考中加载态（加练弹窗） */
.wk-ai-loading { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; color: #5568d3; font-size: 0.85rem; }
.wk-spinner { width: 1rem; height: 1rem; border: 2.5px solid rgba(102,126,234,0.25); border-top-color: #667eea; border-radius: 50%; animation: wk-spin 0.8s linear infinite; flex-shrink: 0; }
@keyframes wk-spin { to { transform: rotate(360deg); } }
