* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
}

body {
  font-family: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: #fff;
  color: #333;
}

/* Section Layout */
.pricing-section {
  position: relative;
  padding: 2rem 1.5rem;
  width: 100%;
  overflow: hidden;
  background: linear-gradient(180deg, #FFFFFF 0%, #F2F6FF 52%, #FFFFFF 100%);
}

@media (min-width: 1024px) {
  .pricing-section {
    padding: 2rem 6rem;
  }
}

.pricing-container {
  max-width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}


@media (min-width: 425px){
  .pricing-container{
    max-width: 425px;
  }
}
@media (min-width: 640px){
  .pricing-container{
    max-width: 640px;
  }
}
@media (min-width: 768px){
  .pricing-container{
    max-width: 768px;
  }
}
@media (min-width: 1024px){
  .pricing-container{
    max-width: 1024px;
  }
}
@media (min-width: 1280px){
  .pricing-container{
    max-width: 1280px;
  }
}
@media (min-width: 1536px){
  .pricing-container{
    max-width: 1536px;
  }
}

.pricing-box {
	width: 100%;
  background: linear-gradient(to bottom, white 0%, #F5F7FB 100%);
  border-radius: 1.25rem;
  padding: 2rem 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

@media (min-width: 1024px) {
  .pricing-box {
    padding: 3rem;
  }
}

.pin {
  position: absolute;
  width: 1px;
  height: 1px;
}

/* Header Section */
.header-section {
  text-align: center;
  margin-bottom: 3rem;
  padding: 0 1rem;
  opacity: 0;
  transform: translateY(32px);
  transition: all 0.7s ease-out;
}

.header-section.animate {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 1024px) {
  .header-section {
    padding: 0;
  }
}

.header-content {
  max-width: 45rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.section-title {
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 700;
  background: linear-gradient(180deg, #0A2D82 0%, #2446B6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (min-width: 1024px) {
  .section-title {
    font-size: 2.5rem;
  }
}

.mobile-break {
  display: block;
}

@media (min-width: 1024px) {
  .mobile-break {
    display: none;
  }
}

.section-subtitle {
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 700;
  color: #4F4F4F;
}

.section-subtitle-small {
  font-size: 1rem;
  line-height: 1;
  color: #929597;
}

@media (min-width: 1024px) {
    .section-subtitle {
    font-size: 1.5rem;
  }	
    .section-subtitle-small {
    font-size: 1rem;
  }
}

/* Input Group */
.input-group {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* Selector Section */
.selector-wrapper {
  position: relative;
  width: 100%;
  max-width: 32rem;
  margin: 0 auto;
  padding: 0 1rem;
  opacity: 0;
  transform: translateX(-32px);
  transition: all 0.7s ease-out;
}

.selector-wrapper.animate {
  opacity: 1;
  transform: translateX(0);
}

@media (min-width: 1024px) {
  .selector-wrapper {
    padding: 0;
  }
}

.gradient-border {
  padding: 2px;
  border-radius: 0.5rem;
  background: linear-gradient(180deg, #0A2D82 0%, #2446B6 100%);
}

.gradient-border > * {
  border-radius: 1rem;
}

.battery-select {
  width: 100%;
  height: 3rem;
  padding: 0 1.5rem;
  padding-right: 3rem;
  background: white;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #0D235E;
  appearance: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.battery-select:hover {
  background-color: #F8FAFF;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
}

.battery-select:focus {
  outline: none;
  background-color: #F8FAFF;
}

.select-icon {
  position: absolute;
  right: 1.75rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #0D235E;
  transition: all 0.3s ease;
}

.selector-wrapper:hover .select-icon {
  color: #0639C7;
  transform: translateY(-50%) scale(1.1);
}

/* Slider Section */
.slider-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  opacity: 0;
  transform: translateX(32px);
  transition: all 0.7s ease-out;
  width: 100%;
  max-width: none;
}

.slider-section.animate {
  opacity: 1;
  transform: translateX(0);
}

.slider-header {
  text-align: center;
}

.slider-title {
  font-size: 1rem;
  font-weight: 700;
  color: #6B7280;
  margin-bottom: 1rem;
}

.distance-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
}

.distance-display.active {
  transform: scale(1.05);
}

.distance-number {
  font-size: 4rem;
  line-height: 1.2;
  font-weight: 700;
  color: #000;
  transition: all 0.3s ease;
}

.distance-display.active .distance-number {
  transform: scale(1.1);
  color: #0639C7;
}

.distance-unit {
  font-size: 1.25rem;
  color: #000;
  transition: all 0.3s ease;
}

.distance-display.active .distance-unit {
  color: #0639C7;
  transform: scale(1.1);
}

/* Slider Wrapper - 改用寬度 */
.slider-wrapper {
  width: 80vw;
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
}

@media (min-width: 768px) {
  .slider-wrapper {
    width: 80vw;
    max-width: 800px;
  }
}

@media (min-width: 1024px) {
  .slider-wrapper {
    width: 100%;
    max-width: 900px;
  }
}

.distance-slider {
  width: 100%;
  height: 1.25rem;
  border-radius: 9999px;
  background: linear-gradient(
    to right,
    #0A2D82 0%,
    #2446B6 var(--progress, 0%),
    #E5E7EB var(--progress, 0%),
    #E5E7EB 100%
  );
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.distance-slider:hover {
  transform: scale(1.05);
  height: 1.5rem;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  color: #000;
  margin-top: 0.5rem;
}
.distance-slider::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: white;
  border: 3px solid #0639C7;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.distance-slider::-moz-range-thumb {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: white;
  border: 3px solid #0639C7;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.distance-slider::-moz-range-track {
  background: transparent;
  border: none;
}


/* Button Wrapper */
.button-wrapper {
  text-align: center;
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.6s ease-out;
}

.button-wrapper.animate {
  opacity: 1;
  transform: scale(1);
}

.calculate-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 2rem;
  height: 3rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0A2D82;
  background: white;
  border: none;
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.calculate-button:hover {
  background-color: #F5F7FF;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  transform: scale(1.05);
}

.calculate-button:active {
  transform: scale(0.98);
}

/* Result Section */
.result-section {
  margin-top: 3rem;
  animation: fadeInUp 0.7s ease-out;
}

.result-header {
  text-align: center;
  margin-bottom: 2rem;
  padding: 0 1rem;
  animation: slideInUp 0.8s ease-out;
}

.result-title {
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 700;
  background: linear-gradient(180deg, #3D3D3D 0%, #A3A3A3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (min-width: 1024px) {
  .result-title {
    font-size: 2.5rem;
  }
}

.result-grid {
  padding: 0.5rem 1rem;
  animation: scaleIn 0.6s ease-out;
}

@media (min-width: 1024px) {
  .result-grid {
    padding: 0 2rem;
  }
}

/* Plan Grid - 關鍵修改 */
.plan-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 100%;
}

/* 平板及以上裝置：2列 */
@media (min-width: 768px) {
  .plan-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 大螢幕及以上：根據卡片數調整 */
@media (min-width: 1024px) {
  .plan-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

/* 超大螢幕：最多4列，但根據實際內容自動調整 */
@media (min-width: 1280px) {
  .plan-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
  }
}

.plan-card-blue {
  background: #ddeef9;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.plan-card-blue:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}


.plan-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.plan-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}



.plan-price {
  font-size: 2.2rem;
  font-weight: 700;
  color: #0A2D82;
  margin-bottom: 0.5rem;
}

.plan-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1F2937;
  margin-bottom: 1rem;
}

.plan-highlight {
  background: #F0F4FF;
  border-left: 3px solid #0639C7;
  padding: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: #0639C7;
  font-weight: 500;
}

.plan-bullets {
  list-style: none;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.plan-bullets li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: #4B5563;
  font-size: 0.875rem;
  line-height: 1.5;
}

.plan-bullets li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #0639C7;
  font-weight: bold;
}

.plan-note-big {
  font-size: 1rem;
  color: #303030;
  margin-bottom: 1rem;
  line-height: 1.8;
}

.plan-note {
  font-size: 0.75rem;
  color: #9CA3AF;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.plan-link {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(180deg, #0A2D82 0%, #2446B6 100%);
  color: #FFFFFF !important;
  text-decoration: none;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  align-self: flex-start;
}

.plan-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(10, 45, 130, 0.3);
}

.loading-message {
  text-align: center;
  padding: 2rem;
  color: #9CA3AF;
}

/* Reset Button */
.reset-button {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #3D3D3D;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.875rem;
  font-weight: 700;
}

.reset-button:hover {
  color: #0639C7;
  transform: scale(1.05);
}

.reset-button svg {
  transition: transform 0.3s ease;
}

.reset-button:hover svg {
  transform: rotate(180deg);
}

/* Disclaimer Section */
.disclaimer-section {
  margin-top: 4rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  opacity: 0;
  animation: fadeInUp 0.7s ease-out 0.3s forwards;
}

.disclaimer-title {
  font-size: 1rem;
  font-weight: 700;
  color: #9CA3AF;
}

.disclaimer-text {
  font-size: 0.875rem;
  line-height: 1.7;
  color: #9CA3AF;
  width: 100%;
  margin: 0 auto;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(2rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(3rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Input Section */
.input-section {
  width: 100%;
}

.input-section.hidden {
  display: none;
}