* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: #f5f5f5;
  padding-bottom: 60px;
}

.navbar {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  color: white;
  padding: 15px;
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 15px;
}

.page {
  display: none;
}

.page.active {
  display: block;
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* 搜索框 */
.search-box {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.search-box input {
  flex: 1;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
}

.search-box button {
  padding: 12px 20px;
  background: #1e3c72;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

/* 学校网格 */
.schools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 20px;
}

.school-card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.school-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.school-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.school-name {
  font-size: 14px;
  color: #333;
}

/* 战绩滚动 */
.success-banner {
  background: #fff3cd;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 20px;
  overflow: hidden;
  height: 40px;
}

.success-scroll {
  animation: scroll 15s linear infinite;
}

@keyframes scroll {
  0% { transform: translateY(0); }
  100% { transform: translateY(-200px); }
}

.success-item {
  padding: 8px 0;
  color: #856404;
  font-size: 14px;
}

/* 免费资料 */
.free-materials {
  background: white;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.free-materials h3 {
  margin-bottom: 15px;
  color: #333;
}

.free-materials button {
  background: #28a745;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
}

/* 按钮 */
.btn-primary, .btn-secondary {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 10px;
}

.btn-primary {
  background: #1e3c72;
  color: white;
}

.btn-secondary {
  background: #6c757d;
  color: white;
}

/* 筛选栏 */
.filter-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.filter-btn {
  flex: 1;
  padding: 10px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
}

.filter-btn.active {
  background: #1e3c72;
  color: white;
  border-color: #1e3c72;
}

/* 学长卡片 */
.tutor-card {
  background: white;
  padding: 15px;
  border-radius: 12px;
  margin-bottom: 15px;
  cursor: pointer;
  transition: transform 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.tutor-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.tutor-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
}

.tutor-avatar {
  font-size: 48px;
}

.tutor-info h3 {
  font-size: 16px;
  margin-bottom: 5px;
}

.tutor-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin: 10px 0;
}

.tag {
  background: #e3f2fd;
  color: #1976d2;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
}

.tutor-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #eee;
}

.price {
  color: #e74c3c;
  font-size: 20px;
  font-weight: bold;
}

/* 详情页 */
.detail-header {
  background: white;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 15px;
}

.verification {
  background: #d4edda;
  color: #155724;
  padding: 10px;
  border-radius: 8px;
  margin: 15px 0;
  text-align: center;
}

.packages {
  background: white;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 15px;
}

.package-item {
  border: 2px solid #ddd;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.package-item:hover, .package-item.selected {
  border-color: #1e3c72;
  background: #f0f4ff;
}

.package-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.package-price {
  color: #e74c3c;
  font-size: 20px;
  font-weight: bold;
}

.package-features {
  font-size: 12px;
  color: #666;
  margin-top: 8px;
}

.reviews {
  background: white;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 15px;
}

.review-item {
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

.review-item:last-child {
  border-bottom: none;
}

.review-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.stars {
  color: #ffc107;
}

/* 订单进度 */
.order-progress {
  background: white;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.progress-step {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  position: relative;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ddd;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-right: 15px;
  z-index: 1;
}

.step-number.completed {
  background: #28a745;
}

.step-line {
  position: absolute;
  left: 20px;
  top: 40px;
  width: 2px;
  height: 40px;
  background: #ddd;
}

.step-line.completed {
  background: #28a745;
}

/* 资料列表 */
.materials-section {
  background: white;
  padding: 20px;
  border-radius: 12px;
}

.material-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 10px;
}

.material-item button {
  background: #1e3c72;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
}

/* 底部导航 */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  font-size: 12px;
  color: #666;
}

.nav-item span:first-child {
  font-size: 24px;
  margin-bottom: 4px;
}

/* 弹窗 */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: white;
  padding: 30px;
  border-radius: 12px;
  max-width: 400px;
  width: 90%;
  position: relative;
}

.close {
  position: absolute;
  right: 15px;
  top: 15px;
  font-size: 28px;
  cursor: pointer;
  color: #999;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.form-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
}
