* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
  color: #333;
  min-height: 100vh;
  padding: 20px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

header {
  text-align: center;
  padding-bottom: 20px 0;
  margin-bottom: 30px;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 15px;
}

.logo i {
  font-size: 2.5rem;
  color: #ffd700;
  background: linear-gradient(45deg, #ffd700, #ffa500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h1 {
  font-size: 2.5rem;
  color: #2c3e50;
  margin-bottom: 10px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.subtitle {
  color: #7f8c8d;
  font-size: 1.1rem;
  margin-bottom: 25px;
}

.update-info {
  background: white;
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  font-size: 0.95rem;
}

.update-info span {
  margin-right: 5px;
  color: #7f8c8d;
}

.refresh-btn {
  width: 60px;
  height: 20px;
  background-color: #333;
  border-radius: 3px;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}

.refresh-btn:hover {
  background: #555;
}

.gold-price-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.price-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.price-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.card-header {
  padding: 20px;
  display: flex;
  align-items: center;
  background: linear-gradient(45deg, #f1c40f, #f39c12);
  color: white;
}

.card-header i {
  font-size: 1.8rem;
  margin-right: 15px;
}

.card-header h3 {
  font-size: 1.4rem;
  font-weight: 600;
}

.card-content {
  padding: 25px;
  text-align: center;
}

.price-value {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 10px 0;
  color: #2c3e50;
  display: flex;
  justify-content: center;
  align-items: center;
}

.price-unit {
  font-size: 1rem;
  margin-left: 5px;
  font-weight: normal;
  color: #7f8c8d;
}

.price-change {
  display: flex;
  flex-wrap: wrap;
  padding: 5px 12px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
}
.price-change .item {
  width: 50%;
}
.green {
  color: #27ae60;
}

.red {
  color: #c0392b;
}
#high,
#low,
#start,
#close {
  color: #17a2b8;
}

.card-footer {
  padding: 15px 25px;
  background: #f8f9fa;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  color: #7f8c8d;
  font-size: 0.9rem;
}

.trend-chart {
  background: #f8f9fa;
  margin: 20px 0;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  padding: 10px;
}

.chart-bar {
  flex: 1;
  background: #3498db;
  margin: 0 2px;
  border-radius: 3px 3px 0 0;
  position: relative;
}

.chart-bar::after {
  content: attr(data-price);
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  color: #7f8c8d;
}

.info-section {
  background: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 40px;
}

.info-section h2 {
  color: #2c3e50;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #f1c40f;
}

.info-content {
  line-height: 1.8;
  color: #555;
}

footer {
  text-align: center;
  padding: 30px 0;
  color: #7f8c8d;
  font-size: 0.9rem;
}
footer a {
  text-decoration: none;
  color: #7f8c8d;
}
footer a:hover{
  color: #5e646a;
}
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  .gold-price-container {
    grid-template-columns: 1fr;
  }

  .update-info {
    flex-direction: column;
    padding: 15px;
  }

  .refresh-btn {
    margin-top: 10px;
    margin-left: 0;
  }
}

.gold-type {
  font-size: 1rem;
  color: #7f8c8d;
  margin-top: 5px;
}
