:root {
  --ink: #0a1732;
  --muted: #62708a;
  --line: #dfe6f0;
  --surface: #f4f7fb;
  --blue: #2659a6;
  --blue-2: #4e98dd;
  --navy: #14295e;
  --white: #fff;
  --green: #159b72;
  --shadow: 0 20px 60px rgba(16, 40, 85, .11);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font-family: "DM Sans", "Noto Sans TC", sans-serif; background: var(--white); }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.site-header { height: 78px; padding: 0 clamp(24px, 6vw, 92px); display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.9); border-bottom: 1px solid rgba(216,225,238,.7); backdrop-filter: blur(16px); }
.brand img { display: block; width: 184px; height: 62px; object-fit: contain; object-position: left center; }
.desktop-nav { display: flex; align-items: center; gap: 32px; color: #34415a; font-size: 14px; font-weight: 600; }
.desktop-nav a:hover { color: var(--blue); }
.nav-admin { padding: 11px 18px; border: 1px solid #cbd7e7; border-radius: 999px; }
.menu-button { display: none; border: 0; background: none; font-size: 24px; }

.hero { min-height: 650px; padding: 92px clamp(24px, 8vw, 132px) 74px; position: relative; overflow: hidden; background: linear-gradient(145deg, #f7faff 0%, #fff 52%, #edf5ff 100%); }
.hero::before { content: ""; position: absolute; width: 670px; height: 670px; border-radius: 50%; right: -190px; top: -190px; background: radial-gradient(circle, rgba(75,151,221,.18), rgba(75,151,221,0) 68%); }
.hero-grid { max-width: 1240px; margin: auto; display: grid; grid-template-columns: 1.05fr .95fr; gap: 70px; align-items: center; }
.eyebrow { display: inline-flex; gap: 9px; align-items: center; color: var(--blue); font-size: 13px; letter-spacing: .16em; font-weight: 700; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--blue-2); }
.hero h1 { max-width: 720px; margin: 24px 0; font-size: clamp(43px, 5vw, 72px); line-height: 1.08; letter-spacing: -.045em; }
.gradient-text { background: linear-gradient(100deg, var(--navy), var(--blue-2)); -webkit-background-clip: text; color: transparent; }
.hero-copy { max-width: 610px; color: var(--muted); font-size: 18px; line-height: 1.9; }
.hero-actions { display: flex; gap: 14px; margin-top: 36px; }
.primary-button, .secondary-button { border: 0; border-radius: 12px; padding: 15px 23px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-weight: 700; transition: .2s ease; }
.primary-button { color: #fff; background: linear-gradient(120deg, var(--navy), #347cca); box-shadow: 0 12px 24px rgba(36, 88, 166, .24); }
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(36, 88, 166, .3); }
.secondary-button { color: var(--ink); background: #fff; border: 1px solid var(--line); }
.secondary-button:hover { border-color: #9db7da; }
.hero-visual { position: relative; min-height: 430px; display: grid; place-items: center; }
.orbit { width: 390px; height: 390px; position: absolute; border: 1px solid rgba(60,125,201,.2); border-radius: 50%; animation: spin 22s linear infinite; }
.orbit::before, .orbit::after { content: ""; position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--blue-2); box-shadow: 0 0 25px var(--blue-2); }
.orbit::before { top: 40px; left: 62px; }.orbit::after { bottom: 46px; right: 50px; }
@keyframes spin { to { transform: rotate(360deg); } }
.logo-core { width: 240px; height: 240px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.7); box-shadow: var(--shadow); backdrop-filter: blur(10px); }
.logo-core img { width: 154px; }
.floating-chip { position: absolute; padding: 12px 16px; border-radius: 12px; font-size: 13px; font-weight: 600; background: #fff; box-shadow: 0 12px 35px rgba(15,38,80,.12); }
.chip-one { left: 2%; top: 21%; }.chip-two { right: 0; bottom: 25%; }.chip-three { left: 12%; bottom: 5%; }

.section { max-width: 1240px; margin: auto; padding: 92px 28px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 38px; }
.section-heading h2 { margin: 9px 0 0; font-size: clamp(31px, 4vw, 46px); letter-spacing: -.035em; }
.section-heading p { max-width: 500px; color: var(--muted); line-height: 1.8; }
.text-link { color: var(--blue); font-weight: 700; }
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tool-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: .25s ease; }
.tool-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.tool-art { height: 205px; padding: 26px; position: relative; display: flex; align-items: flex-end; overflow: hidden; background: var(--tool-bg); }
.tool-art::after { content: ""; position: absolute; width: 180px; height: 180px; right: -44px; top: -60px; border: 1px solid rgba(255,255,255,.26); border-radius: 50%; }
.tool-icon { width: 66px; height: 66px; border-radius: 18px; display: grid; place-items: center; color: #fff; background: rgba(255,255,255,.17); border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(8px); font-size: 31px; }
.tool-body { padding: 24px; }
.tool-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tag { padding: 6px 9px; color: var(--blue); background: #edf4ff; border-radius: 999px; font-size: 12px; font-weight: 700; }
.status { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-size: 12px; font-weight: 700; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.offline { color: #8b95a7; }
.tool-card h3 { font-size: 21px; margin: 18px 0 9px; }
.tool-card p { min-height: 52px; margin: 0 0 20px; color: var(--muted); line-height: 1.65; font-size: 14px; }
.card-link { display: flex; justify-content: space-between; color: var(--ink); font-weight: 700; font-size: 14px; }
.card-link span { transition: transform .2s; }.tool-card:hover .card-link span { transform: translateX(4px); }

.value-strip { padding: 72px max(28px, calc((100vw - 1184px)/2)); color: #fff; background: #0d1c3f; }
.value-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 42px; }
.value-item strong { display: block; margin-bottom: 12px; font-size: 20px; }
.value-item p { margin: 0; color: #acb9d2; line-height: 1.75; }
.value-number { color: #73b1eb; font-size: 13px; font-weight: 700; letter-spacing: .1em; }

.page-hero { padding: 76px 28px 54px; text-align: center; background: linear-gradient(145deg,#f5f8fd,#edf5ff); }
.page-hero h1 { margin: 15px 0; font-size: clamp(38px,5vw,60px); letter-spacing: -.04em; }
.page-hero p { margin: auto; max-width: 650px; color: var(--muted); line-height: 1.8; }
.filter-bar { display: flex; gap: 12px; justify-content: space-between; margin-bottom: 30px; }
.search-wrap { flex: 1; max-width: 460px; }
.field, .search-wrap input { width: 100%; padding: 13px 15px; color: var(--ink); border: 1px solid var(--line); border-radius: 11px; background: #fff; outline: none; }
.field:focus, .search-wrap input:focus { border-color: #6a9bd3; box-shadow: 0 0 0 3px rgba(69,139,210,.1); }
.filter-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-pill { padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.filter-pill.active { color: #fff; border-color: var(--blue); background: var(--blue); }

.detail-hero { padding: 70px max(28px, calc((100vw - 1184px)/2)); background: linear-gradient(140deg,#f7f9fd,#eaf3ff); }
.back-link { color: var(--blue); font-size: 14px; font-weight: 700; }
.detail-grid { display: grid; grid-template-columns: 1fr .85fr; gap: 70px; align-items: center; margin-top: 42px; }
.detail-grid h1 { margin: 16px 0; font-size: clamp(42px,5vw,66px); letter-spacing: -.045em; }
.lead { color: var(--muted); font-size: 18px; line-height: 1.8; }
.detail-art { height: 360px; display: grid; place-items: center; color: #fff; border-radius: 28px; background: var(--tool-bg); box-shadow: var(--shadow); font-size: 92px; }
.detail-body { max-width: 1050px; margin: auto; padding: 84px 28px; }
.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin: 35px 0 70px; }
.feature { padding: 25px; border: 1px solid var(--line); border-radius: 18px; }
.feature b { display: block; margin-bottom: 9px; }.feature p { margin: 0; color: var(--muted); line-height: 1.6; font-size: 14px; }
.video-shell { aspect-ratio: 16/9; border-radius: 24px; overflow: hidden; display: grid; place-items: center; color: #fff; background: #0d1c3f; }
.video-shell iframe { width: 100%; height: 100%; border: 0; }
.video-placeholder { text-align: center; }.video-placeholder span { display: inline-grid; width: 72px; height: 72px; place-items: center; margin-bottom: 15px; border-radius: 50%; background: rgba(255,255,255,.12); font-size: 28px; }

.admin-layout { min-height: calc(100vh - 78px); display: grid; grid-template-columns: 245px 1fr; background: #f4f7fb; }
.admin-entry { background: #f4f7fb; }
.admin-topbar { height: 72px; padding: 0 clamp(20px,4vw,56px); display: flex; align-items: center; justify-content: space-between; background: #fff; border-bottom: 1px solid var(--line); }
.admin-topbar .brand img { width: 170px; height: 55px; object-fit: contain; }
.admin-topbar > div { display: flex; align-items: center; gap: 12px; }
.admin-badge { padding: 7px 10px; color: var(--blue); background: #edf4ff; border-radius: 999px; font-size: 12px; font-weight: 700; }
.small-button { padding: 9px 13px; font-size: 13px; }
.admin-sidebar { padding: 32px 22px; color: #dbe7f9; background: #0c1936; }
.admin-sidebar h2 { margin: 0 0 32px; color: #fff; font-size: 18px; }
.admin-nav button { width: 100%; margin: 3px 0; padding: 12px 14px; color: inherit; text-align: left; border: 0; border-radius: 9px; background: transparent; }
.admin-nav button.active, .admin-nav button:hover { color: #fff; background: rgba(255,255,255,.1); }
.admin-main { padding: 45px clamp(24px,5vw,70px); }
.admin-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.admin-head h1 { margin: 0; font-size: 30px; }.admin-head p { margin: 7px 0 0; color: var(--muted); }
.admin-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-bottom: 26px; }
.stat-card { padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.stat-card span { color: var(--muted); font-size: 13px; }.stat-card strong { display: block; margin-top: 8px; font-size: 28px; }
.admin-table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 16px 18px; text-align: left; border-bottom: 1px solid #e8edf4; white-space: nowrap; }
th { color: var(--muted); background: #f9fbfd; font-size: 12px; }
.table-product { display: flex; align-items: center; gap: 11px; font-weight: 700; }
.mini-icon { width: 37px; height: 37px; display: grid; place-items: center; color: #fff; border-radius: 10px; background: var(--tool-bg); }
.icon-button { padding: 8px 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.icon-button.danger { color: #b93442; border-color: #f0cbd0; }
.icon-button.danger:hover { color: #fff; border-color: #b93442; background: #b93442; }
.table-actions { display: flex; align-items: center; gap: 7px; }
.table-link { color: var(--blue); font-weight: 700; }
.inline-status { min-width: 112px; padding: 8px 9px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #fff; }
.modal-backdrop { position: fixed; inset: 0; z-index: 40; padding: 24px; display: grid; place-items: center; background: rgba(4,13,31,.63); }
.modal { width: min(680px,100%); max-height: 90vh; overflow: auto; padding: 30px; background: #fff; border-radius: 20px; box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }.modal-header h2 { margin: 0; }.close-button { border: 0; background: none; font-size: 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.form-group { display: grid; gap: 7px; }.form-group.full { grid-column: 1/-1; }.form-group label { font-size: 13px; font-weight: 700; }.form-group textarea { min-height: 92px; resize: vertical; }
.form-actions { margin-top: 25px; display: flex; justify-content: flex-end; gap: 10px; }
.empty { padding: 70px 20px; text-align: center; color: var(--muted); }
.toast { position: fixed; right: 25px; bottom: 25px; z-index: 60; padding: 13px 18px; color: #fff; background: #173d75; border-radius: 10px; box-shadow: var(--shadow); opacity: 0; transform: translateY(12px); pointer-events: none; transition: .25s; }.toast.show { opacity: 1; transform: translateY(0); }
.login-page { min-height: calc(100vh - 72px); padding: 35px 20px; display: grid; place-items: center; background: radial-gradient(circle at 70% 10%,rgba(78,152,221,.18),transparent 35%),#f4f7fb; }
.login-card { width: min(430px,100%); padding: 40px; text-align: center; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: var(--shadow); }
.login-card > img { width: 86px; height: 86px; object-fit: contain; }.login-card h1 { margin: 20px 0 8px; }.login-card p { margin: 0 0 26px; color: var(--muted); }.login-card .form-group { text-align: left; }.login-card .primary-button { width: 100%; margin-top: 18px; }
.login-error { min-height: 22px; margin-top: 10px; color: #b93442; font-size: 13px; }
.admin-toolbar { margin-bottom: 18px; display: flex; justify-content: space-between; gap: 15px; }.admin-toolbar .search-wrap { max-width: 420px; }
.settings-card { max-width: 620px; padding: 30px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }.settings-card h2 { margin-top: 0; }.settings-card > p { color: var(--muted); line-height: 1.7; }.settings-card form { margin-top: 25px; display: grid; gap: 17px; }.settings-card .primary-button { justify-self: start; }
.site-footer { padding: 50px clamp(24px,7vw,100px) 30px; display: grid; grid-template-columns: 1fr auto; gap: 35px; border-top: 1px solid var(--line); }.site-footer img { width: 180px; }.site-footer p { color: var(--muted); }.footer-links { display: flex; gap: 28px; align-items: center; font-size: 14px; }.copyright { grid-column: 1/-1; margin: 0; padding-top: 22px; border-top: 1px solid var(--line); font-size: 12px; }

@media (max-width: 900px) {
  .hero-grid, .detail-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 65px; }.hero-visual { min-height: 360px; }.tool-grid { grid-template-columns: repeat(2,1fr); }.value-grid { grid-template-columns: 1fr; }.feature-grid { grid-template-columns: 1fr; }.admin-layout { grid-template-columns: 1fr; }.admin-sidebar { display: none; }
}
@media (max-width: 620px) {
  .site-header { height: 68px; }.brand img { width: 155px; }.desktop-nav { display: none; }.menu-button { display: block; }.hero { padding: 55px 22px; }.hero h1 { font-size: 42px; }.hero-visual { transform: scale(.85); margin: -20px; }.hero-actions { flex-direction: column; }.tool-grid { grid-template-columns: 1fr; }.section { padding: 65px 20px; }.section-heading, .filter-bar, .admin-head { align-items: stretch; flex-direction: column; }.filter-bar { display: flex; }.filter-pills { overflow: auto; flex-wrap: nowrap; }.form-grid, .admin-stats { grid-template-columns: 1fr; }.site-footer { grid-template-columns: 1fr; }.footer-links { flex-direction: column; align-items: flex-start; gap: 14px; }.detail-art { height: 260px; }.admin-main { padding: 30px 16px; }.admin-topbar .admin-badge { display:none; }.admin-toolbar { flex-direction:column; }.login-card { padding:28px 22px; }
}
