
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    :root {
      --primary-color: #4361ee;
      --secondary-color: #3a0ca3;
      --accent-color: #f72585;
      --light-color: #f8f9fa;
      --dark-color: #212529;
      --success-color: #4cc9f0;
      --warning-color: #f8961e;
      --dark-blue: #1a2a6c;
      --dark-red: #b21f1f;
      --transition: all 0.3s ease;
    }

    body {
      font-family: 'Noto Sans SC', sans-serif;
      background: #f5f7ff;
      color: #333;
      line-height: 1.6;
      padding-top: 80px;
      padding-bottom: 120px;
    }

    /* 顶部语言分类栏 */
    .language-nav {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      background: white;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
      z-index: 1000;
      padding: 15px 5%;
      display: flex;
      justify-content: center;
      align-items: center;
    }

    .language-tabs {
      display: flex;
      list-style: none;
      flex-wrap: wrap;
      justify-content: center;
    }

    .language-tab {
      margin: 0 8px;
    }

    .language-tab button {
      padding: 8px 20px;
      background: transparent;
      border: 2px solid #e6e9ff;
      border-radius: 30px;
      color: #666;
      font-weight: 500;
      cursor: pointer;
      transition: var(--transition);
    }

    .language-tab button.active,
    .language-tab button:hover {
      background: var(--primary-color);
      color: white;
      border-color: var(--primary-color);
    }

    /* 资源库标题 */
    .resource-header {
      text-align: center;
      padding: 40px 20px;
      background: linear-gradient(135deg, var(--dark-blue), var(--dark-red));
      color: white;
      margin-bottom: 40px;
    }

    .resource-header h1 {
      font-size: 2.8rem;
      margin-bottom: 15px;
    }

    .resource-header p {
      font-size: 1.2rem;
      max-width: 700px;
      margin: 0 auto;
      opacity: 0.9;
    }

    /* 资源网格 */
    .resource-container {
      position: relative;
      max-width: 1400px;
      margin: 0 auto;
      padding: 0 20px;
    }

    .resource-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 30px;
    }

    .resource-card {
      background: white;
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
      transition: var(--transition);
      cursor: pointer;
    }

    .resource-card:hover {
      transform: translateY(-10px);
      box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    }

    .resource-image {
      height: 200px;
      overflow: hidden;
    }

    .resource-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.5s ease;
    }

    .resource-card:hover .resource-image img {
      transform: scale(1.05);
    }

    .resource-info {
      padding: 20px;
    }

    .resource-info h3 {
      font-size: 1.3rem;
      margin-bottom: 10px;
      color: var(--dark-blue);
    }

    .resource-language {
      display: inline-block;
      padding: 4px 12px;
      background: #e6e9ff;
      border-radius: 30px;
      font-size: 0.85rem;
      color: var(--primary-color);
      font-weight: 500;
    }

    /* 资源详情模态框 */
    .resource-modal {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.7);
      z-index: 2000;
      align-items: center;
      justify-content: center;
      padding: 20px;
    }

    .modal-content {
      background: white;
      width: 100%;
      max-width: 900px;
      border-radius: 16px;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      max-height: 90vh;
    }

    .modal-header {
      padding: 20px;
      background: linear-gradient(135deg, var(--dark-blue), var(--dark-red));
      color: white;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .modal-header h2 {
      font-size: 1.8rem;
    }

    .close-modal {
      background: transparent;
      border: none;
      color: white;
      font-size: 1.8rem;
      cursor: pointer;
      width: 40px;
      height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      transition: var(--transition);
    }

    .close-modal:hover {
      background: rgba(255, 255, 255, 0.2);
    }

    .modal-body {
      display: flex;
      padding: 0;
      flex: 1;
      overflow: hidden;
    }

    .modal-left {
      flex: 1;
      padding: 30px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      background: #f9faff;
    }

    .modal-card {
      max-width: 280px;
      background: white;
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .modal-card-image {
      height: 200px;
      overflow: hidden;
    }

    .modal-card-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .modal-card-info {
      padding: 20px;
      text-align: center;
    }

    .modal-card-info h3 {
      font-size: 1.3rem;
      margin-bottom: 10px;
      color: var(--dark-blue);
    }

    .modal-right {
      flex: 1.5;
      padding: 30px;
      display: flex;
      flex-direction: column;
      overflow-y: auto;
    }

    .episodes-section {
      /* margin-bottom: 30px; */
      margin-bottom: 10px;
    }

    .episodes-section h3 {
      font-size: 1.4rem;
      margin-bottom: 20px;
      color: var(--dark-blue);
      padding-bottom: 10px;
      border-bottom: 2px solid #f0f2ff;
    }

    .episode-list {
      /* max-height: 180px; */
      max-height: 235px;
      overflow-y: auto;
      margin-bottom: 20px;
    }

    .episode-item {
      display: flex;
      align-items: center;
      padding: 12px 15px;
      border-bottom: 1px solid #f0f2ff;
    }

    .episode-item:last-child {
      border-bottom: none;
    }

    .episode-checkbox {
      margin-right: 15px;
    }

    .episode-info {
      flex: 1;
    }

    .episode-info h4 {
      font-size: 1.1rem;
      margin-bottom: 5px;
    }

    .episode-actions {
      display: flex;
      gap: 15px;
      margin-top: 15px;
      padding-bottom: 20px;
      border-bottom: 2px solid #f0f2ff;
    }

    .episode-btn {
      padding: 8px 20px;
      background: #e6e9ff;
      border: none;
      border-radius: 6px;
      color: var(--primary-color);
      font-weight: 500;
      cursor: pointer;
      transition: var(--transition);
    }

    .episode-btn:hover {
      background: var(--primary-color);
      color: white;
    }

    .points-section {
      padding: 20px 0;
    }

    .points-calculator {
      background: #f9faff;
      border-radius: 12px;
      padding: 20px;
      /* margin-bottom: 20px; */
    }

    .points-header {
      display: flex;
      justify-content: space-between;
      margin-bottom: 15px;
    }

    .points-header h4 {
      font-size: 1.2rem;
      color: var(--dark-blue);
    }

    .points-total {
      font-size: 1.5rem;
      font-weight: 700;
      color: var(--accent-color);
    }

    .points-details {
      color: #666;
      font-size: 0.95rem;
      margin-top: 10px;
    }
    .points-details-detail{
      padding-left: 20px
    }

    .points-note {
      font-size: 0.9rem;
      color: #888;
      font-style: italic;
    }

    .modal-footer {
      background: #fff8f8;
      padding: 0 25px;
      display: flex;
      align-items: center;
      border-top: 1px solid #ffecec;
    }

    .footer-info {
      flex: 1;
    }

    .footer-info h4 {
      color: var(--accent-color);
      margin-bottom: 10px;
      font-size: 1.2rem;
    }

    .footer-info p {
      color: #666;
      line-height: 1.6;
    }

    .qrcode {
      width: 120px;
      height: 120px;
      margin-left: 30px;
      background: #f0f2ff;
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      overflow: hidden;
    }

    .qrcode i {
      font-size: 3rem;
      color: var(--primary-color);
    }

    .qrcode img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transform: scale(1.2) translate(0%, -5%);
      transform-origin: center center;
      display: block;
    }

    /* 底部搜索区域 */
    .search-section {
      position: fixed;
      bottom: 0;
      left: 0;
      width: 100%;
      background: white;
      padding: 25px;
      box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
      z-index: 100;
    }

    .search-container {
      max-width: 800px;
      margin: 0 auto;
      display: flex;
      gap: 15px;
    }

    .search-input {
      flex: 1;
      padding: 14px 20px;
      border: 2px solid #e6e9ff;
      border-radius: 50px;
      font-size: 1rem;
      transition: var(--transition);
    }

    .search-input:focus {
      border-color: var(--primary-color);
      outline: none;
      box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
    }

    .search-btn {
      padding: 14px 30px;
      background: var(--primary-color);
      color: white;
      border: none;
      border-radius: 50px;
      font-weight: 600;
      cursor: pointer;
      transition: var(--transition);
    }

    .search-btn:hover {
      background: #3251d1;
      transform: translateY(-2px);
    }

    /* 回到顶部按钮 */
    .back-to-top {
      position: fixed;
      bottom: 100px;
      right: 30px;
      width: 50px;
      height: 50px;
      border-radius: 50%;
      background: var(--primary-color);
      color: white;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      box-shadow: 0 4px 15px rgba(67, 97, 238, 0.4);
      transition: var(--transition);
      z-index: 99;
    }

    .back-to-top:hover {
      background: var(--secondary-color);
      transform: translateY(-5px);
    }

    /* 响应式设计 */
    @media (max-width: 992px) {
      .modal-body {
        flex-direction: column;
        overflow-y: auto;
      }
      .modal-left{
        padding: 5px;
      }

      .modal-left,
      .modal-right {
        flex: none;
      }

      .modal-footer {
        /* flex-direction: column; */
        text-align: center;
      }

      .qrcode {
        margin: 20px 0 0;
      }
    }

    @media (max-width: 768px) {
      .language-nav {
        padding: 10px;
      }

      .language-tab {
        margin: 4px;
      }

      .language-tab button {
        padding: 6px 15px;
        font-size: 0.9rem;
      }

      .resource-header h1 {
        font-size: 2rem;
      }

      .resource-header p {
        font-size: 1rem;
      }

      .search-container {
        flex-direction: column;
      }

      .search-btn {
        width: 100%;
      }

      .modal-content {
        max-height: 95vh;
      }
    }

    @media (max-width: 480px) {
      .resource-grid {
        grid-template-columns: 1fr;
      }

      .back-to-top {
        bottom: 90px;
        right: 15px;
        width: 45px;
        height: 45px;
      }
    }

    .custom-banner {
      position: fixed;
      bottom: 20px;
      right: 20px;
      background: rgba(255, 255, 255, 0.95);
      border: 1px solid #ccc;
      border-radius: 12px;
      padding: 10px 12px;
      text-align: center;
      box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
      z-index: 9999;
      width: 140px;
      font-size: 14px;
    }

    .custom-text {
      font-weight: bold;
      color: #333;
      line-height: 1.4;
    }

    .custom-banner-qrcode {
      width: 120px;
      height: 120px;
      background: #f0f2ff;
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      overflow: hidden;
    }

    .custom-banner-qrcode img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transform: scale(1.3) translate(-1%, 0%);
      transform-origin: center center;
      display: block;
    }