/* ============================================
   全域樣式與色彩變數
   ============================================ */
:root { --primary-dark: #1a1a2e; --primary-blue: #16213e; --primary-red: #e60012; --accent-gold: #ffd700; --accent-cream: #f5f5dc; --text-light: #ffffff; --text-dark: #333333; --bg-light: #f8f9fa; }

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

body { font-family: "Noto Sans TC", sans-serif; color: var(--text-dark); line-height: 1.6; background-color: var(--bg-light); }

/* ============================================
   字體系統 - 毛筆風格
   ============================================ */
.brush-font { font-family: "Kaisei Tokumin", "Noto Serif JP", serif; font-weight: 700; letter-spacing: 0.05em; }
.elegant-font { font-family: "Playfair Display", "Crimson Text", serif; font-weight: 900; }

/* ============================================
   導航欄
   ============================================ */
.navbar { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); background-color: #f1e895; }
.navbar-brand { font-size: 1.5rem; font-family: "Kaisei Tokumin", "Noto Serif JP", serif; font-weight: 700; letter-spacing: 2px; color: #333333 !important; }
.nav-link { font-weight: 500; transition: color 0.3s ease; color: #333333 !important; }
.nav-link:hover { color: var(--primary-red) !important; }

/* ============================================
   英雄區
   ============================================ */
.hero-section { position: relative; height: 100vh; background: linear-gradient(135deg, rgba(0, 27, 58, 0.7) 0%, rgba(230, 0, 18, 0.3) 100%), url("../img/hero-background2.png") center/cover no-repeat; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; color: var(--text-light); overflow: hidden; }
.hero-section::before { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 80px; background: repeating-linear-gradient(90deg, transparent, transparent 20px, rgba(242, 242, 242, 0.2) 20px, rgba(242, 242, 242, 0.2) 40px); background-size: auto 100%; z-index: 2; }
.hero-content { position: relative; z-index: 1; max-width: 900px; padding: 40px 20px; animation: fadeInUp 1s ease-out; }
.hero-title { font-size: clamp(2.5rem, 8vw, 4.5rem); font-weight: 900; font-family: "Kaisei Tokumin", "Noto Serif JP", serif; color: var(--accent-gold); margin-bottom: 1.5rem; text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5); line-height: 1.2; letter-spacing: 0.08em; }
.hero-subtitle { font-size: 1.5rem; color: var(--accent-cream); margin-bottom: 2rem; font-weight: 500; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4); font-family: "Noto Sans TC", sans-serif; letter-spacing: 1px; }

/* ============================================
   介紹區
   ============================================ */
.intro-section { background-color: #001b3a; color: #f2f2f2; padding: 80px 20px; text-align: center; }
.intro-content { max-width: 1000px; margin: 0 auto; }
.section-title { font-family: "Kaisei Tokumin", "Noto Serif JP", serif; font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 900; margin-bottom: 40px; color: var(--primary-dark); text-transform: uppercase; letter-spacing: 0.05em; position: relative; padding-bottom: 1rem; }
.intro-section .section-title { color: var(--primary-red); }
.intro-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-bottom: 40px; }
.intro-card { background-color: rgba(230, 0, 18, 0.1); padding: 30px; border-left: 4px solid var(--primary-red); border-radius: 4px; transition: all 0.3s ease; }
.intro-card:hover { transform: translateY(-5px); background-color: rgba(230, 0, 18, 0.15); box-shadow: 0 8px 20px rgba(230, 0, 18, 0.2); }
.intro-card p { font-size: 1rem; line-height: 1.8; text-align: left; }

/* ============================================
   使命宣言區 - 帶背景圖
   ============================================ */
.mission-banner-section {
    padding: 5rem 2rem;
    background: linear-gradient(135deg,rgba(26, 60, 110, 1) 0%,rgba(26, 60, 110, 0.95) 30% ,rgba(47, 103, 187, 0.95) 50% ,rgba(17, 56, 114, 0.95) 70% ,rgba(5, 27, 61, 1) 100%);
    color: var(--text-light);
    text-align: center;
    position: relative;
    overflow: hidden
}

.mission-banner-section:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(../img/rank-card-pattern.png);
    opacity: .1;
    z-index: 0
}

.small-text { font-size: 0.6em; margin-left: 0.5rem; }
.mission-banner-title { font-size: clamp(2rem, 6vw, 3.5rem); font-weight: 900; color: var(--accent-gold); margin-bottom: 1rem; text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5); font-family: "Kaisei Tokumin", "Noto Serif JP", serif; position: relative; z-index: 1; letter-spacing: 0.08em; }
.mission-banner-subtitle { font-size: 1.3rem; color: var(--accent-cream); margin-bottom: 3rem; font-weight: 500; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4); position: relative; z-index: 1; }
.slogan-item { background: rgba(255, 255, 255, 0.08); padding: 2rem; border-left: 4px solid var(--primary-red); border-radius: 4px; backdrop-filter: blur(10px); transition: all 0.3s ease; position: relative; z-index: 1; }
.slogan-item:hover { background: rgba(255, 255, 255, 0.12); transform: translateY(-8px); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3); }
.slogan-text { font-size: 1.3rem; font-weight: 700; color: var(--accent-gold); margin-bottom: 0.5rem; line-height: 1.4; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4); font-family: "Kaisei Tokumin", "Noto Serif JP", serif; }
.slogan-desc { font-size: 0.95rem; color: rgba(255, 255, 255, 0.8); font-style: italic; }
.mission-statement { background: rgba(211, 47, 47, 0.15); padding: 2.5rem; border-radius: 4px; border: 2px solid var(--primary-red); max-width: 900px; margin: 0 auto; position: relative; z-index: 1; }
.mission-statement p { font-size: 1.1rem; line-height: 1.8; color: var(--text-light); margin: 0; }

/* ============================================
   關於我們區
   ============================================ */
.about-section { background-color: #ffffff; border-top: 3px solid var(--primary-red); }
.about-image { border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15); transition: transform 0.3s ease; }
.about-image:hover { transform: scale(1.05); }
.mission-item { padding: 1.5rem; background: var(--bg-light); border-left: 4px solid var(--primary-red); border-radius: 4px; transition: all 0.3s ease; }
.mission-item:hover { background: #e8e9ea; transform: translateX(8px); }
.mission-item h4 { color: var(--primary-dark); font-weight: 700; margin-bottom: 0.5rem; font-family: "Kaisei Tokumin", "Noto Serif JP", serif; }
.mission-item p { color: #555; margin: 0; }

/* ============================================
   階級系統區
   ============================================ */
.ranks-section { background-color: var(--bg-light); }
.rank-card { background: #ffffff; border: 2px solid #e0e0e0; border-radius: 8px; padding: 2rem; transition: all 0.3s ease; height: 100%; position: relative; overflow: hidden; }
.rank-card::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--primary-blue), var(--primary-red)); }
.rank-card:hover { transform: translateY(-8px); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15); border-color: var(--primary-red); }
.rank-card.rank-c { border-left: 4px solid #ff9800; }
.rank-card.rank-b { border-left: 4px solid #9c27b0; }
.rank-card.rank-a { border-left: 4px solid var(--accent-gold); background: linear-gradient(135deg, rgba(255, 215, 0, 0.05) 0%, rgba(211, 47, 47, 0.05) 100%); }
.rank-card-header { margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 2px solid #e0e0e0; }
.rank-card-header h3 { font-size: 1.5rem; font-weight: 700; color: var(--primary-dark); margin-bottom: 0.5rem; font-family: "Kaisei Tokumin", "Noto Serif JP", serif; }
.rank-name { font-size: 0.9rem; color: #888; font-style: italic; }
.rank-ability-title { font-weight: 700; color: var(--primary-red); margin-bottom: 0.5rem; font-size: 1rem; font-family: "Kaisei Tokumin", "Noto Serif JP", serif; }
.rank-ability-desc { color: #555; font-size: 0.95rem; line-height: 1.6; }

/* ============================================
   招募詳情區
   ============================================ */
.recruitment-section { background-color: #ffffff; border-top: 3px solid var(--primary-red); }
.requirement-item { padding: 1.5rem; background: var(--bg-light); border-left: 4px solid var(--primary-blue); border-radius: 4px; margin-bottom: 1.5rem; transition: all 0.3s ease; }
.requirement-item:hover { background: #e8e9ea; transform: translateX(8px); }
.requirement-item p { margin: 0; color: #555; }
.requirement-item strong { color: var(--primary-dark); }
.table { font-size: 0.95rem; }
.table thead { background-color: var(--primary-dark); }
.table tbody tr:hover { background-color: #f5f5f5; }
.table td { vertical-align: middle; padding: 1rem; }

/* ============================================
   行動呼籲按鈕 - 紅底金色
   ============================================ */
.cta-button { background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%); color: var(--accent-gold) !important; padding: 1rem 3rem; font-size: 1.2rem; font-weight: 700; border: 3px solid var(--accent-gold); border-radius: 4px; transition: all 0.3s ease; box-shadow: 0 4px 12px rgba(211, 47, 47, 0.4); font-family: "Kaisei Tokumin", "Noto Serif JP", serif; letter-spacing: 0.05em; text-decoration: none; display: inline-block; cursor: pointer; }
.cta-button:hover { transform: scale(1.08); box-shadow: 0 8px 24px rgba(211, 47, 47, 0.6); background: linear-gradient(135deg, #b71c1c 0%, #8b0000 100%); color: var(--accent-gold) !important; }
.cta-button:active { transform: scale(0.98); }

/* ============================================
   全寬行動呼籲區 (New CTA)
   ============================================ */
.cta-full-width-section { background-color: #c92a2a; padding: 4rem 1rem; color: #ffffff; width: 100%; text-align: center; margin-top: 0; margin-bottom: 0; }
.cta-title { font-family: "Kaisei Tokumin", "Noto Serif JP", serif; font-size: 2.5rem; font-weight: 700; margin-bottom: 1.5rem; letter-spacing: 0.05em; text-shadow: 0 2px 4px rgba(0,0,0,0.2); }
.cta-desc { font-family: "Noto Sans TC", sans-serif; font-size: 1.1rem; margin-bottom: 2rem; line-height: 1.8; opacity: 0.95; }
.cta-gold-button { background: radial-gradient(circle at center, #ffeb3b 0%, #d4af37 70%); color: #000000; font-weight: 700; padding: 0.8rem 3rem; border-radius: 6px; border: none; font-size: 1.2rem; box-shadow: 0 0 20px rgba(255, 235, 59, 0.6); transition: all 0.3s ease; letter-spacing: 1px; position: relative; overflow: hidden; }
.cta-gold-button:hover { background: radial-gradient(circle at center, #ffffff 0%, #d4af37 100%); transform: translateY(-2px); box-shadow: 0 0 30px rgba(255, 235, 59, 0.8); color: #000; }
.cta-footer-text { font-size: 0.9rem; font-style: italic; margin-top: 1rem; color: rgba(255,255,255,0.9); font-weight: 300; }

/* ============================================
   頁腳
   ============================================ */
footer { border-top: 3px solid var(--primary-red); background-color: var(--primary-dark); color: var(--text-light); }

/* ============================================
   動畫
   ============================================ */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ============================================
   響應式設計
   ============================================ */
@media (max-width: 768px) { .hero-title { font-size: 2rem; } .hero-subtitle { font-size: 1.2rem; } .hero-text { font-size: 1rem; } .section-title { font-size: 1.8rem; } .mission-banner-title { font-size: 1.8rem; } .mission-banner-subtitle { font-size: 1.1rem; } .slogan-text { font-size: 1.1rem; } .rank-card { padding: 1.5rem; } .rank-card-header h3 { font-size: 1.3rem; } .table { font-size: 0.85rem; } .table td { padding: 0.75rem; } .cta-button { padding: 0.75rem 2rem; font-size: 1rem; } }
@media (max-width: 576px) { .hero-title { font-size: 1.5rem; } .hero-subtitle { font-size: 1rem; } .hero-text { font-size: 0.95rem; } .section-title { font-size: 1.5rem; } .mission-banner-title { font-size: 1.4rem; } .mission-banner-subtitle { font-size: 0.95rem; } .slogan-item { padding: 1.5rem; } .slogan-text { font-size: 1rem; } .rank-card { padding: 1.2rem; } .rank-card-header h3 { font-size: 1.2rem; } .table { font-size: 0.8rem; } .table td { padding: 0.5rem; } .cta-button { padding: 0.6rem 1.5rem; font-size: 0.95rem; } }
