/* --- Root Variables: Yellow/Black Theme --- */
:root {
    --bg-dark: #101010;      /* 深黑背景 */
    --bg-darker: #050505;    /* 頁腳極黑 */
    --bg-light: #F4F4F4;     /* 淺灰白 */
    
    /* 修改 1: 顏色換成 #F9E73B */
    --bg-accent: #F9E73B;      
    
    --text-dark: #101010;    
    --text-light: #F4F4F4;   
    --text-muted: #9CA3AF;   
    
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --radius-lg: 30px;
    --radius-sm: 8px;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px; /* 避免被 fixed navbar 擋住，90 可依你的 navbar 高度調整 */
}


* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-body); color: var(--text-light); background: var(--bg-dark); line-height: 1.6; overflow-x: hidden; }

/* Typography */
h1, h2, h3, h4, h5 { font-family: var(--font-heading); text-transform: uppercase; font-weight: 700; letter-spacing: 0.5px; }
h1 { font-size: 4.5rem; color: var(--text-light); margin-bottom: 20px; line-height: 1.2; }
/* 修正 2: 增加行高 */
h2 { font-size: 3rem; margin-bottom: 20px; line-height: 1.4; } 
p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 20px; }

/* Utility Classes */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-padding { padding: 80px 0; }
.bg-light { background-color: var(--bg-light); color: var(--text-dark); }
.bg-accent { background-color: var(--bg-accent); color: var(--text-dark); }
.bg-darker { background-color: var(--bg-darker); }
.text-accent { color: var(--bg-accent); }
.text-dark { color: var(--text-dark); }
.text-white { color: white; }
.text-center { text-align: center; }
.text-stroke-dark { -webkit-text-stroke: 1px var(--text-dark); color: transparent; }
.rounded-section { border-radius: var(--radius-lg); margin: 0 20px; width: auto; }

/* --- Buttons --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 32px; border-radius: 50px; font-weight: 600; text-transform: uppercase; font-family: var(--font-heading); letter-spacing: 1px; transition: 0.3s; cursor: pointer; text-decoration: none; }
.btn-accent { background: var(--bg-accent); color: var(--text-dark); border: 2px solid var(--bg-accent); }
.btn-accent:hover { background: transparent; color: var(--bg-accent); box-shadow: 0 0 20px rgba(249, 231, 59, 0.4); }
.btn-lg { padding: 18px 48px; font-size: 1.2rem; }

/* --- Navbar --- */
.navbar { padding: 20px 0; position: absolute; width: 100%; top: 0; z-index: 1000; }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.8rem; font-family: var(--font-heading); font-weight: 700; color: var(--text-light); text-decoration: none; }
.logo .highlight { color: var(--bg-accent); }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a:not(.btn) { color: var(--text-light); font-weight: 500; text-transform: uppercase; font-size: 0.9rem; text-decoration: none; }
.nav-links a:not(.btn):hover { color: var(--bg-accent); }

/* --- Hero Section --- */
.hero { padding: 180px 0 80px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.tag { display: inline-block; border: 1px solid var(--bg-accent); color: var(--bg-accent); padding: 8px 16px; border-radius: 50px; font-family: var(--font-heading); font-size: 0.85rem; margin-bottom: 24px; letter-spacing: 1px; }
.subtitle { max-width: 500px; margin-bottom: 40px; color: #ccc; }
.cta-group { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.trust-badge { display: flex; align-items: center; gap: 15px; color: #ccc; font-size: 0.9rem; }
.avatars { display: flex; }
.avatar { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--bg-dark); margin-left: -10px; display: block; object-fit: cover; }

/* Hero Visual Fix */
.visual-wrapper { position: relative; max-width: 500px; margin: 0 auto; }
.image-container { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 2px solid rgba(255,255,255,0.1); width: 100%; aspect-ratio: 4/3; }
.hero-img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: 0.5s; display: block; }
.image-container:hover .hero-img { transform: scale(1.05); }
.floating-tag { position: absolute; background: var(--bg-accent); color: var(--text-dark); padding: 10px 20px; border-radius: 50px; font-weight: 700; font-family: var(--font-heading); font-size: 0.9rem; box-shadow: 0 10px 20px rgba(0,0,0,0.3); display: flex; gap: 8px; align-items: center; z-index: 2; animation: float 3s ease-in-out infinite; white-space: nowrap; }
.tag-top { top: 40px; right: -30px; animation-delay: 0s; }
.tag-bottom { bottom: 40px; left: -30px; animation-delay: 1.5s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* --- About Section & Highlight List --- */
.split-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 60px; align-items: center; }
.image-frame-accent { border-radius: var(--radius-lg); overflow: hidden; border: 0; box-shadow: var(--shadow); }
.image-frame-accent img { width: 100%; display: block; }
.section-label { font-family: var(--font-heading); color: #666; font-weight: 700; letter-spacing: 2px; display: block; margin-bottom: 10px; }
.highlight-marker { background: var(--bg-accent); color: var(--text-dark); padding: 0 10px; }
.split-content p { color: #555; }

/* 修改 1: 顯眼的列表設計 */
.highlight-list { margin-top: 30px; list-style: none; display: flex; flex-direction: column; gap: 20px; }
.highlight-list li { display: flex; align-items: center; gap: 16px; background: white; padding: 15px; border-radius: 16px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); border-left: 5px solid var(--bg-accent); }
.list-icon { width: 40px; height: 40px; background: var(--bg-accent); color: var(--text-dark); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.highlight-list span { font-weight: 700; color: var(--text-dark); font-family: var(--font-heading); letter-spacing: 0.5px; font-size: 1.1rem; }

/* --- Problem Section --- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 40px; }
.problem-card { background: rgba(255,255,255,0.05); padding: 40px 30px; border-radius: var(--radius-lg); border: 1px solid rgba(255,255,255,0.1); transition: 0.3s; }
.problem-card:hover { background: rgba(255,255,255,0.1); transform: translateY(-5px); }
.icon-circle { width: 60px; height: 60px; background: rgba(249, 231, 59, 0.1); color: var(--bg-accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 20px; }
.problem-card h4 { color: var(--text-light); margin-bottom: 15px; font-size: 1.2rem; }
.problem-card p { color: #ccc; font-size: 0.95rem; margin: 0; }

/* --- Services --- */
.flex-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 50px; }
.header-desc { max-width: 400px; text-align: right; color: #444; margin: 0; }
.service-list { display: flex; flex-direction: column; gap: 15px; }
.service-row { display: grid; grid-template-columns: 1fr 180px; gap: 40px; align-items: center; padding: 40px; background: rgba(255,255,255,0.5); border-radius: 20px; border: 1px solid rgba(0,0,0,0.05); transition: 0.3s; }
.service-row:hover { background: white; transform: scale(1.01); box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.srv-info h3 { font-size: 1.5rem; margin-bottom: 10px; color: var(--text-dark); }
.srv-info p { margin: 0; color: #666; }
.srv-tags { display: flex; flex-direction: column; gap: 8px; text-align: right; }
.srv-tags span { font-size: 0.8rem; font-weight: 700; color: var(--text-dark); text-transform: uppercase; border: 1px solid #ccc; padding: 4px 10px; border-radius: 50px; display: inline-block; width: fit-content; align-self: flex-end; }

.srv-info {
  max-width: 720px;
}

.srv-info h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.srv-desc {
  font-size: 1rem;
  color: #555;
  margin-bottom: 10px;
  line-height: 1.6;
}

.srv-sub {
  font-size: 0.95rem;
  color: #777;
  margin-bottom: 18px;
}

.srv-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.srv-points li {
  position: relative;
  padding-left: 20px;
  font-size: 0.9rem;
  color: #555;
  line-height: 1.5;
}

.srv-points li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: #000000; /* 你現在用的黃色系 */
  font-weight: bold;
}


/* --- Portfolio 3x3 Grid --- */
.portfolio-grid-3x3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.work-card { background: #222; border-radius: 16px; overflow: hidden; position: relative; aspect-ratio: 1/1; cursor: pointer; group: hover; }
.work-img { width: 100%; height: 100%; background-size: cover; background-position: center; transition: 0.5s; opacity: 0.8; }
.work-card:hover .work-img { transform: scale(1.1); opacity: 1; }
.thumb-1 { background-image: linear-gradient(45deg, #101010, #333); }
.thumb-2 { background-image: linear-gradient(45deg, #2c1a00, #4d2e00); }
.thumb-3 { background-image: linear-gradient(45deg, #1a1a1a, #444); }
.thumb-4 { background-image: linear-gradient(45deg, #3d2b00, #5c4100); }
.work-meta { position: absolute; bottom: 0; left: 0; width: 100%; padding: 20px; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); color: white; transform: translateY(10px); transition: 0.3s; }
.work-card:hover .work-meta { transform: translateY(0); }
.work-meta h5 { margin: 0; font-size: 1.2rem; }
.work-meta span { font-size: 0.8rem; color: var(--bg-accent); font-weight: 600; text-transform: uppercase; }

.work-img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* --- Audit CTA --- */
.audit-box { background: var(--bg-darker); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-lg); padding: 80px; text-align: center; }
.tag-accent { color: var(--bg-accent); font-weight: 700; letter-spacing: 2px; margin-bottom: 20px; display: block; }
.audit-content h2 { font-size: 3.5rem; margin-bottom: 20px; }
.audit-content p { max-width: 600px; margin: 0 auto 40px; color: #ccc; }

/* --- Footer --- */
.footer-cta { padding-top: 60px; padding-bottom: 20px; }
.footer-grid { display: grid; grid-template-columns: 350px 1fr; gap: 80px; align-items: start; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 60px; margin-bottom: 20px; }
.about-card h4 { color: var(--bg-accent); font-size: 1.2rem; margin-bottom: 15px; }
.about-card p { color: #ccc; font-size: 1rem; margin-bottom: 20px; }
.profile-mini { display: flex; gap: 15px; align-items: center; }
.profile-circle { width: 50px; height: 50px; background: #333; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--bg-accent); font-size: 1.2rem; }
.cta-main h2 { font-size: 3rem; margin-bottom: 20px; line-height: 1.1; }
.cta-main p { color: #ccc; font-size: 1.2rem; margin-bottom: 30px; }
.copyright { text-align: center; color: #666; font-size: 0.9rem; }

.profile-photo {
  overflow: hidden;
  background: #333; /* 保留你原本的深色底 */
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    .hero h1 { font-size: 3rem; }
    .hero-grid, .split-layout { grid-template-columns: 1fr; gap: 50px; }
    .portfolio-grid-3x3 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: 1fr; }
    
    /* 修改 2: 手機版 Services 排版優化 */
    .service-row { 
        grid-template-columns: 1fr; /* 單欄 */
        /* text-align: center;*/ /* 文字置中 */
        gap: 20px; /* 間距縮小 */
    }
    .srv-tags { 
        align-items: center; /* 讓 flex 子元素在交叉軸置中 */
        justify-content: center; /* 如果是 row 佈局，這個讓內容置中 */
        text-align: center; 
        flex-direction: row; /* 讓標籤並排顯示，不要垂直堆疊 */
        flex-wrap: wrap; /* 如果標籤太多，允許換行 */
    }
    .srv-tags span {
        align-self: center; /* 覆蓋原本的 align-self: flex-end */
        width: auto; /* 讓寬度自適應 */
    }

    .nav-links { display: none; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .flex-header { flex-direction: column; align-items: flex-start; gap: 10px; }
    .header-desc { text-align: left; }
    .rounded-section { margin: 0; border-radius: 0; }
    
    .tag-top { right: -10px; top: 20px; }
    .tag-bottom { left: -10px; bottom: 20px; }
}

@media (max-width: 768px) {
    .section-padding { padding: 60px 0; }
    .portfolio-grid-3x3 { grid-template-columns: 1fr; }
    .audit-content h2 { font-size: 2.2rem; }
    .cta-main h2 { font-size: 2.2rem; }
}