/* ============================================================
   zx 个人网站 · 定制样式（在 main.css 之后加载）
   ============================================================ */

/* ---- 联系表单：底部边框风格 + 字段图标 + 整宽发送按钮 ---- */

#contact form .field {
	position: relative;
}

/* 字段内嵌图标 */
#contact form .field > i.fas {
	position: absolute;
	left: 0.25rem;
	top: 0;
	width: 2.25rem;
	height: 3rem;
	line-height: 3rem;
	text-align: center;
	color: rgba(144, 144, 144, 0.6);
	font-size: 0.9rem;
	pointer-events: none;
	transition: color 0.25s ease;
}

#contact form .field:focus-within > i.fas {
	color: #2ee4bb;
}

/* 输入框：去掉四周边框，只留底部细线 */
#contact form input[type="text"],
#contact form input[type="email"],
#contact form textarea {
	border: none;
	border-bottom: solid 2px rgba(144, 144, 144, 0.25);
	border-radius: 0;
	background: transparent;
	padding-left: 2.75rem;
	transition: border-color 0.25s ease;
}

#contact form input[type="text"]:focus,
#contact form input[type="email"]:focus,
#contact form textarea:focus {
	border-bottom-color: #2ee4bb;
	box-shadow: none;
}

#contact form textarea {
	min-height: 9rem;
	padding-top: 0.75rem;
}

/* 发送按钮：整行全宽 + 图标 */
#contact form .actions {
	display: block;
}

#contact form .actions li {
	display: block;
	width: 100%;
	margin: 0;
}

#contact form .actions .button {
	display: block;
	width: 100%;
}

#contact form .actions .button i.fas {
	margin-right: 0.5rem;
}

/* ---- 页脚备案信息链接：低调、无下划线 ---- */

.copyright .beian a {
	text-decoration: none;
	opacity: 0.6;
	transition: opacity 0.25s ease;
}

.copyright .beian a:hover {
	opacity: 1;
}

/* ---- 首页主题图标区：整项可点链接，静态样式与原来一致 ---- */

.feature-icons li a {
	display: inline-block;
	color: inherit;             /* 文字默认色与原来一致 */
	text-decoration: none;
	border-bottom: none;        /* 去掉模板 a 的点状下划线 */
	outline: none;
	transition: color 0.25s ease;
}

/* hover / 键盘聚焦时提示可点：文字变主题色 */
.feature-icons li a:hover,
.feature-icons li a:focus-visible {
	color: #2ee4bb;
}

/* 鼠标悬停整项（含图标）时：图标字形变主题色提示可点
   （六边形背景为 background-image，不受 color 影响，形状不变） */
.feature-icons li:hover:before {
	color: #2ee4bb;
}
.about-inspiration { margin: 0 0 2rem; }
.about-inspiration img { display: block; width: 100%; max-width: 100%; height: auto; border-radius: 4px; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 2rem; }
a:focus-visible, button:focus-visible { outline: 3px solid #08755f; outline-offset: 5px; }
#wrapper > section.intro > header h1 { font-size: clamp(3.4rem, 6vw, 6rem); margin-bottom: 1rem; }
#wrapper > section.intro > header .hero-kicker { margin-bottom: 1.3rem; }
#wrapper > section.intro > header .hero-description { font-family: inherit; font-size: 1rem; line-height: 1.9; letter-spacing: 0; text-transform: none; margin-bottom: 1.8rem; }
.hero-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 0.8rem; }
.hero-nav .button { padding: 0 1.4rem; letter-spacing: 0.06em; }
.hero-nav .primary { background: #0b1220; color: #fff !important; }
.hero-nav .primary:hover { background: #203746; }
.hero-nav .about-link { flex-basis: 100%; border: 0; font-size: 0.85rem; }
#wrapper > section.intro > .content { height: min(820px, 90vh); min-height: 540px; }
.project-feature { border-top: 3px solid #101b24; padding: 1.6rem 0 1.8rem; }
.project-label, .platform-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; color: #467066; margin-bottom: 0.7rem; }
.project-feature h3, .project-note h3 { font-size: 1.25rem; letter-spacing: 0.01em; line-height: 1.5; margin-bottom: 0.8rem; }
.project-facts { list-style: none; padding: 0; margin: 1rem 0 1.5rem; }
.project-facts li { display: flex; gap: 1rem; border-bottom: 1px solid #e5eae8; padding: 0.65rem 0; font-size: 0.9rem; }
.project-facts strong { flex: 0 0 2.5rem; }
.project-note { border-top: 1px solid #cddbd5; padding: 1.6rem 0 2rem; }
.text-link { font-weight: 600; border-bottom-color: #137b65; }
#projects ul.actions { flex-wrap: wrap; gap: 0.65rem; margin-left: 0; }
#projects ul.actions li { padding-left: 0; }
#projects ul.actions .button { padding: 0 1.2rem; font-size: 0.65rem; }
.form-note { font-size: 0.85rem; color: #52635e; line-height: 1.8; }
#contact form .field label { letter-spacing: 0.03em; font-size: 0.85rem; margin-bottom: 0.6rem; }
#contact #name, #contact #email, #contact #message { padding-left: 0.8rem; background: #f5f8f7; }
#contact-status { font-size: 0.9rem; margin-top: 1rem; }
#contact-status[data-state="error"] { color: #a12a22; }
#contact-status[data-state="success"] { color: #07664f; }
@media (max-width: 980px) {
  #wrapper > section.intro > header { padding: 3rem 2rem 2rem; }
  #wrapper > section.intro > .content { height: 240px; min-height: 0; }
  .hero-nav { justify-content: flex-start; }
  .hero-nav .about-link { flex-basis: auto; }
}
@media (max-width: 480px) {
  #wrapper > section.intro > header { padding: 2.2rem 1.8rem 1.7rem; }
  #wrapper > section.intro > header h1 { font-size: 3.3rem; }
  #wrapper > section.intro > header .hero-description { font-size: 0.95rem; margin-bottom: 1.1rem; }
  #wrapper > section.intro > .content { height: 185px; }
  .hero-nav .button { padding: 0 1rem; }
  .hero-nav .about-link { flex-basis: 100%; }
  .project-facts li { font-size: 0.85rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (max-width: 980px) {
  #wrapper > section.intro > header h1 { margin-top: 0; }
}

/* Software showcase: inherit the original mint / white split layout. */
#wrapper > section > header .section-note { font-family: inherit; text-transform: none; letter-spacing: 0; font-size: .95rem; line-height: 1.9; margin: 0 0 1.4rem; }
.section-jump { font-size: .8rem; border-bottom: 1px solid rgba(0,0,0,.25); }
.tools-lead { font-size: 1.35rem; line-height: 1.7; }
.software-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 0 0 1.5rem; }
.software-card { display: flex; flex-direction: column; min-width: 0; padding: 1.15rem; border: 1px solid #d9e7e0; border-top: 3px solid #2ee4bb; border-radius: 4px; background: #fff; transition: border-color .2s ease, box-shadow .2s ease; }
.software-card:hover { border-color: #35b997; box-shadow: 0 5px 18px rgba(12,61,45,.06); }
.software-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .35rem; margin-bottom: 1rem; font-size: .6rem; color: #49675f; }
.release-badge { background: #e4faf2; color: #14644f; border-radius: 3px; padding: .15rem .4rem; }
.software-icon { display: flex; align-items: center; justify-content: center; width: 2.3rem; height: 2.3rem; background: #eafbf5; color: #14775b; border-radius: 5px; margin-bottom: .8rem; }
.software-card h3 { font-size: 1rem; letter-spacing: 0; line-height: 1.5; margin-bottom: .6rem; }
.software-card .software-description { font-size: .78rem; line-height: 1.8; margin-bottom: 1rem; color: #52665d; }
.software-tags { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; padding: 0; margin: auto 0 1rem; }
.software-tags li { padding: .1rem .4rem; background: #f2f6f4; color: #53675e; font-size: .6rem; border-radius: 3px; }
.software-open { display: flex; align-items: center; justify-content: space-between; padding-top: .75rem; border: 0; border-top: 1px solid #e2ebe6; font-size: .75rem; font-weight: 600; color: #11674e; }
@media (min-width: 737px) and (max-width: 980px) { .software-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 736px) { .software-grid { grid-template-columns: minmax(0, 1fr); } }
.release-details { border-top: 1px solid #d5e3dd; border-bottom: 1px solid #d5e3dd; padding: 1rem 0; scroll-margin-top: 2rem; }
.release-details summary { cursor: pointer; font-weight: 600; font-size: .85rem; }
.release-details p { font-size: .85rem; margin: 1rem 0; }
.release-details a { font-size: .8rem; }
.tool-request { margin-top: 2rem; border-left: 3px solid #2ee4bb; padding-left: 1.2rem; }
.tool-request h3 { font-size: .95rem; letter-spacing: 0; margin-bottom: .6rem; }
.tool-request p { font-size: .85rem; margin-bottom: .8rem; }
.tool-request a { font-size: .8rem; }
@media(max-width:480px) { .tools-lead { font-size: 1.15rem; } }
/* Compact left rail, aligned background, guide line and footer. */
@media (min-width: 1153px) {
  #wrapper { --rail-width: clamp(300px, 30vw, 420px); width: 100%; }
  #wrapper:before { width: var(--rail-width); }
  #wrapper > section { grid-template-columns: var(--rail-width) minmax(0, 1fr); }
  #wrapper > section > header { width: 100%; min-width: 0; padding: 0 4rem 0 2rem; }
  #wrapper > section > .content { min-width: 0; width: 100%; max-width: none; padding-right: clamp(2rem, 6vw, 7rem); padding-left: clamp(2rem, 5vw, 5rem); }
  #wrapper > section > footer { min-width: 0; padding: 0 4rem 0 2rem; overflow-wrap: anywhere; }
  #wrapper > section > header:before { left: calc(var(--rail-width) - 2rem); }
  #wrapper > section > header h1:before, #wrapper > section > header h2:before { right: -2rem; width: 1rem; }
  #wrapper > section > header h1:after, #wrapper > section > header h2:after { right: -1rem; }
  #wrapper > section.intro > header { padding-top: 4rem; }
  #wrapper > section.intro > header > * { width: 100%; }
  #wrapper > section.intro > header h1 { font-size: clamp(2.8rem, 4vw, 4.2rem); }
  #wrapper > section.intro > header:before { left: auto; right: 2rem; margin-left: 0; }
  #wrapper > section.intro > .content { padding: 0; }
  #wrapper > section:last-of-type > header:after { left: calc(var(--rail-width) - 2rem - .25rem + 1px); }
  #wrapper .copyright { left: var(--rail-width); width: calc(100% - var(--rail-width)); padding-left: clamp(2rem, 5vw, 5rem); }
  .hero-nav { gap: .65rem; }
  .hero-nav .button { padding: 0 .85rem; font-size: .65rem; }
}
/* Avoid scrollbar-width overflow on narrow viewports. */
#wrapper { width: 100%; }
