/* KIU 招生页面样式（参考 tsri 风格） */
:root{
  --primary-color: #0b5fa5;
  --primary-dark: #084a8c;
  --secondary-color: #f6fbff;
  --accent-color: #2f6fb2;
  --text-color: #333;
  --text-light: #666;
  --light-gray: #F5F5F5;
  --border-color: #e0e0e0;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 6px 16px rgba(11, 95, 165, 0.15);
  --transition: all 0.3s ease;
  --section-spacing: 60px;
}

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

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--secondary-color);
}

a {
  text-decoration: none;
  color: var(--primary-color);
}

ul, ol {
  list-style-position: inside;
  margin-left: 1rem;
}

/* 头部区域样式 */
.header {
  width: 100%;
  display: flex;
  flex-direction: column;
  max-height: 500px;
}

.header-logos {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 20px;
}

.header-logos img {
  height: auto;
  max-height: 80px;
}

.header-title {
  width: 100%;
  background: url("../images/kiu01.png") center center no-repeat;
  background-size: cover;
  height: 400px;
  position: relative;
}

.header-title-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.header-title-content h1 {
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-size: 3.8rem;
}

/* 项目介绍区域样式 */
#programs .section-body {
  position: relative;
  background: url("../images/kiu05.jpg") right center no-repeat;
  background-size: cover;
  padding: 20px;
  min-height: 400px;
}

.section-body {
  padding: 20px;
}

.section-body p.highlight-red {
  background-color: #f50023;
  color: white;
  padding: 15px;
  margin-bottom: 10px;
  font-size: 2rem;
  width: 42%;
}

.section-body p.highlight-gray {
  background-color: #e7e7e7;
  color: #333;
  padding: 15px;
  width: 42%;
}

/* 导航栏样式 */
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 20px 0;
  background: #fff;
  justify-content: center;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-nav a {
  color: var(--primary-color);
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 30px;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.site-nav a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(11, 95, 165, 0.1), transparent);
  transition: var(--transition);
}

.site-nav a:hover {
  background-color: var(--secondary-color);
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(11, 95, 165, 0.15);
}

.site-nav a:hover::before {
  left: 0;
}

/* 容器样式 */
.container {
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 20px;
}

/* 章节样式 */
.section {
  margin-bottom: var(--section-spacing);
  position: relative;
}

.section::before {
  content: "";
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  background: var(--primary-color);
  border-radius: 50%;
  opacity: 0.1;
  z-index: -1;
}

.section-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.section-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-5px);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: linear-gradient(135deg, var(--secondary-color) 0%, #fff 100%);
  border-bottom: 2px solid var(--primary-color);
  position: relative;
}

.section-header::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), transparent);
}

.section-header h2 {
  margin: 0;
  font-size: 1.8rem;
  color: var(--primary-color);
  position: relative;
  padding-left: 15px;
}

.section-header h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 24px;
  background: var(--accent-color);
  border-radius: 2px;
}

.apply-btn-header {
  padding: 12px 24px;
  background: linear-gradient(135deg, #ff6b35 0%, #f72585 100%);
  color: white;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.5px;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(247, 37, 133, 0.3);
  position: relative;
  overflow: hidden;
}

.apply-btn-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: 0.5s;
}

.apply-btn-header:hover {
  background: linear-gradient(135deg, #f72585 0%, #ff6b35 100%);
  color: white;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 6px 16px rgba(247, 37, 133, 0.4);
}

.apply-btn-header:hover::before {
  left: 100%;
}

.section-body {
  padding: 30px 24px;
}

.section-body h3 {
  margin-top: 0;
  margin-bottom: 10px;
  padding-bottom: 5px;
  color: var(--primary-color);
  font-size: 1.4rem;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.section-body h3::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--accent-color);
}

.section-body h4 {
  margin-top: 25px;
  margin-bottom: 15px;
  padding-left: 15px;
  color: var(--primary-dark);
  font-size: 1.3rem;
  position: relative;
}

.section-body h4::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 6px;
  height: 6px;
  background: var(--accent-color);
  border-radius: 50%;
}

.section-body p {
  margin-bottom: 18px;
  text-align: justify;
  line-height: 1.8;
  color: var(--text-color);
}

.section-body ul, .section-body ol {
  margin-left: 20px;
  margin-bottom: 20px;
}

.section-body li {
  margin-bottom: 10px;
  padding-left: 10px;
  position: relative;
}

.section-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--accent-color);
  border-radius: 50%;
}

/* 图片样式 */
.kiu-intro-images {
  display: flex;
  gap: 20px;
  margin-top: 25px;
}

.kiu-intro-images img {
  width: calc(33.33% - 14px);
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.kiu-intro-images img:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.feature-image-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 25px;
}

.feature-image-row img {
  width: 33%;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.feature-image-row img:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

/* 项目详情样式 */
/* 申请材料和服务样式 */
/* 申请流程可视化样式 */
.enrollment-visual {
  width: 100%;
  margin-top: 30px;
  padding: 20px;
  background: var(--secondary-color);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  text-align: center;
}

.enrollment-visual img {
  width: 80%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.enrollment-main {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.enrollment-main > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.enrollment-main > div::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
  background: var(--primary-color);
  border-radius: 50%;
  opacity: 0.1;
}

.enrollment-main img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.enrollment-main img:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-hover);
}

.enrollment-main .caption {
  text-align: center;
  font-size: 15px;
  color: var(--text-color);
  line-height: 1.6;
  margin-top: 15px;
  padding: 0 10px;
  font-weight: 500;
}

/* 表单样式 */
.apply-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
  padding: 30px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
}

.apply-form label {
  display: flex;
  flex-direction: column;
  font-size: 15px;
  margin-bottom: 12px;
  color: var(--text-color);
  font-weight: 500;
}

.apply-form input,
.apply-form select,
.apply-form textarea {
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 15px;
  transition: var(--transition);
  background: #f9f9f9;
}

.apply-form input:focus,
.apply-form select:focus,
.apply-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(11, 95, 165, 0.1);
  background: #fff;
}

.apply-form textarea {
  min-height: 120px;
  resize: vertical;
}

.apply-form button {
  grid-column: 1 / -1;
  padding: 14px 30px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(11, 95, 165, 0.2);
}

.apply-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(11, 95, 165, 0.3);
}

/* 按钮样式 */
/* 表格样式 */
.majors-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 25px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.majors-table th,
.majors-table td {
  border: 1px solid var(--border-color);
  padding: 15px 20px;
  text-align: left;
}

.majors-table thead {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: #fff;
}

.majors-table thead th {
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.majors-table tbody tr:nth-child(even) {
  background: #f9f9f9;
}

.majors-table tbody tr:hover {
  background: var(--secondary-color);
  transform: scale(1.01);
  transition: var(--transition);
}

/* 页脚样式 */
.site-footer {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  padding: 40px 0;
  text-align: center;
  margin-top: 60px;
  font-size: 15px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

/* 联系方式样式 */
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4v-4zm0-30V0h-2v4h-4v2h4v4h2v-4h4v-2h-4v-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4V0h-2z'/%3E%3Cpath d='M6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6v-4zm0-30V0H4v4H0v2h4v4h2V6h4V4H6V0h-2z'/%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.site-footer p {
  margin: 8px 0;
  color: #fff;
  font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 900px) {
  .enrollment-main {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header {
    height: auto;
    padding: 20px 0;
  }

  .header h1 {
    font-size: 1.5rem;
  }

  .site-nav {
    padding: 10px 0;
  }

  .site-nav a {
    padding: 6px 10px;
    font-size: 14px;
  }

  .section-header {
    flex-direction: column;
    gap: 10px;
    text-align: center;
    padding: 12px 16px;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }

  .feature-image-row {
    flex-direction: column;
  }

  .feature-image-row img {
    max-width: 100%;
  }

  .apply-form {
    grid-template-columns: 1fr;
  }

  .enrollment-main {
    grid-template-columns: 1fr;
  }

  .majors-table {
    font-size: 14px;
  }

  .majors-table th,
  .majors-table td {
    padding: 8px;
  }
}

/* 留学流程三列布局样式 */
.study-process-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 20px;
}

.study-process-column {
  flex: 1;
  min-width: 250px;
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.study-process-column:hover {
  box-shadow: 0 4px 12px rgba(11, 95, 165, 0.1);
  transform: translateY(-3px);
}

.study-process-column h3 {
  margin-top: 0;
  margin-bottom: 15px;
  padding-bottom: 10px;
  color: var(--primary-color);
  font-size: 1.3rem;
  border-bottom: 2px solid var(--primary-color);
  position: relative;
}

.study-process-column h3::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--accent-color);
}

.study-process-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.study-process-column li {
  margin-bottom: 12px;
  padding-left: 20px;
  position: relative;
}

.study-process-column li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background: var(--primary-color);
  border-radius: 50%;
}

/* 响应式布局：在小屏幕上显示为单列 */
@media (max-width: 768px) {
  .study-process-columns {
    flex-direction: column;
    gap: 20px;
  }
}

/* ========== 报名表单样式 ========== */
.kiu-apply-form {
  max-width: 800px;
  margin: 0 auto;
}

.kiu-apply-form .form-group {
  margin-bottom: 20px;
}

.kiu-apply-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
  font-size: 15px;
}

.kiu-apply-form .required {
  color: #e74c3c;
  margin-left: 3px;
}

.kiu-apply-form input[type="text"],
.kiu-apply-form input[type="tel"],
.kiu-apply-form input[type="month"],
.kiu-apply-form select,
.kiu-apply-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-size: 15px;
  transition: all 0.3s ease;
  font-family: inherit;
}

.kiu-apply-form input[type="text"]:focus,
.kiu-apply-form input[type="tel"]:focus,
.kiu-apply-form input[type="month"]:focus,
.kiu-apply-form select:focus,
.kiu-apply-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 102, 153, 0.1);
}

.kiu-apply-form input.error,
.kiu-apply-form select.error,
.kiu-apply-form textarea.error {
  border-color: #e74c3c;
}

.kiu-apply-form .form-error {
  display: block;
  color: #e74c3c;
  font-size: 13px;
  margin-top: 5px;
}

.kiu-apply-form textarea {
  resize: vertical;
  min-height: 100px;
}

.kiu-apply-form .checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.kiu-apply-form .checkbox-group label {
  position: relative;
}

.kiu-apply-form .checkbox-group input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.kiu-apply-form .checkbox-group label {
  margin-bottom: 0;
  font-weight: normal;
  cursor: pointer;
  line-height: 1.5;
}

.kiu-apply-form .form-buttons {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.kiu-apply-form .submit-btn,
.kiu-apply-form .reset-btn {
  flex: 1;
  padding: 14px 30px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.kiu-apply-form .submit-btn {
  background: var(--primary-color);
  color: white;
}

.kiu-apply-form .submit-btn:hover:not(:disabled) {
  background: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 102, 153, 0.3);
}

.kiu-apply-form .submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.kiu-apply-form .reset-btn {
  background: #f5f5f5;
  color: #666;
  border: 2px solid #e0e0e0;
}

.kiu-apply-form .reset-btn:hover {
  background: #e8e8e8;
  border-color: #ccc;
}

.kiu-apply-form .form-success-message {
  background: #d4edda;
  border: 2px solid #27ae60;
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  animation: fadeIn 0.5s ease;
}

.kiu-apply-form .form-success-message h3 {
  color: #27ae60;
  margin: 0 0 10px 0;
  font-size: 24px;
}

.kiu-apply-form .form-success-message p {
  color: #155724;
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 移动端响应式 */
@media (max-width: 768px) {
  .kiu-apply-form .form-buttons {
    flex-direction: column;
  }
  
  .kiu-apply-form .submit-btn,
  .kiu-apply-form .reset-btn {
    width: 100%;
  }
}

/* 隐私政策链接和提示框 */
.privacy-policy-link {
  color: var(--primary-color);
  text-decoration: underline;
  cursor: pointer;
  position: relative;
  display: inline-block;
}

.privacy-policy-link:hover {
  color: var(--accent-color);
}

.privacy-policy-tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 15px);
  left: -20px;
  background: white;
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  padding: 20px;
  width: 450px;
  max-width: 90vw;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  animation: tooltipFadeIn 0.3s ease;
}

.privacy-policy-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 40px;
  border: 10px solid transparent;
  border-top-color: var(--primary-color);
}

.privacy-policy-tooltip::before {
  content: '';
  position: absolute;
  top: calc(100% - 2px);
  left: 38px;
  border: 12px solid transparent;
  border-top-color: white;
  z-index: 1;
}

.privacy-policy-tooltip h4 {
  margin: 0 0 15px 0;
  color: var(--primary-color);
  font-size: 18px;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 10px;
}

.privacy-policy-tooltip p {
  margin: 10px 0;
  font-size: 14px;
  line-height: 1.6;
  color: #555;
}

.privacy-policy-tooltip p strong {
  color: #333;
}

@keyframes tooltipFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 移动端调整 */
@media (max-width: 768px) {
  .privacy-policy-tooltip {
    width: 90vw;
    left: -20px;
    max-height: 60vh;
    overflow-y: auto;
  }
  
  .privacy-policy-tooltip::after {
    left: 50px;
  }
}

/* 隐私政策对话框 */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background: white;
  border-radius: 12px;
  max-width: 700px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 40px;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 32px;
  color: #999;
  cursor: pointer;
  transition: color 0.3s;
  line-height: 1;
}

.modal-close:hover {
  color: #333;
}

.modal-content h2 {
  color: var(--primary-color);
  margin: 0 0 30px 0;
  padding-bottom: 15px;
  border-bottom: 3px solid var(--primary-color);
  font-size: 28px;
}

.modal-body h3 {
  color: var(--primary-color);
  margin: 25px 0 10px 0;
  font-size: 18px;
}

.modal-body p {
  color: #555;
  line-height: 1.8;
  margin: 10px 0;
  font-size: 15px;
}

.modal-btn {
  display: block;
  width: 100%;
  padding: 14px;
  margin-top: 30px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.modal-btn:hover {
  background: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 102, 153, 0.3);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 移动端对话框适配 */
@media (max-width: 768px) {
  .modal-content {
    padding: 25px;
    max-height: 85vh;
  }
  
  .modal-content h2 {
    font-size: 24px;
    margin-bottom: 20px;
  }
  
  .modal-body h3 {
    font-size: 16px;
    margin-top: 20px;
  }
  
  .modal-body p {
    font-size: 14px;
  }
}
