@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');

.chinese-date-converter-tool,
.chinese-date-converter-tool div,
.chinese-date-converter-tool h1,
.chinese-date-converter-tool p,
.chinese-date-converter-tool span,
.chinese-date-converter-tool label,
.chinese-date-converter-tool button,
.chinese-date-converter-tool input,
.chinese-date-converter-tool select,
.chinese-date-converter-tool option,
.chinese-date-converter-tool strong,
.chinese-date-converter-tool small {
  margin: 0;
  padding: 0;
  line-height: 1.4;
  font-size: 16px;
  color: #f8fafc;
  background-color: transparent;
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.chinese-date-converter-tool {
  position: relative;
  width: 100%;
  max-width: none;
  border-radius: 0 !important;
  overflow-x: hidden;
  box-sizing: border-box;
  background-color: #06121f;
  background-image:
    radial-gradient(circle at 14% 12%, rgba(220, 38, 38, 0.42), transparent 28%),
    radial-gradient(circle at 86% 18%, rgba(245, 158, 11, 0.42), transparent 27%),
    radial-gradient(circle at 72% 86%, rgba(16, 185, 129, 0.38), transparent 32%),
    linear-gradient(135deg, #06121f 0%, #0f172a 42%, #112a34 100%);
}

.chinese-date-converter-tool .cdc-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  background-color: transparent;
}

.chinese-date-converter-tool h1 {
  font-size: clamp(1.5rem, 5vw, 2.8rem);
  line-height: 1.08;
  font-weight: 800;
  text-align: center;
  color: #ffffff;
  background-color: transparent;
  letter-spacing: 0;
}

.chinese-date-converter-tool .cdc-subtitle {
  max-width: 760px;
  margin: 12px auto 0;
  font-size: 1.02rem;
  line-height: 1.6;
  font-weight: 500;
  text-align: center;
  color: #dbeafe;
  background-color: transparent;
}

.chinese-date-converter-tool .cdc-card {
  width: 100%;
  margin: 28px 0 0;
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 22px;
  background-color: rgba(15, 23, 42, 0.68);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(18px);
}

.chinese-date-converter-tool .cdc-column {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background-color: rgba(2, 6, 23, 0.24);
  color: #f8fafc;
  border-radius: 16px;
}

.chinese-date-converter-tool .cdc-section-label {
  display: block;
  font-size: 0.86rem;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fef3c7;
  background-color: transparent;
}

.chinese-date-converter-tool .cdc-fields,
.chinese-date-converter-tool .cdc-field,
.chinese-date-converter-tool .cdc-direction-wrap {
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #f8fafc;
  background-color: transparent;
}

.chinese-date-converter-tool label {
  display: block;
  font-size: 0.9rem;
  line-height: 1.35;
  font-weight: 700;
  color: #e2e8f0;
  background-color: transparent;
}

.chinese-date-converter-tool input,
.chinese-date-converter-tool select {
  width: 100%;
  max-width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid rgba(148, 163, 184, 0.48);
  border-radius: 12px;
  outline: none;
  background-color: rgba(15, 23, 42, 0.95);
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 650;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.chinese-date-converter-tool input::placeholder {
  color: #94a3b8;
  background-color: transparent;
}

.chinese-date-converter-tool select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%23F8FAFC' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px 18px;
}

.chinese-date-converter-tool option {
  color: #f8fafc;
  background-color: #0f172a;
  font-size: 1rem;
  line-height: 1.35;
}

.chinese-date-converter-tool input:focus,
.chinese-date-converter-tool select:focus {
  color: #ffffff;
  background-color: #0f172a;
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18), 0 0 24px rgba(16, 185, 129, 0.16);
}

.chinese-date-converter-tool .cdc-action-row,
.chinese-date-converter-tool .cdc-result-actions {
  width: 100%;
  max-width: 100%;
  display: flex;
  gap: 12px;
  background-color: transparent;
}

.chinese-date-converter-tool .cdc-btn {
  width: 100%;
  max-width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  cursor: pointer;
  color: #ffffff;
  font-size: 0.95rem;
  line-height: 1.25;
  font-weight: 800;
  text-align: center;
  background-color: rgba(30, 41, 59, 0.92);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.chinese-date-converter-tool .cdc-btn span {
  display: inline;
  color: #ffffff;
  background-color: transparent;
  font-size: 1rem;
  line-height: 1;
}

.chinese-date-converter-tool .cdc-btn-primary {
  background-color: #dc2626;
  background-image: linear-gradient(135deg, #dc2626 0%, #f59e0b 52%, #10b981 100%);
  color: #ffffff;
  border-color: rgba(254, 243, 199, 0.72);
}

.chinese-date-converter-tool .cdc-btn-secondary {
  background-color: rgba(15, 23, 42, 0.9);
  color: #f8fafc;
  border-color: rgba(148, 163, 184, 0.42);
}

.chinese-date-converter-tool .cdc-btn:hover {
  transform: translateY(-2px);
  color: #ffffff;
  background-color: rgba(51, 65, 85, 0.96);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.3), 0 0 22px rgba(245, 158, 11, 0.18);
}

.chinese-date-converter-tool .cdc-btn-primary:hover {
  background-color: #b91c1c;
  background-image: linear-gradient(135deg, #b91c1c 0%, #d97706 50%, #059669 100%);
}

.chinese-date-converter-tool .cdc-btn:active {
  transform: translateY(0);
  color: #ffffff;
  background-color: rgba(15, 23, 42, 1);
}

.chinese-date-converter-tool .cdc-btn:focus {
  outline: none;
  color: #ffffff;
  background-color: rgba(30, 41, 59, 1);
  border-color: #fbbf24;
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.22), 0 12px 26px rgba(0, 0, 0, 0.28);
}

.chinese-date-converter-tool .cdc-btn:disabled,
.chinese-date-converter-tool select:disabled {
  opacity: 0.62;
  cursor: not-allowed;
  transform: none;
}

.chinese-date-converter-tool .cdc-results {
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  max-height: 460px;
  background-color: transparent;
}

.chinese-date-converter-tool .cdc-placeholder {
  width: 100%;
  min-height: 116px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(226, 232, 240, 0.24);
  border-radius: 14px;
  color: #cbd5e1;
  background-color: rgba(15, 23, 42, 0.52);
  font-size: 0.96rem;
  line-height: 1.45;
  text-align: center;
}

.chinese-date-converter-tool .cdc-message {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(248, 113, 113, 0.58);
  border-radius: 12px;
  color: #fee2e2;
  background-color: rgba(127, 29, 29, 0.46);
  font-size: 0.92rem;
  line-height: 1.45;
  font-weight: 700;
}

.chinese-date-converter-tool .cdc-result-row {
  width: 100%;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  color: #f8fafc;
  background-color: rgba(15, 23, 42, 0.7);
}

.chinese-date-converter-tool .cdc-result-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  background-color: transparent;
  color: #f8fafc;
}

.chinese-date-converter-tool .cdc-result-label {
  color: #bfdbfe;
  background-color: transparent;
  font-size: 0.78rem;
  line-height: 1.25;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.chinese-date-converter-tool .cdc-result-value {
  color: #ffffff;
  background-color: transparent;
  font-size: 0.98rem;
  line-height: 1.35;
  font-weight: 750;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.chinese-date-converter-tool .cdc-copy {
  flex: 0 0 auto;
  width: auto;
  min-height: 38px;
  padding: 9px 12px;
  font-size: 0.82rem;
  line-height: 1.2;
}

@media (min-width: 320px) and (max-width: 374px) {
  .chinese-date-converter-tool { padding: 24px 10px; border-radius: 0 !important; }
  .chinese-date-converter-tool .cdc-container { width: 100%; }
  .chinese-date-converter-tool h1 { font-size: clamp(1.5rem, 5vw, 2.8rem); }
  .chinese-date-converter-tool .cdc-subtitle { font-size: 0.88rem; }
  .chinese-date-converter-tool .cdc-card { grid-template-columns: 1fr; gap: 24px; padding: 14px; margin-top: 20px; border-radius: 16px; }
  .chinese-date-converter-tool .cdc-column { gap: 10px; }
  .chinese-date-converter-tool input,
  .chinese-date-converter-tool select { min-height: 46px; padding: 11px 13px; font-size: 0.95rem; }
  .chinese-date-converter-tool .cdc-action-row,
  .chinese-date-converter-tool .cdc-result-actions { gap: 8px; }
  .chinese-date-converter-tool .cdc-btn { min-height: 44px; padding: 10px 9px; font-size: 0.82rem; }
  .chinese-date-converter-tool .cdc-result-row { flex-wrap: wrap; padding: 11px 12px; gap: 9px; }
  .chinese-date-converter-tool .cdc-copy { width: 100%; }
  .chinese-date-converter-tool .cdc-result-value { font-size: 0.9rem; }
  .chinese-date-converter-tool .cdc-results { max-height: 390px; }
}

@media (min-width: 375px) and (max-width: 429px) {
  .chinese-date-converter-tool { padding: 28px 14px; border-radius: 0 !important; }
  .chinese-date-converter-tool .cdc-container { width: 100%; }
  .chinese-date-converter-tool h1 { font-size: clamp(1.5rem, 5vw, 2.8rem); }
  .chinese-date-converter-tool .cdc-subtitle { font-size: 0.92rem; }
  .chinese-date-converter-tool .cdc-card { grid-template-columns: 1fr; gap: 24px; padding: 16px; margin-top: 22px; }
  .chinese-date-converter-tool input,
  .chinese-date-converter-tool select { min-height: 47px; font-size: 0.96rem; }
  .chinese-date-converter-tool .cdc-btn { min-height: 45px; font-size: 0.86rem; }
  .chinese-date-converter-tool .cdc-result-row { padding: 12px 13px; }
  .chinese-date-converter-tool .cdc-result-value { font-size: 0.92rem; }
  .chinese-date-converter-tool .cdc-results { max-height: 410px; }
}

@media (min-width: 430px) and (max-width: 767px) {
  .chinese-date-converter-tool { padding: 34px 18px; border-radius: 0 !important; }
  .chinese-date-converter-tool .cdc-container { width: 100%; }
  .chinese-date-converter-tool h1 { font-size: clamp(1.5rem, 5vw, 2.8rem); }
  .chinese-date-converter-tool .cdc-subtitle { font-size: 0.98rem; }
  .chinese-date-converter-tool .cdc-card { grid-template-columns: 1fr; gap: 24px; padding: 20px; }
  .chinese-date-converter-tool input,
  .chinese-date-converter-tool select { min-height: 48px; font-size: 1rem; }
  .chinese-date-converter-tool .cdc-btn { min-height: 46px; font-size: 0.92rem; }
  .chinese-date-converter-tool .cdc-result-value { font-size: 0.96rem; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .chinese-date-converter-tool { padding: 44px 22px; border-radius: 0 !important; }
  .chinese-date-converter-tool .cdc-container { width: 100%; }
  .chinese-date-converter-tool h1 { font-size: clamp(1.5rem, 5vw, 2.8rem); }
  .chinese-date-converter-tool .cdc-subtitle { font-size: 1rem; }
  .chinese-date-converter-tool .cdc-card { grid-template-columns: 1fr 1fr; gap: 24px; padding: 22px; }
  .chinese-date-converter-tool input,
  .chinese-date-converter-tool select { min-height: 48px; font-size: 0.96rem; }
  .chinese-date-converter-tool .cdc-btn { min-height: 46px; font-size: 0.88rem; }
  .chinese-date-converter-tool .cdc-result-row { padding: 12px 13px; }
  .chinese-date-converter-tool .cdc-result-value { font-size: 0.92rem; }
}

@media (min-width: 1024px) and (max-width: 1199px) {
  .chinese-date-converter-tool { padding: 56px 28px; border-radius: 0 !important; }
  .chinese-date-converter-tool .cdc-container { width: 100%; }
  .chinese-date-converter-tool .cdc-card { grid-template-columns: 1fr 1fr; gap: 32px; padding: 24px; }
  .chinese-date-converter-tool h1 { font-size: clamp(1.5rem, 5vw, 2.8rem); }
  .chinese-date-converter-tool .cdc-subtitle { font-size: 1.02rem; }
  .chinese-date-converter-tool input,
  .chinese-date-converter-tool select { min-height: 48px; font-size: 1rem; }
  .chinese-date-converter-tool .cdc-btn { min-height: 46px; font-size: 0.95rem; }
  .chinese-date-converter-tool .cdc-result-value { font-size: 0.98rem; }
}

@media (min-width: 1200px) {
  .chinese-date-converter-tool { padding: 64px 32px; border-radius: 0 !important; }
  .chinese-date-converter-tool .cdc-container { width: 100%; }
  .chinese-date-converter-tool .cdc-card { grid-template-columns: 1fr 1fr; gap: 32px; padding: 24px; }
  .chinese-date-converter-tool h1 { font-size: clamp(1.5rem, 5vw, 2.8rem); }
  .chinese-date-converter-tool .cdc-subtitle { font-size: 1.04rem; }
  .chinese-date-converter-tool input,
  .chinese-date-converter-tool select { min-height: 50px; font-size: 1rem; }
  .chinese-date-converter-tool .cdc-btn { min-height: 48px; font-size: 0.95rem; }
  .chinese-date-converter-tool .cdc-result-value { font-size: 1rem; }
}