/* ============================================
   HDHS - 現代化風格 (參考康達盛通/全家風格)
   ============================================ */

:root {
    --primary: #1a1a1a;
    --accent: #c9a84c; /* 金色強調 */
    --bg: #0d0d0d;
    --text: #ffffff;
    --text-secondary: #999999;
    --card-bg: #1a1a1a;
    --border: #333333;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body { 
    font-family: 'Noto Sans TC', sans-serif; 
    background: var(--bg); 
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none; /* 自定義游標 */
}

/* 自定義游標 */
.cursor-follower {
    position: fixed; 
    width: 40px; 
    height: 40px; 
    border: 1px solid var(--accent);
    border-radius: 50%; 
    pointer-events: none; 
    z-index: 9999;
    transition: transform 0.1s ease-out;
}

.cursor-dot {
    position: fixed; 
    width: 8px; 
    height: 8px; 
    background: var(--accent);
    border-radius: 50%; 
    pointer-events: none; 
    z-index: 9999;
}

/* 隱藏預設游標 */
a, button, input, textarea, select {
    cursor: none;
}

/* 導航列 */
.navbar {
    position: fixed; 
    top: 0; 
    width: 100%; 
    padding: 30px 50px;
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    z-index: 1000; 
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s;
}

.nav-logo {
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem; 
    font-weight: 700; 
    color: var(--accent);
    letter-spacing: 2px;
}

.nav-menu {
    display: flex; 
    gap: 30px; 
    font-size: 0.85rem; 
    letter-spacing: 2px;
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
}

.nav-link:hover {
    color: var(--accent);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero 區塊 */
.hero {
    height: 100vh; 
    display: flex; 
    flex-direction: column;
    justify-content: center; 
    align-items: center; 
    padding: 0 10%;
    position: relative; 
    overflow: hidden;
}

.hero-bg {
    position: absolute; 
    inset: 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    z-index: -2;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(201,168,76,0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(201,168,76,0.05) 0%, transparent 50%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
    z-index: -1;
}

.hero-content {
    text-align: center;
    z-index: 1;
}

.hero-title {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(3rem, 10vw, 8rem);
    line-height: 0.9;
    margin-bottom: 30px;
    overflow: hidden;
}

.hero-title .line {
    display: block;
    overflow: hidden;
}

.hero-title .line-inner {
    display: block;
    transform: translateY(100%);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--accent);
    letter-spacing: 5px;
    margin-bottom: 40px;
    opacity: 0;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-secondary);
    font-size: 0.8rem;
    letter-spacing: 2px;
    opacity: 0;
}

/* About Section */
.about-section {
    padding: 150px 10%;
    position: relative;
}

.section-header {
    margin-bottom: 80px;
}

.section-tag {
    font-size: 0.8rem;
    letter-spacing: 3px;
    color: var(--accent);
    margin-bottom: 20px;
    display: block;
}

.section-title {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 30px;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 800px;
}

/* Bento Grid */
.content-grid {
    padding: 100px 5%; 
    display: grid;
    grid-template-columns: repeat(12, 1fr); 
    gap: 20px;
}

.card {
    background: var(--card-bg); 
    border-radius: 2px; 
    padding: 40px;
    position: relative; 
    border: 1px solid var(--border); 
    overflow: hidden;
    display: flex; 
    flex-direction: column; 
    justify-content: space-between;
    transition: all 0.5s cubic-bezier(0.2, 1, 0.3, 1);
}

.card:hover {
    border-color: var(--accent);
    transform: translateY(-10px);
}

.card-bg {
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    z-index: 0; 
    opacity: 0.1; 
    transition: 1.5s cubic-bezier(0.19, 1, 0.22, 1);
    filter: grayscale(1);
}

.card:hover .card-bg {
    opacity: 0.3;
    transform: scale(1.1);
}

.card-content {
    position: relative; 
    z-index: 1;
}

.card-tag { 
    font-size: 0.75rem; 
    letter-spacing: 2px; 
    color: var(--accent); 
    margin-bottom: 20px; 
    display: block;
}

.card-title { 
    font-family: 'Oswald', sans-serif;
    font-size: 2rem; 
    margin-bottom: 20px;
    line-height: 1.2;
}

.card-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 指定區塊大小 */
.about-card { 
    grid-column: span 4; 
    min-height: 500px;
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
}

.history-card { 
    grid-column: span 8; 
    min-height: 500px;
}

.teachers-card { 
    grid-column: span 6; 
    min-height: 400px;
}

.clubs-card { 
    grid-column: span 6; 
    min-height: 400px;
}

.live-card { 
    grid-column: span 12; 
    min-height: 600px;
}

/* 按鈕樣式 */
.btn-modern {
    padding: 15px 30px; 
    border: 1px solid var(--accent);
    background: transparent; 
    color: var(--accent);
    text-transform: uppercase; 
    letter-spacing: 2px;
    font-size: 0.75rem; 
    position: relative; 
    overflow: hidden;
    transition: all 0.5s;
    font-family: 'Noto Sans TC', sans-serif;
    font-weight: 500;
    margin-top: 20px;
}

.btn-modern:hover { 
    color: var(--bg);
    border-color: var(--accent);
}

.btn-modern::before {
    content: ''; 
    position: absolute; 
    top: 100%; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: var(--accent); 
    transition: all 0.5s; 
    z-index: -1;
}

.btn-modern:hover::before { 
    top: 0; 
}

/* Footer */
.footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 100px 10% 50px;
    margin-top: 100px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.footer-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-title {
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* 直播播放器 */
.live-player-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #000;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 30px;
}

.live-player-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.player-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
}

.placeholder-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #ef4444;
    color: white;
    border-radius: 2px;
    font-weight: bold;
    font-size: 0.85rem;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

.badge-icon {
    width: 12px;
    height: 12px;
}

/* 報名表單 */
.registration-section {
    max-width: 800px;
    margin: 60px auto 0;
    padding: 50px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 2px;
}

.registration-section h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    margin-bottom: 40px;
    text-align: center;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 2px;
    font-size: 0.95rem;
    font-family: inherit;
    background: var(--bg);
    color: var(--text);
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

.btn-submit {
    width: 100%;
    padding: 18px;
    background: var(--accent);
    color: var(--bg);
    border: none;
    border-radius: 2px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.btn-submit:hover {
    background: #d4b85a;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(201, 168, 76, 0.3);
}

/* 響應式 */
@media (max-width: 1024px) {
    .about-card,
    .history-card,
    .teachers-card,
    .clubs-card {
        grid-column: span 12;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 20px 30px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .about-section {
        padding: 100px 5%;
    }
}

/* 動畫類 */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.2, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}