* {
  margin: 0;
  padding: 0;
}

body {
  background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
}

.container {
  box-sizing: border-box;
  max-width: 1550px;
  min-width: 1240px;
  width: 100%;
  margin: 25px auto;
  background: white;
  border-radius: 20px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  color: #333;
  line-height: 1.6;
}

.container * {
  box-sizing: border-box;
}

header {
  background: linear-gradient(135deg, #2c3e50, #1a2530);
  text-align: center;
  padding: 40px 0;
  color: white;
  position: relative;
}

.header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 Q50,20 100,0 L100,100 Q50,80 0,100 Z" fill="rgba(255,255,255,0.05)"/></svg>');
  background-size: cover;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 15px;
  position: relative;
  z-index: 2;
}

.logo-icon {
  font-size: 3.5rem;
  color: #d4af37;
  text-shadow: 0 0 15px rgba(212, 175, 55, 0.7);
}

h1 {
  font-size: 3rem;
  color: white;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.subtitle {
  font-size: 1.3rem;
  color: #d4af37;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  font-weight: 300;
}

.tools-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 30px;
  padding: 40px;
  background: #f9fbfd;
}

.tool-card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  padding: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid #eef2f7;
}

.tool-card:hover {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(to right, #d4af37, #c19b53);
}

.tool-card h3 {
  color: #2c3e50;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.8rem;
}

.tool-icon {
  font-size: 1.8rem;
  color: #d4af37;
  background: #fcf6e9;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.input-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #2c3e50;
  font-size: 1.1rem;
}

input,
select {
  width: 100%;
  padding: 15px;
  border: 2px solid #e0e6ed;
  border-radius: 10px;
  font-size: 1.1rem;
  transition: border-color 0.3s;
  background: #f8fafc;
}

input:focus,
select:focus {
  border-color: #d4af37;
  outline: none;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

button {
  background: linear-gradient(to right, #d4af37, #c19b53);
  color: white;
  border: none;
  padding: 16px 25px;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
  letter-spacing: 1px;
}

button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
  background: linear-gradient(to right, #c19b53, #d4af37);
}

button:active {
  transform: translateY(1px);
}

.result {
  margin-top: 25px;
  padding: 25px;
  background: linear-gradient(to bottom right, #fcf6e9, #fffbf0);
  border-radius: 10px;
  text-align: center;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 1px solid #f0e6d2;
}

.result h4 {
  color: #2c3e50;
  margin-bottom: 15px;
  font-size: 1.4rem;
}

.zodiac-result {
  font-size: 4rem;
  margin: 15px 0;
  line-height: 1;
}

.zodiac-name {
  font-size: 1.8rem;
  font-weight: bold;
  color: #d4af37;
  margin: 10px 0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.year-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 12px;
  width: 100%;
  margin-top: 20px;
}

.year-item {
  background: #e9ecef;
  padding: 12px 5px;
  border-radius: 8px;
  text-align: center;
  font-weight: 500;
  font-size: 1.1rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.intro-section {
  background: linear-gradient(to right, #ffffff, #f8f9fa);
  padding: 50px 40px;
  margin: 0;
  border-top: 1px solid #eef2f7;
  border-bottom: 1px solid #eef2f7;
}

.intro-section h2 {
  color: #2c3e50;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 2.2rem;
  text-align: center;
  justify-content: center;
}

.intro-content {
  column-count: 2;
  column-gap: 50px;
  text-align: justify;
  max-width: 1200px;
  margin: 0 auto;
}

.intro-content p {
  margin-bottom: 20px;
  line-height: 1.8;
  font-size: 1.1rem;
  text-indent: 2em;
}

.zodiac-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 25px;
  padding: 40px;
  background: white;
}

.zodiac-item {
  text-align: center;
  padding: 25px 15px;
  border-radius: 15px;
  transition: all 0.3s ease;
  cursor: default;
  background: #f9fbfd;
  border: 1px solid #eef2f7;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.zodiac-item:hover {
  background: #fff;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.zodiac-icon {
  font-size: 3.5rem;
  margin-bottom: 15px;
  line-height: 1;
}

.zodiac-title {
  font-weight: 700;
  color: #2c3e50;
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.zodiac-time {
  color: #7f8c8d;
  font-size: 1.1rem;
}

.footer {
  text-align: center;
  padding: 30px 0;
  color: #7f8c8d;
  font-size: 1rem;
  background: #2c3e50;
  color: #ecf0f1;
}

.footer p {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

.highlight {
  color: #d4af37;
  font-weight: 600;
}

.section-title {
  text-align: center;
  padding: 25px 0;
  font-size: 2.2rem;
  color: #2c3e50;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 100px;
  height: 4px;
  background: linear-gradient(to right, #d4af37, #c19b53);
  margin: 15px auto 0;
  border-radius: 2px;
}
