@charset "utf-8";
/* ==========================================
   Style reference: 竹軒顧問室 bambu88.com
   Traditional Taiwanese web design style
   Color: warm beige-pink #F7E5D2
   Font: Microsoft JhengHei (微軟正黑體)
   ========================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Microsoft JhengHei', '微軟正黑體', 'PingFang TC', 'Noto Sans TC', sans-serif;
  background-color: #F7E5D2;
  color: #333;
  line-height: 1.8;
  overflow-x: hidden;
}

/* ======== 左側固定導航 (Desktop) ======== */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;
  height: 100vh;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 260 700"><defs><linearGradient id="g" x1="0" y1="0" x2="260" y2="700"><stop offset="0%" stop-color="%23faf3e8"/><stop offset="100%" stop-color="%23efe0cb"/></linearGradient></defs><rect width="260" height="700" fill="url(%23g)"/></svg>') no-repeat;
  background-size: cover;
  box-shadow: 2px 0 12px rgba(0,0,0,0.1);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  padding-top: 0;
}

.sidebar-logo {
  text-align: center;
  padding: 50px 30px 30px;
  border-bottom: 1px solid rgba(139,69,19,0.1);
}

.sidebar-logo .logo-text {
  font-size: 1.6rem;
  font-weight: bold;
  color: #4a3525;
  letter-spacing: 0.08em;
  line-height: 1.3;
}
.sidebar-logo .logo-en {
  display: block;
  font-size: 0.65rem;
  color: #8b7355;
  letter-spacing: 0.15em;
  margin-top: 2px;
}

.sidebar-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px 0;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 30px 15px 40px;
  color: #4a3525;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  transition: background 200ms;
  border-left: 3px solid transparent;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: rgba(139,69,19,0.08);
  border-left-color: #8b4513;
  color: #6b3410;
}

.sidebar-nav .nav-icon {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.sidebar-bottom {
  padding: 20px 30px;
  font-size: 0.72rem;
  color: #8b7355;
  border-top: 1px solid rgba(139,69,19,0.1);
  text-align: center;
  line-height: 1.6;
}

/* ======== 主內容區域 ======== */
.main-content {
  margin-left: 260px;
  min-height: 100vh;
}

/* ======== 頁頭橫幅 ======== */
.page-banner {
  background: linear-gradient(180deg, #fdf6ee 0%, #f7e5d2 100%);
  padding: 60px 40px 45px;
  text-align: center;
  border-bottom: 1px solid rgba(139,69,19,0.1);
  position: relative;
}

.page-banner h1 {
  font-size: 1.8rem;
  color: #4a3525;
  font-weight: bold;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}
.page-banner .banner-divider {
  width: 40px; height: 2px;
  background: #8b4513;
  margin: 12px auto;
}
.page-banner p {
  color: #8b7355;
  font-size: 0.95rem;
  max-width: 500px;
  margin: 0 auto;
}

/* ======== 內容區塊 ======== */
.content-section {
  padding: 45px 40px;
}

.inner {
  max-width: 800px;
  margin: 0 auto;
}

.section-title-box {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-title-box .st-sub {
  display: inline-block;
  font-size: 0.78rem;
  color: #8b4513;
  letter-spacing: 0.12em;
  border: 1px solid #8b4513;
  padding: 4px 18px;
  margin-bottom: 0.75rem;
}
.section-title-box h2 {
  font-size: 1.5rem;
  color: #4a3525;
  font-weight: bold;
  letter-spacing: 0.06em;
}
.section-title-box .st-line {
  width: 36px; height: 2px;
  background: #c4956a;
  margin: 10px auto 0;
}

/* ======== 按鈕 ======== */
.btn {
  display: inline-block;
  padding: 10px 28px;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  letter-spacing: 0.06em;
  transition: all 200ms;
}
.btn-primary {
  background: #8b4513;
  color: #fff;
  border: none;
}
.btn-primary:hover { background: #6b3410; }
.btn-outline {
  border: 2px solid #8b4513;
  color: #8b4513;
  background: transparent;
}
.btn-outline:hover { background: #8b4513; color: #fff; }

/* ======== 核心價值列表 ======== */
.value-list {
  display: flex; flex-direction: column;
  gap: 12px;
}
.value-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(139,69,19,0.12);
  padding: 12px 18px;
}
.value-item .v-num {
  width: 28px; height: 28px;
  background: #8b4513;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: bold;
  flex-shrink: 0;
}
.value-item .v-text {
  font-size: 0.92rem;
  color: #4a3525;
  letter-spacing: 0.04em;
}

/* ======== 服務卡片 ======== */
.svc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.svc-card {
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(139,69,19,0.1);
  padding: 24px 20px;
  text-align: center;
  transition: background 200ms;
}
.svc-card:hover { background: rgba(255,255,255,0.8); }
.svc-card .svc-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}
.svc-card h3 {
  font-size: 1rem;
  color: #4a3525;
  margin-bottom: 4px;
  letter-spacing: 0.04em;
}
.svc-card p {
  font-size: 0.82rem;
  color: #8b7355;
  line-height: 1.7;
}

/* ======== 委託方案卡片 (commission page) ======== */
.commission-blocks {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.comm-section {
  border: 1px solid rgba(139,69,19,0.15);
  background: rgba(255,255,255,0.5);
}
.comm-section-title {
  background: #8b4513;
  color: #fff;
  padding: 14px 22px;
  font-size: 1rem;
  font-weight: bold;
  letter-spacing: 0.06em;
}
.comm-plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.comm-plan {
  padding: 24px 22px;
  border-right: 1px solid rgba(139,69,19,0.08);
}
.comm-plan:last-child { border-right: none; }
.comm-plan .plan-badge {
  display: inline-block;
  font-size: 1rem;
  font-weight: bold;
  letter-spacing: 0.08em;
  padding: 5px 20px;
  margin-bottom: 12px;
}
.badge-fighter { background: rgba(139,69,19,0.1); color: #8b4513; }
.badge-flagship { background: #8b4513; color: #fff; }
.comm-plan h4 {
  font-size: 1rem;
  color: #4a3525;
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}
.comm-plan .plan-row {
  display: flex;
  padding: 6px 0;
  font-size: 0.85rem;
  border-bottom: 1px dotted rgba(139,69,19,0.1);
}
.comm-plan .plan-row:last-child { border: none; }
.comm-plan .plan-label {
  width: 100px; flex-shrink: 0;
  color: #8b4513; font-weight: bold;
}
.comm-plan .plan-value { color: #555; }

/* ======== 聯絡表單 ======== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.contact-info-block {
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(139,69,19,0.1);
  padding: 28px 24px;
}
.contact-info-block h3 {
  font-size: 1.15rem;
  color: #4a3525;
  margin-bottom: 4px;
  letter-spacing: 0.04em;
}
.contact-info-block .ci-subtitle {
  font-size: 0.8rem; color: #8b7355;
  margin-bottom: 20px;
}
.ci-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dotted rgba(139,69,19,0.1);
  font-size: 0.88rem;
}
.ci-item:last-child { border: none; }
.ci-item .ci-icon {
  width: 36px; height: 36px;
  background: rgba(139,69,19,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}
.ci-label { font-weight: bold; color: #4a3525; }
.ci-value { color: #8b7355; }

.contact-form-box {
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(139,69,19,0.1);
  padding: 28px 24px;
}
.form-group { margin-bottom: 14px; }
.form-group label {
  display: block;
  font-size: 0.82rem; color: #4a3525;
  font-weight: bold; margin-bottom: 4px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 10px 14px;
  border: 1px solid rgba(139,69,19,0.2);
  background: rgba(255,255,255,0.7);
  font-family: inherit; font-size: 0.85rem;
  color: #333;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #8b4513;
  box-shadow: 0 0 0 2px rgba(139,69,19,0.08);
}
.form-group textarea { min-height: 120px; resize: vertical; }

/* ======== Footer ======== */
.site-footer {
  background: #4a3525;
  color: #c4b0a0;
  padding: 36px 40px 24px;
  text-align: center;
  font-size: 0.82rem;
  line-height: 2;
  letter-spacing: 0.04em;
}
.site-footer .footer-links {
  display: flex; justify-content: center;
  gap: 24px; flex-wrap: wrap;
  margin-bottom: 12px;
}
.site-footer .footer-links a {
  color: #c4b0a0; text-decoration: none;
}
.site-footer .footer-links a:hover { color: #fff; }
.site-footer .footer-copyright {
  font-size: 0.75rem; color: #a09080;
}

/* ======== 手機漢堡選單 ======== */
.mobile-toggle {
  display: none;
  position: fixed; top: 14px; right: 16px; z-index: 1100;
  width: 36px; height: 36px;
  cursor: pointer;
  flex-direction: column; justify-content: center; gap: 5px;
  padding: 4px;
}
.mobile-toggle span {
  display: block; width: 24px; height: 2.5px;
  background: #4a3525; border-radius: 1px;
  transition: all 250ms;
}
.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,6px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-6px); }

/* ======== RWD ======== */
@media (max-width: 860px) {
  .sidebar {
    left: -280px;
    transition: left 280ms;
    width: 260px;
  }
  .sidebar.open { left: 0; box-shadow: 4px 0 24px rgba(0,0,0,0.25); }
  .mobile-toggle { display: flex; }
  .main-content { margin-left: 0; }
  .content-section { padding: 36px 20px; }
  .page-banner { padding: 48px 20px 36px; }
  .page-banner h1 { font-size: 1.4rem; }
  .svc-grid { grid-template-columns: 1fr; }
  .comm-plans { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
}

/* 桌電大螢幕微調 */
@media (min-width: 1400px) {
  .sidebar { width: 280px; }
  .main-content { margin-left: 280px; }
}
