/* ========================================
   星獸學院 - 遊戲風格 CSS
   色系：青藍、金色、綠色、紫色
   ======================================== */

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

:root {
    --primary-blue: #4a90e2;
    --secondary-blue: #2c5aa0;
    --teal: #1a9b8e;
    --gold: #ffc107;
    --green: #1dd1a1;
    --purple: #7c3aed;
    --red: #ff6b6b;
    --bg-dark: #f5f5f5;
    --bg-light: #ffffff;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --border: #e0e0e0;
}

html {
    scroll-behavior: smooth;
}

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

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

/* ========================================
   Navigation
   ======================================== */

.navbar {
    background: var(--bg-light);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-blue);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-image {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.logo-title {
    background: linear-gradient(135deg, var(--primary-blue), var(--teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--teal));
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.btn-secondary {
    background: var(--gold);
    color: var(--text-dark);
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 20px;
    text-align: center;
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

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

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 10px;
    font-weight: 900;
}

.hero-content .tagline {
    font-size: 24px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.hero-content .subtitle {
    font-size: 16px;
    margin-bottom: 30px;
    opacity: 0.8;
}

/* ========================================
   Story Section
   ======================================== */

.story-section {
    padding: 60px 20px;
    background: var(--bg-light);
}

.story-section h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: var(--primary-blue);
}

.story-chapters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.chapter-card {
    background: var(--bg-light);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 30px;
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
}

.chapter-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.chapter-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.chapter-card h3 {
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-size: 20px;
}

.chapter-card p {
    color: var(--text-light);
    margin-bottom: 10px;
    line-height: 1.8;
}

.chapter-card ul {
    margin-left: 20px;
    margin-top: 10px;
}

.chapter-card li {
    margin-bottom: 8px;
    color: var(--text-light);
}

/* ========================================
   Features Section
   ======================================== */

.features-section {
    padding: 60px 20px;
    background: var(--bg-dark);
}

.features-section h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: var(--primary-blue);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-box {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 30px;
    border-left: 4px solid var(--primary-blue);
    transition: transform 0.3s;
    overflow: hidden;
}

.feature-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    display: block;
}

.feature-box:hover {
    transform: translateY(-5px);
}

.feature-box h3 {
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-size: 18px;
}

.feature-box p {
    color: var(--text-light);
    margin-bottom: 10px;
    font-size: 14px;
}

.feature-box ul {
    margin-left: 20px;
    color: var(--text-light);
    font-size: 14px;
}

.feature-box li {
    margin-bottom: 8px;
}

/* ========================================
   Beasts Section
   ======================================== */

.beasts-section {
    padding: 60px 20px;
    background: var(--bg-white);
}

.beasts-section h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: var(--primary-blue);
}

.beasts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.beast-card {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    border: 2px solid var(--border);
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
}

.beast-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    display: block;
}

.beast-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.beast-icon {
    font-size: 64px;
    margin-bottom: 15px;
}

.beast-card h3 {
    color: var(--primary-blue);
    font-size: 24px;
    margin-bottom: 10px;
}

.beast-type {
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 15px;
    display: block;
}

.beast-card p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.stats {
    display: flex;
    justify-content: space-around;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

.stat {
    color: var(--teal);
    font-weight: 600;
    font-size: 14px;
}

/* ========================================
   Benefits Section
   ======================================== */

.benefits-section {
    padding: 60px 20px;
    background: var(--bg-dark);
}

.benefits-section h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: var(--primary-blue);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.benefit-card {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 30px;
    border-top: 4px solid var(--green);
}

.benefit-card h3 {
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-size: 18px;
}

.benefit-card p {
    color: var(--text-light);
    line-height: 1.8;
}

.testimonials {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 40px;
    margin-top: 40px;
}

.testimonials h3 {
    text-align: center;
    color: var(--primary-blue);
    margin-bottom: 30px;
    font-size: 24px;
}

.testimonial {
    margin-bottom: 30px;
    padding: 20px;
    background: var(--bg-dark);
    border-radius: 8px;
    border-left: 4px solid var(--gold);
}

.testimonial p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 10px;
}

.testimonial .author {
    color: var(--primary-blue);
    font-weight: 600;
    font-style: italic;
}

/* ========================================
   FAQ Section
   ======================================== */

.faq-section {
    padding: 60px 20px;
    background: var(--bg-white);
}

.faq-section h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: var(--primary-blue);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.faq-item {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 25px;
    border-left: 4px solid var(--teal);
}

.faq-item h4 {
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-size: 16px;
}

.faq-item p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 14px;
}

/* ========================================
   CTA Section
   ======================================== */

.cta-section {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.cta-section h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn-primary,
.cta-buttons .btn-secondary {
    padding: 15px 40px;
    font-size: 16px;
}

/* ========================================
   Footer
   ======================================== */

.footer {
    background: var(--text-dark);
    color: white;
    padding: 40px 20px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    color: var(--gold);
    margin-bottom: 15px;
    font-size: 16px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

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

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* ========================================
   Reward System Styles
   ======================================== */

.reward-category {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border);
}

.reward-category:last-child {
    border-bottom: none;
}

.reward-category h4 {
    color: var(--primary-blue);
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 600;
}

.reward-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.reward-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: var(--bg-dark);
    border-radius: 8px;
    border-left: 4px solid var(--gold);
}

.reward-label {
    font-weight: 600;
    color: var(--text-dark);
    flex: 1;
}

.reward-value {
    color: var(--green);
    font-weight: 700;
    font-size: 14px;
    padding: 4px 12px;
    background: rgba(29, 209, 161, 0.1);
    border-radius: 4px;
}

.reward-desc {
    color: var(--text-light);
    font-size: 13px;
    font-style: italic;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content .tagline {
        font-size: 18px;
    }

    .story-chapters,
    .features-grid,
    .beasts-grid,
    .benefits-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn-primary,
    .cta-buttons .btn-secondary {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-content h1 {
        font-size: 24px;
    }

    .hero-content .tagline {
        font-size: 16px;
    }

    .story-section h2,
    .features-section h2,
    .beasts-section h2,
    .benefits-section h2,
    .faq-section h2,
    .cta-section h2 {
        font-size: 24px;
    }

    .chapter-card,
    .feature-box,
    .beast-card,
    .benefit-card,
    .faq-item {
        padding: 20px;
    }
}
