
:root {
  --primary-color: #032B44;
  --accent-color: #51C87A;
  --background-color: #F6F8FA;
  --secondary-color: #2A5C8D;
  --highlight-color: #FF6B6B;
  --text-color: #333333;
  --light-gray: #E8E8E8;
  --medium-gray: #CCCCCC;
  --dark-gray: #666666;
  --white: #FFFFFF;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background: linear-gradient(135deg, var(--background-color) 0%, #E6EFF5 100%);
  background-attachment: fixed;
  padding: 0;
  margin: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.header {
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--white);
  padding: 2rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 3rem;
}

.header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--accent-color);
}

.header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.header h1::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--accent-color);
}

.notice {
  background: rgba(255, 255, 255, 0.2);
  padding: 10px 20px;
  border-radius: 4px;
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.content-section {
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 2.5rem;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.content-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent-color), var(--secondary-color));
}

.content-section h2 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  position: relative;
  padding-bottom: 10px;
}

.content-section h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--accent-color);
}

.content-section h3 {
  color: var(--secondary-color);
  margin: 1.5rem 0 1rem;
  font-size: 1.4rem;
}

.content-section p {
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

.content-section img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin: 1.5rem 0;
  transition: var(--transition);
}

.content-section img:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.image-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.image-grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

pre {
  background: #f5f7fa;
  border-radius: 6px;
  padding: 1.2rem;
  margin: 1.5rem 0;
  overflow-x: auto;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.95rem;
  line-height: 1.5;
  border-left: 4px solid var(--accent-color);
  position: relative;
}

pre code {
  display: block;
  white-space: pre;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

th, td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid var(--light-gray);
}

th {
  background-color: var(--primary-color);
  color: var(--white);
  font-weight: 600;
}

tr:nth-child(even) {
  background-color: rgba(240, 240, 240, 0.5);
}

tr:hover {
  background-color: rgba(81, 200, 122, 0.1);
}

.nav-tabs {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--light-gray);
}

.nav-tabs a {
  padding: 0.8rem 1.5rem;
  margin-right: 0.5rem;
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  border-radius: 4px 4px 0 0;
  transition: var(--transition);
  position: relative;
}

.nav-tabs a:hover {
  color: var(--primary-color);
  background: rgba(3, 43, 68, 0.05);
}

.nav-tabs a::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: transparent;
  transition: var(--transition);
}

.nav-tabs a:hover::after {
  background: var(--accent-color);
}

.footer {
  text-align: center;
  padding: 2rem 0;
  margin-top: 3rem;
  background: var(--primary-color);
  color: var(--white);
}

.footer p {
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .header h1 {
    font-size: 2rem;
  }
  
  .content-section {
    padding: 1.5rem;
  }
  
  .image-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  pre {
    font-size: 0.85rem;
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .header h1 {
    font-size: 1.8rem;
  }
  
  .content-section {
    padding: 1.2rem;
  }
  
  .image-grid {
    grid-template-columns: 1fr;
  }
  
  .nav-tabs a {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
}

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.content-section {
  animation: fadeIn 0.6s ease-out forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* Floating elements */
.floating {
  animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

/* Highlight box */
.highlight-box {
  background: linear-gradient(135deg, rgba(81, 200, 122, 0.1) 0%, rgba(3, 43, 68, 0.05) 100%);
  border-left: 4px solid var(--accent-color);
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 6px 6px 0;
}

.highlight-box h4 {
  color: var(--primary-color);
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
}

/* Tooltip */
.tooltip {
  position: relative;
  display: inline-block;
  border-bottom: 1px dotted var(--dark-gray);
  cursor: help;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 200px;
  background-color: var(--primary-color);
  color: var(--white);
  text-align: center;
  border-radius: 6px;
  padding: 8px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 0.9rem;
  line-height: 1.4;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

/* Accordion */
.accordion {
  margin: 1.5rem 0;
}

.accordion-item {
  border: 1px solid var(--light-gray);
  border-radius: 6px;
  margin-bottom: 0.8rem;
  overflow: hidden;
}

.accordion-header {
  background-color: var(--white);
  padding: 1rem 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
  transition: var(--transition);
}

.accordion-header:hover {
  background-color: rgba(81, 200, 122, 0.1);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background-color: var(--white);
}

.accordion-content-inner {
  padding: 1rem 1.5rem;
}

.accordion-item.active .accordion-content {
  max-height: 500px;
}

.accordion-icon {
  transition: transform 0.3s;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.3rem 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 50px;
  background-color: var(--accent-color);
  color: var(--white);
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.badge-primary {
  background-color: var(--primary-color);
}

.badge-secondary {
  background-color: var(--secondary-color);
}

.badge-highlight {
  background-color: var(--highlight-color);
}

