/* ============================================
   2026 暑假成长计划 - 共用样式
   Apple 品牌风格
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600;700;900&display=swap');

:root {
  --apple-red: #FF3B30;
  --apple-orange: #FF9500;
  --apple-green: #34C759;
  --apple-blue: #007AFF;
  --apple-purple: #AF52DE;
  --apple-teal: #5AC8FA;
  --apple-gray1: #1a1a1a;
  --apple-gray2: #333333;
  --apple-gray3: #8E8E93;
  --apple-gray4: #C7C7CC;
  --apple-gray5: #E5E5EA;
  --apple-gray6: #F2F2F7;
  --apple-gray7: #FAFAFA;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  background: var(--apple-gray7);
  color: var(--apple-gray1);
  line-height: 1.6;
  min-height: 100vh;
}

/* ============ NAVBAR ============ */
.navbar {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--apple-gray5);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0 24px;
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--apple-gray1);
}

.nav-logo {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--apple-red), #FF6B5B);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 900;
  font-size: 18px;
}

.nav-title {
  font-size: 16px;
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 4px;
}

.nav-link {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--apple-gray2);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}

.nav-link:hover {
  background: var(--apple-gray6);
  color: var(--apple-red);
}

.nav-link.active {
  background: var(--apple-red);
  color: white;
}

/* ============ PAGE HEADER ============ */
.page-header {
  background: linear-gradient(135deg, #FF3B30 0%, #FF6B5B 50%, #FF9500 100%);
  padding: 40px 24px;
  color: white;
  text-align: center;
}

.page-header h1 {
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.page-header p {
  font-size: 15px;
  opacity: 0.9;
}

/* ============ CONTAINER ============ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

/* ============ CARD ============ */
.card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  margin-bottom: 20px;
  border: 1px solid var(--apple-gray5);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--apple-gray6);
}

.card-header h2 {
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--apple-red);
  color: white;
}

.btn-primary:hover {
  background: #E5352B;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--apple-gray6);
  color: var(--apple-gray2);
}

.btn-secondary:hover {
  background: var(--apple-gray5);
}

.btn-success {
  background: var(--apple-green);
  color: white;
}

.btn-success:hover {
  background: #2DB84A;
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--apple-gray4);
  color: var(--apple-gray2);
}

.btn-outline:hover {
  border-color: var(--apple-red);
  color: var(--apple-red);
}

.btn-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ============ INPUTS ============ */
input[type="text"],
input[type="date"],
input[type="number"],
select,
textarea {
  border: 1.5px solid var(--apple-gray4);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-family: inherit;
  font-size: 14px;
  color: var(--apple-gray1);
  background: white;
  transition: border-color 0.2s;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--apple-red);
  box-shadow: 0 0 0 3px rgba(255,59,48,0.1);
}

/* ============ TABLE ============ */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
}

/* ============ BADGE ============ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.badge-red { background: #FFF0F0; color: var(--apple-red); }
.badge-green { background: #F0FFF4; color: var(--apple-green); }
.badge-blue { background: #F0F8FF; color: var(--apple-blue); }
.badge-orange { background: #FFF8F0; color: var(--apple-orange); }

/* ============ PROGRESS BAR ============ */
.progress-bar {
  height: 8px;
  background: var(--apple-gray6);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 4px;
  background: var(--apple-red);
  transition: width 0.5s ease;
}

/* ============ FOOTER ============ */
.footer {
  text-align: center;
  padding: 24px;
  color: var(--apple-gray3);
  font-size: 13px;
  border-top: 1px solid var(--apple-gray5);
  margin-top: 40px;
}

/* ============ PRINT ============ */
@media print {
  .navbar,
  .btn-group,
  .no-print,
  .page-header,
  .footer { display: none !important; }
  
  body { background: white; }
  
  .card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .navbar-inner {
    flex-direction: column;
    height: auto;
    padding: 12px 0;
    gap: 8px;
  }
  
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .nav-link {
    font-size: 13px;
    padding: 6px 12px;
  }
  
  .page-header h1 {
    font-size: 22px;
  }
  
  .container {
    padding: 16px;
  }
  
  .card {
    padding: 16px;
  }
}
