:root {
  --primary-green: #708a2a;
  --text-main: #333333;
  --text-gray: #666666;
  --text-light: #999999;
  --border-color: #e5e5e5;
  --bg-gray: #f7f7f7;
  --wechat-red: #ff0000;
  --success-bg: #eef7e7;
  --success-text: #4e6a16;
  --error-bg: #fff1f1;
  --error-text: #cf2a2a;
}

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

body {
  font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Heiti SC", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
  background-color: #f0f0f0;
  color: var(--text-main);
  line-height: 1.6;
}

.page-container {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  background-color: #ffffff;
  min-height: 100vh;
}

.top-banner {
  background-color: var(--primary-green);
  color: #ffffff;
  padding: 10px 15px;
  font-size: 16px;
  font-weight: 500;
}

.question-section {
  padding: 15px;
  border-bottom: 1px solid var(--border-color);
}

.question-header {
  display: flex;
  margin-bottom: 12px;
}

.resolved-tag {
  background-color: var(--primary-green);
  color: #ffffff;
  padding: 5px 10px;
  font-size: 14px;
  writing-mode: vertical-rl;
  text-align: center;
  margin-right: 12px;
  border-radius: 2px;
}

.question-main {
  flex: 1;
}

.question-title {
  font-size: 18px;
  font-weight: bold;
  line-height: 1.4;
  margin-bottom: 8px;
}

.question-meta {
  font-size: 12px;
  color: var(--text-light);
}

.question-desc {
  font-size: 15px;
  color: var(--text-main);
  background-color: #ffffff;
}

.question-desc .label {
  color: var(--text-light);
}

.expert-section {
  padding-bottom: 20px;
  border-bottom: 8px solid var(--bg-gray);
}

.section-title-bar {
  background-color: var(--bg-gray);
  padding: 8px 15px;
  font-size: 15px;
  font-weight: bold;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.expert-info {
  display: flex;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid var(--primary-green);
}

.expert-info .avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 12px;
}

.expert-info .name {
  font-size: 16px;
  font-weight: bold;
  color: var(--primary-green);
}

.expert-info .title {
  font-size: 13px;
  color: var(--text-light);
}

.expert-content {
  padding: 15px;
  font-size: 15px;
  line-height: 1.8;
  color: #444;
}

.expert-content p {
  margin-bottom: 15px;
  text-indent: 2em;
}

.comments-section {
  padding: 0;
}

.section-title-small {
  padding: 12px 15px;
  font-size: 15px;
  font-weight: bold;
  border-bottom: 1px solid var(--border-color);
}

.comment-item {
  padding: 15px;
  border-bottom: 1px solid var(--border-color);
}

.comment-user {
  display: flex;
  align-items: flex-start;
  margin-bottom: 10px;
}

.comment-user .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 12px;
  object-fit: cover;
}

.comment-user .info {
  flex: 1;
  text-align: left;
}

.comment-user .name {
  font-size: 14px;
  font-weight: bold;
  color: var(--primary-green);
  line-height: 1.4;
  margin-bottom: 2px;
}

.comment-user .role {
  font-size: 12px;
  color: var(--text-light);
  margin-left: 0;
  display: inline-block;
}

.comment-user .meta {
  font-size: 12px;
  color: var(--text-light);
  margin-left: 10px;
  display: inline-block;
}

.comment-content {
  font-size: 14px;
  color: var(--text-main);
  line-height: 1.7;
  word-break: break-word;
}

.qa-box {
  background-color: var(--bg-gray);
  padding: 12px;
  border-radius: 4px;
  margin-top: 10px;
}

.qa-line {
  font-size: 13px;
  margin-bottom: 8px;
}

.qa-line:last-child {
  margin-bottom: 0;
}

.qa-line strong {
  color: var(--primary-green);
}

.chat-history .qa-line {
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
}

.chat-history .qa-line:last-child {
  border-bottom: 0;
}

.comparison-box {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.comparison-box img {
  flex: 1;
  min-width: 100px;
  max-width: calc(50% - 4px);
  border-radius: 4px;
  display: block;
}

.comparison-box img:only-child {
  max-width: 100%;
}

.mention {
  color: var(--primary-green);
  margin-right: 4px;
}

.wechat-id {
  color: var(--wechat-red);
  font-weight: bold;
  background-color: #fff9f9;
  padding: 0 2px;
}

.dynamic-comments {
  min-height: 0;
}

.reply-form-section {
  padding: 20px 15px;
  background-color: #fff;
}

.reply-form .form-row {
  margin-bottom: 15px;
}

.reply-form label {
  display: block;
  font-size: 14px;
  margin-bottom: 5px;
}

.reply-form input,
.reply-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 14px;
}

.reply-form textarea {
  resize: vertical;
  min-height: 110px;
}

.submit-btn {
  background-color: var(--primary-green);
  color: #ffffff;
  border: 0;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.footer {
  background-color: var(--primary-green);
  padding: 15px;
  text-align: center;
}

.mobile-version-btn {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 6px 15px;
  border-radius: 4px;
  font-size: 13px;
  text-decoration: none;
}

@media screen and (max-width: 480px) {
  .question-title {
    font-size: 16px;
  }
}
