/* 全局样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto",
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
}

/* 艾特颜色 */
.at-color {
  color: #f39c12;
}

/* 主题颜色 */
.theme-color {
  color: #27ae60;
}

/* 红色 */
.red-color {
  color: #ff0000;
}

/* 加粗 */
.bold {
  font-weight: bold;
}

/* 主容器 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  gap: 30px;
  min-height: calc(100vh - 100px);
}

/* 左侧主要内容区域 */
.main-content {
  flex: 2;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 30px;
}

/* 文章头部 */
.article-header {
  margin-bottom: 30px;
  border-bottom: 1px solid #eee;
  padding-bottom: 20px;
}

/* 标签样式 */
.article-tags {
  margin-bottom: 16px;
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
  margin-right: 8px;
  margin-bottom: 4px;
}

.tag-primary {
  background-color: #e3f2fd;
  color: #1976d2;
}

.tag-secondary {
  background-color: #f3e5f5;
  color: #7b1fa2;
}

.main-title {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 20px;
  line-height: 1.3;
}

.sub-title {
  font-size: 18px;
  color: #666;
  font-weight: 400;
  margin-bottom: 20px;
}

/* 作者信息 */
.author-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.author-details {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-weight: 600;
  color: #1a1a1a;
  font-size: 16px;
}

.publish-date {
  color: #888;
  font-size: 14px;
}

/* 文章内容 */
.article-content {
  margin-bottom: 40px;
}

.content-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.article-text {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
}

.article-text p {
  margin-bottom: 16px;
}

/* 评论区 */
.comments-section {
  border-top: 1px solid #eee;
  padding-top: 30px;
}

.comments-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #1a1a1a;
}

/* 评论输入区 */
.comment-input-area {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 25px;
  position: relative;
}

.comment-input {
  width: 100%;
  min-height: 80px;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 12px;
  font-size: 14px;
  resize: vertical;
  outline: none;
  transition: border-color 0.3s ease;
}

.comment-input:focus {
  border-color: #007bff;
}

.send-button {
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  font-size: 14px;
  cursor: pointer;
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.3s ease;
}

.send-button:hover {
  background-color: #0056b3;
}

/* 评论列表 */
.comments-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.comment-item {
  display: flex;
  gap: 12px;
  padding: 16px;
  border-radius: 8px;
  background-color: #f8f9fa;
}

.comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.comment-content {
  flex: 1;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.comment-author {
  font-weight: 600;
  color: #1a1a1a;
  font-size: 14px;
}

.comment-time {
  color: #888;
  font-size: 12px;
}

.comment-text {
  color: #333;
  font-size: 16px;
  line-height: 1.5;
}

/* 右侧边栏 */
.sidebar {
  flex: 1;
  max-width: 350px;
}

/* 导游信息卡片 */
.guide-card {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 25px;
  position: sticky;
  top: 20px;
}

.guide-header {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.guide-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.guide-card .guide-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.guide-card .guide-name {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0;
  line-height: 1.2;
}

.guide-card .guide-title {
  color: #666;
  font-size: 14px;
  margin-bottom: 0;
  line-height: 1.2;
}

.guide-card .guide-wechat {
  color: #07c160;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 0;
  line-height: 1.2;
}

.guide-card .guide-wechat i {
  font-size: 16px;
  flex-shrink: 0;
}

.guide-description {
  margin-bottom: 20px;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 8px;
}

.guide-description p {
  color: #666;
  font-size: 14px;
  line-height: 1.5;
}

/* 二维码区域 */
.guide-qr {
  text-align: center;
  margin-bottom: 20px;
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 8px;
}

.qr-code {
  width: 100%;
  border-radius: 8px;
}

.qr-text {
  color: #666;
  font-size: 12px;
}

/* 快速留言按钮 */
.quick-message-btn {
  width: 100%;
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color 0.3s ease;
}

.quick-message-btn:hover {
  background-color: #218838;
}

/* 导游名称高亮样式 */
.guide-name-highlight {
  color: #ff3b30 !important;
  font-weight: bold;
}

/* 微信号样式 */
.wechat-id {
  color: #ff3b30 !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(255, 59, 48, 0.15);
}

/* 查看二维码按钮 */
.view-qr-btn {
  background: none;
  border: none;
  padding: 0 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}

.qr-icon {
  object-fit: contain;
}

/* 底部快速留言模块 */
.bottom-message-section {
  margin-top: 50px;
  padding: 30px;
  background: #f8f9fa;
  border-radius: 16px;
  border-top: 3px solid #007bff;
}

.bottom-message-section h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #1a1a1a;
}

.bottom-message-section > p {
  color: #666;
  margin-bottom: 25px;
  font-size: 16px;
}

/* 联系表单样式 */
.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: #1a1a1a;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  color: #1a1a1a;
  background: #fff;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
  font-family: inherit;
}

/* 必填星号样式 */
.required {
  color: #dc3545;
  margin-left: 4px;
}

/* 联系方式选项样式 */
.contact-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 8px;
}

.radio-group {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: #fff;
}

.radio-group:hover {
  background: #f8f9fa;
  border-color: #007bff;
}

.radio-group.selected {
  background: #e3f2fd;
  border-color: #007bff;
}

.radio-group input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #ddd;
  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: #007bff;
  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: #007bff;
  border-radius: 50%;
}

.radio-group label {
  font-size: 14px;
  color: #1a1a1a;
  cursor: pointer;
  margin: 0;
}

/* 提交按钮样式 */
.submit-btn {
  background: #007bff;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.submit-btn:hover:not(:disabled) {
  background: #0056b3;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
  transform: translateY(-1px);
}

.submit-btn:disabled {
  background: #6c757d;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* 错误信息样式 */
.error-message {
  color: #dc3545;
  font-size: 12px;
  margin-top: 4px;
  display: block;
}

/* 手机输入框组合 */
.phone-input-wrapper {
  display: flex;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.country-select {
  padding: 12px 8px;
  border: none;
  background: #f8f9fa;
  font-size: 14px;
  cursor: pointer;
  min-width: 80px;
  outline: none;
}

.phone-input {
  flex: 1;
  padding: 12px 16px;
  border: none;
  font-size: 14px;
  outline: none;
  background: #fff;
}

.phone-input-wrapper:focus-within {
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* 悬浮按钮 */
.floating-buttons {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

.float-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.float-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.float-btn i {
  font-size: 20px;
}

.wechat-btn i {
  color: #07c160;
}

.message-btn i {
  color: #007bff;
}

.back-top-btn i {
  color: #666;
}

/* 只在移动端显示悬浮按钮（除了回到顶部） */
@media (min-width: 769px) {
  .floating-buttons .wechat-btn,
  .floating-buttons .message-btn {
    display: none;
  }
}

/* 弹窗相关样式 */
.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);
}

.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);
}

.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: #1a1a1a;
  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;
  transform: scale(1.1);
}

/* 复制成功弹窗 */
.copy-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  backdrop-filter: blur(4px);
}

.copy-content {
  position: relative;
  background: white;
  padding: 30px;
  border-radius: 16px;
  width: 90%;
  max-width: 320px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  animation: modalPop 0.3s ease-out;
}

.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;
  z-index: 1;
}

.copy-content .close-btn:hover {
  background: #f5f5f5;
  color: #666;
  transform: rotate(90deg);
}

.copy-header {
  margin-bottom: 20px;
}

.copy-header h3 {
  margin: 16px 0 0 0;
  color: #333;
  font-size: 20px;
  font-weight: 600;
}

.copy-content p {
  color: #666;
  font-size: 16px;
  margin: 8px 0;
  word-break: break-all;
}

.copy-footer {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.copy-footer .secondary-btn,
.copy-footer .primary-btn {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* 通用按钮样式 */
.secondary-btn {
  background: #f5f5f5;
  color: #333;
  padding: 8px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.primary-btn {
  background: #07c160;
  color: white;
  box-shadow: 0 2px 6px rgba(7, 193, 96, 0.2);
  padding: 8px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.secondary-btn:hover {
  background: #ebebeb;
}

.primary-btn:hover {
  background: #06b054;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(7, 193, 96, 0.25);
}

/* 二维码弹窗 */
.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);
}

.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;
}

.qr-modal-header {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f0f0f0;
}

.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;
}

.qr-modal-footer {
  padding: 20px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  border-top: 1px solid #f0f0f0;
}

.qr-modal-footer .secondary-btn {
  display: flex;
  align-items: center;
  gap: 6px;
}

.qr-modal-footer .secondary-btn:hover {
  background: #eee;
}

/* 成功提示弹窗 */
.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);
}

.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;
}

.success-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  background: #34c759;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-icon i {
  font-size: 36px;
  color: white;
}

.success-content h3 {
  font-size: 20px;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.success-content p {
  font-size: 15px;
  color: #666;
  margin-bottom: 24px;
}

.success-btn {
  background: #007bff;
  color: white;
  border: none;
  border-radius: 12px;
  padding: 12px 32px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.success-btn:hover {
  background: #0056b3;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 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);
}

.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);
}

/* 通用提示弹窗 */
.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);
}

.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);
}

.alert-content p {
  margin-bottom: 20px;
  font-size: 15px;
  color: #1a1a1a;
  line-height: 1.4;
}

.alert-content button {
  background: #007bff;
  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: #0056b3;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

/* 动画效果 */
@keyframes modalPop {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* 底部版权 */
.footer {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-content p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.footer-content a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-content a:hover {
  color: #fff;
}

/* 二维码图片样式 */
.ewm img {
  max-width: 200px;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.ewm img:hover {
  transform: scale(1.05);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
    gap: 20px;
    padding: 15px;
  }

  .sidebar {
    max-width: none;
  }

  .main-content {
    padding: 20px;
  }

  .guide-card {
    position: relative;
    top: auto;
  }

  .main-title {
    font-size: 24px;
  }

  .sub-title {
    font-size: 16px;
  }

  .comment-input-area {
    padding: 15px;
  }

  .guide-header {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 10px;
  }

  .main-content {
    padding: 15px;
  }

  .guide-card {
    padding: 20px;
  }

  .main-title {
    font-size: 20px;
  }

  .comment-item {
    padding: 12px;
  }

  /* 快速留言模块移动端适配 */
  .bottom-message-section {
    padding: 20px;
    margin-top: 30px;
  }

  .bottom-message-section h3 {
    font-size: 20px;
  }

  .contact-options {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .radio-group {
    padding: 10px 12px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 10px 14px;
    font-size: 14px;
  }

  .submit-btn {
    padding: 12px 24px;
    font-size: 15px;
  }

  .phone-input-wrapper {
    flex-direction: column;
  }

  .country-select {
    min-width: auto;
    border-bottom: 1px solid #ddd;
    border-radius: 0;
  }

  .phone-input {
    border-top: none;
    border-radius: 0;
  }

  .ewm img {
    max-width: 150px;
  }
}
