* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  text-align: center;
}

section {
  margin: 0;
  padding: 0;
  line-height: 0;
}
.spinner {
  width: 60px;
  height: 60px;
  border: 5px solid rgba(255,255,255,0.3);
  border-top: 5px solid #00c3ff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 简化的股票分析进度条样式 */
.analysis-progress-container {
  width: 80%;
  max-width: 500px;
  text-align: center;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.analysis-progress-title {
  font-size: 22px;
  margin-bottom: 25px;
  font-weight: bold;
}

.analysis-progress-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
  width: 100%;
  position: relative;
}

/* 连接线容器 */
.analysis-progress-steps::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 30px; /* 第一个图标的中心位置 */
  right: 30px; /* 最后一个图标的中心位置 */
  height: 2px;
  background: #555;
  z-index: 1;
}

.analysis-progress-step {
  flex: 1;
  position: relative;
  padding: 0 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #555;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  font-weight: bold;
  position: relative;
  z-index: 2;
}

.step-icon.completed {
  background: #4CAF50;
}

.step-icon.active {
  background: #2196F3;
  animation: pulse 1s infinite;
}

.step-text {
  font-size: 14px;
  text-align: center;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* 通用加载动画样式保持不变 */
.loading-container {
  text-align: center;
  color: white;
}

.loading-text {
  font-size: 20px;
  margin-top: 20px;
}

.close-btn {
	position: absolute;
    top: 19px;
    right: 28px;
    background: #243447;
    border: none;
    color: #f00;
    font-weight: bold;
    font-size: 45px;
    line-height: 1;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
}

.close-btn:hover {
  background: #ff4d4d;
  color: #fff;
}
.container {
  position: relative;
  max-width: 720px;
  left: 50%;
  transform: translateX(-50%);
}

.head {
  position: absolute;
  width: 720px;
  text-align: center;
  top: 1%;
}
.header {
  position: absolute;
  width: 720px;
  text-align: center;
  top: 0%;
}

.header img {
  padding: 20px;
}

.content {
  position: absolute;
  width: 720px;
  text-align: center;
  top: 48%;
}

.content img {
  padding: 20px;
}

.content2 {
  position: absolute;
  width: 720px;
  text-align: center;
  top: 7%;
}

.content2 img {
  padding: 20px;
}

.content3 {
	position: absolute;
    width: 100%;
    text-align: center;
    top: 30%;
}

.wenan-text{
    position: absolute;
    width: 100%;
    text-align: center;
    top: 74%;
    color: black;
    font-size: 32px;
	animation: fadeInUp 0.8s ease forwards;
	
	background: linear-gradient(145deg, #f9fafc, #eef2f5);
	  border-radius: 16px;
	  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
	  padding: 24px;
	  font-family: "Noto Sans JP", sans-serif;
  line-height: 1.9;
  color: #333;
}


.wenan-text::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(180deg, #007bff, #00c6ff);
  border-radius: 6px 0 0 6px;
}

/* 标題 */
.content2-title {
  font-size: 26px;
  font-weight: 700;
  color: #0056b3;
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.content2-title::before {
  content: "📰";
  font-size: 26px;
  margin-right: 8px;
}

/* 文字部分 */
.wenan-text p {
  margin: 0 0 12px;
  font-size: 17px;
  text-align: justify;
}

/* 轻微进入动画 */
@keyframes fadeInUp {
  from {opacity: 0; transform: translateY(10px);}
  to {opacity: 1; transform: translateY(0);}
}


.inputcode {
    width: 90%;
    height: 8%;
    border-radius: 1rem;
    border: 2px solid #3ba2bc;
    margin-top: 1rem;
    padding: 1.5rem 2rem;
    text-align: center;
    font-size: 30px;
    background: rgb(238 238 238);
    color: black;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.inputcode:focus {
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.2), 0 4px 12px rgba(0, 0, 0, 0.1);
    outline: none;
    background: #fff;
    transform: translateY(-2px);
}

.inputcode::placeholder {
  color: #888;
  transition: opacity 0.3s;
}

.inputcode:focus::placeholder {
  opacity: 0.6;
}

/*.inputcode::placeholder {
  color: white;
}*/

.error {
  position: fixed;
  inset: 0;
  display: flex;
  z-index: 99999;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
}

.error-content {
  padding: 30px;
  line-height: 1.5;
  word-break: break-word;
  overflow: auto;
  font-size: 35px;
  color: #fff;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  max-width: 750px;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.anniu {
  animation: pulse2 1s linear infinite;
  position: relative;
  z-index: 1;
}

@keyframes pulse2 {
  0% {transform: scale(0.9);}
  50% {transform: scale(1);}
  100% {transform: scale(0.9);}
}
.ai-modal {
  position: fixed;
  display: none;
  inset: 0;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  z-index: 9998;
  align-items: center;
  background: rgba(0, 0, 0, 0.7);
  color: white;
}

.pro-box {
  background: rgb(9, 76, 137);
  border-radius: 12px;
  padding: 32px 18px;
  max-width: 680px;
  margin: 60px auto;
}

.pro-box .title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.pro-box .word {
  font-size: 30px;
  font-weight: bold;
}

.progress-box .item {
  margin-bottom: 16px;
}

.progress-box .i-title {
  font-size: 25px;
}

.layui-progress {
  background: #eee;
  border-radius: 8px;
  height: 16px;
}

.layui-progress-bar {
  width: 0%;
  background: #00dcf4;
  height: 100%;
  border-radius: 8px;
}

.result-box {
	position: relative;
    height: inherit;
}

#stock-code-display {
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 28px;
  font-weight: 600;
  color: #1a73e8;
  background: rgba(255, 255, 255, 0.9);
  padding: 8px 15px;
  border-radius: 8px;
  z-index: 10;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border: 2px solid #3ba2bc;
  width: 64px;
  text-align: center;
  display: block;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic Pro", "Meiryo", sans-serif;
  letter-spacing: -0.5px;
  box-sizing: border-box;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

#stock-code-display::before {
  /* 移除前缀文本 */
  display: none;
}

.result-box .title {
  margin-bottom: 18px;
}

.result-box .word {
  font-size: 30px;
  font-weight: bold;
}

.result-con .con {
  font-size: 25px;
  margin-bottom: 18px;
}

.result-con .btn {
  background: #15a223;
  color: #fff;
  padding: 12px 0;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0 auto;
  font-size: 30px;
}

.footer {
  width: 100%;
  margin: 0 auto;
  padding: 0 16px 24px 16px;
  box-sizing: border-box;
  text-align: center;
  font-size: 1.3rem;
  color: #b8c6e0;
  background: #000407;
  max-width: 720px;
}

.footer a {
  color: #3eeaff;
  text-decoration: underline;
  margin: 0 8px;
}

.footer p {
  margin: 10px;
}

/* 自动联想下拉菜单样式 */
.autocomplete-dropdown {
  position: absolute;
  max-height: 0;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid #3ba2bc;
  border-top: none;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  z-index: 10000;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  backdrop-filter: blur(10px);
  opacity: 0;
  box-sizing: border-box;
}

.autocomplete-dropdown.open {
  max-height: 320px;
  opacity: 1;
}

.autocomplete-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px;
  color: #666;
  font-style: italic;
}

.autocomplete-loading::after {
  content: "";
  width: 16px;
  height: 16px;
  margin-left: 10px;
  border: 2px solid #ccc;
  border-radius: 50%;
  border-top-color: #3ba2bc;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.autocomplete-no-results {
  padding: 20px;
  text-align: center;
  color: #666;
  font-style: italic;
  background: #f9f9f9;
  border-radius: 0 0 12px 12px;
}

.autocomplete-item {
  display: flex;
  padding: 14px 20px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.2s ease;
  align-items: center;
  opacity: 0;
  transform: translateY(-10px);
  animation: fadeInItem 0.3s forwards;
  justify-content: space-between;
}

.autocomplete-item:nth-child(1) { animation-delay: 0.05s; }
.autocomplete-item:nth-child(2) { animation-delay: 0.1s; }
.autocomplete-item:nth-child(3) { animation-delay: 0.15s; }
.autocomplete-item:nth-child(4) { animation-delay: 0.2s; }
.autocomplete-item:nth-child(5) { animation-delay: 0.25s; }
.autocomplete-item:nth-child(6) { animation-delay: 0.3s; }
.autocomplete-item:nth-child(7) { animation-delay: 0.35s; }
.autocomplete-item:nth-child(8) { animation-delay: 0.4s; }

@keyframes fadeInItem {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.autocomplete-item:last-child {
  border-bottom: none;
  border-radius: 0 0 12px 12px;
}

.autocomplete-item:hover,
.autocomplete-item.selected {
  background: linear-gradient(90deg, #e6f7ff, #f0fbff);
}

.stock-symbol {
  font-weight: 700;
  color: #1a73e8;
  font-size: 16px;
  background: rgba(26, 115, 232, 0.1);
  padding: 4px 8px;
  border-radius: 6px;
  text-align: center;
  transition: all 0.2s ease;
  min-width: 80px;
}

.autocomplete-item:hover .stock-symbol,
.autocomplete-item.selected .stock-symbol {
  background: rgba(26, 115, 232, 0.2);
  transform: scale(1.05);
}

.stock-name {
  color: #444;
  text-align: right;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.2s ease;
  flex-grow: 1;
  margin-left: 15px;
}

.autocomplete-item:hover .stock-name,
.autocomplete-item.selected .stock-name {
  color: #1a73e8;
  font-weight: 500;
}

/* 滚动条样式 */
.autocomplete-dropdown::-webkit-scrollbar {
  width: 6px;
}

.autocomplete-dropdown::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.autocomplete-dropdown::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.autocomplete-dropdown::-webkit-scrollbar-thumb:hover {
  background: #a1a1a1;
}

@media (max-width: 768px) {
  .autocomplete-dropdown {
    width: 95%;
    top: calc(48% + 75px);
    left: 2.5%;
  }
  
  .autocomplete-item {
    padding: 12px 16px;
  }
  
  .stock-symbol {
    min-width: 70px;
    font-size: 15px;
    padding: 3px 6px;
  }
  
  .stock-name {
    font-size: 14px;
  }
  
  .autocomplete-dropdown.open {
    max-height: 280px;
  }
}
.popup-box {
  width: 98%;
  max-width: 720px;
  padding: 30px 25px;
  background: #0e5a8a;
  border-radius: 18px;
  color: white;
  text-align: center;
  position: relative;
  font-family: "Noto Sans JP", "Meiryo", sans-serif;
  margin: 0 auto;
}

.popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 22px;
  color: white;
  background: #d40000;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.popup-title {
  font-size: 26px;
  letter-spacing: -0.5px;
  font-weight: 800;
  margin: 10px 0 20px 0;
}

.popup-sub {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 25px;
}

.popup-btn {
  background: #3dd10d;
  padding: 18px 10px;
  font-size: 26px;
  font-weight: 800;
  border: 3px solid #000;
  border-radius: 8px;
  cursor: pointer;
  display: inline-block;
}
