/* PC端专用样式 */
@media (min-width: 1024px) {
  .container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }

  .header {
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 4px solid #FFD166;
    flex-shrink: 0;
  }

  .header h1 {
    color: #EF476F;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
  }

  .main-content {
    display: flex;
    flex: 1;
    gap: 2rem;
    padding: 2rem;
    align-items: stretch;
    padding-bottom: 180px; /* 为底部菜单留出空间 */
  }

  .roll-call-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-top: 0;
  }

  .roll-call-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 4px solid #FFD166;
    max-height: calc(100vh - 360px);
    position: relative;
  }

  .selected-student {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1rem 0;
  }

  .student-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    flex: 1;
  }

  .student-name {
    font-size: 5rem;
    min-height: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #333;
    margin: 0;
    transition: all 0.3s ease;
    text-align: center;
    line-height: 1.2;
    width: 100%;
    flex: 3;
  }

  .student-date {
    font-size: 1.5rem;
    margin: 1rem auto;
    color: #666;
    font-weight: 500;
    text-align: center;
    flex: 1;
  }

  .roll-call-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    flex: 2;
  }

  .btn {
    min-height: 55px;
    font-size: 1.1rem;
    padding: 0.8rem 1.3rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    max-width: 300px;
  }

  .btn-primary {
    background: #118AB2;
    color: white;
    box-shadow: 0 4px 15px rgba(17, 138, 178, 0.3);
  }

  .btn-primary:hover {
    background: #0d6c8f;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(17, 138, 178, 0.4);
  }

  .btn-success {
    background: #28a745;
    color: white;
  }

  .btn-danger {
    background: #e74c3c;
    color: white;
  }

  .btn-success:hover, .btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  }

  .roll-call-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
    margin: 1rem 0;
  }

  .points-control {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
    margin-top: 1rem;
  }

  .points-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    width: 100%;
  }

  .points-dropdown {
    min-width: 80px;
    padding: 0.8rem 1.2rem;
    border: 2px solid #118AB2;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    background: white;
    color: #073B4C;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
  }

  .points-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
  }

  .points-buttons .btn {
    max-width: 140px;
  }

  .action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    width: 100%;
    margin-top: 1rem;
  }

  .action-buttons .btn {
    max-width: 140px;
  }

  .right-sidebar {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-top: 0;
  }

  .recent-records-section {
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  .recent-records-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 1.2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid #FFD166;
    max-height: calc(100vh - 360px);
    margin-top: 0;
  }

  .recent-records-card h2 {
    color: #073B4C;
    margin-bottom: 0.8rem;
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .records-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    overflow-y: auto;
    max-height: calc(100vh - 400px);
  }

  .record-item {
    display: flex;
    align-items: center;
    padding: 0.6rem;
    border-radius: 10px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    flex-shrink: 0;
  }

  .record-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
  }

  .record-points {
    min-width: 50px;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
  }

  .record-points.positive {
    color: #28a745;
  }

  .record-points.negative {
    color: #e74c3c;
  }

  .record-info {
    flex: 1;
    padding: 0 0.7rem;
  }

  .record-student {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.1rem;
    font-size: 0.95rem;
  }

  .record-date {
    font-size: 0.75rem;
    color: #6c757d;
  }

  .record-notes {
    font-size: 0.8rem;
    color: #495057;
    margin-top: 0.1rem;
  }

  .no-records {
    text-align: center;
    color: #6c757d;
    padding: 0.7rem;
    font-style: italic;
    font-size: 0.9rem;
  }

  .dock-nav {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 15px 25px;
    display: flex;
    gap: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 1000;
  }

  .dock-nav .nav-btn {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    padding: 15px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    min-width: 100px;
    min-height: 80px;
    justify-content: center;
  }

  .dock-nav .nav-btn.active {
    background: rgba(239, 71, 111, 0.8);
    color: white;
  }

  .dock-nav .nav-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
  }

  .dock-nav .nav-btn i {
    font-size: 1.5rem;
  }

  .dock-nav .nav-btn span {
    font-size: 1rem;
    font-weight: 500;
  }

  #bottomNav {
    display: none;
  }

  .btn-fullscreen.floating {
    bottom: 160px;
    width: 70px;
    height: 70px;
    z-index: 9999; /* 确保全屏按钮在最顶层 */
  }
  
  /* 全屏模式下的按钮样式 */
  .roll-call-card:-webkit-full-screen .btn-fullscreen.floating {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999999;
  }
  
  .roll-call-card:-moz-full-screen .btn-fullscreen.floating {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999999;
  }
  
  .roll-call-card:fullscreen .btn-fullscreen.floating {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999999;
  }

  /* 触摸设备优化 */
  @media (hover: none) and (pointer: coarse) {
    .btn {
      min-height: 60px;
      touch-action: manipulation;
      -webkit-tap-highlight-color: transparent;
      user-select: none;
      padding: 0.9rem 1.4rem;
    }

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

    .dock-nav .nav-btn {
      min-height: 80px;
      min-width: 100px;
      padding: 18px 28px;
    }
  }
}