/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #ffffff;
    min-height: 100vh;
    line-height: 1.6;
}

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

/* 游戏标题 */
.game-header {
    text-align: center;
    margin-bottom: 30px;
}

.game-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
}

.developer {
    font-size: 1rem;
    color: #cccccc;
    font-style: italic;
}

.game-subtitle {
    margin-top: 15px;
    font-style: italic;
    color: #ffd700;
    font-size: 1.1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Language Selector */
.language-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.language-selector select {
    background: rgba(255, 255, 255, 0.9);
    color: #000000;
    border: 2px solid #ffd700;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.language-selector select:hover {
    background: #ffffff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.language-selector select:focus {
    outline: none;
    border-color: #ff6b6b;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.3);
}

/* 游戏介绍区域 */
.game-intro {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 30px;
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.intro-content h2 {
    color: #ffd700;
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
}

.intro-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
    text-align: center;
    color: #e0e0e0;
}

.game-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

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

.feature-card h3 {
    color: #ffd700;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.feature-card p {
    color: #cccccc;
    font-size: 1rem;
    margin: 0;
}

/* 原版游戏信息 */
.original-game-info {
    background: rgba(0, 0, 0, 0.3);
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 30px;
    border: 2px solid rgba(255, 107, 107, 0.3);
}

.info-content h2 {
    color: #ff6b6b;
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
}

.original-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.info-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #e0e0e0;
}

.game-stats {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.stat-label {
    font-weight: 600;
    color: #cccccc;
}

.stat-value {
    color: #ffd700;
    font-weight: 700;
}

.developer-note {
    background: rgba(255, 215, 0, 0.1);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #ffd700;
    margin-top: 20px;
}

.developer-note h4 {
    color: #ffd700;
    margin-bottom: 10px;
}

.developer-note p {
    font-style: italic;
    color: #e0e0e0;
    margin: 0;
}

/* 游戏图片展示 */
.game-images {
    background: #ffffff;
    color: #000000;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.game-images h4 {
    color: #000000;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.card-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.card-image-container {
    text-align: center;
}

.card-image-container h5 {
    color: #000000;
    margin-bottom: 10px;
    font-size: 1rem;
}

.card-image {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.card-image:hover {
    transform: scale(1.05);
}

.card-image-container p {
    color: #333333;
    font-size: 0.9rem;
    margin: 0;
}

.pdf-download-info {
    background: rgba(255, 215, 0, 0.1);
    padding: 15px;
    border-radius: 8px;
    border: 2px solid #ffd700;
    margin-top: 15px;
}

.pdf-download-info h5 {
    color: #000000;
    margin-bottom: 10px;
    font-size: 1rem;
}

.pdf-download-info p {
    color: #333333;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.offline-play-info {
    background: rgba(255, 255, 255, 0.5);
    padding: 10px;
    border-radius: 6px;
    margin-top: 10px;
}

.offline-play-info h6 {
    color: #000000;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.offline-play-info ul {
    color: #333333;
    font-size: 0.8rem;
    margin: 0;
    padding-left: 15px;
}

.offline-play-info li {
    margin-bottom: 4px;
}

.card-front h4 {
    color: #000000;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.card-sections {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.card-section {
    padding: 15px;
    border-radius: 8px;
    border: 2px solid #000000;
}

.card-section.quest-section {
    background: rgba(255, 215, 0, 0.2);
}

.card-section.encounter-section {
    background: rgba(255, 107, 107, 0.2);
}

.card-section.stats-section {
    background: rgba(107, 107, 255, 0.2);
}

.card-section h5 {
    color: #000000;
    margin-bottom: 8px;
    font-size: 1rem;
}

.card-section p {
    color: #333333;
    font-size: 0.9rem;
    margin: 0;
}

/* 原版链接 */
.original-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.original-link {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    color: white;
    text-decoration: none;
    padding: 15px 25px;
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.original-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 107, 107, 0.4);
}

.link-icon {
    font-size: 1.2rem;
}

/* 游戏规则 */
.game-rules {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 30px;
    border: 2px solid rgba(107, 107, 255, 0.3);
}

.rules-content h2 {
    color: #6b6bff;
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.rule-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.rule-card:hover {
    transform: translateY(-3px);
}

.rule-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.rule-card h3 {
    color: #6b6bff;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.rule-card p {
    color: #cccccc;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* 开始游戏区域 */
.start-game-section {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 107, 107, 0.2));
    padding: 50px;
    border-radius: 15px;
    margin-bottom: 30px;
    text-align: center;
    border: 2px solid rgba(255, 215, 0, 0.5);
}

.start-content h2 {
    color: #ffd700;
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.start-content p {
    color: #e0e0e0;
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.start-game-btn {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #000000;
    border: none;
    padding: 20px 40px;
    border-radius: 12px;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 15px;
}

.start-game-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.6);
}

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

/* 新手教学引导 */
.tutorial-guide {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 300px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #000000;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
    transition: all 0.5s ease-in-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.tutorial-content {
    padding: 20px;
}

.tutorial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.tutorial-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #000000;
}

.close-tutorial-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666666;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.close-tutorial-btn:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.tutorial-body p {
    margin: 0 0 15px 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #333333;
}

.tutorial-actions {
    display: flex;
    gap: 8px;
    justify-content: space-between;
}

.tutorial-btn {
    background: #000000;
    color: #ffffff;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    flex: 1;
}

.tutorial-btn:hover:not(:disabled) {
    background: #333333;
}

.tutorial-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
}

.tutorial-btn.skip-btn {
    background: #ff6b6b;
    flex: 0 0 auto;
    padding: 8px 16px;
}

.tutorial-btn.skip-btn:hover {
    background: #ff5252;
}

/* 新手教学高亮效果 */
.tutorial-highlight {
    position: relative;
    animation: tutorialPulse 1.5s infinite;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8) !important;
    border: 3px solid #ffd700 !important;
    border-radius: 8px !important;
    z-index: 10;
}

/* Special highlight for buttons */
.tutorial-highlight.dice-btn,
.tutorial-highlight.control-btn,
.tutorial-highlight.action-btn {
    background: linear-gradient(45deg, #ffd700, #ffed4e) !important;
    color: #000000 !important;
    font-weight: bold !important;
    animation: tutorialButtonPulse 1.5s infinite;
}

@keyframes tutorialPulse {
    0% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 215, 0, 1);
    }
    100% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    }
}

@keyframes tutorialButtonPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(255, 215, 0, 0.5), 0 0 20px rgba(255, 215, 0, 0.8) !important;
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 6px 25px rgba(255, 215, 0, 0.7), 0 0 30px rgba(255, 215, 0, 0.9) !important;
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(255, 215, 0, 0.5), 0 0 20px rgba(255, 215, 0, 0.8) !important;
    }
}

/* Click Indicator */
.click-indicator {
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    animation: clickIndicatorBounce 1s infinite;
    border: 2px solid #ffffff;
}

@keyframes clickIndicatorBounce {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    50% {
        transform: translateY(-10px) scale(1.1);
        opacity: 0.9;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* 游戏区域 */
.game-area {
    margin-top: 30px;
    padding: 30px;
    border-top: 3px solid rgba(255, 215, 0, 0.5);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 107, 107, 0.1));
    border-radius: 15px;
    animation: gameAreaSlideIn 0.5s ease-out;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}


.game-area-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
}

/* Difficulty Selection */
.difficulty-selection {
    margin-top: 30px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 107, 107, 0.1));
    border-radius: 15px;
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.difficulty-selection h3 {
    color: #ffd700;
    margin-bottom: 30px;
    font-size: 1.8rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.difficulty-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.difficulty-card {
    background: linear-gradient(135deg, #2c2c54, #40407a);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.difficulty-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.difficulty-card[data-difficulty="easy"]:hover {
    border-color: #4ade80;
    box-shadow: 0 10px 25px rgba(74, 222, 128, 0.3);
}

.difficulty-card[data-difficulty="normal"]:hover {
    border-color: #fbbf24;
    box-shadow: 0 10px 25px rgba(251, 191, 36, 0.3);
}

.difficulty-card[data-difficulty="hard"]:hover {
    border-color: #f87171;
    box-shadow: 0 10px 25px rgba(248, 113, 113, 0.3);
}

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

.difficulty-card h4 {
    color: #ffd700;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.difficulty-card p {
    color: #e2e8f0;
    margin: 8px 0;
    font-size: 0.95rem;
    line-height: 1.4;
}

.difficulty-btn {
    margin-top: 20px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.easy-btn {
    background: linear-gradient(45deg, #4ade80, #22c55e);
    color: #000;
}

.easy-btn:hover {
    background: linear-gradient(45deg, #22c55e, #16a34a);
    transform: scale(1.05);
}

.normal-btn {
    background: linear-gradient(45deg, #fbbf24, #f59e0b);
    color: #000;
}

.normal-btn:hover {
    background: linear-gradient(45deg, #f59e0b, #d97706);
    transform: scale(1.05);
}

.hard-btn {
    background: linear-gradient(45deg, #f87171, #ef4444);
    color: #fff;
}

.hard-btn:hover {
    background: linear-gradient(45deg, #ef4444, #dc2626);
    transform: scale(1.05);
}

/* Score Display */
.score-display {
    margin-top: 30px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 107, 107, 0.1));
    border-radius: 15px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    text-align: center;
}

.score-display h3 {
    color: #ffd700;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.score-list {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 15px;
}

.score-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.difficulty-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
}

.difficulty-badge.easy {
    background: linear-gradient(45deg, #4ade80, #22c55e);
    color: #000;
}

.difficulty-badge.normal {
    background: linear-gradient(45deg, #fbbf24, #f59e0b);
    color: #000;
}

.difficulty-badge.hard {
    background: linear-gradient(45deg, #f87171, #ef4444);
    color: #fff;
}

.score-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Celebration Effect */
.celebration-effect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: celebrationFadeIn 0.5s ease-out;
}

.celebration-content {
    text-align: center;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    animation: celebrationBounce 1s ease-out;
}

.celebration-content h1 {
    color: #000;
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.5);
    animation: celebrationPulse 2s infinite;
}

.celebration-content p {
    color: #000;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 30px;
}

.fireworks {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto;
}

.fireworks::before,
.fireworks::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: #ff6b6b;
    border-radius: 50%;
    animation: firework 2s infinite;
}

.fireworks::before {
    top: 50px;
    left: 50px;
    animation-delay: 0s;
}

.fireworks::after {
    top: 100px;
    right: 50px;
    animation-delay: 1s;
}

@keyframes celebrationFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes celebrationBounce {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes celebrationPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes firework {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    50% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.game-area-header h2 {
    color: #ffd700;
    font-size: 2rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.game-area-header p {
    color: #e0e0e0;
    font-size: 1.1rem;
    margin: 0;
}

@keyframes gameAreaSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 游戏状态 */
.game-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.encounter-counter, .game-phase {
    font-size: 1.1rem;
    font-weight: 600;
}

/* 游戏板 */
.game-board {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 20px;
    margin-bottom: 30px;
}

/* 属性区域 */
.stats-section {
    grid-column: 1 / -1;
}

.stats-section h2 {
    background: #000000;
    color: #ffffff;
    padding: 10px 20px;
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.2rem;
    border-radius: 5px;
}

.stats-container {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.stat-box {
    background: #ffffff;
    color: #000000;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    min-width: 120px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-2px);
}

.stat-label {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #ff6b6b;
}

.stat-dice {
    min-height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 任务和遭遇区域 */
.quest-section, .encounter-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.quest-section h2, .encounter-section h2 {
    background: #000000;
    color: #ffffff;
    padding: 10px 20px;
    margin: -20px -20px 15px -20px;
    text-align: center;
    font-size: 1.2rem;
    border-radius: 8px 8px 0 0;
}

.quest-container, .encounter-container {
    text-align: center;
}

.quest-info, .encounter-info {
    margin-bottom: 15px;
}

.quest-result, .encounter-result {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

.quest-dice, .encounter-dice {
    font-size: 2rem;
    margin-bottom: 10px;
}

.quest-text, .encounter-text {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.encounter-resolution {
    background: rgba(255, 107, 107, 0.2);
    padding: 15px;
    border-radius: 8px;
    border: 2px solid #ff6b6b;
}

/* 行动区域 */
.actions-section {
    grid-column: 1 / -1;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.actions-section h2 {
    background: #000000;
    color: #ffffff;
    padding: 10px 20px;
    margin: -20px -20px 15px -20px;
    text-align: center;
    font-size: 1.2rem;
    border-radius: 8px 8px 0 0;
}

.actions-container {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* 按钮样式 */
.dice-btn, .action-btn, .control-btn {
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.dice-btn:hover, .action-btn:hover, .control-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.dice-btn:active, .action-btn:active, .control-btn:active {
    transform: translateY(0);
}

.action-btn:disabled {
    background: #666666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.action-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* 骰子显示 */
.dice-display {
    text-align: center;
    margin: 20px 0;
    min-height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.dice {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: #ffffff;
    color: #000000;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    animation: roll 0.6s ease-in-out;
}

@keyframes roll {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.2); }
    100% { transform: rotate(360deg) scale(1); }
}

/* 游戏消息 */
.game-messages {
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    min-height: 50px;
    border-left: 4px solid #ffd700;
}

.message {
    margin-bottom: 8px;
    padding: 5px 0;
}

.message:last-child {
    margin-bottom: 0;
}

.message.success {
    color: #4ade80;
}

.message.warning {
    color: #fbbf24;
}

.message.error {
    color: #f87171;
}

.message.info {
    color: #60a5fa;
}

/* 游戏控制 */
.game-controls {
    text-align: center;
    margin-top: 30px;
}

/* 模态框 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: #1a1a2e;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    border: 2px solid #ffd700;
}

.modal-content h2 {
    color: #ffd700;
    margin-bottom: 20px;
    font-size: 2rem;
}

.modal-content p {
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* 页脚 */
.game-footer {
    background: rgba(0, 0, 0, 0.5);
    padding: 40px 0 20px;
    margin-top: 50px;
    border-top: 2px solid rgba(255, 215, 0, 0.3);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    color: #ffd700;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

/* Main footer section styling */
.footer-main {
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.footer-main .main-title {
    color: #ffd700;
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 12px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
}

.footer-main .main-description {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.footer-main .main-subtitle {
    color: #e0e0e0;
    font-size: 1rem;
    font-style: italic;
    margin-bottom: 0;
}

.footer-section p {
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 10px;
}

.footer-section a {
    color: #ff6b6b;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #ffd700;
}

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

.footer-bottom p {
    color: #999999;
    font-size: 0.9rem;
    margin: 0;
}

/* Content Pages Styles */
.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.about-content, .privacy-content, .terms-content, .contact-content {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 30px;
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.about-content h2, .privacy-content h2, .terms-content h2, .contact-content h2 {
    color: #ffd700;
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-align: center;
}

.about-section, .privacy-section, .terms-section, .contact-section {
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border-left: 4px solid #ffd700;
}

.about-section h3, .privacy-section h3, .terms-section h3, .contact-section h3 {
    color: #ffd700;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.about-section p, .privacy-section p, .terms-section p, .contact-section p {
    color: #e0e0e0;
    line-height: 1.6;
    margin-bottom: 15px;
}

.about-section ul, .privacy-section ul, .terms-section ul, .contact-section ul {
    color: #e0e0e0;
    padding-left: 20px;
}

.about-section li, .privacy-section li, .terms-section li, .contact-section li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.about-section a, .privacy-section a, .terms-section a, .contact-section a {
    color: #ff6b6b;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.about-section a:hover, .privacy-section a:hover, .terms-section a:hover, .contact-section a:hover {
    color: #ffd700;
}

/* Contact Form Styles */
.contact-form {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 12px;
    margin-top: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #ffd700;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}

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

.submit-btn {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #000000;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

/* Back to Top Button */
.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #000000;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.back-to-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
    background: linear-gradient(45deg, #ffed4e, #ffd700);
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    .game-container {
        padding: 10px;
    }
    
    .game-header h1 {
        font-size: 2rem;
    }
    
    .game-board {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stats-container {
        flex-direction: column;
        align-items: center;
    }
    
    .actions-container {
        flex-direction: column;
        align-items: center;
    }
    
    .dice {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .original-info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .game-features {
        grid-template-columns: 1fr;
    }
    
    .rules-grid {
        grid-template-columns: 1fr;
    }
    
    .original-links {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-main .main-title {
        font-size: 1.4rem;
    }
    
    .footer-main .main-description {
        font-size: 1rem;
    }
    
    .card-images {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .tutorial-guide {
        position: relative;
        top: auto;
        right: auto;
        width: 100%;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .game-header h1 {
        font-size: 1.5rem;
    }
    
    .stat-box {
        min-width: 100px;
        padding: 15px;
    }
    
    .dice-btn, .action-btn, .control-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}
