/* ===== TTXC 產業媒合平台 — 全站共用樣式 ===== */

:root {
  --bg: #0a0c19;
  --panel: #1e1e7b;
  --accent: #6ae5d1;
  --text: #ffffff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: 'Noto Sans TC', sans-serif;
}

a {
  text-decoration: none;
  color: inherit;
}

input,
textarea,
select,
button {
  font-family: inherit;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

/* ===== Logo ===== */

.logo {
  display: flex;
  align-items: center;
  gap: 11px;
}

.logo-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border: 2px solid var(--accent);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon .logo-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 2px;
}

.logo-icon.logo-icon-lg {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.logo-icon.logo-icon-lg .logo-dot {
  width: 10px;
  height: 10px;
}

.logo-icon.logo-icon-sm {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.logo-icon.logo-icon-sm .logo-dot {
  width: 7px;
  height: 7px;
}

.logo-text {
  font-weight: 700;
  letter-spacing: 3px;
  font-size: 18px;
  color: #fff;
}

.logo-text.logo-text-lg {
  letter-spacing: 4px;
  font-size: 21px;
}

.logo-text.logo-text-sm {
  letter-spacing: 3px;
  font-size: 16px;
}

/* ===== Header ===== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 68px;
  background: rgba(10, 12, 25, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.15s, background 0.15s;
}

.site-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.site-nav a.is-active {
  color: var(--accent);
  background: rgba(106, 229, 209, 0.1);
  font-weight: 500;
}

.header-user {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-user .company-name-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.header-user .company-name {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
}

.header-user .notif-dot {
  position: absolute;
  right: -6px;
  bottom: -2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e74c3c;
  border: 1.5px solid var(--bg, #0f1923);
  box-shadow: 0 0 0 1px rgba(231, 76, 60, 0.35);
}

.header-user .notif-dot:hover {
  background: #ff6b6b;
}

.header-user .logout-link {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.15s;
}

.header-user .logout-link:hover {
  color: #fff;
}

@media (max-width: 860px) {
  .site-nav {
    display: none !important;
  }
}

/* ===== Page main ===== */

.page-main {
  flex: 1;
  width: 100%;
  margin: 0 auto;
}

.eyebrow {
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 14px;
}

.page-title {
  font-size: 34px;
  font-weight: 700;
  margin: 0 0 12px;
}

.page-desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 44px;
  max-width: 600px;
  line-height: 1.8;
}

/* ===== Buttons ===== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 9px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  letter-spacing: 1px;
  padding: 14px 48px;
  transition: filter 0.15s, background 0.15s, border-color 0.15s, color 0.15s;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}

.btn-primary:hover {
  filter: brightness(1.08);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-weight: 500;
  padding: 11px;
}

.btn-outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.btn-accent-outline {
  background: transparent;
  border: 1px solid rgba(106, 229, 209, 0.45);
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
  padding: 11px 22px;
  border-radius: 9px;
}

.btn-accent-outline:hover {
  background: rgba(106, 229, 209, 0.08);
}

.btn-cancel {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  cursor: pointer;
}

.btn-cancel:hover {
  border-color: rgba(255, 90, 90, 0.5);
  color: #ff8a8a;
}

.link-hover {
  transition: color 0.15s;
}

.link-hover:hover {
  color: #fff;
}

/* ===== Form fields ===== */

.field {
  display: flex;
  flex-direction: column;
}

.field-label {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 8px;
}

.field-label .required {
  color: var(--accent);
}

.field-label .hint {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 400;
}

.field-label.field-label-lg {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 10px;
}

.input,
.textarea,
.select {
  width: 100%;
  padding: 13px 15px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  color: #fff;
  font-size: 15px;
  transition: border-color 0.15s, background 0.15s;
}

.textarea {
  line-height: 1.7;
  resize: vertical;
  border-radius: 10px;
}

.input:focus,
.textarea:focus,
.select:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.06);
}

.input[readonly],
.input[disabled] {
  background: rgba(255, 255, 255, 0.015);
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.5);
  cursor: not-allowed;
}

.input-static {
  width: 100%;
  padding: 13px 15px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
}

.select-wrap {
  position: relative;
}

.select {
  padding-right: 40px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.select option {
  background: #141832;
}

.select-caret {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
}

.lock-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.3);
}

.field-input-locked {
  position: relative;
}

.field-input-locked .input {
  padding-right: 44px;
}

/* ===== Footer ===== */

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 40px 40px 48px;
}

.site-footer.simple {
  padding: 32px 40px;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
}

.footer-brand {
  max-width: 300px;
}

.footer-brand .logo {
  margin-bottom: 14px;
}

.footer-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.9;
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}

.footer-col-title {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 14px;
  letter-spacing: 1px;
}

.footer-col-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}

.footer-col-list a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-col-list span {
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom {
  max-width: 1120px;
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
}

.site-footer.simple .footer-bottom {
  max-width: 1120px;
  margin: 0 auto;
  padding-top: 0;
  border-top: none;
  text-align: center;
}

/* ===== Inline confirmation message ===== */

.confirm-msg {
  font-size: 14px;
  color: var(--accent);
  display: none;
}

.confirm-msg.is-visible {
  display: inline;
}

/* ===== Alert Modal（全站共用） ===== */

.alert-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.alert-modal[hidden] {
  display: none !important;
}

.alert-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 25, 0.72);
  backdrop-filter: blur(4px);
}

.alert-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 28px 28px 24px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(160deg, #141832, #0e1126);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

.alert-modal__title {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
}

.alert-modal__body {
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.82);
  word-break: break-word;
}

.alert-modal__body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.alert-modal__body a:hover {
  color: #fff;
}

.alert-modal__ok {
  width: 100%;
  padding: 12px;
}

.alert-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.alert-modal__actions.has-secondary {
  flex-direction: row-reverse;
}

.alert-modal__actions.has-secondary .alert-modal__ok,
.alert-modal__actions.has-secondary .alert-modal__secondary {
  flex: 1 1 0;
  width: auto;
}

.alert-modal__secondary[hidden] {
  display: none !important;
}

body.alert-modal-open {
  overflow: hidden;
}
