/* 全局样式 - 专业推广风格 */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Microsoft YaHei", "Helvetica Neue", sans-serif;
  background: linear-gradient(135deg, #fff3e0 0%, #ffcc80 30%, #ff9800 70%, #f57c00 100%);
  padding: 15px;
  color: #333;
  max-width: 480px;
  margin: 0 auto;
  animation: fadeIn .8s ease-out;
  line-height: 1.6;
}

/* 动画定义 */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes bounceIn {
  0% { opacity: 0; transform: scale(.3); }
  50% { opacity: 1; transform: scale(1.05); }
  70% { transform: scale(.9); }
  100% { transform: scale(1); }
}

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

@keyframes glow {
  0% { box-shadow: 0 0 5px rgba(255, 152, 0, .5); }
  50% { box-shadow: 0 0 20px rgba(255, 152, 0, .8), 0 0 30px rgba(255, 152, 0, .6); }
  100% { box-shadow: 0 0 5px rgba(255, 152, 0, .5); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes rotateIn {
  from { opacity: 0; transform: rotate(-180deg) scale(.3); }
  to { opacity: 1; transform: rotate(0) scale(1); }
}

/* 主容器 */
.container {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(255, 152, 0, .2), 0 4px 12px rgba(0, 0, 0, .08);
  animation: bounceIn .8s ease-out;
  margin-top: 10px;
}

/* 头部区域 */
.header {
  background: linear-gradient(135deg, #ffcc80 0%, #ff9800 40%, #f57c00 100%);
  padding: 0;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
  line-height: 0;
  animation: headerFade 1s ease-out;
}

@keyframes headerFade {
  from { opacity: 0; transform: scale(1.1); }
  to { opacity: 1; transform: scale(1); }
}

.header-img {
  width: 100%;
  height: auto;
  display: block;
  border: none;
  outiline: none;
  border-radius: 0;
  object-fit: cover;
  animation: imgZoom 1.2s ease-out, float 3s ease-in-out infinite;
  animation-delay: 0s, 1.2s;
}

@keyframes imgZoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

/* 表单区域 */
.form-section {
  background: linear-gradient(180deg, #fff5e6 0%, #fff 50%, #fff5e6 100%);
  padding: 25px;
  animation: formFade .9s ease-out .3s both;
  position: relative;
  overflow: hidden;
}

.form-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, .1) 50%, transparent 70%);
  animation: shimmer 3s infinite;
  background-size: 200% 100%;
}

@keyframes formFade {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 表单标题 */
.form-title {
  background: linear-gradient(135deg, #ff7043 0%, #ff5722 50%, #f4511e 100%);
  color: white;
  padding: 16px 20px;
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  border-radius: 10px 10px 0 0;
  margin: -25px -25px 25px;
  letter-spacing: 3px;
  box-shadow: 0 4px 12px rgba(255, 112, 67, .4);
  animation: slideInLeft .7s ease-out .5s both;
  position: relative;
  overflow: hidden;
}

.form-title::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .2), transparent);
  animation: slide 2s infinite;
}

@keyframes slide {
  to { left: 100%; }
}

/* 表单项 */
.form-item {
  margin-bottom: 20px;
  animation: itemFade .6s ease-out both;
  position: relative;
}

.form-item:nth-child(1) { animation-delay: .8s; }
.form-item:nth-child(2) { animation-delay: .9s; }
.form-item:nth-child(3) { animation-delay: 1.0s; }
.form-item:nth-child(4) { animation-delay: 1.1s; }
.form-item:nth-child(5) { animation-delay: 1.2s; }
.form-item:nth-child(6) { animation-delay: 1.3s; }

@keyframes itemFade {
  from { opacity: 0; transform: translateX(-25px); }
  to { opacity: 1; transform: translateX(0); }
}

/* 标签样式 */
.form-item label {
  display: block;
  font-size: 15px;
  color: #e65100;
  font-weight: bold;
  margin-bottom: 10px;
  letter-spacing: 2px;
  position: relative;
  padding-left: 15px;
  text-transform: uppercase;
}

.form-item label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 18px;
  background: linear-gradient(to bottom, #ff9800, #ff5722);
  border-radius: 3px;
  box-shadow: 0 2px 4px rgba(255, 152, 0, .3);
}

/* 输入框和选择框 */
.form-item input,
.form-item select {
  display: block;
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #ffe0b2;
  border-radius: 10px;
  font-size: 15px;
  background: #fff;
  transition: all .3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
  font-family: inherit;
}

.form-item select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ff9800' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 35px;
}

.form-item input:focus,
.form-item select:focus {
  outine: none;
  border-color: #ff9800;
  background: #fffef5;
  box-shadow: 0 4px 16px rgba(255, 152, 0, .25);
  transform: translateY(-2px);
}

.form-item input::placeholder {
  color: #999;
  font-size: 14px;
}

/* 提交按钮 */
.submit-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #ff7043 0%, #ff5722 40%, #f4511e 100%);
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 19px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 10px;
  letter-spacing: 5px;
  transition: all .3s ease;
  box-shadow: 0 6px 18px rgba(255, 112, 67, .4);
  position: relative;
  overflow: hidden;
  animation: pulse 2s ease-in-out infinite;
}

.submit-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 24px rgba(255, 112, 67, .5);
  background: linear-gradient(135deg, #ff5722 0%, #f4511e 40%, #e64a19 100%);
  animation: none;
}

.submit-btn:active {
  transform: translateY(0) scale(.98);
  box-shadow: 0 4px 12px rgba(255, 112, 67, .4);
}

.submit-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, .2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width .6s, height .6s;
}

.submit-btn:active::after {
  width: 300px;
  height: 300px;
}

/* 内容区块 */
.section {
  padding: 25px;
  background-color: #fff;
  margin-top: 15px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .06);
  animation: sectionFade .7s ease-out both;
}

.section:nth-of-type(2) { animation-delay: .4s; }
.section:nth-of-type(3) { animation-delay: .6s; }

@keyframes sectionFade {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 区块标题 */
.section-title {
  background: linear-gradient(135deg, #ffcc80 0%, #ff9800 50%, #f57c00 100%);
  color: white;
  padding: 16px 20px;
  text-align: center;
  font-size: 19px;
  font-weight: bold;
  border-radius: 10px;
  margin: -25px -25px 25px;
  letter-spacing: 3px;
  box-shadow: 0 4px 12px rgba(255, 152, 0, .3);
  animation: rotateIn .7s ease-out .5s both;
  position: relative;
  overflow: hidden;
}

.section-title::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, .3), transparent);
  border-radius: 12px;
  z-index: -1;
  animation: shimmer 2.5s infinite;
  background-size: 200% 100%;
}

/* 表格样式 */
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 20px;
  animation: tableFade .6s ease-out;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .06);
}

@keyframes tableFade {
  from { opacity: 0; transform: scale(.95); }
  to { opacity: 1; transform: scale(1); }
}

.table th {
  background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
  color: white;
  padding: 14px 12px;
  text-align: center;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 1px;
  border: none;
  position: relative;
}

.table th::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  width: 80%;
  height: 2px;
  background: rgba(255, 255, 255, .3);
  border-radius: 1px;
}

.table td {
  padding: 12px 14px;
  border: 1px solid #ffe0b2;
  font-size: 13px;
  line-height: 1.8;
  transition: all .3s ease;
  background: #fff;
}

.table tr:last-child td:first-child { border-radius: 0 0 0 10px; }
.table tr:last-child td:last-child { border-radius: 0 0 10px 0; }

.table tr:hover td {
  background: linear-gradient(90deg, #fff8e1, #fffde7);
  transform: scale(1.01);
  box-shadow: 0 2px 8px rgba(255, 152, 0, .15);
}

/* 内容块 */
.content-block {
  margin-bottom: 18px;
  line-height: 1.9;
  font-size: 14px;
  animation: contentFade .7s ease-out both;
  position: relative;
  padding: 15px;
  background: linear-gradient(135deg, #fff 0%, #fff9f2 100%);
  border-radius: 8px;
  border-left: 4px solid #ff9800;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
}

@keyframes contentFade {
  from { opacity: 0; transform: translateX(-15px); }
  to { opacity: 1; transform: translateX(0); }
}

.content-block h4 {
  color: #ff7043;
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
}

.content-block h4::before {
  content: '▸';
  margin-right: 8px;
  color: #ff9800;
  font-size: 18px;
}

/* 橙色块 */
.orange-block {
  background: linear-gradient(135deg, #ff9800 0%, #f57c00 50%, #ef6c00 100%);
  color: white;
  padding: 12px 18px;
  border-radius: 8px;
  margin: 10px 0;
  font-weight: bold;
  display: inline-block;
  box-shadow: 0 4px 12px rgba(255, 152, 0, .35);
  letter-spacing: 1px;
  animation: glow 2s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}

.orange-block::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .2), transparent);
  animation: slide 2s infinite;
}

/* 页脚提示 */
.footer-tip {
  font-size: 14px;
  color: #666;
  line-height: 1.8;
  animation: footerFade .7s ease-out;
  padding: 15px;
  background: linear-gradient(135deg, #f9f9f9 0%, #fff 100%);
  border-radius: 8px;
  border-left: 4px solid #ffcc80;
}

@keyframes footerFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.footer-tip h4 {
  color: #ff7043;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: bold;
  display: flex;
  align-items: center;
}

.footer-tip h4::before {
  content: '⚠';
  margin-right: 8px;
  font-size: 16px;
}

/* 模态框 */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, .6);
  z-index: 100;
  justify-content: center;
  align-items: center;
  animation: overlayFade .4s ease-out;
  backdrop-filter: blur(4px);
}

.modal-overlay.show {
  display: flex;
}

@keyframes overlayFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: #fff;
  border-radius: 24px;
  padding: 35px 30px;
  width: 88%;
  max-width: 400px;
  text-align: center;
  animation: modalPop .5s cubic-bezier(.68, -.55, .27, 1.55);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
  position: relative;
  overflow: hidden;
}

.modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #4CAF50, #66BB6A, #4CAF50);
}

@keyframes modalPop {
  from { transform: scale(.3) rotate(-10deg); opacity: 0; }
  to { transform: scale(1) rotate(0); opacity: 1; }
}

.success-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #4CAF50, #66BB6A);
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 36px;
  font-weight: bold;
  animation: iconPop .6s cubic-bezier(.68, -.55, .27, 1.55) .3s both, glow 2s ease-in-out 1s infinite;
  box-shadow: 0 6px 18px rgba(76, 175, 80, .4);
  position: relative;
}

.success-icon::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, .3), transparent);
  animation: shimmer 2s infinite;
  background-size: 200% 100%;
}

@keyframes iconPop {
  from { transform: scale(0) rotate(180deg); }
  to { transform: scale(1) rotate(0); }
}

.modal-title {
  font-size: 22px;
  font-weight: bold;
  color: #333;
  margin-bottom: 15px;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #ff9800, #ff5722);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modal-desc {
  font-size: 15px;
  color: #666;
  margin-bottom: 25px;
  line-height: 1.8;
}

.modal-btn {
  display: inline-block;
  padding: 14px 50px;
  background: linear-gradient(135deg, #FF8C00, #FF6B00);
  color: #fff;
  border-radius: 28px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  border: none;
  font-family: inherit;
  transition: all .3s ease;
  box-shadow: 0 6px 18px rgba(255, 140, 0, .4);
  position: relative;
  overflow: hidden;
  letter-spacing: 2px;
}

.modal-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 24px rgba(255, 140, 0, .5);
  background: linear-gradient(135deg, #FF6B00, #FF5500 100%);
  animation: pulse .5s ease-in-out;
}

.modal-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, .3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width .5s, height .5s;
}

.modal-btn:active::after {
  width: 300px;
  height: 300px;
}

/* 响应式设计 */
@medias (max-width: 480px) {
  .container {
    margin: 5px;
    border-radius: 12px;
  }
  
  .form-section,
  .section {
    padding: 20px 15px;
  }
  
  .form-title,
  .section-title {
    font-size: 17px;
    padding: 14px 15px;
    margin: -20px -15px 20px;
  }
  
  .submit-btn {
    font-size: 17px;
    padding: 14px;
  }
}
