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

body {
    font-family: 'Noto Serif SC', serif;
    background: linear-gradient(135deg, #1a0a0a 0%, #2d1515 50%, #1a0a0a 100%);
    color: #e8d5b7;
    line-height: 1.6;
    min-height: 100vh;
}

.header {
    background: rgba(0, 0, 0, 0.9);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #c44536;
}

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

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

.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-container input {
    padding: 0.5rem 1rem;
    border: 2px solid #c44536;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: #e8d5b7;
    font-size: 0.9rem;
    width: 300px;
    transition: all 0.3s ease;
    outline: none;
}

.search-container input:focus {
    width: 400px;
    border-color: #d45546;
    box-shadow: 0 0 10px rgba(196, 69, 54, 0.5);
}

.search-container input::placeholder {
    color: #8b7355;
}

.search-btn {
    position: absolute;
    right: 5px;
    background: none;
    border: none;
    color: #c44536;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.3rem;
    transition: color 0.3s ease;
}

.search-btn:hover {
    color: #d45546;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 5px;
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid #c44536;
    border-radius: 10px;
    padding: 0.5rem;
    display: none;
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
}

.search-results.active {
    display: block;
}

.search-results a {
    display: block;
    padding: 0.7rem;
    color: #e8d5b7;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.search-results a:hover {
    background: rgba(196, 69, 54, 0.2);
}

.search-results a .result-title {
    font-weight: 600;
    color: #c44536;
}

.search-results a .result-category {
    font-size: 0.8rem;
    color: #8b7355;
    margin-top: 0.2rem;
}

.nav-links a {
    text-decoration: none;
    color: #e8d5b7;
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
    font-size: 1rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: #c44536;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #c44536;
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.main-content {
    margin-top: 70px;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem;
    background: linear-gradient(180deg, rgba(196, 69, 54, 0.15) 0%, rgba(196, 69, 54, 0.05) 100%);
    min-height: 70vh;
    text-align: center;
}

.hero-content h1 {
    font-size: 4rem;
    color: #c44536;
    margin-bottom: 1rem;
    text-shadow: 0 0 30px rgba(196, 69, 54, 0.5);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #d4c4a8;
}

.cta-button {
    display: inline-block;
    padding: 1rem 3rem;
    background: linear-gradient(135deg, #c44536, #8b2635);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(196, 69, 54, 0.4);
}

.featured,
.latest-news {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.featured h2,
.latest-news h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    color: #c44536;
}

.featured-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.card {
    background: rgba(30, 15, 15, 0.8);
    border-radius: 15px;
    padding: 2rem 1.5rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(196, 69, 54, 0.2);
    text-align: center;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(196, 69, 54, 0.3);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.card h3 {
    color: #c44536;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.card p {
    color: #a89878;
    font-size: 0.9rem;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.news-item {
    background: rgba(30, 15, 15, 0.6);
    padding: 1.5rem 2rem;
    border-radius: 10px;
    border-left: 4px solid #c44536;
    transition: background 0.3s ease;
}

.news-item:hover {
    background: rgba(30, 15, 15, 0.8);
}

.news-item .date {
    color: #8b6914;
    font-size: 0.9rem;
    margin-right: 1rem;
}

.news-item h3 {
    display: inline;
    color: #e8d5b7;
    font-size: 1.2rem;
}

.news-item p {
    margin-top: 0.5rem;
    color: #a89878;
}

.footer {
    background: rgba(0, 0, 0, 0.9);
    padding: 2rem;
    text-align: center;
    margin-top: 4rem;
}

.footer p {
    color: #666;
}

.guide-content,
.characters-content,
.maps-content,
.equipment-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.page-title {
    font-size: 3rem;
    text-align: center;
    color: #c44536;
    margin-bottom: 2rem;
}

.guide-section,
.character-section,
.map-section,
.equipment-section {
    background: rgba(30, 15, 15, 0.7);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(196, 69, 54, 0.2);
}

.guide-section h3,
.character-section h3,
.map-section h3,
.equipment-section h3 {
    color: #c44536;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.guide-section p,
.character-section p,
.map-section p,
.equipment-section p {
    color: #d4c4a8;
    margin-bottom: 1rem;
}

.guide-section ul,
.character-section ul,
.map-section ul,
.equipment-section ul {
    list-style: none;
    padding-left: 1rem;
}

.guide-section li,
.character-section li,
.map-section li,
.equipment-section li {
    color: #a89878;
    padding: 0.5rem 0;
    position: relative;
}

.guide-section li::before,
.character-section li::before,
.map-section li::before,
.equipment-section li::before {
    content: '▶';
    position: absolute;
    left: -1rem;
    color: #c44536;
}

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

.character-card {
    background: rgba(30, 15, 15, 0.8);
    border-radius: 15px;
    padding: 2rem 1.5rem;
    text-align: center;
    border: 1px solid rgba(196, 69, 54, 0.2);
}

.character-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.character-card h4 {
    color: #c44536;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.character-card .role {
    color: #8b6914;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.character-card p {
    color: #a89878;
    font-size: 0.9rem;
}

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

.map-card {
    background: rgba(30, 15, 15, 0.8);
    border-radius: 15px;
    padding: 2rem 1.5rem;
    border: 1px solid rgba(196, 69, 54, 0.2);
}

.map-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.map-card h4 {
    color: #c44536;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.map-card p {
    color: #a89878;
    font-size: 0.9rem;
}

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

.equipment-card {
    background: rgba(30, 15, 15, 0.8);
    border-radius: 15px;
    padding: 2rem 1.5rem;
    border: 1px solid rgba(196, 69, 54, 0.2);
}

.equipment-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.equipment-card h4 {
    color: #c44536;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.equipment-card .rarity {
    color: #8b6914;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.equipment-card p {
    color: #a89878;
    font-size: 0.9rem;
}

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

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

    .character-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .map-grid,
    .equipment-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-links a {
        font-size: 0.9rem;
    }

    .feedback-container {
        flex-direction: column;
    }

    .feedback-form,
    .feedback-list {
        width: 100%;
    }
}

.feedback-panel {
    position: fixed;
    right: -380px;
    top: 50%;
    transform: translateY(-50%);
    width: 380px;
    max-height: 80vh;
    background: rgba(30, 15, 15, 0.95);
    border-radius: 15px 0 0 15px;
    border: 1px solid rgba(196, 69, 54, 0.3);
    border-right: none;
    z-index: 100;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.feedback-panel.active {
    right: 45px;
}

.feedback-toggle {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 85px;
    background: linear-gradient(180deg, #c44536, #8b2635);
    border-radius: 8px 0 0 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    transition: all 0.3s ease;
    box-shadow: -5px 0 15px rgba(196, 69, 54, 0.4);
    z-index: 101;
}

.feedback-toggle:hover {
    background: linear-gradient(180deg, #d45546, #9b3645);
    width: 50px;
}

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

.toggle-arrow {
    font-size: 1.1rem;
    color: white;
    font-weight: bold;
    transition: transform 0.2s ease;
}

.feedback-toggle:hover .toggle-arrow {
    transform: translateX(2px);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
    background: rgba(196, 69, 54, 0.1);
    border-bottom: 1px solid rgba(196, 69, 54, 0.2);
}

.panel-header h3 {
    color: #c44536;
    font-size: 1.2rem;
    margin: 0;
}

.close-btn {
    color: #8b6914;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #c44536;
}

.panel-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.panel-content {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
    max-height: 60vh;
}

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

.feedback-list {
    border-top: 1px solid rgba(196, 69, 54, 0.2);
    padding-top: 1.5rem;
}

.feedback-list h4 {
    color: #c44536;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

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

.form-group label {
    display: block;
    color: #d4c4a8;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid rgba(196, 69, 54, 0.3);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    color: #e8d5b7;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #c44536;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #666;
}

.submit-btn {
    display: block;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #c44536, #8b2635);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(196, 69, 54, 0.4);
}

.comment-item {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 1.2rem;
    margin-bottom: 1rem;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
}

.comment-name {
    color: #c44536;
    font-weight: 600;
}

.comment-date {
    color: #8b6914;
    font-size: 0.9rem;
}

.comment-content {
    color: #a89878;
    line-height: 1.6;
}

.map-card {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.map-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(196, 69, 54, 0.3);
    border-color: rgba(196, 69, 54, 0.5);
}

.click-hint {
    display: block;
    margin-top: 1rem;
    color: #8b6914;
    font-size: 0.85rem;
    font-style: italic;
}

.map-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
}

.map-modal-content {
    background: rgba(30, 15, 15, 0.98);
    margin: 3% auto;
    padding: 0;
    border: 2px solid #c44536;
    border-radius: 15px;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(196, 69, 54, 0.5);
}

.map-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: rgba(196, 69, 54, 0.1);
    border-bottom: 1px solid rgba(196, 69, 54, 0.3);
}

.map-modal-header h2 {
    color: #c44536;
    font-size: 2rem;
    margin: 0;
}

.map-modal-close {
    color: #8b6914;
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.map-modal-close:hover {
    color: #c44536;
}

.map-modal-body {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 0;
    height: calc(90vh - 100px);
}

.interactive-map {
    position: relative;
    background: #1a0a0a;
    overflow: hidden;
}

.map-canvas {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 500px;
}

.map-canvas svg {
    width: 100%;
    height: 100%;
    max-width: none;
}

.map-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.6;
}

.map-marker {
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    z-index: 10;
    border: 3px solid white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.map-marker:hover {
    transform: translate(-50%, -50%) scale(1.3);
    z-index: 20;
}

.marker-quest {
    background: #ffd700;
}

.marker-dungeon {
    background: #ff4444;
}

.marker-treasure {
    background: #44ff44;
}

.marker-boss {
    background: #ff00ff;
}

.marker-vendor {
    background: #00ffff;
}

.marker-teleport {
    background: #8800ff;
}

.map-legend {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.85);
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid rgba(196, 69, 54, 0.3);
    z-index: 15;
}

.map-legend h4 {
    color: #c44536;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.3rem 0;
    font-size: 0.85rem;
    color: #d4c4a8;
}

.legend-item span {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-block;
    border: 2px solid white;
}

.marker-quest.legend-item span,
.legend-item .marker-quest {
    background: #ffd700;
}

.legend-item .marker-dungeon {
    background: #ff4444;
}

.legend-item .marker-treasure {
    background: #44ff44;
}

.legend-item .marker-boss {
    background: #ff00ff;
}

.legend-item .marker-vendor {
    background: #00ffff;
}

.legend-item .marker-teleport {
    background: #8800ff;
}

.map-info-panel {
    background: rgba(20, 10, 10, 0.95);
    padding: 2rem;
    overflow-y: auto;
    border-left: 1px solid rgba(196, 69, 54, 0.3);
}

.map-info-panel h3 {
    color: #c44536;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(196, 69, 54, 0.3);
}

.map-info-panel h4 {
    color: #d4c4a8;
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

.map-info-panel ul {
    list-style: none;
    padding-left: 0;
}

.map-info-panel li {
    color: #a89878;
    padding: 0.4rem 0;
    position: relative;
    padding-left: 1.2rem;
}

.map-info-panel li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #c44536;
}

.map-info-panel strong {
    color: #e8d5b7;
}

.marker-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.95);
    border: 2px solid #c44536;
    border-radius: 8px;
    padding: 0.8rem 1rem;
    z-index: 1000;
    pointer-events: none;
    max-width: 250px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.tooltip-title {
    color: #c44536;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.tooltip-desc {
    color: #a89878;
    font-size: 0.9rem;
    line-height: 1.4;
}

.visitor-counter {
    text-align: center;
    padding: 1.5rem;
    background: rgba(196, 69, 54, 0.1);
    border-top: 1px solid rgba(196, 69, 54, 0.3);
    margin-top: 2rem;
}

.visitor-counter p {
    color: #d4c4a8;
    font-size: 1.1rem;
    margin: 0;
}

.visitor-counter .count {
    color: #c44536;
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0 0.3rem;
}

@media (max-width: 1024px) {
    .map-modal-body {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr auto;
    }
    
    .map-info-panel {
        border-left: none;
        border-top: 1px solid rgba(196, 69, 54, 0.3);
        max-height: 300px;
    }
}

@media (max-width: 768px) {
    .map-modal-content {
        width: 95%;
        margin: 2% auto;
    }
    
    .map-modal-header h2 {
        font-size: 1.5rem;
    }
    
    .map-legend {
        padding: 0.7rem;
        font-size: 0.8rem;
    }
    
    .map-marker {
        width: 24px;
        height: 24px;
    }
}