/* ========================================
   稳录教育 - 组件样式
   ======================================== */

/* --- Buttons --- */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 28px; font-size: 16px; font-weight: 600; border: 2px solid transparent; border-radius: var(--radius); cursor: pointer; transition: var(--transition); text-decoration: none; gap: 8px; }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); color: var(--white); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--secondary); color: var(--white); }
.btn-secondary:hover { background: #e55a2b; color: var(--white); }
.btn-outline { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-lg { padding: 16px 36px; font-size: 18px; }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-block { width: 100%; }

/* --- Cards --- */
.card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; transition: var(--transition); }
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.card-image { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 24px; }
.card-title { font-size: 18px; font-weight: 600; margin-bottom: 8px; color: var(--gray-900); }
.card-text { font-size: 14px; color: var(--gray-500); line-height: 1.6; }

/* --- Service Cards --- */
.service-card { text-align: center; padding: 40px 24px; border-radius: var(--radius-lg); transition: var(--transition); border: 1px solid var(--gray-100); }
.service-card:hover { box-shadow: var(--shadow-md); border-color: var(--primary-light); }
.service-icon { width: 64px; height: 64px; margin: 0 auto 16px; background: var(--primary-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; color: var(--primary); }
.service-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.service-card p { font-size: 14px; color: var(--gray-500); }

/* --- Form Elements --- */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--gray-700); }
.form-input, .form-select, .form-textarea { width: 100%; padding: 12px 16px; border: 1px solid var(--gray-300); border-radius: var(--radius); font-size: 15px; transition: var(--transition); background: var(--white); }
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,115,232,.15); }
.form-textarea { min-height: 120px; resize: vertical; }
.form-error { border-color: var(--danger); }
.form-error-text { color: var(--danger); font-size: 13px; margin-top: 4px; }

/* --- Tags --- */
.tag { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 500; }
.tag-primary { background: var(--primary-light); color: var(--primary); }
.tag-success { background: #dcfce7; color: #166534; }
.tag-warning { background: #fef3c7; color: #92400e; }
.tag-danger { background: #fce4ec; color: #c62828; }

/* --- Modal --- */
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.5); z-index: 10000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: var(--transition); }
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal { background: var(--white); border-radius: var(--radius-lg); max-width: 600px; width: 90%; max-height: 80vh; overflow-y: auto; padding: 32px; position: relative; transform: translateY(20px); transition: var(--transition); }
.modal-overlay.active .modal { transform: translateY(0); }
.modal-close { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border: none; background: var(--gray-100); border-radius: 50%; cursor: pointer; font-size: 18px; display: flex; align-items: center; justify-content: center; color: var(--gray-500); }
.modal-title { font-size: 20px; font-weight: 700; margin-bottom: 20px; }

/* --- Toast --- */
.toast { position: fixed; top: 24px; right: 24px; z-index: 99999; padding: 16px 24px; border-radius: var(--radius); font-weight: 500; box-shadow: var(--shadow-lg); transform: translateX(120%); transition: var(--transition); max-width: 400px; }
.toast.show { transform: translateX(0); }
.toast-success { background: var(--success); color: white; }
.toast-error { background: var(--danger); color: white; }
.toast-info { background: var(--primary); color: white; }

/* --- Pagination --- */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 24px; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 8px; border: 1px solid var(--gray-200); border-radius: var(--radius); font-size: 14px; color: var(--gray-600); }
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .active { background: var(--primary); border-color: var(--primary); color: white; }

/* --- Breadcrumb --- */
.breadcrumb { padding: 16px 0; font-size: 14px; color: var(--gray-500); }
.breadcrumb a { color: var(--gray-500); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--gray-800); }
.breadcrumb .sep { margin: 0 8px; }

/* --- Badge --- */
.badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: 600; }
.badge-blue { background: var(--primary-light); color: var(--primary); }
.badge-green { background: #dcfce7; color: #166534; }

/* --- Empty State --- */
.empty-state { text-align: center; padding: 60px 20px; color: var(--gray-400); }
.empty-state .icon { font-size: 48px; margin-bottom: 16px; }
.empty-state p { font-size: 16px; }

/* --- Table --- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--gray-200); font-size: 14px; }
.table th { background: var(--gray-50); font-weight: 600; color: var(--gray-600); white-space: nowrap; }
.table tbody tr:hover { background: var(--gray-50); }
.table .actions { display: flex; gap: 8px; }
.table .actions a { font-size: 13px; }
