/* game 页面内联样式（从 game.html 抽取） */

/* ======== 从 game.html 抽取的内联样式（2026-07-18） ======== */
/* 原 <style> 块 1 */
.tang-bottom-nav {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      z-index: 1000;
      background: linear-gradient(135deg, #8B4513 0%, #A0522D 50%, #8B4513 100%);
      border-top: 4px solid #FFD700;
      box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
      padding: 8px 0;
    }

    .bottom-nav-container {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 6px;
      max-width: 1400px;
      margin: 0 auto;
      padding: 0 10px;
    }

    .nav-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 8px 10px;
      color: #FFD700;
      text-decoration: none;
      border-radius: 8px;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      background: rgba(255, 255, 255, 0.08);
      border: 1px solid rgba(255, 215, 0, 0.3);
      position: relative;
      overflow: hidden;
      font-family: "SimSun", "STSong", serif;
    }

    .nav-item::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
      transition: left 0.5s;
    }

    .nav-item:hover::before {
      left: 100%;
    }

    .nav-item:hover {
      background: linear-gradient(135deg, #DAA520, #FFD700);
      color: #5D4037;
      border-color: #FFD700;
      transform: translateY(-2px);
      box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    }

    .nav-item.special-link {
      background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 165, 0, 0.3));
      border-color: #FFD700;
      animation: glow 2s infinite;
    }

    .nav-item.special-link:hover {
      background: linear-gradient(135deg, #FFD700, #FFA500);
      animation: none;
    }

    @keyframes glow {
      0%, 100% { box-shadow: 0 0 5px #FFD700; }
      50% { box-shadow: 0 0 20px #FFD700, 0 0 30px #FFA500; }
    }

    .nav-icon {
      font-size: 18px;
      margin-bottom: 2px;
    }

    .nav-text {
      font-size: 11px;
      font-weight: 500;
      white-space: nowrap;
    }

    body {
      padding-bottom: 90px;
      font-family: 'Noto Serif SC', 'Microsoft YaHei', sans-serif;
    }
    
    /* 五星优化：添加页面加载动画 */
    @keyframes fadeInUp {
      from {
        opacity: 0;
        transform: translateY(30px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }
    
    @keyframes pulse {
      0%, 100% { transform: scale(1); }
      50% { transform: scale(1.05); }
    }
    
    /* 五星优化：添加游戏卡片悬停效果增强 */
    .game-card {
      position: relative;
      overflow: hidden;
      animation: fadeInUp 0.6s ease-out;
    }
    
    .game-card::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;
    }
    
    .game-card:hover::before {
      left: 100%;
    }
    
    /* 五星优化：添加游戏统计面板 */
    .game-stats {
      background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,255,255,0.9));
      border-radius: 15px;
      padding: 20px;
      margin: 20px auto;
      max-width: 600px;
      box-shadow: 0 4px 15px rgba(0,0,0,0.1);
      backdrop-filter: blur(10px);
    }
    
    .stats-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 15px;
      text-align: center;
    }
    
    .stat-item {
      padding: 15px;
      background: linear-gradient(135deg, #f8f9fa, #e9ecef);
      border-radius: 10px;
      transition: all 0.3s ease;
    }
    
    .stat-item:hover {
      transform: translateY(-3px);
      box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }
    
    .stat-value {
      font-size: 24px;
      font-weight: bold;
      color: #8B4513;
      margin-bottom: 5px;
    }
    
    .stat-label {
      font-size: 12px;
      color: #666;
    }
    
    /* 五星优化：添加每日挑战按钮 */
    .daily-challenge-btn {
      background: linear-gradient(135deg, #ff6b6b, #ee5a24);
      color: white;
      border: none;
      padding: 15px 30px;
      border-radius: 30px;
      font-size: 16px;
      cursor: pointer;
      margin: 20px auto;
      display: block;
      transition: all 0.3s ease;
      box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
      animation: pulse 2s infinite;
    }
    
    .daily-challenge-btn:hover {
      transform: translateY(-3px);
      box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5);
    }
    
    /* 五星优化：添加通知样式 */
    .game-notification {
      position: fixed;
      top: 20px;
      left: 50%;
      transform: translateX(-50%);
      background: linear-gradient(135deg, #8B4513, #A0522D);
      color: white;
      padding: 12px 24px;
      border-radius: 25px;
      font-size: 14px;
      z-index: 10000;
      box-shadow: 0 4px 15px rgba(0,0,0,0.3);
      animation: fadeInUp 0.3s ease;
    }
    
    /* 五星优化：添加加载动画 */
    .loading-overlay {
      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: 9999;
      opacity: 0;
      visibility: hidden;
      transition: all 0.3s ease;
    }
    
    .loading-overlay.active {
      opacity: 1;
      visibility: visible;
    }
    
    .loading-spinner {
      width: 60px;
      height: 60px;
      border: 4px solid rgba(255,255,255,0.3);
      border-top-color: #FFD700;
      border-radius: 50%;
      animation: spin 1s linear infinite;
    }
    
    @keyframes spin {
      to { transform: rotate(360deg); }
    }
    
    /* ====== 增强交互效果 ====== */
    
    /* 页面标题动画 */
    .header-title {
        animation: titleFadeIn 1s ease-out;
        background: linear-gradient(135deg, #8B4513, #DAA520);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    @keyframes titleFadeIn {
        0% { opacity: 0; transform: translateY(-30px); }
        100% { opacity: 1; transform: translateY(0); }
    }
    
    /* 页面副标题动画 */
    .page-title {
        animation: subtitleReveal 0.8s ease-out 0.3s backwards;
        background: linear-gradient(135deg, #8B4513, #DAA520);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    @keyframes subtitleReveal {
        0% { opacity: 0; letter-spacing: 20px; }
        100% { opacity: 1; letter-spacing: normal; }
    }
    
    /* 游戏卡片入场动画 */
    .game-card:nth-child(1) { animation-delay: 0.2s; }
    .game-card:nth-child(2) { animation-delay: 0.4s; }
    .game-card:nth-child(3) { animation-delay: 0.6s; }
    
    /* 游戏卡片悬浮增强 */
    .game-card:hover {
        transform: translateY(-8px) scale(1.02);
        box-shadow: 0 15px 40px rgba(139, 69, 19, 0.2);
    }
    
    .game-card-content {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .game-card:hover .game-card-content {
        transform: translateY(-5px);
    }
    
    /* 游戏图标动画 */
    .game-icon {
        animation: iconFloat 3s ease-in-out infinite;
    }
    
    .game-card:nth-child(1) .game-icon { animation-delay: 0s; }
    .game-card:nth-child(2) .game-icon { animation-delay: 1s; }
    .game-card:nth-child(3) .game-icon { animation-delay: 2s; }
    
    @keyframes iconFloat {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-10px); }
    }
    
    .game-card:hover .game-icon {
        animation: iconBounce 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }
    
    @keyframes iconBounce {
        0% { transform: scale(1); }
        50% { transform: scale(1.3); }
        100% { transform: scale(1); }
    }
    
    /* 难度标签动画 */
    .difficulty-tag {
        animation: tagPulse 2s ease-in-out infinite;
    }
    
    .difficulty-tag.easy { animation-delay: 0s; }
    .difficulty-tag.medium { animation-delay: 0.7s; }
    .difficulty-tag.hard { animation-delay: 1.4s; }
    
    /* 答题反馈动画 */
    .feedback-correct {
        animation: correctPulse 0.5s ease-out;
    }
    
    .feedback-wrong {
        animation: wrongShake 0.5s ease-out;
    }
    
    @keyframes correctPulse {
        0% { box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.7); }
        50% { box-shadow: 0 0 0 15px rgba(39, 174, 96, 0); }
        100% { box-shadow: 0 0 0 0 rgba(39, 174, 96, 0); }
    }
    
    @keyframes wrongShake {
        0%, 100% { transform: translateX(0); }
        10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
        20%, 40%, 60%, 80% { transform: translateX(5px); }
    }
    
    /* 得分动画 */
    .score-popup {
        position: absolute;
        font-size: 24px;
        font-weight: bold;
        pointer-events: none;
        animation: scoreFloat 1s ease-out forwards;
        z-index: 1000;
    }
    
    .score-popup.positive { color: #27AE60; }
    .score-popup.negative { color: #E74C3C; }
    
    @keyframes scoreFloat {
        0% { opacity: 1; transform: translateY(0) scale(1); }
        100% { opacity: 0; transform: translateY(-50px) scale(1.5); }
    }
    
    /* 连击提示 */
    .combo-indicator {
        position: fixed;
        top: 150px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 36px;
        font-weight: bold;
        color: #FFD700;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
        opacity: 0;
        z-index: 200;
        pointer-events: none;
    }
    
    .combo-indicator.active {
        animation: comboFlash 0.8s ease-out;
    }
    
    @keyframes comboFlash {
        0% { opacity: 0; transform: translateX(-50%) scale(0.5); }
        30% { opacity: 1; transform: translateX(-50%) scale(1.2); }
        50% { transform: translateX(-50%) scale(1); }
        100% { opacity: 0; transform: translateX(-50%) translateY(-20px); }
    }
    
    /* 选项按钮动画 */
    .option-btn {
        transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        cursor: pointer;
    }
    
    .option-btn:hover {
        transform: scale(1.05);
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    }
    
    .option-btn.selected {
        background: linear-gradient(135deg, #8B4513, #D2691E);
        color: white;
    }
    
    @keyframes tagPulse {
        0%, 100% { opacity: 0.8; }
        50% { opacity: 1; }
    }
    
    /* 统计数字动画 */
    .stat-value {
        animation: numberPop 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        background: linear-gradient(135deg, #8B4513, #DAA520);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    .stat-item:nth-child(1) .stat-value { animation-delay: 0.2s; }
    .stat-item:nth-child(2) .stat-value { animation-delay: 0.4s; }
    .stat-item:nth-child(3) .stat-value { animation-delay: 0.6s; }
    
    @keyframes numberPop {
        0% { opacity: 0; transform: scale(0.5); }
        50% { transform: scale(1.2); }
        100% { opacity: 1; transform: scale(1); }
    }
    
    /* 导航链接动画 */
    .nav-link {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
    }
    
    .nav-link::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 0;
        height: 2px;
        background: linear-gradient(90deg, #DAA520, #FFD700);
        transition: width 0.3s ease;
    }
    
    .nav-link:hover::after {
        width: 100%;
    }
    
    .nav-link:hover {
        color: #DAA520;
        transform: translateY(-2px);
    }
    
    /* 音效按钮悬浮 */
    .sound-btn {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
    }
    
    .sound-btn:hover {
        transform: scale(1.2);
        box-shadow: 0 0 15px rgba(218, 165, 32, 0.5);
    }
    
    .sound-btn::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        transition: width 0.4s ease-out, height 0.4s ease-out;
    }
    
    .sound-btn:active::after {
        width: 200%;
        height: 200%;
    }
    
    /* 顶部按钮动画 */
    .top-btn {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
    }
    
    .top-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(139, 69, 19, 0.3);
    }
    
    .top-btn::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        transition: width 0.4s ease-out, height 0.4s ease-out;
    }
    
    .top-btn:active::after {
        width: 200%;
        height: 200%;
    }
    
    /* 返回按钮动画 */
    .back-btn {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
    }
    
    .back-btn:hover {
        transform: translateX(-5px);
        box-shadow: 0 5px 15px rgba(139, 69, 19, 0.3);
    }
    
    .back-btn::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        transition: width 0.4s ease-out, height 0.4s ease-out;
    }
    
    .back-btn:active::after {
        width: 200%;
        height: 200%;
    }
    
    /* 模态框动画 */
    .modal {
        animation: modalFadeIn 0.3s ease-out;
    }
    
    @keyframes modalFadeIn {
        0% { opacity: 0; }
        100% { opacity: 1; }
    }
    
    .modal-content {
        animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    @keyframes modalSlideIn {
        0% { opacity: 0; transform: scale(0.9) translateY(-20px); }
        100% { opacity: 1; transform: scale(1) translateY(0); }
    }
    
    /* 关闭按钮悬浮 */
    .close {
        transition: all 0.3s ease;
    }
    
    .close:hover {
        transform: rotate(90deg) scale(1.2);
        color: #b91c1c;
    }
    
    /* 加载屏幕动画 */
    .loading-screen {
        animation: loaderFadeIn 0.5s ease-out;
    }
    
    @keyframes loaderFadeIn {
        0% { opacity: 0; }
        100% { opacity: 1; }
    }
    
    .loader-brush {
        animation: brushFloat 2s ease-in-out infinite;
    }
    
    @keyframes brushFloat {
        0%, 100% { transform: translateY(0) rotate(0deg); }
        25% { transform: translateY(-10px) rotate(5deg); }
        75% { transform: translateY(10px) rotate(-5deg); }
    }
    
    .loader-progress-bar {
        background: linear-gradient(90deg, #8B4513, #DAA520, #8B4513);
        background-size: 200% 100%;
        animation: progressFlow 1.5s linear infinite;
    }
    
    @keyframes progressFlow {
        0% { background-position: 0% 50%; }
        100% { background-position: 200% 50%; }
    }
    
    .loader-poem {
        animation: poemFadeIn 1s ease-out;
    }
    
    .loader-poem:nth-child(1) { animation-delay: 0s; }
    .loader-poem:nth-child(2) { animation-delay: 0.3s; }
    .loader-poem:nth-child(3) { animation-delay: 0.6s; }
    .loader-poem:nth-child(4) { animation-delay: 0.9s; }
    
    @keyframes poemFadeIn {
        0% { opacity: 0; transform: translateY(10px); }
        100% { opacity: 1; transform: translateY(0); }
    }

/* 原内联 style 属性（已转为 class） */
.ih-pdbjr4 {
    display: none;
}

.ih-1y9716f {
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
    color: #666;
}

.ih-cttmqt {
    margin: 5px 0;
}

.ih-1swgkdw {
    color: #1a73e8;
    text-decoration: none;
}
