* {
  margin: 0;
  padding: 0;
}

body {
  background-color: #f1f2f3;
}

.container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1640px;
  min-width: 1240px;
  margin: 25px auto;
  color: #333;
  display: flex;
  flex-direction: column;
}

.container * {
  box-sizing: border-box;
}

/* 头部样式 */
header {
  position: relative;
  margin-bottom: 20px;
  text-align: center;
}

header h1 {
  font-size: 32px;
  margin-bottom: 5px;
}

header p {
  font-size: 16px;
  line-height: 1.6;
}

.converter-container {
  display: flex;
  gap: 20px;
  background-color: white;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding: 20px;
  margin-bottom: 25px;
}

.warp-box{
  flex: 1;
}

.input-group {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.input-box {
  flex: 1;
}

.input-box label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #34495e;
  font-size: 1.1rem;
}

.container select,
.container input {
  width: 100%;
  padding: 12px 18px;
  border: 1px solid #e0e6ed;
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s;
}

.container select:focus,
.container input:focus {
  outline: none;
  border-color: #3498db;
  background-color: white;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.result-container {
  background: linear-gradient(135deg, #3498db, #2ecc71);
  border-radius: 12px;
  padding: 25px;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.result-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.result-title {
  font-size: 1.4rem;
  font-weight: 600;
}

.result-value {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin: 15px 0;
  word-break: break-all;
}

.conversion-details {
  font-size: 1.1rem;
  text-align: center;
  opacity: 0.9;
}

.buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s;
}

.convert-btn {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.copy-btn {
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  color: white;
  box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.clear-btn {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white;
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn:active {
  transform: translateY(-1px);
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 25px;
}

.feature-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.feature-title {
  font-size: 1.3rem;
  color: #2c3e50;
  margin-bottom: 10px;
}

.feature-desc {
  color: #7f8c8d;
  line-height: 1.6;
}

.notice {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(44, 62, 80, 0.95);
  color: white;
  padding: 15px 40px;
  border-radius: 50px;
  font-size: 1.1rem;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 1000;
}

.notice.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

footer {
  font-size: 0.9rem;
  color: #777;
  text-align: center;
}

.update-info {
  background: rgba(255, 255, 255, 0.1);
  display: inline-block;
  padding: 6px 25px;
  border-radius: 30px;
  font-size: 0.85rem;
  margin-bottom: 15px;
}

.loading {
  text-align: center;
  padding: 20px;
  font-size: 1.2rem;
  color: #7f8c8d;
}

/* 货币选择器样式 */
.currency-option {
  display: flex;
  align-items: center;
  gap: 10px;
}

.currency-flag {
  font-size: 1.5rem;
}
