/* Circle 主题自定义样式 */
:root {
  --circle-yellow: #fdd164;
  --circle-yellow-dark: #fdc53c;
  --circle-text-dark: #1a1a1a;
  --circle-gradient: linear-gradient(135deg, #fdd164 0%, #ffb347 100%);
  --circle-shadow: 0 8px 32px rgba(253, 193, 60, 0.15);
}

body {
  font-family: 'Nunito', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--circle-text-dark);
  background: linear-gradient(180deg, #fdc53c 0%, #fff7dd 100%);
  position: relative;
  overflow-x: hidden;
}

/* 创意装饰元素 */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 20% 80%,
      rgba(255, 225, 140, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(255, 193, 60, 0.08) 0%,
      transparent 50%
    );
  z-index: -1;
  pointer-events: none;
}

.btn-primary {
  background-color: #fff;
  border-color: var(--circle-yellow);
  color: #1f1f1f;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--circle-yellow-dark);
  border-color: var(--circle-yellow-dark);
  color: #1f1f1f;
}

.text-primary {
  color: var(--circle-yellow-dark) !important;
}

/* 统一图标颜色（Orion 图标库支持 CSS Variables） */
.svg-icon,
.svg-icon-light {
  --layer1: var(--circle-yellow-dark);
  --layer2: var(--circle-yellow-dark);
}

.circle-hero {
  position: relative;
  background-repeat: no-repeat;
}

.circle-hero .container {
  position: relative;
  z-index: 1;
}

.circle-brand {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  color: var(--circle-text-dark);
  text-decoration: none;
}

.circle-brand:hover {
  color: var(--circle-text-dark);
}

.circle-brand .brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  margin-right: 10px;
  background: linear-gradient(135deg, #ffe38c 0%, #fff 100%);
  box-shadow: 0 4px 12px rgba(255, 197, 61, 0.4);
  position: relative;
}

.circle-brand .brand-mark::after {
  content: '';
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background-color: #fdd164;
}

.circle-brand .brand-text {
  font-size: 24px;
  letter-spacing: 0.04em;
  margin-left: 6px;
}

.navbar .nav-link {
  color: var(--circle-text-dark);
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: #fff;
}

.active .nav-item .nav-link:hover,
.active .nav-item .nav-link:focus {
  color: var(--circle-yellow-dark);
}

.btn-outline-light {
  color: var(--circle-text-dark);
  border-color: rgba(255, 255, 255, 0.9);
  background-color: rgba(255, 255, 255, 0.85);
}

.btn-outline-light:hover,
.btn-outline-light:focus {
  border-color: #fff;
  background-color: #fff;
  color: var(--circle-yellow-dark);
}

.card.shadow {
  border-radius: 18px;
}

.footer-link:hover {
  color: var(--circle-yellow-dark);
}

.social-link:hover {
  background-color: var(--circle-yellow);
  border-color: var(--circle-yellow);
  color: #1f1f1f;
}

/* 暖色系正文与弱化文字优化 */
p,
.text-muted {
  color: #5f5a4a !important;
}

h1,
h2,
h3,
h4,
h5 {
  color: #2b2a29;
}

.circle-section-badge {
  display: inline-block;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--circle-yellow-dark);
  background: rgba(255, 197, 61, 0.16);
  padding: 6px 14px;
  border-radius: 999px;
  text-transform: uppercase;
}

.circle-section-title {
  color: var(--circle-text-dark);
  font-weight: 700;
}

.download-list {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: flex-start;
}

.download-entry {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.download-entry .btn {
  width: 220px;
  justify-content: center;
}

.download-entry .collapse {
  width: 220px;
  margin-top: 12px;
  background: #fff;
}

@media (max-width: 575.98px) {
  .download-list {
    flex-direction: column;
    gap: 12px;
  }

  .download-entry {
    align-items: flex-start;
  }
}

#about {
  position: relative;
}

#about .card {
  border-radius: 18px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

#about .card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: left 0.6s ease;
}

#about .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 35px rgba(255, 197, 61, 0.2);
}

#about .card:hover::before {
  left: 100%;
}

#services {
  border-radius: 32px 32px 0 0;
  padding-bottom: 80px;
}

#testimonials .card {
  border-radius: 20px;
}

#testimonials .testimonial-img img {
  border: 4px solid rgba(255, 197, 61, 0.3);
}

/* SVG 背景装饰层 */
.circle-decor-svg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

@media (max-width: 991.98px) {
  .circle-decor-svg {
    opacity: 0.45;
  }
}

/* 创意动画效果 */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.circle-hero h1 {
  animation: float 3s ease-in-out infinite;
}

.circle-section-badge {
  animation: pulse 2s ease-in-out infinite;
}

/* 按钮悬停效果增强 */
.btn-primary {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

/* 下载按钮区域美化 */
.download-entry .btn {
  border-radius: 25px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.download-entry .collapse {
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* 导航栏美化 */
.navbar {
  backdrop-filter: blur(10px);
}

.navbar .nav-link {
  position: relative;
  transition: all 0.3s ease;
}

.navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--circle-yellow-dark);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
  width: 80%;
}

/* 创意装饰元素 */
.circle-decorative-dots {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: -1;
}

.circle-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--circle-yellow);
  border-radius: 50%;
  animation: float 3s ease-in-out infinite;
}

.circle-dot:nth-child(1) {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}
.circle-dot:nth-child(2) {
  top: 60%;
  left: 15%;
  animation-delay: 0.5s;
}
.circle-dot:nth-child(3) {
  top: 40%;
  left: 85%;
  animation-delay: 1s;
}
.circle-dot:nth-child(4) {
  top: 80%;
  left: 90%;
  animation-delay: 1.5s;
}

/* 多设备展示布局 */
.device-showcase {
  height: 600px;
  position: relative;
}

.device-showcase .device-wrapper {
  transition: all 0.5s ease;
}

.device-showcase .device-wrapper:hover {
  transform: translateY(-10px) !important;
  z-index: 10 !important;
}

/* 设备阴影增强 */
.device-showcase .device.shadow {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

.device-showcase .device.shadow:hover {
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2) !important;
}

/* 响应式优化 */
@media (max-width: 768px) {
  .circle-decorative-dots {
    display: none;
  }

  .device-showcase {
    transform: scale(0.6);
  }

  /* .device-showcase .device-wrapper {
    position: static !important;
    transform: none !important;
    width: 250px !important;
    max-width: 100% !important;
  } */
  /* 
  .device-showcase .device-wrapper:not(:first-child) {
    margin-top: 20px;
  } */
}

/* @media (max-width: 576px) {
  .device-showcase .device-wrapper {
    width: 200px !important;
  }
} */

/* 还原：移除双设备与绝对定位相关样式 */
