/*
Theme Name: 天天AI 數位工作室
Theme URI: https://dailydailyai.com
Description: 為天天AI數位工作室設計的專業官網主題，展示技術SEO、AI自動化和程式開發服務
Version: 1.0.0
Author: 天天AI數位工作室
Author URI: https://dailydailyai.com
License: GPL-2.0+
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tiantian-ai
Domain Path: /languages
*/

/* ============================================
   顏色變數（基於LOGO設計）
   ============================================ */
:root {
    --primary-dark: #0a1628;
    --primary-blue: #1a3a52;
    --accent-blue: #00a4ff;
    --accent-light: #00d4ff;
    --text-dark: #1a1a1a;
    --text-light: #ffffff;
    --bg-light: #f5f7fa;
    --border-color: #e0e0e0;
    --shadow: 0 10px 30px rgba(0, 164, 255, 0.1);
    --shadow-hover: 0 15px 40px rgba(0, 164, 255, 0.15);
}

/* ============================================
   全局樣式
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--text-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   WordPress 基礎樣式
   ============================================ */
a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-blue);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-weight: 600;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   導航欄
   ============================================ */
.navbar, .site-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
}

.site-title a {
    color: var(--text-light);
    text-decoration: none;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.site-description {
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: var(--accent-light);
    display: block;
    margin-top: 0.25rem;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.main-navigation a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-light));
    transition: width 0.3s ease;
}

.main-navigation a:hover::after {
    width: 100%;
}

.main-navigation .menu-item.current-menu-item > a {
    color: var(--accent-light);
}

/* ============================================
   首頁/英雄區
   ============================================ */
.hero-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1a2a4a 100%);
    color: var(--text-light);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(0, 164, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(0, 164, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* ============================================
   按鈕樣式
   ============================================ */
.btn, button, input[type="submit"] {
    padding: 12px 32px;
    font-size: 1rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-light));
    color: var(--primary-dark);
    box-shadow: 0 10px 25px rgba(0, 164, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 164, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--accent-blue);
}

.btn-secondary:hover {
    background: var(--accent-blue);
    color: var(--primary-dark);
}

/* ============================================
   文章卡片
   ============================================ */
.post, .card {
    background: var(--text-light);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.post:hover, .card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
    border-color: var(--accent-blue);
}

.post-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

.post-title a {
    color: var(--primary-blue);
}

.post-title a:hover {
    color: var(--accent-blue);
}

.post-meta {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.post-content {
    color: #666;
    line-height: 1.8;
}

/* ============================================
   側邊欄
   ============================================ */
.sidebar {
    margin-top: 30px;
}

.widget {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid var(--accent-blue);
}

.widget-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

.widget ul {
    list-style: none;
}

.widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul a {
    color: var(--primary-blue);
}

.widget ul a:hover {
    color: var(--accent-blue);
}

/* ============================================
   表單樣式
   ============================================ */
.contact-form, form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-blue);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
textarea,
select {
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(0, 164, 255, 0.1);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* ============================================
   評論區
   ============================================ */
.comments-area {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 2px solid var(--border-color);
}

.comments-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.comment {
    margin-bottom: 30px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 10px;
    border-left: 4px solid var(--accent-blue);
}

.comment-author {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.comment-meta {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 1rem;
}

/* ============================================
   頁腳
   ============================================ */
.site-footer, footer {
    background: var(--primary-dark);
    color: var(--text-light);
    padding: 50px 0 20px;
    margin-top: 80px;
}

.footer-widget {
    margin-bottom: 30px;
}

.footer-widget-title {
    color: var(--accent-light);
    margin-bottom: 1rem;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget ul li {
    margin-bottom: 0.8rem;
}

.footer-widget a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.footer-widget a:hover {
    color: var(--accent-light);
}

.site-info {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 164, 255, 0.2);
    opacity: 0.7;
    margin-top: 2rem;
}

/* ============================================
   WP Admin Bar
   ============================================ */
#wpadminbar {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%) !important;
}

/* ============================================
   響應式設計
   ============================================ */
@media (max-width: 768px) {
    .site-header {
        flex-wrap: wrap;
    }

    .main-navigation ul {
        gap: 1rem;
        font-size: 0.95rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-section {
        padding: 60px 0;
    }

    .post, .card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* ============================================
   頁頭 - 版面調整
   ============================================ */
.site-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-branding .custom-logo,
.site-branding img.custom-logo {
    max-height: 48px;
    width: auto;
}

.site-branding-text {
    display: flex;
    flex-direction: column;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--text-light);
    border-radius: 2px;
}

/* ============================================
   共用元件：eyebrow / section heading / 按鈕變體
   ============================================ */
.eyebrow {
    display: inline-block;
    color: var(--accent-blue);
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.section-heading {
    max-width: 640px;
    margin: 0 auto 3rem;
    text-align: center;
}

.section-heading-left {
    max-width: none;
    margin: 0 0 1.5rem;
    text-align: left;
}

.section-heading p {
    color: #555;
}

.btn-dark {
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.btn-dark:hover {
    background: var(--primary-blue);
    color: var(--text-light);
}

/* ============================================
   首頁 - Hero
   ============================================ */
.hero-home .hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 3rem;
}

.hero-home .hero-content p {
    max-width: 560px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.circuit-art {
    width: 100%;
    max-width: 380px;
    height: auto;
}

.circuit-glyph {
    font-size: 90px;
    font-weight: 700;
    fill: url(#ringGrad);
    font-family: -apple-system, 'PingFang TC', 'Microsoft JhengHei', sans-serif;
}

/* ============================================
   統計數據
   ============================================ */
.stats-section {
    background: var(--bg-light);
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-blue);
    line-height: 1;
}

.stat-suffix {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-blue);
}

.stat-item p {
    margin-top: 0.75rem;
    color: var(--primary-blue);
    font-weight: 500;
}

/* ============================================
   服務區塊
   ============================================ */
.services-section {
    padding: 90px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    display: flex;
    flex-direction: column;
    background: var(--text-light);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    color: var(--text-dark);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-blue);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.service-card h3 {
    margin-bottom: 0.75rem;
}

.service-card p {
    color: #555;
    flex-grow: 1;
}

.service-points {
    list-style: none;
    margin: 1rem 0;
    padding: 0;
}

.service-points li {
    padding: 6px 0;
    padding-left: 1.5rem;
    position: relative;
    color: #555;
}

.service-points li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-blue);
    font-weight: 700;
}

.service-link {
    color: var(--accent-blue);
    font-weight: 600;
    margin-top: 1rem;
}

.services-cta {
    text-align: center;
    margin-top: 3rem;
}

/* ============================================
   團隊區塊
   ============================================ */
.team-section {
    background: var(--bg-light);
    padding: 90px 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.team-card {
    background: var(--text-light);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.team-photo {
    width: 140px;
    height: 140px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent-blue);
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-photo-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 2.5rem;
    font-weight: 700;
}

.team-role {
    display: block;
    color: var(--accent-blue);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

/* ============================================
   CTA 橫幅
   ============================================ */
.cta-banner {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
    color: var(--text-light);
    padding: 80px 0;
}

.cta-banner-inner {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.cta-banner-inner h2 {
    color: var(--text-light);
}

.cta-banner-inner p {
    opacity: 0.85;
    margin-bottom: 2rem;
}

/* ============================================
   內頁通用 - 頁面 Hero
   ============================================ */
.page-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1a2a4a 100%);
    color: var(--text-light);
    padding: 80px 0;
    text-align: center;
}

.page-hero h1 {
    color: var(--text-light);
    max-width: 760px;
    margin: 0 auto 1.25rem;
}

.page-hero p {
    max-width: 640px;
    margin: 0 auto 1.5rem;
    opacity: 0.9;
}

.content-section {
    padding: 90px 0;
}

/* ============================================
   內頁 - 特色網格
   ============================================ */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: var(--bg-light);
    padding: 2rem 1.5rem;
    border-radius: 14px;
    text-align: center;
}

.feature-card h3 {
    font-size: 1.15rem;
    margin: 0.75rem 0 0.5rem;
}

.feature-card p {
    color: #555;
    font-size: 0.95rem;
}

/* ============================================
   內頁 - 流程步驟
   ============================================ */
.process-section {
    background: var(--bg-light);
    padding: 90px 0;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.process-step {
    background: var(--text-light);
    padding: 1.75rem 1.25rem;
    border-radius: 14px;
    border-top: 3px solid var(--accent-blue);
}

.step-number {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--accent-blue);
    margin-bottom: 0.5rem;
}

.process-step h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.process-step p {
    color: #555;
    font-size: 0.9rem;
}

/* ============================================
   內頁 - 圖文對照區塊
   ============================================ */
.content-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.content-split-photo {
    text-align: center;
}

.content-split-photo .team-photo {
    width: 220px;
    height: 220px;
}

.photo-caption {
    color: var(--primary-blue);
    font-weight: 600;
    margin-top: 1rem;
}

.checklist {
    list-style: none;
    padding: 0;
}

.checklist li {
    padding: 10px 0 10px 2rem;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.checklist li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-blue);
    font-weight: 700;
    font-size: 1.1rem;
}

/* ============================================
   聯絡我們
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 3rem;
    align-items: start;
}

.contact-info-list {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.contact-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    font-size: 1.5rem;
}

.contact-info-list strong {
    display: block;
    color: var(--primary-blue);
    margin-bottom: 0.25rem;
}

.contact-services ul {
    list-style: none;
    padding: 0;
}

.contact-services li {
    margin-bottom: 0.5rem;
}

.contact-form-wrap {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

.form-notice {
    padding: 1rem 1.25rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.form-notice-success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.form-notice-error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ============================================
   內頁 - 響應式
   ============================================ */
@media (max-width: 900px) {
    .hero-home .hero-grid,
    .content-split,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        order: -1;
    }

    .content-split-photo .team-photo {
        width: 160px;
        height: 160px;
    }

    .stats-grid,
    .services-grid,
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-grid {
        grid-template-columns: 1fr;
        max-width: 360px;
    }
}

@media (max-width: 1024px) {
    .menu-toggle {
        display: flex;
    }

    .main-navigation {
        display: none;
        width: 100%;
        order: 3;
    }

    .main-navigation.active {
        display: block;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 0;
    }

    .main-navigation ul li {
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .stats-grid,
    .services-grid,
    .feature-grid,
    .process-steps {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   部落格
   ============================================ */
.blog-section {
    padding-top: 70px;
}

.blog-breadcrumb {
    margin-bottom: 1.5rem;
}

.blog-breadcrumb a {
    color: var(--primary-blue);
    font-weight: 600;
}

.blog-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    align-items: start;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.blog-layout-no-toc {
    grid-template-columns: 1fr;
}

.toc-widget {
    position: sticky;
    top: 100px;
}

.toc-list {
    list-style: none;
}

.toc-list li {
    padding: 6px 0;
    border-bottom: 1px solid var(--border-color);
}

.toc-list li:last-child {
    border-bottom: none;
}

.toc-list .toc-level-3 {
    padding-left: 1rem;
    font-size: 0.9rem;
}

.toc-list a {
    color: var(--primary-blue);
}

.toc-list a:hover {
    color: var(--accent-blue);
}

.blog-card {
    display: flex;
    flex-direction: column;
    background: var(--text-light);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    margin-bottom: 0;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-blue);
}

.blog-card-thumb {
    display: block;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-blue));
    overflow: hidden;
}

.blog-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.blog-card-body {
    padding: 1.75rem 2rem 2rem;
}

.blog-card .entry-title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.blog-card .post-content {
    color: #555;
}

.blog-read-more {
    display: inline-block;
    margin-top: 0.5rem;
    color: var(--accent-blue);
    font-weight: 600;
}

.single-post .entry-title {
    font-size: 2.2rem;
}

.single-post .post-thumbnail {
    margin: 1.5rem 0;
    border-radius: 16px;
    overflow: hidden;
}

.single-post .entry-content {
    max-width: 720px;
    font-size: 1.05rem;
}

.entry-content h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
}

.entry-content h3 {
    font-size: 1.2rem;
    margin-top: 1.5rem;
}

.entry-content ul,
.entry-content ol {
    margin: 0 0 1rem 1.5rem;
}

.entry-content li {
    margin-bottom: 0.5rem;
}

.entry-content a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.entry-content blockquote {
    border-left: 4px solid var(--accent-blue);
    background: var(--bg-light);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 10px 10px 0;
    color: #555;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.post-meta i {
    color: var(--accent-blue);
    margin-right: 4px;
}

.entry-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.author-bio {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
    padding: 1.75rem;
    background: var(--bg-light);
    border-radius: 16px;
}

.author-bio-photo {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent-blue);
}

.author-bio-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-bio-photo .team-photo-placeholder {
    font-size: 1.5rem;
}

.author-bio-label {
    display: block;
    font-size: 0.8rem;
    color: var(--accent-blue);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.author-bio-text h3 {
    margin-bottom: 0.4rem;
    font-size: 1.1rem;
}

.author-bio-text p {
    margin-bottom: 0;
    color: #555;
    font-size: 0.95rem;
}

@media (max-width: 600px) {
    .author-bio {
        flex-direction: column;
        text-align: center;
    }
}

.post-tags {
    margin-bottom: 1.5rem;
}

.post-tags-label {
    font-weight: 600;
    margin-right: 0.5rem;
    color: var(--primary-blue);
}

.post-tag {
    display: inline-block;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    padding: 5px 14px;
    background: rgba(0, 164, 255, 0.1);
    border-radius: 20px;
    color: var(--accent-blue);
    font-size: 0.85rem;
}

/* 分頁 */
.pagination,
.navigation.pagination {
    margin-top: 2.5rem;
}

.pagination .nav-links,
.navigation.pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border-radius: 10px;
    background: var(--bg-light);
    color: var(--primary-blue);
    font-weight: 600;
}

.page-numbers.current {
    background: var(--accent-blue);
    color: var(--text-light);
}

a.page-numbers:hover {
    background: var(--accent-blue);
    color: var(--text-light);
}

@media (max-width: 900px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   作品集分類頁佔位卡片
   ============================================ */
.portfolio-placeholder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.portfolio-placeholder-card {
    background: var(--bg-light);
    border: 2px dashed var(--border-color);
    border-radius: 16px;
    padding: 3rem 1.5rem;
    text-align: center;
    color: #999;
}

.portfolio-placeholder-icon {
    display: block;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.6;
}

/* ============================================
   導覽選單 - 子選單（作品集）
   ============================================ */
.main-navigation .menu-item-has-children {
    position: relative;
}

.main-navigation .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    margin-top: 0.75rem;
    padding: 0.5rem 0;
    background: var(--primary-dark);
    border-radius: 10px;
    box-shadow: var(--shadow-hover);
    z-index: 1100;
}

@media (min-width: 1025px) {
    .main-navigation .menu-item-has-children:hover > .sub-menu,
    .main-navigation .menu-item-has-children:focus-within > .sub-menu {
        display: block;
    }
}

.main-navigation .sub-menu li {
    padding: 0;
}

.main-navigation .sub-menu a {
    display: block;
    padding: 10px 20px;
    font-weight: 400;
    white-space: nowrap;
}

.main-navigation .sub-menu a::after {
    display: none;
}

.submenu-toggle {
    display: none;
}

@media (max-width: 1024px) {
    .main-navigation .menu-item-has-children {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
    }

    .main-navigation .menu-item-has-children > a {
        flex: 1 1 auto;
        min-width: 0;
    }

    .submenu-toggle {
        display: inline-flex;
        flex-shrink: 0;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        margin-left: auto;
        padding: 0;
        background: transparent;
        border: none;
        color: var(--text-light);
        font-size: 1rem;
        line-height: 1;
        cursor: pointer;
        transition: transform 0.25s ease;
    }

    .menu-item-has-children.submenu-open > .submenu-toggle {
        transform: rotate(180deg);
    }

    .main-navigation .sub-menu {
        display: none;
        position: static;
        flex-basis: 100%;
        width: 100%;
        max-height: none;
        background: transparent;
        box-shadow: none;
        margin-top: 0.5rem;
        padding-left: 1rem;
    }

    .menu-item-has-children.submenu-open > .sub-menu {
        display: block;
    }

    .main-navigation .sub-menu a {
        padding: 8px 0;
        opacity: 0.85;
    }
}

/* ============================================
   打印樣式
   ============================================ */
@media print {
    .site-header,
    .site-footer,
    .navigation,
    .sidebar {
        display: none;
    }

    body {
        background: white;
    }
}
