/* ============================================
   Game of Thrones Map - Medieval Fantasy Style
   无图片版本 - 可立即使用
   ============================================ */

/* CSS Variables - Medieval Theme */
:root {
    --primary-color: #c9a961;
    --secondary-color: #8b7355;
    --accent-color: #d4af37;
    --text-color: #2c2416;
    --light-text: #f4e8d0;
    --dark-bg: #1a1a1a;
    --card-bg: rgba(244, 232, 208, 0.95);
    --hover-color: #d4af37;
    --parchment: #f4e8d0;
    --dark-parchment: #e8dcc0;
    --aged-paper: #d9c9a8;
    --border-color: #8b7355;
    --shadow-dark: rgba(0, 0, 0, 0.3);
    --shadow-light: rgba(139, 115, 85, 0.2);
}

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

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

h1,
h2,
h3,
h4 {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    color: var(--text-color);
}

/* Page Wrapper - 纯色羊皮纸背景 */
.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg,
            #2a2416 0%,
            #1a1a1a 25%,
            #2a2416 50%,
            #1a1a1a 75%,
            #2a2416 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    position: relative;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* 纸张颗粒效果 - 纯CSS */
.page-wrapper::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(139, 115, 85, 0.02) 2px,
            rgba(139, 115, 85, 0.02) 4px),
        repeating-linear-gradient(90deg,
            transparent,
            transparent 2px,
            rgba(139, 115, 85, 0.02) 2px,
            rgba(139, 115, 85, 0.02) 4px);
    pointer-events: none;
    z-index: 1;
}

/* Header - Medieval Banner */
.main-header {
    background: linear-gradient(to bottom,
            rgba(26, 26, 26, 0.95) 0%,
            rgba(26, 26, 26, 0.9) 100%);
    border-bottom: 3px solid var(--secondary-color);
    box-shadow: 0 2px 10px var(--shadow-dark);
    position: relative;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
}



nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.logo a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
    transition: transform 0.3s ease;
}

.logo a:hover {
    transform: scale(1.05);
}

.logo-text {
    font-family: 'MedievalSharp', 'Cinzel', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px var(--shadow-dark);
    position: relative;
}

.logo-text::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.logo-subtext {
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    color: var(--light-text);
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-top: 0.2rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--light-text);
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
    letter-spacing: 1px;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a::after {
    content: '⚔';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    color: var(--primary-color);
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

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

.nav-links a:hover::before {
    width: 100%;
}

.nav-links a:hover::after {
    transform: translateX(-50%) scale(1);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(135deg,
            rgba(0, 0, 0, 0.8) 0%,
            rgba(42, 36, 22, 0.7) 50%,
            rgba(0, 0, 0, 0.8) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
    animation: vignettePulse 8s ease-in-out infinite;
}

@keyframes vignettePulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 0.8;
    }
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(201, 169, 97, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(201, 169, 97, 0.1) 0%, transparent 50%);
    animation: particleFloat 20s linear infinite;
}

@keyframes particleFloat {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-20px);
    }
}

.hero-content {
    text-align: center;
    color: var(--light-text);
    max-width: 900px;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-family: 'MedievalSharp', 'Cinzel', serif;
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8), 0 0 20px rgba(201, 169, 97, 0.5);
    letter-spacing: 3px;
    line-height: 1.2;
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {

    0%,
    100% {
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8), 0 0 20px rgba(201, 169, 97, 0.5);
    }

    50% {
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8), 0 0 30px rgba(201, 169, 97, 0.8), 0 0 40px rgba(201, 169, 97, 0.4);
    }
}

.hero-subtitle {
    font-family: 'Lora', serif;
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    color: var(--light-text);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-style: italic;
    letter-spacing: 1px;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    text-decoration: none;
    color: var(--dark-bg);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: 2px solid var(--primary-color);
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(201, 169, 97, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    letter-spacing: 2px;
    font-weight: 600;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 169, 97, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.cta-button.secondary {
    background: transparent;
    color: var(--primary-color);
}

.cta-button.secondary:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

.scroll-text {
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    color: var(--primary-color);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-left: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    transform: rotate(-45deg);
}

/* Section Styles */
section {
    position: relative;
    z-index: 2;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    color: var(--light-text);
}

.section-header h2 {
    font-family: 'MedievalSharp', 'Cinzel', serif;
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
}

.ornament {
    width: 200px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--secondary-color), var(--primary-color), var(--secondary-color), transparent);
    margin: 0 auto;
    position: relative;
}

.ornament::before,
.ornament::after {
    content: '◆';
    position: absolute;
    top: -10px;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.ornament::before {
    left: -20px;
}

.ornament::after {
    right: -20px;
}

/* Interactive Map Section */
.interactive-map-section {
    padding: 0;
    background: linear-gradient(rgba(26, 26, 26, 0.9), rgba(26, 26, 26, 0.95));
}

.interactive-map-section .section-header {
    display: none;
}

.map-container {
    max-width: 1600px;
    margin: 0 auto;
    background: var(--parchment);
    border: 4px solid var(--secondary-color);
    border-radius: 8px;
    padding: 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    line-height: 0;
    display: flex;
    flex-direction: column;
}

.map-container::before,
.map-container::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border: 3px solid var(--primary-color);
}

.map-container::before {
    top: -3px;
    left: -3px;
    border-right: none;
    border-bottom: none;
}

.map-container::after {
    bottom: -3px;
    right: -3px;
    border-left: none;
    border-top: none;
}

.got-map {
    width: 100%;
    height: 600px;
    background: var(--aged-paper);
    border: 2px solid var(--border-color);
    border-radius: 4px;
}

.map-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.map-btn {
    padding: 0.8rem 1.5rem;
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    background: var(--secondary-color);
    color: var(--light-text);
    border: 2px solid var(--primary-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.map-btn:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 169, 97, 0.4);
}

/* Features Section */
.features {
    padding: 6rem 2rem;
    background: linear-gradient(rgba(26, 26, 26, 0.95), rgba(26, 26, 26, 0.9));
}

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

.feature-card {
    background: var(--card-bg);
    border: 3px solid var(--secondary-color);
    padding: 2.5rem;
    border-radius: 8px;
    text-align: center;
    color: var(--text-color);
    transition: all 0.4s ease;
    position: relative;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3), inset 0 0 30px rgba(139, 115, 85, 0.1);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(139, 115, 85, 0.02) 2px, rgba(139, 115, 85, 0.02) 4px);
    border-radius: 6px;
    pointer-events: none;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: -15px;
    right: -15px;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, var(--accent-color), var(--secondary-color));
    border-radius: 50%;
    opacity: 0;
    transform: scale(0);
    transition: all 0.4s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.feature-card:hover {
    transform: translateY(-10px) rotate(1deg);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), inset 0 0 30px rgba(139, 115, 85, 0.2);
    border-color: var(--primary-color);
}

.feature-card:hover::after {
    opacity: 1;
    transform: scale(1);
}

/* Feature Icons - 使用 Unicode 符号作为临时图标 */
.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    filter: sepia(0.3) contrast(1.2);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    filter: sepia(0.5) contrast(1.3);
}

/* 使用 Unicode 符号作为图标 */
.westeros-icon::before {
    content: '🏰';
}

.essos-icon::before {
    content: '🐉';
}

.houses-icon::before {
    content: '👑';
}

.battles-icon::before {
    content: '⚔️';
}

.feature-card h3 {
    font-family: 'Cinzel', serif;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.8rem;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

.feature-card p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    position: relative;
    z-index: 1;
}

.feature-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.6rem 1.5rem;
    color: var(--secondary-color);
    text-decoration: none;
    font-family: 'Cinzel', serif;
    border: 2px solid var(--secondary-color);
    border-radius: 4px;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

.feature-link:hover {
    background: var(--secondary-color);
    color: var(--light-text);
    transform: scale(1.05);
}

/* ===================================
   Affiliate Placements
   =================================== */
.affiliate-topbar {
    position: relative;
    z-index: 1200;
    background: linear-gradient(135deg, rgba(244, 232, 208, 0.98), rgba(232, 220, 192, 0.98));
    border-bottom: 3px solid var(--secondary-color);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    transform: translateY(-110%);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.affiliate-topbar.is-visible {
    transform: translateY(0);
    opacity: 1;
}

.affiliate-topbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.85rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.affiliate-topbar-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.affiliate-topbar-eyebrow {
    font-family: 'Cinzel', serif;
    font-size: 0.65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--secondary-color);
}

.affiliate-topbar-title {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    color: var(--text-color);
}

.affiliate-topbar-subtitle {
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.affiliate-topbar .affiliate-disclosure {
    margin-top: 0.2rem;
    font-size: 0.7rem;
}

.affiliate-topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.affiliate-topbar-cta {
    padding: 0.65rem 1.6rem;
    font-size: 0.9rem;
}

.affiliate-topbar-close {
    background: transparent;
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    font-size: 1.1rem;
    border-radius: 4px;
    padding: 0.2rem 0.55rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.affiliate-topbar-close:hover {
    background: var(--secondary-color);
    color: var(--light-text);
}

.affiliate-banner {
    padding: 3.5rem 2rem;
    background: linear-gradient(135deg, rgba(244, 232, 208, 0.98), rgba(232, 220, 192, 0.98));
    border-top: 3px solid var(--secondary-color);
    border-bottom: 3px solid var(--secondary-color);
    position: relative;
    z-index: 2;
}

.affiliate-banner::before {
    content: '';
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(139, 115, 85, 0.4);
    pointer-events: none;
}

.affiliate-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2rem;
    align-items: center;
}

.affiliate-eyebrow {
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
}

.affiliate-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.affiliate-subtitle {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.affiliate-trust {
    font-size: 0.95rem;
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
}

.affiliate-disclosure {
    font-size: 0.8rem;
    color: var(--secondary-color);
    margin-top: 0.75rem;
}

.affiliate-inline {
    padding: 2.5rem 2rem;
    display: flex;
    justify-content: center;
}

.affiliate-card {
    width: 100%;
    max-width: 1100px;
    background: linear-gradient(135deg, rgba(244, 232, 208, 0.96), rgba(232, 220, 192, 0.96));
    border: 2px solid var(--secondary-color);
    border-radius: 10px;
    padding: 2rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2rem;
    align-items: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.affiliate-inline-compact .affiliate-card {
    padding: 1.5rem;
}

.affiliate-card-title {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.affiliate-card-description {
    margin-bottom: 0.5rem;
}

.affiliate-card-actions {
    display: flex;
    justify-content: flex-end;
}

.affiliate-cta {
    white-space: nowrap;
}

.affiliate-resource-card {
    border-color: var(--accent-color);
}

.affiliate-resource-card .resource-link {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--dark-bg);
}

.affiliate-sticky {
    position: fixed;
    left: 50%;
    bottom: 1.25rem;
    transform: translateX(-50%);
    width: calc(100% - 2rem);
    max-width: 600px;
    background: linear-gradient(135deg, rgba(244, 232, 208, 0.98), rgba(232, 220, 192, 0.98));
    border: 2px solid var(--secondary-color);
    border-radius: 12px;
    padding: 0.9rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    z-index: 1200;
}

.affiliate-sticky-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.affiliate-sticky-text {
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    color: var(--text-color);
}

.affiliate-sticky-disclosure {
    font-size: 0.7rem;
    color: var(--secondary-color);
}

.affiliate-sticky-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.affiliate-sticky-cta {
    background: var(--secondary-color);
    color: var(--light-text);
    padding: 0.5rem 0.9rem;
    border-radius: 4px;
    font-family: 'Cinzel', serif;
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 1px;
    border: 2px solid var(--secondary-color);
    transition: all 0.3s ease;
}

.affiliate-sticky-cta:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--dark-bg);
}

.affiliate-sticky-close {
    background: transparent;
    border: none;
    color: var(--secondary-color);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.2rem 0.4rem;
}

@media (max-width: 900px) {
    .affiliate-topbar-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .affiliate-topbar-actions {
        width: 100%;
        justify-content: space-between;
    }

    .affiliate-banner-inner,
    .affiliate-card {
        grid-template-columns: 1fr;
    }

    .affiliate-card-actions {
        justify-content: flex-start;
    }
}

@media (min-width: 768px) {
    .affiliate-sticky {
        display: none;
    }
}

/* Related Resources Section */
.related-resources {
    padding: 6rem 2rem;
    background: linear-gradient(rgba(26, 26, 26, 0.9), rgba(26, 26, 26, 0.95));
    position: relative;
}

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

.resource-card {
    background: linear-gradient(135deg, rgba(244, 232, 208, 0.95), rgba(232, 220, 192, 0.95));
    border: 3px solid var(--secondary-color);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    color: var(--text-color);
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.resource-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(139, 115, 85, 0.02) 2px, rgba(139, 115, 85, 0.02) 4px);
    border-radius: 6px;
}

.resource-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(139, 115, 85, 0.4);
    border-color: var(--primary-color);
}

.resource-card h3 {
    font-family: 'Cinzel', serif;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    letter-spacing: 1px;
    position: relative;
}

.resource-card p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: var(--text-color);
    position: relative;
}

.resource-link {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    background: var(--secondary-color);
    color: var(--light-text);
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 2px solid var(--secondary-color);
    position: relative;
    overflow: hidden;
}

.resource-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--primary-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: -1;
}

.resource-link:hover::before {
    width: 300px;
    height: 300px;
}

.resource-link:hover {
    color: var(--dark-bg);
    border-color: var(--primary-color);
}

/* Footer */
.main-footer {
    background: linear-gradient(to bottom, rgba(26, 26, 26, 0.95), rgba(0, 0, 0, 1));
    color: var(--light-text);
    padding: 4rem 2rem 2rem;
    margin-top: auto;
    border-top: 3px solid var(--secondary-color);
    position: relative;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
    background: linear-gradient(90deg, transparent 0%, var(--secondary-color) 10%, transparent 20%, var(--secondary-color) 30%, transparent 40%, var(--secondary-color) 50%, transparent 60%, var(--secondary-color) 70%, transparent 80%, var(--secondary-color) 90%, transparent 100%);
    opacity: 0.3;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-family: 'Cinzel', serif;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

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

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

.footer-section a {
    color: var(--light-text);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-section a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-section address {
    font-style: normal;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border: 2px solid var(--secondary-color);
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--primary-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    z-index: -1;
}

.social-icon:hover::before {
    width: 100%;
    height: 100%;
}

.social-icon:hover {
    border-color: var(--primary-color);
    transform: scale(1.1) rotate(5deg);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--secondary-color);
    color: var(--light-text);
    font-family: 'Lora', serif;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3.5rem;
    }

    .section-header h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 1200px) {

    .feature-grid,
    .resources-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .nav-links {
        display: none;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .resources-grid {
        grid-template-columns: 1fr;
    }

    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

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

    .logo-text {
        font-size: 1.4rem;
    }

    .logo-subtext {
        font-size: 0.8rem;
    }
}

/* Interactive Map iframe Styles */
.got-map-iframe {
    width: 100%;
    height: 800px;
    border: none;
    border-radius: 4px;
    background: var(--aged-paper);
    display: block;
    min-height: 800px;
}

.map-attribution {
    margin: 0;
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-color);
    padding: 1.5rem;
    background: rgba(201, 169, 97, 0.05);
    border-top: 2px solid rgba(139, 115, 85, 0.2);
}

.map-attribution p {
    margin: 0;
    line-height: 1.6;
}

.map-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-family: 'Cinzel', serif;
    transition: all 0.3s ease;
    position: relative;
}

.map-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.map-link:hover {
    color: var(--accent-color);
}

.map-link:hover::after {
    width: 100%;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .got-map-iframe {
        height: 700px;
    }
}

@media (max-width: 768px) {
    .got-map-iframe {
        height: 600px;
    }

    .map-attribution {
        font-size: 0.85rem;
        padding: 0.8rem;
    }
}

@media (max-width: 480px) {
    .got-map-iframe {
        height: 500px;
    }
}

/* Interactive Map iframe Styles - Updated */
.got-map-iframe {
    width: 100%;
    height: 800px;
    border: none;
    border-radius: 4px 4px 0 0;
    background: var(--aged-paper);
    display: block;
    min-height: 800px;
    margin: 0;
    padding: 0;
    vertical-align: bottom;
}

.map-attribution {
    display: none;
}

.map-attribution p {
    background: rgba(244, 232, 208, 0.9);
    padding: 0.8rem 1rem;
    margin: 0;
    line-height: 1.6;
}

.map-attribution a {
    pointer-events: auto;
}

.map-attribution p {
    margin: 0;
    line-height: 1.6;
}

.map-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-family: 'Cinzel', serif;
    transition: all 0.3s ease;
    position: relative;
}

.map-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.map-link:hover {
    color: var(--accent-color);
}

.map-link:hover::after {
    width: 100%;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .got-map-iframe {
        height: 700px;
    }
}

@media (max-width: 768px) {
    .got-map-iframe {
        height: 600px;
    }

    .map-attribution {
        font-size: 0.85rem;
        padding: 0.8rem;
    }
}

@media (max-width: 480px) {
    .got-map-iframe {
        height: 500px;
    }
}

/* ============================================
   Contact Page Styles
   ============================================ */

/* Contact Page Container */
.contact-page {
    padding-top: 0;
    min-height: 100vh;
}

/* Contact Hero Section */
.contact-hero {
    padding: 4rem 2rem;
    background: linear-gradient(135deg,
            rgba(0, 0, 0, 0.8) 0%,
            rgba(42, 36, 22, 0.7) 50%,
            rgba(0, 0, 0, 0.8) 100%);
    text-align: center;
    position: relative;
}

.contact-hero-content {
    max-width: 800px;
    margin: 0 auto;
    color: var(--light-text);
}

.raven-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: ravenFloat 3s ease-in-out infinite;
}

@keyframes ravenFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.contact-hero h1 {
    font-family: 'MedievalSharp', 'Cinzel', serif;
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 2px;
}

.contact-hero-subtitle {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.contact-hero-description {
    font-family: 'Lora', serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--light-text);
    max-width: 700px;
    margin: 0 auto;
}

/* Contact Section */
.contact-section {
    padding: 4rem 2rem;
    background: linear-gradient(rgba(26, 26, 26, 0.95), rgba(26, 26, 26, 0.9));
}

.contact-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--parchment);
    border: 4px solid var(--secondary-color);
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    position: relative;
}

.contact-form-wrapper::before,
.contact-form-wrapper::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 50px;
    border: 3px solid var(--primary-color);
}

.contact-form-wrapper::before {
    top: -3px;
    left: -3px;
    border-right: none;
    border-bottom: none;
}

.contact-form-wrapper::after {
    bottom: -3px;
    right: -3px;
    border-left: none;
    border-top: none;
}

.form-seal {
    position: absolute;
    top: -30px;
    right: 40px;
    font-size: 3rem;
    background: var(--parchment);
    padding: 0 1rem;
    color: var(--primary-color);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.contact-form {
    position: relative;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    font-family: 'Lora', serif;
    font-size: 1rem;
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.7);
    border: 2px solid var(--secondary-color);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.submit-btn {
    width: 100%;
    padding: 1rem 2rem;
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-bg);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(201, 169, 97, 0.4);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 169, 97, 0.6);
}

.submit-btn:active {
    transform: translateY(0);
}

.btn-icon {
    font-size: 1.3rem;
}

/* Contact Info Cards */
.contact-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info-card {
    background: var(--card-bg);
    border: 3px solid var(--secondary-color);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(139, 115, 85, 0.4);
    border-color: var(--primary-color);
}

.info-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-info-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 0.8rem;
    letter-spacing: 1px;
}

.info-content {
    font-family: 'Lora', serif;
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.info-content-link {
    display: inline-block;
    font-family: 'Lora', serif;
    font-size: 1rem;
    color: var(--primary-color);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    font-weight: 600;
}

.info-content-link:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.info-description {
    font-family: 'Lora', serif;
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
    line-height: 1.5;
}

.info-social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link-small {
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    color: var(--secondary-color);
    text-decoration: none;
    padding: 0.4rem 0.8rem;
    border: 2px solid var(--secondary-color);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.social-link-small:hover {
    background: var(--secondary-color);
    color: var(--light-text);
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-hero h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        padding: 3rem 1.5rem;
    }

    .contact-hero h1 {
        font-size: 2.2rem;
    }

    .contact-hero-subtitle {
        font-size: 1.2rem;
    }

    .contact-hero-description {
        font-size: 1rem;
    }

    .contact-section {
        padding: 3rem 1.5rem;
    }

    .contact-form-wrapper {
        padding: 2rem 1.5rem;
    }

    .form-seal {
        top: -25px;
        right: 20px;
        font-size: 2.5rem;
    }

    .info-social-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .social-link-small {
        display: block;
    }
}

@media (max-width: 480px) {
    .raven-icon {
        font-size: 3rem;
    }

    .contact-hero h1 {
        font-size: 1.8rem;
    }

    .contact-form-wrapper {
        padding: 1.5rem 1rem;
    }

    .contact-info-card {
        padding: 1.5rem;
    }
}

/* ============================================
   Houses Page Styles
   ============================================ */

/* Houses Hero Section */
.houses-hero {
    background: linear-gradient(135deg,
            rgba(0, 0, 0, 0.8) 0%,
            rgba(42, 36, 22, 0.7) 50%,
            rgba(0, 0, 0, 0.8) 100%);
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
}

.houses-hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.houses-hero-title {
    font-family: 'MedievalSharp', 'Cinzel', serif;
    font-size: 3.5rem;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.houses-hero-subtitle {
    font-family: 'Lora', serif;
    font-size: 1.3rem;
    font-style: italic;
    color: var(--light-text);
    margin-bottom: 2rem;
}

/* Houses Grid */
.houses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
    background: linear-gradient(rgba(26, 26, 26, 0.95), rgba(26, 26, 26, 0.9));
}

/* House Card */
.house-card {
    background: var(--parchment);
    border: 3px solid var(--secondary-color);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
}

.house-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(139, 115, 85, 0.02) 2px,
            rgba(139, 115, 85, 0.02) 4px);
    border-radius: 6px;
    pointer-events: none;
}

.house-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.house-sigil {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
    position: relative;
    z-index: 1;
}

.house-name {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.8rem;
    position: relative;
    z-index: 1;
}

.house-words {
    font-family: 'Lora', serif;
    font-size: 1.1rem;
    font-style: italic;
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    position: relative;
    z-index: 1;
}

.house-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--text-color);
    position: relative;
    z-index: 1;
}

.house-location,
.house-region {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: 'Lora', serif;
}

.house-description {
    font-family: 'Lora', serif;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-color);
    text-align: left;
    position: relative;
    z-index: 1;
}

/* Houses CTA Section */
.houses-cta {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2416 100%);
    padding: 4rem 2rem;
    text-align: center;
}

.cta-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive Design for Houses Page */
@media (max-width: 1024px) {
    .houses-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .houses-hero-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .houses-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 2rem 1rem;
    }

    .houses-hero {
        padding: 3rem 1.5rem;
    }

    .houses-hero-title {
        font-size: 2.2rem;
    }

    .houses-hero-subtitle {
        font-size: 1.1rem;
    }

    .house-card {
        padding: 1.5rem;
    }

    .house-sigil {
        font-size: 3.5rem;
    }

    .house-name {
        font-size: 1.5rem;
    }

    .house-words {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-button {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .houses-hero-title {
        font-size: 1.8rem;
    }

    .house-sigil {
        font-size: 3rem;
    }

    .house-name {
        font-size: 1.3rem;
    }
}


/* ============================================
   Battles Page Styles
   ============================================ */

/* Battles Hero Section */
.battles-hero {
    background: linear-gradient(135deg,
            rgba(0, 0, 0, 0.8) 0%,
            rgba(42, 36, 22, 0.7) 50%,
            rgba(0, 0, 0, 0.8) 100%);
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
}

.battles-hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.battles-hero-title {
    font-family: 'MedievalSharp', 'Cinzel', serif;
    font-size: 3.5rem;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.battles-hero-subtitle {
    font-family: 'Lora', serif;
    font-size: 1.3rem;
    font-style: italic;
    color: var(--light-text);
    margin-bottom: 2rem;
}

/* Battles Grid */
.battles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
    background: linear-gradient(rgba(26, 26, 26, 0.95), rgba(26, 26, 26, 0.9));
}

/* Battle Card */
.battle-card {
    background: var(--parchment);
    border: 3px solid var(--secondary-color);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
}

.battle-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(139, 115, 85, 0.02) 2px,
            rgba(139, 115, 85, 0.02) 4px);
    border-radius: 6px;
    pointer-events: none;
}

.battle-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.battle-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: block;
    position: relative;
    z-index: 1;
}

.battle-name {
    font-family: 'Cinzel', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.battle-meta {
    display: flex;
    justify-content: space-around;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-color);
    position: relative;
    z-index: 1;
}

.battle-year,
.battle-location {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-family: 'Lora', serif;
}

.battle-participants,
.battle-outcome {
    font-family: 'Lora', serif;
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    text-align: left;
    color: var(--text-color);
    position: relative;
    z-index: 1;
}

.battle-description {
    font-family: 'Lora', serif;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-color);
    text-align: left;
    position: relative;
    z-index: 1;
}

/* Battles CTA Section */
.battles-cta {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2416 100%);
    padding: 4rem 2rem;
    text-align: center;
}

/* Responsive Design for Battles Page */
@media (max-width: 1024px) {
    .battles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .battles-hero-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .battles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 2rem 1rem;
    }

    .battles-hero {
        padding: 3rem 1.5rem;
    }

    .battles-hero-title {
        font-size: 2.2rem;
    }

    .battles-hero-subtitle {
        font-size: 1.1rem;
    }

    .battle-card {
        padding: 1.5rem;
    }

    .battle-icon {
        font-size: 3rem;
    }

    .battle-name {
        font-size: 1.4rem;
    }

    .battle-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-button {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .battles-hero-title {
        font-size: 1.8rem;
    }

    .battle-icon {
        font-size: 2.5rem;
    }

    .battle-name {
        font-size: 1.2rem;
    }
}


/* ============================================
   Region Pages Styles
   ============================================ */

/* Region Hero Section */
.region-hero {
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.region-hero-westeros {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: var(--light-text);
}

.region-hero-essos {
    background: linear-gradient(135deg, #d35400 0%, #e67e22 100%);
    color: var(--light-text);
}

.region-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.region-hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--light-text);
}

.region-hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Region Overview Section */
.region-overview {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.overview-item {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    text-align: center;
    transition: transform 0.3s ease;
}

.overview-item:hover {
    transform: translateY(-5px);
}

.overview-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.overview-item h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.overview-item p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Interactive Map Section */
.interactive-map-section {
    padding: 60px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.map-container {
    position: relative;
    margin-top: 40px;
}

.got-map-iframe {
    width: 100%;
    height: 600px;
    border: 3px solid var(--border-color);
    border-radius: 8px;
    background: var(--dark-bg);
}

.map-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 600px;
    background: var(--card-bg);
    border: 3px solid var(--border-color);
    border-radius: 8px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.map-fallback {
    text-align: center;
}

.fallback-map-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.map-error-message {
    margin-top: 20px;
    color: var(--secondary-color);
    font-style: italic;
}

.map-attribution {
    margin-top: 15px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.map-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.map-link:hover {
    text-decoration: underline;
}

/* Region Section */
.region-section {
    padding: 60px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.region-section-header {
    margin-bottom: 40px;
}

.region-section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.region-section-description {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.region-section-info {
    display: flex;
    gap: 30px;
    margin-top: 15px;
}

.info-item {
    font-size: 0.95rem;
}

.info-item strong {
    color: var(--primary-color);
}

/* Locations Grid */
.locations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Location Card */
.location-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.location-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--shadow-dark);
}

.location-card-westeros {
    border-left: 4px solid #3498db;
}

.location-card-essos {
    border-left: 4px solid #f39c12;
}

.location-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.location-icon {
    font-size: 2rem;
}

.location-name {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.location-card-body {
    flex: 1;
}

.location-description {
    margin-bottom: 15px;
    line-height: 1.6;
}

.location-significance {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.location-significance strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 5px;
}

.location-significance p {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--secondary-color);
}

.location-card-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.location-type {
    display: inline-block;
    padding: 5px 12px;
    background: var(--primary-color);
    color: var(--light-text);
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Related Pages Section */
.related-pages {
    padding: 60px 20px;
    max-width: 1400px;
    margin: 0 auto;
    background: var(--parchment);
}

.related-pages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.related-page-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.related-page-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--shadow-dark);
}

.related-page-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.related-page-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.related-page-card p {
    font-size: 0.9rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.related-page-link {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary-color);
    color: var(--light-text);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.related-page-link:hover {
    background: var(--hover-color);
}

/* Section Header (Shared) */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}


/* ============================================
   Responsive Styles for Region Pages
   ============================================ */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    .overview-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .locations-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .related-pages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .region-hero-title {
        font-size: 2.5rem;
    }

    .region-section-title {
        font-size: 2rem;
    }
}

/* Mobile (< 768px) */
@media (max-width: 768px) {
    .region-hero {
        padding: 60px 15px;
    }

    .region-hero-title {
        font-size: 2rem;
    }

    .region-hero-subtitle {
        font-size: 1rem;
    }

    .overview-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .overview-item {
        padding: 20px;
    }

    .region-section {
        padding: 40px 15px;
    }

    .region-section-title {
        font-size: 1.75rem;
    }

    .region-section-info {
        flex-direction: column;
        gap: 10px;
    }

    .locations-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .location-card {
        padding: 20px;
    }

    .location-name {
        font-size: 1.25rem;
    }

    .related-pages-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .related-page-card {
        padding: 20px;
    }

    .got-map-iframe,
    .map-loading {
        height: 400px;
    }

    /* Ensure touch targets are at least 44x44px */
    .related-page-link,
    .map-link {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .location-card {
        min-height: 44px;
    }
}

/* Small Mobile (< 480px) */
@media (max-width: 480px) {
    .region-hero-title {
        font-size: 1.5rem;
    }

    .region-hero-subtitle {
        font-size: 0.9rem;
    }

    .region-section-title {
        font-size: 1.5rem;
    }

    .overview-icon {
        font-size: 2rem;
    }

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

    .related-page-icon {
        font-size: 2rem;
    }

    .got-map-iframe,
    .map-loading {
        height: 300px;
    }
}


/* ============================================
   Accessibility Styles
   ============================================ */

/* Focus Indicators */
a:focus,
button:focus,
.location-card:focus,
.related-page-link:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip Navigation Link */
.skip-nav {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: var(--light-text);
    padding: 8px 16px;
    text-decoration: none;
    z-index: 100;
}

.skip-nav:focus {
    top: 0;
}

/* High Contrast Text */
.region-hero-title,
.region-section-title,
.location-name,
.related-page-card h3 {
    /* Ensure contrast ratio >= 4.5:1 */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Screen Reader Only Content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* ============================================
   Footer Styles - Medieval Theme
   ============================================ */

.main-footer {
    background: linear-gradient(to bottom,
            rgba(26, 26, 26, 0.95),
            rgba(0, 0, 0, 1));
    color: var(--light-text);
    border-top: 3px solid var(--secondary-color);
    padding: 4rem 2rem 2rem;
    position: relative;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-section h4 {
    font-family: 'Cinzel', serif;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
}

.footer-logo {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.footer-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--light-text);
    opacity: 0.9;
}

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

.footer-section li {
    margin-bottom: 0.6rem;
}

.footer-section a {
    color: var(--light-text);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-section a:hover {
    color: var(--primary-color);
    transform: translateX(3px);
}

.footer-section a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Connect Section */
.footer-connect {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-link {
    font-size: 1rem;
    padding: 0.5rem 0;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.social-link {
    font-size: 1.5rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 4px;
    background: rgba(201, 169, 97, 0.1);
}

.social-link:hover {
    background: rgba(201, 169, 97, 0.2);
    transform: translateY(-3px) scale(1.1);
}

/* Back to Top Button */
.footer-back-to-top {
    max-width: 1200px;
    margin: 0 auto 2rem;
    text-align: center;
}

.back-to-top-btn {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: var(--light-text);
    border: 2px solid var(--primary-color);
    padding: 0.8rem 2rem;
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.back-to-top-btn:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.back-to-top-btn:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
}

.back-to-top-btn:active {
    transform: translateY(0);
}

/* Footer Bottom */
.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid var(--secondary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: rgba(244, 232, 208, 0.8);
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-legal a {
    color: rgba(244, 232, 208, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--primary-color);
}

.footer-legal a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .main-footer {
        padding: 3rem 1.5rem 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-section h4 {
        font-size: 1rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        font-size: 0.85rem;
    }

    .footer-legal {
        flex-direction: row;
    }

    .social-link {
        width: 48px;
        height: 48px;
        font-size: 1.6rem;
    }

    .back-to-top-btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .footer-content {
        gap: 1.5rem;
    }

    .footer-logo {
        font-size: 1.1rem;
    }

    .footer-description {
        font-size: 0.9rem;
    }
}


/* ============================================
   Breadcrumbs Navigation
   ============================================ */
.breadcrumbs {
    padding: 1rem 2rem;
    background: rgba(244, 232, 208, 0.5);
    border-bottom: 2px solid var(--border-color);
}

.breadcrumbs ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.breadcrumbs [aria-current="page"] {
    color: var(--text-color);
    font-weight: 600;
}

.breadcrumbs .separator {
    color: var(--border-color);
    margin: 0 0.25rem;
}

@media (max-width: 768px) {
    .breadcrumbs {
        padding: 0.75rem 1rem;
    }

    .breadcrumbs li {
        font-size: 0.85rem;
    }
}

/* ===================================
   Locations Page Styles
   =================================== */

/* Locations 页面主容器 */
.locations-main {
    min-height: calc(100vh - 80px - 200px);
    display: flex;
    flex-direction: column;
}

.locations-map-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0rem;
    background: linear-gradient(135deg, #0f0f1e 0%, #1a1a2e 100%);
}

/* iframe 样式 */
.locations-iframe {
    width: 100%;
    height: calc(100vh - 80px - 200px - 1rem);
    min-height: 800px;
    border: none;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .locations-map-section {
        padding: 0.25rem;
    }

    .locations-iframe {
        min-height: 500px;
        border-radius: 2px;
    }
}

/* ===================================
   Map Preview Section (Homepage)
   =================================== */

/* 地图预览部分 */
.map-preview-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #0f0f1e 0%, #1a1a2e 100%);
}

.map-preview-link {
    display: block;
    text-decoration: none;
    max-width: 1200px;
    margin: 0 auto 2rem;
}

.map-preview-container {
    position: relative;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.map-preview-container:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.4);
}

.map-preview-image {
    width: 100%;
    height: auto;
    display: block;
    min-height: 560px;
    object-fit: cover;
}

.map-preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.map-preview-container:hover .map-preview-overlay {
    opacity: 1;
}

.map-preview-text {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: #c9a961;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.map-preview-icon {
    font-size: 3rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@media (max-width: 768px) {
    .map-preview-section {
        padding: 2rem 1rem;
    }

    .map-preview-image {
        min-height: 360px;
    }

    .map-preview-text {
        font-size: 1.2rem;
    }

    .map-preview-icon {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .map-preview-image {
        min-height: 260px;
    }
}

/* ===================================
   Affiliate Disclosure Page
   =================================== */

.affiliate-disclosure-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 2rem 6rem;
    color: var(--text-color);
    position: relative;
    z-index: 2;
}

.affiliate-disclosure-hero {
    background: linear-gradient(135deg, rgba(244, 232, 208, 0.96), rgba(232, 220, 192, 0.96));
    border: 2px solid var(--secondary-color);
    border-radius: 10px;
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

.affiliate-disclosure-hero h1 {
    margin-bottom: 1rem;
}

.affiliate-disclosure-details h2 {
    margin-bottom: 1rem;
}

.affiliate-disclosure-details ul {
    list-style: disc;
    padding-left: 1.5rem;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .affiliate-disclosure-page {
        padding: 3rem 1.5rem 4rem;
    }

    .affiliate-disclosure-hero {
        padding: 2rem 1.5rem;
    }
}
