/**
 * 首页样式 - index.html
 */

/* 导航栏样式 */
/* 🎯 导航栏固定到顶部 */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.navbar-brand {
  display: flex;
  align-items: center;
}

.logo {
  width: 32px;
  height: 32px;
  margin-right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
  border-radius: 8px;
}

.logo-icon {
  font-size: 16px;
}

.brand-title {
  font-size: 24px;
  font-weight: 800;
  color: #1C1C1E;
}

/* 🎯 导航菜单（电脑端显示，手机端隐藏） */
.navbar-menu {
  display: none; /* 手机端隐藏 */
  gap: 24px; /* 🎯 缩小间距，避免换行 */
}

.nav-menu-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 20px; /* 🎯 增加圆角，变成圆弧 */
  text-decoration: none;
  color: #666;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); /* 🎯 添加文字阴影 */
}

.nav-menu-item:hover {
  background: rgba(255, 107, 53, 0.1);
  color: #FF6B35;
  text-shadow: 0 2px 4px rgba(255, 107, 53, 0.3); /* 🎯 悬停时阴影更明显 */
}

.nav-menu-item.active {
  background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
  color: white;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* 🎯 激活状态阴影 */
}

/* 🎯 隐藏图标 */
.nav-icon {
  display: none;
}

.nav-text {
  font-size: 15px;
}

.navbar-auth {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* 简洁登录按钮 */
.simple-login-btn {
  background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
  border-radius: 25px;
  box-shadow: 0 2px 6px rgba(255, 107, 53, 0.3);
  transition: all 0.3s ease;
  width: 65px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.simple-login-btn:active {
  transform: scale(0.95);
  box-shadow: 0 1px 4px rgba(255, 107, 53, 0.4);
}

.login-btn-text {
  color: white;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

.user-menu {
  display: flex;
  align-items: center;
}

.user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin-right: 8px;
}

.username {
  font-size: 14px;
  color: #1C1C1E;
  font-weight: 600;
}

/* Hero区域 */
.hero-section {
  padding: 40px 20px;
  text-align: center;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.05) 0%, rgba(247, 147, 30, 0.05) 100%);
}

.hero-content {
  max-width: 600px;
  margin: 0 auto;
}

.hero-title-main {
  font-size: 32px;
  font-weight: 800;
  color: #1C1C1E;
  margin-bottom: 10px;
}

.hero-title-accent {
  font-size: 36px;
  font-weight: 800;
  background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 15px;
}

.hero-subtitle {
  font-size: 16px;
  color: #666;
  margin-bottom: 10px;
}

.hero-description {
  font-size: 14px;
  color: #999;
}

/* 主要功能区域 - 整个大卡片包含选项卡和内容 */
.main-function-section {
  padding: 20px;
  background-color: #fff; /* 白色背景 */
  border-radius: 16px; /* 圆角 */
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08); /* 阴影 */
  margin-bottom: 20px;
}

/* 🎯 选项卡容器 - 在大卡片内部 */
.tab-container {
  margin-bottom: 20px; /* 与下方内容的间距 */
  margin-left: 0;
  margin-right: 0;
  width: 100%;
  background: transparent;
}

.tab-buttons {
  display: flex;
  background-color: #F2F2F7;
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 20px;
}

.tab-button {
  flex: 1;
  padding: 12px;
  text-align: center;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 600;
  color: #666;
  background-color: transparent;
  border: none;
}

.tab-button:hover {
  color: #FF6B35;
}

.tab-button.active {
  background-color: #fff;
  color: #FF6B35;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.tab-content {
  position: relative;
  min-height: 250px;
  /* 移除背景和阴影，因为已经在 main-function-section 上了 */
  background-color: transparent;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.tab-pane {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.tab-pane.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
  position: static;
}

/* 🎯 上传文档区域 - 融入整体卡片 */
.upload-area {
  border: 2px dashed #E5E5EA;
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: #F8F8F8;
  min-height: 250px;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.upload-area:hover {
  border-color: #FF6B35;
  background-color: rgba(255, 107, 53, 0.05);
}

/* 上传图标 - 显示为emoji */
.upload-icon-wrapper {
  font-size: 48px;
  margin-bottom: 15px;
  display: block;
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.upload-icon-wrapper::before {
  content: '📄';
  font-size: 48px;
}

.upload-icon-wrapper svg {
  display: none; /* 隐藏SVG图标 */
}

.upload-title {
  font-size: 16px;
  font-weight: 600;
  color: #1C1C1E;
  margin-bottom: 8px;
}

.upload-subtitle {
  font-size: 13px;
  color: #999;
  margin-bottom: 20px;
}

.upload-btn {
  background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center; /* 文字居中 */
  display: inline-block; /* 确保按钮大小适应内容 */
}

.upload-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* 粘贴文本区域 */
#inputText {
  width: 100%;
  min-height: 250px;
  padding: 16px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  font-size: 14px;
  resize: vertical;
  background-color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
  box-sizing: border-box;
}

#inputText:focus {
  outline: none;
  border-color: #FF6B35;
  background-color: #fff;
}

/* 下拉选择区域 */
.controls-section {
  margin-top: 16px;
}

.optimize-select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  background-color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
}

.optimize-select:focus {
  outline: none;
  border-color: #FF6B35;
}

/* 文件信息 */
.file-info {
  background-color: #fff;
  border-radius: 12px;
  padding: 16px;
  margin-top: 15px;
}

.file-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.file-icon {
  font-size: 32px;
}

.file-details {
  flex: 1;
}

.file-name {
  font-size: 14px;
  font-weight: 600;
  color: #1C1C1E;
  margin-bottom: 4px;
}

.file-size {
  font-size: 12px;
  color: #999;
}

.parse-status {
  margin-top: 8px;
  font-size: 12px;
}

.parse-loading {
  color: #FF6B35;
}

.parse-success {
  color: #34C759;
}

.word-count {
  margin-left: 10px;
  color: #666;
}

.file-remove {
  font-size: 24px;
  color: #999;
  cursor: pointer;
  padding: 5px;
}

.file-remove:hover {
  color: #FF3B30;
}

/* 价格信息 */
.price-info {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #F2F2F7;
}

.price-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}

.price-label {
  font-size: 14px;
  color: #666;
}

.price-value {
  font-size: 16px;
  font-weight: 700;
  color: #FF6B35;
}

/* 🎯 上传区域功能特点 - 更淡的背景融入整体 */
.upload-features {
  display: flex;
  justify-content: space-around;
  margin-top: 20px;
  gap: 10px;
}

.upload-feature-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px 10px;
  background-color: #F8F8F8;
  border-radius: 12px;
  gap: 8px;
}

.upload-feature-icon {
  font-size: 24px;
}

.upload-feature-text {
  font-size: 12px;
  color: #666;
  font-weight: 600;
}

/* 粘贴文本区域 */
.paste-area {
  margin-bottom: 20px;
}

.text-input {
  width: 100%;
  min-height: 200px;
  padding: 15px;
  border: 1px solid #E5E5EA;
  border-radius: 12px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  background-color: #fff;
}

.text-input:focus {
  outline: none;
  border-color: #FF6B35;
}

.text-counter {
  text-align: right;
  font-size: 12px;
  color: #999;
  margin-top: 8px;
}

/* 实时统计 */
.real-time-stats {
  background-color: #fff;
  border-radius: 12px;
  padding: 15px;
  margin-top: 15px;
}

.stats-row {
  display: flex;
  justify-content: space-around;
  margin-bottom: 10px;
}

.stat-item {
  font-size: 13px;
  color: #666;
}

.price-preview {
  text-align: center;
  margin: 10px 0;
}

.price-hint {
  font-size: 14px;
  color: #FF6B35;
  font-weight: 600;
}

.update-time {
  text-align: center;
  margin-top: 10px;
}

.time-text {
  font-size: 11px;
  color: #999;
}

/* ==================== 服务卡片样式（从frontend复制） ==================== */

/* 🎯 AI内容优化服务卡片 */
#aiServiceCard {
    background: white;
    position: relative;
    min-height: 350px;
    width: 100% !important; /* 手机端全宽，使用!important确保优先级 */
    max-width: none !important; /* 手机端移除最大宽度限制 */
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* 手机端默认space-between */
    margin-left: 0 !important;
    margin-right: 0 !important;
}

#aiServiceCard:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

#aiServiceCard.selected {
    border: 2px solid #FF6B35;
    box-shadow: 0 12px 40px rgba(255, 107, 53, 0.3);
}

/* 🏷️ 徽章样式 - 放在卡片顶部，黑色背景 */
.badge-top-left {
    position: absolute;
    top: 0; /* 放在卡片顶部 */
    left: 0;
    right: 0; /* 占满整个宽度 */
    background: #000000; /* 黑色背景 */
    color: white;
    padding: 8px 16px;
    border-radius: 16px 16px 0 0; /* 只有顶部圆角 */
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    z-index: 10;
}

.badge-top-right {
    position: absolute;
    top: 8px; /* 调整位置避免重叠 */
    right: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    z-index: 11; /* 比左侧徽章高一层 */
}

/* 📋 卡片头部 - 增加顶部间距避免与徽章重叠 */
#aiServiceCard .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    margin-top: 48px; /* 增加顶部间距，为黑色徽章留出空间 */
}

#aiServiceCard .service-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

#aiServiceCard .service-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

#aiServiceCard .service-icon svg {
    width: 28px;
    height: 28px;
    color: white;
}

#aiServiceCard .service-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

#aiServiceCard .main-service-name {
    font-size: 20px;
    font-weight: 800;
    color: #1C1C1E;
    line-height: 1.2;
    margin: 0;
}

#aiServiceCard .badge-pro {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
}

/* 💰 价格信息 */
#aiServiceCard .price-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

#aiServiceCard .current-price {
    font-size: 28px;
    font-weight: 900;
    color: #FF6B35;
    line-height: 1;
}

#aiServiceCard .price-unit {
    font-size: 13px;
    color: #666;
}

#aiServiceCard .original-price {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
}

/* 📝 卡片内容 */
#aiServiceCard .card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

#aiServiceCard .platform-support {
    font-size: 11px;
    color: #666;
    margin-bottom: 12px;
    padding: 6px 10px;
    background-color: #F2F2F7;
    border-radius: 8px;
    text-align: center;
}

#aiServiceCard .platform-name {
    font-weight: 500;
}

#aiServiceCard .platform-sep {
    margin: 0 4px;
    color: #999;
}

/* ✨ 功能特性列表 - 带边框卡片样式 */
#aiServiceCard .feature-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

/* 🎯 功能特性卡片盒子 - 带边框（淡灰色） */
#aiServiceCard .feature-card-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 2px solid #E5E5EA;
    border-radius: 12px;
    background: #fff;
    transition: all 0.3s ease;
}

#aiServiceCard .feature-card-box:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    border-color: #D1D1D6;
}

/* 绿色圆形图标 */
#aiServiceCard .feature-icon-circle {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #34C759;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

#aiServiceCard .feature-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

#aiServiceCard .feature-title {
    font-size: 15px;
    font-weight: 700;
    color: #1C1C1E;
    line-height: 1.2;
}

#aiServiceCard .feature-description {
    font-size: 13px;
    font-weight: 500;
    color: #666;
    line-height: 1.5;
    margin-top: 4px;
}

/* 🎓 学术专家服务卡片 */
.expert-service-card {
    background: white;
    position: relative;
    min-height: 350px;
    width: 100%; /* 手机端全宽 */
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* 手机端默认space-between */
}

.expert-service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.expert-service-card.selected {
    border: 2px solid #8A2BE2;
    box-shadow: 0 12px 40px rgba(138, 43, 226, 0.3);
}

.expert-service-card .service-badge {
    position: absolute;
    top: -1px;
    right: -1px;
    background: linear-gradient(135deg, #8A2BE2 0%, #9370DB 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 10px 16px;
    border-bottom-left-radius: 12px;
    border-top-right-radius: 16px;
    z-index: 2;
}

.badge-expert {
    background: linear-gradient(135deg, #8A2BE2 0%, #9370DB 100%);
}

.expert-service-card .service-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: 32px;
    margin-bottom: 12px;
    gap: 8px;
}

.expert-service-card .service-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.expert-service-card .expert-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #8A2BE2 0%, #9370DB 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.expert-service-card .expert-icon svg {
    width: 28px;
    height: 28px;
    color: #fff;
}

.expert-service-card .service-name {
    font-size: 20px;
    font-weight: 800;
    color: #1C1C1E;
    line-height: 1.2;
}

.expert-service-card .service-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.expert-service-card .service-price .current-price {
    font-size: 28px;
    font-weight: 900;
    color: #1C1C1E;
    line-height: 1;
}

.expert-service-card .service-price .price-unit {
    font-size: 14px;
    font-weight: 500;
    color: #666;
    line-height: 1;
}

.expert-service-card .service-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
    flex-grow: 1;
}

.expert-service-card .feature-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 🎯 学术专家功能特性卡片盒子 - 带边框（淡灰色） */
.expert-service-card .feature-card-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 2px solid #E5E5EA;
    border-radius: 12px;
    background: #fff;
    transition: all 0.3s ease;
}

.expert-service-card .feature-card-box:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    border-color: #D1D1D6;
}

/* 绿色圆形图标 */
.expert-service-card .feature-icon-circle {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #34C759;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

.expert-service-card .feature-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.expert-service-card .feature-title {
    font-size: 15px;
    font-weight: 700;
    color: #1C1C1E;
    line-height: 1.2;
}

.expert-service-card .feature-description {
    font-size: 13px;
    font-weight: 500;
    color: #666;
    line-height: 1.5;
    margin-top: 4px;
}

/* 💰 价格显示区域（AI和专家通用） - 手机端默认样式 */
.price-display {
    display: flex !important; /* 🎯 强制显示，覆盖HTML中的display:none */
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0;
    box-sizing: border-box;
    margin-top: auto;
}

#aiServiceCard .price-display {
    position: relative; /* 改为相对定位，避免覆盖内容 */
    left: 0;
    bottom: 0;
    margin-top: 20px; /* 添加上边距，与内容分离 */
    z-index: 10;
    background: none;
    width: 100%;
    padding: 0 20px; /* 添加左右padding */
    box-sizing: border-box;
}

.expert-service-card .price-display {
    position: relative; /* 改为相对定位，避免覆盖内容 */
    left: 0;
    bottom: 0;
    margin-top: 20px; /* 添加上边距，与内容分离 */
    z-index: 10;
    background: none;
    width: 100%;
    padding: 0 20px; /* 添加左右padding */
    box-sizing: border-box;
}

.price-summary-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: linear-gradient(135deg, #FF7E5F 0%, #FF6B35 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.4);
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    padding: 16px;
    border-radius: 12px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.price-summary-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(255, 107, 53, 0.5);
}

.price-summary-box .total-price {
    font-weight: 800;
    color: #FFFFFF;
    font-size: 1.3rem;
}

.price-summary-box .pay-now-btn-card {
    background: linear-gradient(135deg, #FF6B35 0%, #FF8C42 100%); /* 🎯 橙色渐变 */
    color: #FFFFFF;
    font-weight: 800;
    border-radius: 8px;
    border: none;
    padding: 12px 26px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4); /* 🎯 橙色阴影 */
    cursor: pointer;
}

.price-summary-box .pay-now-btn-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.6); /* 🎯 橙色阴影加深 */
    background: linear-gradient(135deg, #FF8C42 0%, #FF6B35 100%); /* 🎯 悬停时反转渐变 */
}

.price-summary-box .pay-now-btn-card:active {
    transform: translateY(-1px);
}

/* ==================== 📝 优化结果区域 ==================== */
.output-section {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-top: 24px;
  margin-left: 0;
  margin-right: 0;
  width: 100%;
  box-sizing: border-box;
  display: none; /* 手机端默认隐藏 */
}

.output-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 16px;
}

.output-box {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 20px;
  min-height: 200px;
  max-height: 500px;
  overflow-y: auto;
  border: 1px solid #e9ecef;
}

.output-placeholder {
  color: #999;
  text-align: center;
  padding: 60px 20px;
  font-size: 0.95rem;
}

.output-box:not(:has(.output-placeholder)) {
  color: #333;
  line-height: 1.8;
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* ==================== 🖥️ 电脑端适配 - 左右两栏Grid布局 ==================== */

/* 🎯 主内容区域 - 默认单列（手机端） */
.main-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px; /* 手机端间隔20px */
  padding: 0 16px; /* 🎯 手机端统一左右padding 16px，确保所有元素对齐 */
  max-width: 100%; /* 🎯 手机端占满容器宽度 */
  margin: 0 auto;
}

.main-content-left,
.main-content-right {
  display: flex;
  flex-direction: column;
  gap: 20px; /* 手机端间隔20px */
  padding: 0; /* 🎯 移除内部padding，确保对齐 */
  margin: 0; /* 🎯 移除margin，确保对齐 */
}

/* 🎯 电脑端：两列布局 */
@media screen and (min-width: 1024px) {
  /* 🎯 整体页面容器固定宽度 */
  body {
    display: flex;
    justify-content: center;
    background-color: #F5F5F7;
  }

  /* 🎯 主容器固定宽度为1200px */
  .container {
    max-width: 1200px;
    width: 1200px;
    margin: 0 auto;
    background-color: #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  }

  /* 导航栏 - 与页面内容对齐 */
  .navbar {
    padding: 10px 20px; /* 🎯 与检测页面保持一致 */
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    /* 🎯 不设置宽度，让它自然填充container */
  }

  .logo {
    width: 32px; /* 🎯 与检测页面保持一致 */
    height: 32px;
    margin-right: 12px;
  }

  .logo-icon {
    font-size: 16px; /* 🎯 与检测页面保持一致 */
  }

  .brand-title {
    font-size: 24px; /* 🎯 与检测页面保持一致 */
  }

  /* 🎯 显示导航菜单 */
  .navbar-menu {
    display: flex;
    flex: 1;
    justify-content: center;
    margin: 0 40px;
    gap: 24px; /* 🎯 缩小间距，避免换行 */
  }

  .simple-login-btn {
    width: 80px;
    height: 42px;
  }

  /* 🎯 电脑端隐藏底部导航栏 */
  .tabbar {
    display: none !important;
  }

  .simple-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
  }

  .login-btn-text {
    font-size: 15px;
  }

  /* Hero区域 - 更大气 */
  .hero-section {
    padding: 60px 32px;
  }

  .hero-content {
    max-width: 1200px;
  }

  .hero-title-main {
    font-size: 3rem;
    margin-bottom: 16px;
  }

  .hero-title-accent {
    font-size: 3.5rem;
    margin-bottom: 24px;
  }

  .hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 16px;
  }

  .hero-description {
    font-size: 1rem;
  }

  /* 🎯 关键：Grid两列布局 - 左70%，右30% */
  .main-content {
    grid-template-columns: 6.1fr 3.9fr; /* 左70%，右30% */
    gap: 32px;
    padding: 32px 20px; /* 🎯 上下32px，左右20px，与导航栏对齐 */
    max-width: 100%; /* 🎯 占满container的1200px宽度 */
  }

  /* 选项卡 */
  .tabs {
    margin-bottom: 24px;
    padding: 6px;
  }

  .tab-item {
    padding: 14px;
    font-size: 15px;
  }

  /* 🎯 上传区域 - 使用父容器宽度（与优化结果一致） */
  .upload-area {
    width: 100%; /* 使用父容器宽度 */
    max-width: none; /* 移除宽度限制 */
    margin: 0;
  }

  .upload-zone {
    padding: 50px 30px;
    transition: all 0.3s ease;
  }

  .upload-zone:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  }

  /* 🎯 上传功能特点 - 电脑端样式 */
  .upload-features-list {
    width: 100%; /* 使用父容器宽度 */
    max-width: none; /* 移除宽度限制 */
    margin: 16px 0 0;
  }

  .upload-icon {
    font-size: 56px;
    margin-bottom: 16px;
  }

  .upload-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }

  .upload-desc {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }

  .upload-btn {
    padding: 6px 16px; /* 缩小到2/5大小 */
    font-size: 14px;
    text-align: center; /* 文字居中 */
    display: inline-block;
    min-width: auto; /* 移除最小宽度限制 */
  }

  .upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
  }

  /* 文件信息 */
  .file-info {
    padding: 20px;
    margin-top: 20px;
  }

  .file-icon {
    font-size: 36px;
  }

  .file-name {
    font-size: 1rem;
  }

  .file-size {
    font-size: 0.9rem;
  }

  /* 粘贴文本区域 */
  .paste-area {
    padding: 24px;
  }

  .text-input {
    min-height: 280px;
    font-size: 0.95rem;
    padding: 16px;
  }

  /* 🎯 电脑端显示优化结果 */
  .output-section {
    display: block; /* 电脑端显示 */
  }

  /* 🎯 服务卡片 - 电脑端样式 */
  #aiServiceCard,
  .expert-service-card {
    width: 100%;
    max-width: none; /* 🎯 移除最大宽度限制，让卡片占满右侧栏 */
    min-height: auto; /* 电脑端自动高度 */
    margin: 0 !important; /* 🎯 移除所有margin（包括.card类的margin: 12px） */
    padding: 24px !important; /* 🎯 确保两个卡片padding一致 */
    justify-content: flex-start; /* 电脑端从上到下排列 */
  }

  #aiServiceCard:hover,
  .expert-service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.16);
  }

  /* 🎯 电脑端：价格显示改为静态定位，卡片高度自动延长 */
  #aiServiceCard .price-display,
  .expert-service-card .price-display {
    position: static !important; /* 电脑端静态定位 */
    width: 100%;
    margin-top: 16px;
    padding: 0;
    left: auto;
    bottom: auto;
  }

  /* 价格显示响应式 */
  .price-summary-box {
    padding: 14px;
    font-size: 1rem;
  }

  .price-summary-box .total-price {
    font-size: 1.2rem;
  }

  .price-summary-box .pay-now-btn-card {
    padding: 10px 22px;
    font-size: 0.95rem;
  }

  /* 徽章样式 */
  .package-badge {
    font-size: 10px;
    padding: 4px 10px;
    margin-bottom: 10px;
  }

  /* 头部区域 */
  .package-header {
    margin-bottom: 12px;
    flex-shrink: 0;
  }

  .service-info {
    margin-bottom: 8px;
  }

  .service-icon {
    width: 32px;
    height: 32px;
  }

  .service-icon svg {
    width: 18px;
    height: 18px;
  }

  .package-title {
    font-size: 16px;
  }

  .pro-badge {
    font-size: 9px;
    padding: 2px 6px;
  }

  .price-info {
    gap: 0;
  }

  .current-price {
    font-size: 24px;
  }

  .price-unit {
    font-size: 11px;
  }

  .original-price {
    font-size: 10px;
  }

  /* 学术专家头部 */
  .service-title {
    margin-bottom: 8px;
  }

  .service-price .current-price {
    font-size: 24px;
  }

  .service-price .price-unit {
    font-size: 11px;
  }

  /* 功能区域 */
  .package-features {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin-bottom: 10px;
    overflow: visible;
  }

  .support-platforms {
    font-size: 9px;
    padding: 4px 8px;
    margin-bottom: 10px;
  }

  .feature-list {
    gap: 8px;
  }

  .feature-item {
    gap: 8px;
  }

  .feature-icon {
    width: 28px;
    height: 28px;
  }

  .feature-icon svg {
    width: 16px;
    height: 16px;
  }

  .feature-title {
    font-size: 12px;
    margin-bottom: 2px;
  }

  .feature-desc {
    font-size: 10px;
    line-height: 1.3;
  }

  /* 底部 */
  .package-footer {
    margin-top: auto;
    padding-top: 10px;
    flex-shrink: 0;
  }

  .price-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .total-text {
    font-size: 13px;
    font-weight: 700;
  }

  .pay-btn {
    padding: 8px 18px;
    font-size: 12px;
  }
}

/* ==================== 📱 手机端响应式样式 ==================== */
/* 🎯 手机端和平板端统一对齐样式 (≤1100px) */
@media (max-width: 1100px) {
  /* 🎯 手机端隐藏顶部导航栏 */
  .navbar {
    display: none !important;
  }

  /* 🎯 手机端显示底部导航栏 */
  .tabbar {
    display: flex !important;
  }

  /* 🎯 确保容器有足够的底部padding，避免内容被底部导航栏遮挡 */
  .container {
    padding-bottom: 80px !important; /* 🎯 增加底部padding，确保内容不被遮挡 */
  }

  /* 🎯 确保主内容区域统一padding */
  .main-content {
    padding: 0 16px !important; /* 统一左右padding */
    padding-bottom: 20px !important; /* 🎯 额外的底部间距 */
  }

  /* 🎯 确保左右栏没有额外的padding或margin */
  .main-content-left,
  .main-content-right {
    padding: 0 !important;
    margin: 0 !important;
  }

  /* 🎯 主功能区域 - 整个大卡片 */
  .main-function-section {
    padding: 20px !important;
    margin: 0 0 20px 0 !important;
    background-color: #fff !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
  }

  /* 🎯 选项卡容器在卡片内部 */
  .tab-container {
    margin-bottom: 20px !important;
  }

  /* 🎯 tab-content 透明背景 */
  .tab-content {
    background-color: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
  }

  /* 🎯 确保上传区域对齐 */
  .upload-area {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 🎯 确保服务卡片对齐 */
  #aiServiceCard,
  .expert-service-card {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }

  /* 🎯 确保文件信息区域对齐 */
  .file-info {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 🎯 确保价格信息对齐 */
  .price-info {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

@media (max-width: 768px) {
  /* 服务卡片 - 手机端全宽 */
  #aiServiceCard,
  .expert-service-card {
    width: 100%;
    min-height: auto;
    padding: 20px;
  }

  /* AI服务卡片 */
  #aiServiceCard .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  #aiServiceCard .service-icon {
    width: 40px;
    height: 40px;
  }

  #aiServiceCard .main-service-name {
    font-size: 18px;
  }

  #aiServiceCard .current-price {
    font-size: 24px;
  }

  #aiServiceCard .feature-title {
    font-size: 14px;
  }

  #aiServiceCard .feature-description {
    font-size: 13px;
  }

  /* 专家服务卡片 */
  .expert-service-card .service-header {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    margin-top: 24px;
  }

  .expert-service-card .expert-icon {
    width: 40px;
    height: 40px;
  }

  .expert-service-card .service-name {
    font-size: 18px;
  }

  .expert-service-card .service-price .current-price {
    font-size: 24px;
  }

  .expert-service-card .feature-title {
    font-size: 14px;
  }

  .expert-service-card .feature-description {
    font-size: 13px;
  }

  /* 价格显示 - 手机端保持默认（绝对定位） */
  .price-summary-box {
    flex-direction: row;
    padding: 14px;
    font-size: 0.95rem;
  }

  .price-summary-box .total-price {
    font-size: 1.1rem;
  }

  .price-summary-box .pay-now-btn-card {
    padding: 10px 20px;
    font-size: 0.9rem;
    white-space: nowrap;
  }
}
