/* 重置和基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial,
    sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
}

li {
  list-style: none;
}

.blog-img {
  width: 100%;
  height: auto;
  margin-bottom: 15px;
}

/* 艾特颜色 */
.at-color {
  color: #f39c12;
}

/* 主题颜色 */
.theme-color {
  color: #1e90ff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 顶部渐变背景区域 */
.header-gradient {
  background: linear-gradient(
    to bottom,
    #fef9e7 0%,
    rgba(254, 249, 231, 0.8) 50%,
    rgba(254, 249, 231, 0) 100%
  );
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.header-gradient::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(254, 249, 231, 0.9) 0%,
    rgba(254, 249, 231, 0.5) 50%,
    rgba(254, 249, 231, 0) 100%
  );
  z-index: 1;
}

.header-gradient .container {
  position: relative;
  z-index: 2;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.header-left {
  flex: 1;
  max-width: 600px;
}

.header-right {
  flex: 0 0 auto;
}

/* 新增：标签样式 */
.tag {
  display: inline-block;
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white;
  padding: 8px 20px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 15px;
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.main-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 20px;
}

.subtitle {
  font-size: 1.1rem;
  color: #5d6d7e;
  line-height: 1.8;
}

.solar-panel-image {
  position: relative;
  z-index: 2;
}

.solar-panel-image img {
  width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* 主要内容区域 */
.main-content {
  padding: 20px 0;
  min-height: 100vh;
}

.content-wrapper {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: start;
}

/* 左侧内容 */
.left-content {
  /* 去掉背景色、阴影、内边距 */
}

.left-content section {
  margin-bottom: 40px;
}

.left-content h2 {
  font-size: 1.8rem;
  color: #2c3e50;
  margin-bottom: 20px;
  border-bottom: 3px solid #f39c12;
  padding-bottom: 10px;
}

/* 新增：文章作者样式 */
.article-author {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
  padding: 15px 0;
  border-bottom: 1px solid #ecf0f1;
}

.article-author .author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 15px;
  background: #ecf0f1;
}

.article-author .author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-author .author-name {
  font-weight: bold;
  color: #2c3e50;
  font-size: 0.95rem;
}

.left-content p {
  color: #5d6d7e;
  margin-bottom: 15px;
  line-height: 1.8;
}

.left-content ol {
  padding-left: 20px;
}

.left-content li {
  margin-bottom: 15px;
  color: #5d6d7e;
  line-height: 1.8;
}

.left-content li strong {
  color: #2c3e50;
}

/* 右侧固定卡片 */
.right-sidebar {
  position: relative;
  height: 100%;
}

.sticky-card {
  position: sticky;
  top: 20px;
  background: #f5f4ed;
  border-radius: 15px;
  padding: 30px;
  transition: all 0.3s ease;
}

.sticky-card:hover {
  transform: translateY(-5px);
}

.card-header h3 {
  font-size: 1.2rem;
  color: #2c3e50;
  margin-bottom: 10px;
  font-weight: bold;
}

.service-desc {
  color: #7f8c8d;
  font-size: 0.95rem;
  margin-bottom: 25px;
}

/* 新增：导游信息样式 */
.sticky-card .guide-info {
  margin-bottom: 30px;
}

.wechat-info {
  margin-bottom: 20px;
}

.info-item {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.info-item .label {
  font-weight: bold;
  color: #2c3e50;
  margin-right: 8px;
  font-size: 0.9rem;
}

.info-item .value {
  color: #e74c3c;
  font-family: "Courier New", monospace;
  font-weight: 500;
}

.qr-code {
  text-align: center;
  margin: 20px 0;
}

.qr-code img {
  width: 70%;
  border-radius: 8px;
  border: 2px solid #ecf0f1;
  margin-bottom: 8px;
}

.quick-message-btn {
  width: 100%;
  background: linear-gradient(135deg, #27ae60, #2ecc71);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 25px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.quick-message-btn:hover {
  background: linear-gradient(135deg, #229954, #27ae60);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
}

.author-section {
  display: flex;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid #ecf0f1;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 15px;
  background: #ecf0f1;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-name {
  font-weight: bold;
  color: #2c3e50;
  font-size: 0.95rem;
}

/* 评论区样式 */
.comments-section {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 2px solid #ecf0f1;
}

.comments-section h2 {
  font-size: 1.8rem;
  color: #2c3e50;
  margin-bottom: 30px;
  border-bottom: 3px solid #f39c12;
  padding-bottom: 10px;
}

/* 评论输入区 */
.comment-input-area {
  margin-bottom: 35px;
}

.input-group {
  display: flex;
  gap: 15px;
  align-items: center;
}

.comment-input {
  flex: 1;
  padding: 12px 18px;
  border: 2px solid #ecf0f1;
  border-radius: 25px;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.3s ease;
  background: white;
}

.comment-input:focus {
  border-color: #27ae60;
  box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}

.comment-input::placeholder {
  color: #bdc3c7;
}

.send-btn {
  background: linear-gradient(135deg, #27ae60, #229954);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 25px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
  white-space: nowrap;
}

.send-btn:hover {
  background: linear-gradient(135deg, #229954, #1e8449);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

/* 评论列表 */
.comments-list {
  margin-top: 30px;
}

.comment-item {
  margin-bottom: 25px;
  padding: 20px 0;
  border-bottom: 1px solid #ecf0f1;
}

.comment-item:last-child {
  border-bottom: none;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: #ecf0f1;
  flex-shrink: 0;
}

.comment-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comment-author {
  font-weight: bold;
  color: #2c3e50;
  font-size: 0.95rem;
}

.comment-text {
  color: #5d6d7e;
  line-height: 1.6;
  font-size: 0.95rem;
  margin-left: 0;
}

/* 底部版权 */
.footer {
  background: #2c3e50;
  color: #ecf0f1;
  text-align: center;
  padding: 30px 0;
  margin-top: 60px;
}

.footer p {
  font-size: 0.9rem;
}

.footer p a {
  color: #ecf0f1;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 30px;
  }

  .header-left {
    max-width: 100%;
  }

  .header-right {
    display: none;
  }

  .solar-panel-image img {
    width: 250px;
    height: 150px;
  }

  .main-title {
    font-size: 2rem;
  }

  .content-wrapper {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .right-sidebar {
    display: none;
  }

  .sticky-card {
    position: relative;
    top: auto;
  }

  .left-content {
    /* 响应式下保持无内边距 */
  }

  /* 评论区响应式 */
  .send-btn {
    padding: 12px 20px;
  }

  .comment-item {
    padding: 15px 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .header-gradient {
    padding: 40px 0;
  }

  .main-title {
    font-size: 1.8rem;
  }

  .left-content {
    /* 小屏幕下保持无内边距 */
  }

  .sticky-card {
    padding: 20px;
    position: relative;
    top: auto;
  }

  .qr-code img {
    width: 100px;
    height: 100px;
  }

  /* 小屏幕评论区样式 */
  .comments-section h2 {
    font-size: 1.5rem;
  }

  .comment-input {
    padding: 10px 16px;
    font-size: 0.9rem;
  }

  .comment-text {
    font-size: 0.9rem;
  }
}

/* 导游名称高亮样式 */
.guide-name-highlight {
  color: #e74c3c !important;
  font-weight: bold;
}

/* 微信号样式 */
.wechat-id {
  color: #e74c3c !important;
  font-weight: bold !important;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.wechat-id:hover {
  background-color: #f0f7ff;
  box-shadow: 0 2px 8px rgba(231, 76, 60, 0.15);
}

/* 查看二维码按钮样式 */
.view-qr-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin-left: 4px;
}

.qr-icon {
  object-fit: contain;
}

/* 快速留言模块样式 */
.quick-contact-section {
  margin-top: 50px;
  padding: 30px;
  background: linear-gradient(135deg, #f8f9ff 0%, #f5f6fa 100%);
  border-radius: 16px;
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.quick-contact-section h2 {
  font-size: 1.8rem;
  color: #2c3e50;
  margin-bottom: 15px;
  border-bottom: none;
}

.quick-contact-section p {
  color: #5d6d7e;
  margin-bottom: 25px;
  line-height: 1.6;
  text-align: center;
}

.quick-contact-section .contact-form {
  margin-top: 25px;
  text-align: left;
}

.quick-contact-section .form-group {
  margin-bottom: 20px;
}

.quick-contact-section .form-group label {
  font-size: 14px;
  font-weight: 500;
  color: #2c3e50;
  display: block;
}

.quick-contact-section .form-group input,
.quick-contact-section .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #ecf0f1;
  border-radius: 12px;
  font-size: 14px;
  color: #2c3e50;
  background: #fff;
  transition: all 0.3s ease;
}

.quick-contact-section .form-group input:focus,
.quick-contact-section .form-group textarea:focus {
  outline: none;
  border-color: #27ae60;
  box-shadow: 0 0 0 4px rgba(39, 174, 96, 0.1);
}

.quick-contact-section .form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.quick-contact-section .contact-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 8px;
}

.quick-contact-section .radio-group {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  border: 2px solid #ecf0f1;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: #fff;
}

.quick-contact-section .radio-group:hover {
  background: #f8f9fa;
}

.quick-contact-section .radio-group.selected {
  border-color: #27ae60;
  background: #f0fff4;
}

.quick-contact-section .submit-btn {
  width: 100%;
  background: linear-gradient(135deg, #27ae60, #2ecc71);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
  box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.quick-contact-section .submit-btn:hover {
  background: linear-gradient(135deg, #229954, #27ae60);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
}

.quick-contact-section .submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.message-btn {
  background: linear-gradient(135deg, #27ae60, #2ecc71);
  color: white;
  border: none;
  border-radius: 25px;
  padding: 12px 30px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.message-btn:hover {
  background: linear-gradient(135deg, #229954, #27ae60);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
}

/* 悬浮按钮样式 */
.floating-buttons {
  position: fixed;
  right: 16px;
  bottom: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 默认桌面端隐藏前两个按钮 */
.floating-buttons .float-btn:nth-child(1),
.floating-buttons .float-btn:nth-child(2) {
  display: none;
}

/* 移动端显示所有悬浮按钮 */
@media (max-width: 768px) {
  .floating-buttons .float-btn:nth-child(1),
  .floating-buttons .float-btn:nth-child(2) {
    display: flex;
  }
}

.float-btn {
  width: 50px;
  height: 50px;
  border-radius: 25px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.float-btn svg {
  width: 22px;
  height: 22px;
  fill: #666;
}

/* 微信按钮绿色图标 */
.floating-buttons .float-btn:first-child svg {
  fill: #07c160;
}

/* 留言按钮绿色图标 */
.floating-buttons .float-btn:nth-child(2) svg {
  fill: #0066dd;
}

/* 回到顶部按钮红色图标 */
.floating-buttons .float-btn:nth-child(3) svg {
  fill: #e74c3c;
}

.float-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* 弹窗遮罩层 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  backdrop-filter: blur(5px);
  animation: modalOverlayFadeIn 0.3s ease-out;
}

/* 留言弹窗 */
.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1001;
  width: 90%;
  max-width: 500px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
  animation: modalFadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-content {
  padding: 24px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.modal-header h4 {
  font-size: 20px;
  font-weight: 600;
  color: #2c3e50;
  margin: 0;
}

.close-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: #666;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: all 0.2s ease;
}

.close-btn:hover {
  color: #333;
}

/* 表单样式 */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 500;
  color: #2c3e50;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #ecf0f1;
  border-radius: 12px;
  font-size: 14px;
  color: #2c3e50;
  background: #fff;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #27ae60;
  box-shadow: 0 0 0 4px rgba(39, 174, 96, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.required {
  color: #e74c3c;
  margin-left: 4px;
}

.submit-btn {
  width: 100%;
  background: linear-gradient(135deg, #27ae60, #229954);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.submit-btn:hover {
  background: linear-gradient(135deg, #229954, #1e8449);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(39, 174, 96, 0.2);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* 联系方式选项 */
.contact-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 4px;
}

.radio-group {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  border: 2px solid #ecf0f1;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: #fff;
}

.radio-group:hover {
  background: #f8f9fa;
}

.radio-group.selected {
  border-color: #27ae60;
  background: #f0fff4;
}

.radio-group input[type="radio"] {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #bdc3c7;
  border-radius: 50%;
  margin: 0;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  padding: 0;
}

.radio-group input[type="radio"]:checked {
  border-color: #27ae60;
  background: #fff;
}

.radio-group input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background: #27ae60;
  border-radius: 50%;
}

.radio-group label {
  font-size: 14px;
  color: #2c3e50;
  cursor: pointer;
}

/* 错误信息样式 */
.error-message {
  color: #e74c3c;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: block;
}

/* 二维码弹窗样式 */
.qr-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  backdrop-filter: blur(5px);
  animation: modalOverlayFadeIn 0.3s ease-out;
}

.qr-modal-content {
  background: white;
  width: 90%;
  max-width: 350px;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  animation: modalFadeInCenter 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.qr-modal-header {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ecf0f1;
}

.qr-modal-header .guide-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-guide-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.modal-guide-name {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.guide-tag {
  font-size: 12px;
  background: #fff4e5;
  color: #ff9500;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 500;
}

.qr-modal-body {
  padding: 24px;
  text-align: center;
}

.modal-qr-code {
  width: 260px;
  height: 260px;
  border-radius: 12px;
  max-width: 100%;
}

.qr-modal-footer {
  padding: 20px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  border-top: 1px solid #ecf0f1;
}

.secondary-btn {
  padding: 10px 20px;
  background: #f5f5f7;
  color: #666;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.secondary-btn:hover {
  background: #eee;
}

.primary-btn {
  padding: 10px 20px;
  background: #07c160;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.primary-btn:hover {
  background: #06b054;
  box-shadow: 0 4px 12px rgba(7, 193, 96, 0.2);
}

/* 复制成功弹窗 */
.copy-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  backdrop-filter: blur(5px);
  animation: modalOverlayFadeIn 0.3s ease-out;
}

.copy-content {
  position: relative;
  background: white;
  padding: 30px;
  border-radius: 16px;
  width: 90%;
  max-width: 320px;
  text-align: center;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
  animation: modalFadeInCenter 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.copy-content .close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.copy-content .close-btn:hover {
  background: #f5f5f5;
  color: #666;
}

.copy-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.copy-header svg {
  color: #07c160;
  width: 48px;
  height: 48px;
}

.copy-header h3 {
  margin: 0;
  color: #333;
  font-size: 20px;
  font-weight: 600;
}

.copy-content p {
  color: #666;
  margin: 8px 0;
  line-height: 1.5;
}

.copy-footer {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.copy-footer .secondary-btn,
.copy-footer .primary-btn {
  flex: 1;
  padding: 12px 0;
  justify-content: center;
}

/* 成功提示弹窗 */
.success-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  backdrop-filter: blur(5px);
  animation: modalOverlayFadeIn 0.3s ease-out;
}

.success-content {
  background: white;
  padding: 30px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
  width: 90%;
  max-width: 320px;
  animation: modalFadeInCenter 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.success-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  background: #27ae60;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-icon svg {
  width: 36px;
  height: 36px;
  fill: white;
}

.success-content h3 {
  font-size: 20px;
  color: #2c3e50;
  margin-bottom: 8px;
}

.success-content p {
  font-size: 15px;
  color: #666;
  margin-bottom: 24px;
}

.success-btn {
  background: #27ae60;
  color: white;
  border: none;
  border-radius: 12px;
  padding: 12px 32px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.success-btn:hover {
  background: #229954;
  box-shadow: 0 4px 12px rgba(39, 174, 96, 0.2);
}

/* 通用提示弹窗 */
.alert-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  backdrop-filter: blur(5px);
  animation: modalOverlayFadeIn 0.3s ease-out;
}

.alert-content {
  background: white;
  padding: 24px;
  border-radius: 16px;
  text-align: center;
  max-width: 320px;
  width: 90%;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
  animation: modalFadeInCenter 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.alert-content p {
  margin-bottom: 20px;
  font-size: 15px;
  color: #2c3e50;
  line-height: 1.4;
}

.alert-content button {
  background: #27ae60;
  color: white;
  border: none;
  border-radius: 12px;
  padding: 12px 32px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.alert-content button:hover {
  background: #229954;
  box-shadow: 0 4px 12px rgba(39, 174, 96, 0.2);
}

/* 评论注册弹窗 */
.comment-register-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  backdrop-filter: blur(5px);
  animation: modalOverlayFadeIn 0.3s ease-out;
}

.comment-register-modal .modal-content {
  background: white;
  padding: 24px;
  border-radius: 16px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
  animation: modalFadeInCenter 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 动画效果 */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

/* 弹窗专用动画 */
@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes modalFadeInCenter {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

/* 文章内容中的二维码样式 */
.ewm img {
  max-width: 40%;
  border-radius: 8px;
  border: 2px solid #ecf0f1;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.ewm img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* 移动端适配 */
@media (max-width: 768px) {
  .ewm img {
    max-width: 60%;
  }

  .quick-contact-section {
    margin-top: 30px;
    padding: 20px;
  }

  .quick-contact-section h2 {
    font-size: 1.5rem;
  }

  .quick-contact-section .radio-group {
    padding: 12px 16px;
  }

  .quick-contact-section .submit-btn {
    padding: 12px 24px;
  }

  .modal {
    width: 95%;
  }

  .modal-content {
    padding: 20px;
  }

  .qr-modal-content {
    width: 95%;
  }

  .modal-qr-code {
    width: 240px;
    height: 240px;
  }

  .radio-group {
    padding: 12px 16px;
  }

  .copy-footer {
    flex-direction: column;
  }

  .copy-footer .secondary-btn,
  .copy-footer .primary-btn {
    width: 100%;
  }
}
