/* DIYDM Page Styles - scoped and consistent with site palette */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
:root {
  --primary:#4682B4; --primary-600:#356792; --bg:#f5f6f8; --text:#333; --muted:#666;
  --surface:#ffffff; --border:rgba(0,0,0,0.12); --shadow-soft:0 1px 2px rgba(0,0,0,0.06);
  --radius:12px;
  --mega-offset-y: 0px;
}
body { margin:0; color:var(--text); background:var(--bg);
  font-family:-apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", "Noto Sans TC", "Microsoft JhengHei", Arial, Helvetica, sans-serif;
  line-height:1.6; }

/* layout */
.page { min-height: 100vh; display:flex; flex-direction:column; }
.container { width:100%; max-width:1200px; margin:0 auto; padding:0 28px; }
@media (min-width: 1024px) { .container { padding: 0 48px; } }
@media (min-width: 1440px) { .container { padding: 0 80px; } }

/* hero */
.hero { background: linear-gradient(180deg, rgba(70,130,180,0.10), rgba(70,130,180,0.02)); border-bottom:1px solid var(--border); }
.hero .brand { padding: 48px 0 24px; }
.titles { text-align: center; }
.titles h1 { font-size: clamp(32px, 6vw, 48px); font-weight: 800; line-height: 1.2; letter-spacing: 0.01em; margin: 0; background: linear-gradient(90deg, #3aa1ff 0%, #9f5cf7 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.titles .subtitle { color:var(--muted); font-size: 15px; text-align: center; max-width: 720px; margin: 10px auto 0; }

/* content */
.content { padding: 40px 0 80px; }

/* grid of plans */
.grid { display:grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 980px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } }
.card { background:var(--surface); border:1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-soft); padding:20px; display:flex; flex-direction:column; gap:14px; position: relative; overflow: hidden; }
/* top gradient bar for plan cards (match diydmorig) */
.plan-card::before { content:""; position:absolute; left:0; top:0; width:100%; height:4px; background: linear-gradient(90deg, #3aa1ff 0%, #9f5cf7 100%); }
.plan-header { display:flex; align-items:flex-start; justify-content:space-between; }
.plan-title { font-size:18px; margin:0 0 6px; }
.taglist { display:flex; gap:6px; margin: 4px 0 8px; }
.tag { background: rgba(70,130,180,0.12); color: var(--primary-600); font-weight:600; padding:4px 8px; border-radius:999px; font-size:12px; }
.plan-price { margin-top:6px; font-size:18px; font-weight:700; color:#111; }
.specs { list-style:none; margin:0; padding:0; display:grid; grid-template-columns: 1fr; row-gap:6px; }
.specs li { font-size:14px; color:#333; }
.sub-note { display:inline-block; margin-left:6px; font-size:12px; color:var(--muted); }
.sub-note.accent { color: var(--primary-600); font-weight:600; }

/* price banner */
.price-banner { margin-top: 26px; background:var(--surface); border:1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-soft); padding: 22px; display:flex; align-items:center; justify-content:space-between; gap:16px; }
.price-wrap { display:grid; grid-template-columns: 1fr; row-gap:4px; }
.price-label { font-size: 14px; color: var(--muted); }
.price-value { font-size: 18px; font-weight:700; color:#111; }
.price-note { font-size: 13px; color: var(--muted); }
.cta { display:inline-block; padding: 10px 16px; border-radius: 999px; background: var(--primary); color:#fff; text-decoration:none; font-weight:700; box-shadow: var(--shadow-soft); }
.cta:hover { background: var(--primary-600); }

/* notes */
.notes { margin-top: 30px; }
.notes ul { list-style: disc; margin: 0; padding-left: 18px; color: var(--muted); }
.notes li { margin: 6px 0; }

/* footer */
.footer { margin-top:auto; border-top:1px solid var(--border); background:var(--surface); }
.footer .container { padding: 18px 20px; color: var(--muted); font-size: 14px; }

/* responsive tweaks */
@media (max-width:768px){ .price-banner { flex-direction:column; align-items:flex-start; } .cta { align-self:flex-end; } }

/* Shared header fallback for DIYDM: align with other pages */
.site-header { position: sticky; top: 0; z-index: 1004; background: var(--surface); border-bottom: none; }
.header-inner { max-width: 1200px; margin: 0 auto; padding: 15px 20px 0 0; height: 85px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; --menu-offset-x: 0; --header-height: 85px; position: relative; }
.menu { list-style: none; display: flex; align-items: center; gap: 40px; }
@media (min-width: 769px) { .menu { transform: translateX(var(--menu-offset-x)); } }
.menu > li { position: relative; }
.menu > li > a { display: flex; align-items: center; justify-content: flex-start; padding: 6px 6px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; }
.menu > li > a:hover { color: var(--primary); }
.header-left { display: flex; align-items: center; }
.header-center { flex: 1; display: flex; justify-content: flex-start; }
.header-right { display: flex; align-items: center; gap: 12px; }
@media (min-width: 769px) { .header-inner .nav-toggle { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); } }
.nav-toggle { display: none; width: 32px; height: 32px; cursor: pointer; position: relative; padding: 0; border: none; background: transparent; outline: none; box-shadow: none; -webkit-appearance: none; appearance: none; -webkit-tap-highlight-color: transparent; border-radius: 0; }
.nav-toggle span { position: absolute; left: 4px; right: 4px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }
.nav-toggle span:nth-child(1) { top: 9px; }
.nav-toggle span:nth-child(2) { top: 15px; }
.nav-toggle span:nth-child(3) { top: 21px; }
@media (max-width: 768px) { .nav-toggle { display: inline-block; } }
.nav-toggle.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.logo { display: inline-flex; align-items: center; align-self: center; justify-content: flex-start; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); height: calc(var(--header-height) - 10px); margin: 0; overflow: hidden; }
.logo img { height: 100%; max-height: var(--header-height); width: auto; max-width: 100%; display: block; object-fit: contain; transform: none; }
.submenu { position: absolute; left: 0; top: 100%; min-width: 260px; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-soft); border-radius: var(--radius); padding: 12px 0; display: none; }
.submenu a { display: block; padding: 10px 16px; color: var(--text); text-decoration: none; white-space: nowrap; }
.submenu a:hover { background: rgba(70,130,180,0.12); color: var(--primary); }
.menu>li:not(.has-mega):hover .submenu { display: block; }
.menu > li.has-mega { position: static; }
.toggle-list { display: none; }
/* Mega 面板樣式由 menu.css 統一管理；此檔不再覆寫 .mega-panel 或 ::before */