
/* ===== home/templates/home/home.html ===== */
@media print {
    body { display: none; }
}

/* ===== home/templates/home/student_detail.html ===== */
* { box-sizing: border-box; }
    body { background: #f5f7fa; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
    .dashboard-container { max-width: 1400px; margin: 0 auto; padding: 24px; }
    
    /* 页面头部 */
    .page-header {
      background: white;
      border-radius: 12px;
      padding: 24px;
      margin-bottom: 24px;
      box-shadow: 0 2px 12px rgba(0,0,0,0.08);
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    .page-header h1 {
      font-size: 24px;
      font-weight: 600;
      margin: 0;
      display: flex;
      align-items: center;
      gap: 12px;
    }
    
    /* 学员信息卡片 */
    .student-info {
      display: flex;
      align-items: center;
      gap: 16px;
      padding: 20px;
      background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
      border-radius: 12px;
      color: white;
      margin-bottom: 24px;
    }
    .student-avatar {
      width: 80px;
      height: 80px;
      border-radius: 50%;
      background: rgba(255,255,255,0.2);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 32px;
    }
    .student-details h2 {
      margin: 0 0 8px 0;
      font-size: 24px;
    }
    .student-meta {
      font-size: 14px;
      opacity: 0.9;
    }
    
    /* 课时账户 */
    .account-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 16px;
      margin-bottom: 24px;
    }
    .account-card {
      background: white;
      border-radius: 12px;
      padding: 24px;
      box-shadow: 0 2px 12px rgba(0,0,0,0.08);
      text-align: center;
    }
    .account-card .label {
      font-size: 14px;
      color: #666;
      margin-bottom: 12px;
    }
    .account-card .value {
      font-size: 36px;
      font-weight: 700;
      margin-bottom: 8px;
    }
    .account-card.paid .value { color: #28a745; }
    .account-card.consumed .value { color: #1e87f0; }
    .account-card.remaining .value { color: #f5576c; }
    .account-card .sub {
      font-size: 13px;
      color: #888;
    }
    
    /* 核心指标 */
    .metrics-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 16px;
      margin-bottom: 24px;
    }
    .metric-card {
      background: white;
      border-radius: 12px;
      padding: 20px;
      box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    }
    .metric-card .label {
      font-size: 14px;
      color: #666;
      margin-bottom: 8px;
    }
    .metric-card .value {
      font-size: 32px;
      font-weight: 700;
      color: #1a1a1a;
    }
    .metric-card .sub {
      font-size: 13px;
      color: #888;
      margin-top: 8px;
    }
    
    /* 图表区域 */
    .charts-section {
      display: grid;
      grid-template-columns: 2fr 1fr 1fr;
      gap: 16px;
      margin-bottom: 24px;
    }
    .chart-card {
      background: white;
      border-radius: 12px;
      padding: 20px;
      box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    }
    .chart-card .title {
      font-size: 16px;
      font-weight: 600;
      margin-bottom: 16px;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .chart-container {
      height: 250px;
    }
    
    /* 分布列表 */
    .dist-list {
      list-style: none;
      padding: 0;
      margin: 0;
      max-height: 250px;
      overflow-y: auto;
    }
    .dist-item {
      display: flex;
      justify-content: space-between;
      padding: 10px 0;
      border-bottom: 1px solid #f0f0f0;
      font-size: 14px;
    }
    .dist-item:last-child {
      border-bottom: none;
    }
    .dist-name {
      font-weight: 500;
    }
    .dist-value {
      color: #666;
    }
    
    /* 上课记录表格 */
    .records-section {
      background: white;
      border-radius: 12px;
      padding: 20px;
      box-shadow: 0 2px 12px rgba(0,0,0,0.08);
      margin-bottom: 24px;
    }
    .records-section .title {
      font-size: 18px;
      font-weight: 600;
      margin-bottom: 16px;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    .records-table {
      width: 100%;
      border-collapse: collapse;
    }
    .records-table th {
      background: #f8f9fa;
      padding: 12px;
      text-align: left;
      font-weight: 600;
      font-size: 14px;
      color: #333;
      border-bottom: 2px solid #e9ecef;
    }
    .records-table td {
      padding: 12px;
      border-bottom: 1px solid #f0f0f0;
      font-size: 14px;
    }
    .records-table tr:hover {
      background: #f8f9fa;
    }
    
    /* 交费记录 */
    .payments-section {
      background: white;
      border-radius: 12px;
      padding: 20px;
      box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    }
    
    /* 周期选择器 */
    .period-selector {
      display: flex;
      gap: 8px;
      align-items: center;
    }
    .period-btn {
      padding: 8px 12px;
      border: 1px solid #ddd;
      border-radius: 4px;
      background: white;
      cursor: pointer;
      font-size: 14px;
    }
    .period-btn.active {
      background: #1e87f0;
      border-color: #1e87f0;
      color: white;
    }
    .date-input {
      padding: 8px;
      border: 1px solid #ddd;
      border-radius: 4px;
      font-size: 14px;
    }
    .query-btn {
      padding: 8px 16px;
      background: #28a745;
      color: white;
      border: none;
      border-radius: 4px;
      cursor: pointer;
      font-size: 14px;
    }
    
    /* 返回按钮 */
    .back-link {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      color: #1e87f0;
      text-decoration: none;
      font-size: 14px;
      margin-bottom: 16px;
    }
    .back-link:hover {
      text-decoration: underline;
    }

/* ===== home/templates/home/teacher_detail.html ===== */
* { box-sizing: border-box; }
    body { background: #f5f7fa; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
    .dashboard-container { max-width: 1400px; margin: 0 auto; padding: 24px; }
    
    /* 页面头部 */
    .page-header {
      background: white;
      border-radius: 12px;
      padding: 24px;
      margin-bottom: 24px;
      box-shadow: 0 2px 12px rgba(0,0,0,0.08);
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    .page-header h1 {
      font-size: 24px;
      font-weight: 600;
      margin: 0;
      display: flex;
      align-items: center;
      gap: 12px;
    }
    
    /* 教师信息卡片 */
    .teacher-info {
      display: flex;
      align-items: center;
      gap: 16px;
      padding: 20px;
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      border-radius: 12px;
      color: white;
      margin-bottom: 24px;
    }
    .teacher-avatar {
      width: 80px;
      height: 80px;
      border-radius: 50%;
      background: rgba(255,255,255,0.2);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 32px;
    }
    .teacher-details h2 {
      margin: 0 0 8px 0;
      font-size: 24px;
    }
    .teacher-meta {
      font-size: 14px;
      opacity: 0.9;
    }
    
    /* 核心指标 */
    .metrics-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 16px;
      margin-bottom: 24px;
    }
    .metric-card {
      background: white;
      border-radius: 12px;
      padding: 20px;
      box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    }
    .metric-card .label {
      font-size: 14px;
      color: #666;
      margin-bottom: 8px;
    }
    .metric-card .value {
      font-size: 32px;
      font-weight: 700;
      color: #1a1a1a;
    }
    .metric-card .sub {
      font-size: 13px;
      color: #888;
      margin-top: 8px;
    }
    
    /* 图表区域 */
    .charts-section {
      display: grid;
      grid-template-columns: 2fr 1fr;
      gap: 16px;
      margin-bottom: 24px;
    }
    .chart-card {
      background: white;
      border-radius: 12px;
      padding: 20px;
      box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    }
    .chart-card .title {
      font-size: 16px;
      font-weight: 600;
      margin-bottom: 16px;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .chart-container {
      height: 300px;
    }
    
    /* 课程类型分布 */
    .type-list {
      list-style: none;
      padding: 0;
      margin: 0;
    }
    .type-item {
      display: flex;
      justify-content: space-between;
      padding: 12px 0;
      border-bottom: 1px solid #f0f0f0;
    }
    .type-item:last-child {
      border-bottom: none;
    }
    .type-name {
      font-weight: 500;
    }
    .type-value {
      color: #666;
      font-size: 14px;
    }
    
    /* 上课记录表格 */
    .records-section {
      background: white;
      border-radius: 12px;
      padding: 20px;
      box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    }
    .records-section .title {
      font-size: 18px;
      font-weight: 600;
      margin-bottom: 16px;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    .records-table {
      width: 100%;
      border-collapse: collapse;
    }
    .records-table th {
      background: #f8f9fa;
      padding: 12px;
      text-align: left;
      font-weight: 600;
      font-size: 14px;
      color: #333;
      border-bottom: 2px solid #e9ecef;
    }
    .records-table td {
      padding: 12px;
      border-bottom: 1px solid #f0f0f0;
      font-size: 14px;
    }
    .records-table tr:hover {
      background: #f8f9fa;
    }
    
    /* 周期选择器 */
    .period-selector {
      display: flex;
      gap: 8px;
      align-items: center;
    }
    .period-btn {
      padding: 8px 12px;
      border: 1px solid #ddd;
      border-radius: 4px;
      background: white;
      cursor: pointer;
      font-size: 14px;
    }
    .period-btn.active {
      background: #1e87f0;
      border-color: #1e87f0;
      color: white;
    }
    .date-input {
      padding: 8px;
      border: 1px solid #ddd;
      border-radius: 4px;
      font-size: 14px;
    }
    .query-btn {
      padding: 8px 16px;
      background: #28a745;
      color: white;
      border: none;
      border-radius: 4px;
      cursor: pointer;
      font-size: 14px;
    }
    
    /* 返回按钮 */
    .back-link {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      color: #1e87f0;
      text-decoration: none;
      font-size: 14px;
      margin-bottom: 16px;
    }
    .back-link:hover {
      text-decoration: underline;
    }

    /* ===== home/templates/home/account_management.html ===== */
    .search-container {
      position: relative;
    }
    .search-container .uk-input {
      border-radius: 8px;
      border: 1.5px solid #d0d5dd;
      padding: 8px 14px 8px 38px;
      font-size: 14px;
      transition: border-color 0.2s, box-shadow 0.2s;
      background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") 12px center no-repeat;
    }
    .search-container .uk-input:focus {
      border-color: #6366f1;
      box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
      outline: none;
    }
    .search-container .uk-input::placeholder {
      color: #a0a5b0;
    }

    .search-suggestions {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      z-index: 1000;
      background: #fff;
      border: 1px solid #e2e8f0;
      border-radius: 10px;
      box-shadow: 0 8px 30px rgba(0,0,0,0.12);
      margin-top: 6px;
      max-height: 320px;
      overflow-y: auto;
      padding: 6px;
    }
    .search-suggestions.show {
      display: block;
      animation: suggestIn 0.12s ease;
    }
    @keyframes suggestIn {
      from { opacity: 0; transform: translateY(-4px); }
      to { opacity: 1; transform: translateY(0); }
    }
    .search-suggestions .suggestion-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 10px 12px;
      border-radius: 8px;
      cursor: pointer;
      transition: background 0.1s;
    }
    .search-suggestions .suggestion-item:hover,
    .search-suggestions .suggestion-item.active {
      background: #f0f4ff;
    }
    .search-suggestions .suggestion-info {
      flex: 1;
      min-width: 0;
    }
    .search-suggestions .suggestion-name {
      font-size: 14px;
      font-weight: 600;
      color: #1a1a2e;
    }
    .search-suggestions .suggestion-meta {
      font-size: 12px;
      color: #8e96a8;
      margin-top: 2px;
    }
    .search-suggestions .suggestion-type {
      font-size: 11px;
      font-weight: 600;
      padding: 3px 10px;
      border-radius: 999px;
      background: #f1f5f9;
      color: #64748b;
      flex-shrink: 0;
      margin-left: 8px;
    }

    .account-filters .uk-select {
      border-radius: 8px;
      border: 1.5px solid #d0d5dd;
      padding: 8px 14px;
      font-size: 14px;
      transition: border-color 0.2s, box-shadow 0.2s;
      background-color: #fff;
    }
    .account-filters .uk-select:focus {
      border-color: #6366f1;
      box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
      outline: none;
    }

    .account-filters .uk-button {
      border-radius: 8px;
      font-weight: 600;
      font-size: 14px;
      padding: 8px 20px;
      transition: all 0.2s;
    }
    .account-filters .uk-button-primary {
      background: #6366f1;
      color: #fff;
      box-shadow: 0 2px 6px rgba(99,102,241,0.25);
    }
    .account-filters .uk-button-primary:hover {
      background: #5558e6;
      box-shadow: 0 4px 12px rgba(99,102,241,0.35);
    }
    .account-filters .uk-button-default {
      background: #fff;
      border: 1.5px solid #d0d5dd;
      color: #475569;
    }
    .account-filters .uk-button-default:hover {
      background: #f8fafc;
      border-color: #94a3b8;
      color: #334155;
    }
