/* 基础样式重置与全局设置 */
/* 现代化样式重置 */
:root {
  --primary-color: #4361ee;
  --primary-light: #e0e7ff;
  --secondary-color: #3f37c9;
  --success-color: #4cc9f0;
  --warning-color: #f8961e;
  --danger-color: #f72585;
  --light-color: #f8f9fa;
  --dark-color: #212529;
  --gray-color: #6c757d;
  --border-radius: 8px;
  --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--dark-color);
  background-color: #f5f7fa;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: white;
  box-shadow: var(--box-shadow);
  border-radius: var(--border-radius);
  position: relative;
  overflow: hidden;
}

.container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary-color), var(--success-color));
}

h1, h2, h3, h4, h5 {
  color: var(--dark-color);
  margin-bottom: 1rem;
  font-weight: 600;
}

h1 {
  font-size: 2.25rem;
  position: relative;
  padding-bottom: 0.75rem;
}

h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

h2 {
  font-size: 1.75rem;
  margin-top: 2rem;
}

h3 {
  font-size: 1.5rem;
  margin-top: 1.5rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
  text-decoration: none;
}

p {
  margin-bottom: 1rem;
  color: var(--gray-color);
}
/* 现代化表单控件 */
/* 表单元素 */
.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--dark-color);
}

input[type="url"] {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: var(--transition);
  background-color: white;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

input[type="url"]:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

.hint {
  display: block;
  margin-top: 0.5rem;
  color: var(--gray-color);
  font-size: 0.875rem;
}
/* 按钮与交互元素 */
/* 按钮样式 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-color);
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  margin-right: 0.75rem;
  margin-bottom: 0.75rem;
  transition: var(--transition);
  box-shadow: var(--box-shadow);
}

.btn:hover {
  background-color: var(--secondary-color);
  transform: translateY(-1px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.btn:active {
  transform: translateY(0);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-light);
}

.btn-success {
  background-color: var(--success-color);
}

.btn-warning {
  background-color: var(--warning-color);
}

.btn-danger {
  background-color: var(--danger-color);
}

.btn-link {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.875rem;
  padding: 0;
  background: none;
  box-shadow: none;
}

.btn-link:hover {
  text-decoration: none;
  transform: none;
}

.btn-icon {
  padding: 0.5rem;
  border-radius: 50%;
  min-width: 40px;
  min-height: 40px;
}
/* 卡片与信息展示 */
/* 卡片和信息框 */
.card {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.info-box {
  background-color: var(--primary-light);
  border-left: 4px solid var(--primary-color);
  padding: 1.25rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.error-box {
  background-color: #fff5f5;
  border-left: 4px solid var(--danger-color);
  padding: 1.25rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.success-box {
  background-color: #f0fff4;
  border-left: 4px solid #48bb78;
  padding: 1.25rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}
/* 表格与数据展示 */
/* 表格样式 */
.table-container {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  min-width: 600px;
}

th {
  background-color: var(--primary-light);
  color: var(--dark-color);
  font-weight: 600;
  text-align: left;
  padding: 1rem;
  position: sticky;
  top: 0;
}

td {
  padding: 1rem;
  border-bottom: 1px solid #edf2f7;
  vertical-align: top;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background-color: #f8fafc;
}

.table-striped tr:nth-child(even) {
  background-color: #f8fafc;
}

.status-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-success {
  background-color: #c6f6d5;
  color: #22543d;
}

.status-warning {
  background-color: #feebc8;
  color: #7b341e;
}

.status-danger {
  background-color: #fed7d7;
  color: #742a2a;
}
/* 评分与可视化数据 */
/* 评分和可视化 */
.score-box {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  font-weight: bold;
  box-shadow: var(--box-shadow);
  position: relative;
  overflow: hidden;
  background: conic-gradient(
    var(--primary-color) 0% calc(var(--score-percent) * 1%),
    #edf2f7 calc(var(--score-percent) * 1%) 100%
  );
}

.score-box::before {
  content: '';
  position: absolute;
  width: 80%;
  height: 80%;
  border-radius: 50%;
  background-color: #4361ee;
}

.score {
  font-size: 2rem;
  line-height: 1;
  position: relative;
  z-index: 1;
}

.score-text {
  font-size: 0.875rem;
  margin-top: 0.25rem;
  position: relative;
  z-index: 1;
}

.progress-bar {
  height: 8px;
  background-color: #edf2f7;
  border-radius: 4px;
  overflow: hidden;
  margin: 1rem 0;
}

.progress {
  height: 100%;
  background-color: var(--primary-color);
  border-radius: 4px;
  transition: width 0.6s ease;
}

.gauge-container {
  width: 100%;
  height: 20px;
  background-color: #edf2f7;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  margin: 1rem 0;
}

.gauge-progress {
  height: 100%;
  background: linear-gradient(90deg, #4ade80, #3b82f6);
  border-radius: 10px;
  transition: width 1s ease;
}

.gauge-value {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-weight: bold;
  font-size: 0.75rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
/* AI 分析部分特别样式 */
/* AI分析部分 */
.ai-section {
  margin-top: 2rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #f0f4ff 0%, #f8fafc 100%);
  border-radius: var(--border-radius);
  border-left: 4px solid var(--primary-color);
  position: relative;
  overflow: hidden;
}

.ai-section::before {
  content: 'AI Analysis';
  position: absolute;
  top: 0;
  right: 0;
  background-color: var(--primary-color);
  color: white;
  padding: 0.25rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-bottom-left-radius: var(--border-radius);
}

.ai-score-card {
  background-color: white;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  margin-bottom: 1.5rem;
}

.ai-recommendations {
  background-color: white;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  margin-bottom: 1.5rem;
}

.ai-recommendations ol {
  counter-reset: recommendation;
  padding-left: 0;
  margin-top: 1rem;
}

.ai-recommendations li {
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 1rem;
  counter-increment: recommendation;
  list-style-type: none;
}

.ai-recommendations li::before {
  content: counter(recommendation);
  position: absolute;
  left: 0;
  top: 0;
  background-color: var(--primary-color);
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  text-align: center;
  line-height: 24px;
  font-size: 0.875rem;
  font-weight: bold;
}

.technical-issues {
  background-color: white;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.issue-item {
  padding: 1rem;
  margin: 0.75rem 0;
  border-radius: var(--border-radius);
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  align-items: center;
}

.issue-item:hover {
  transform: translateX(5px);
}

.issue-item.priority-high {
  background-color: #fff5f5;
  border-left: 3px solid var(--danger-color);
}

.issue-item.priority-medium {
  background-color: #fffaf0;
  border-left: 3px solid var(--warning-color);
}

.issue-item.priority-low {
  background-color: #f0fff4;
  border-left: 3px solid #48bb78;
}

.priority-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 1rem;
  min-width: 80px;
}

.priority-high .priority-tag {
  background-color: var(--danger-color);
  color: white;
}

.priority-medium .priority-tag {
  background-color: var(--warning-color);
  color: white;
}

.priority-low .priority-tag {
  background-color: #48bb78;
  color: white;
}

.ai-disclaimer {
  font-size: 0.75rem;
  color: var(--gray-color);
  text-align: center;
  margin-top: 1rem;
  opacity: 0.7;
}
/* 响应式设计 */
/* 响应式设计 */
@media (max-width: 1024px) {
  .container {
    margin: 1rem;
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  .container {
    margin: 0;
    border-radius: 0;
    padding: 1rem;
  }
  
  .report-header {
    flex-direction: column;
  }
  
  .score-box {
    margin-top: 1rem;
  }
  
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .btn {
    width: 100%;
    margin-bottom: 0.75rem;
  }
  
  .table-container {
    border-radius: 0;
  }
  
  table {
    min-width: 100%;
  }
  
  th, td {
    padding: 0.75rem;
  }
}

@media (max-width: 480px) {
  .ai-recommendations li {
    padding-left: 2rem;
  }
  
  .ai-recommendations li::before {
    width: 20px;
    height: 20px;
    line-height: 20px;
  }
  
  .issue-item {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .priority-tag {
    margin-bottom: 0.5rem;
    margin-right: 0;
  }
}
/* 动画与交互效果 */
/* 动画和交互 */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

.highlight {
  animation: highlight 1.5s ease;
}

@keyframes highlight {
  0% { background-color: rgba(67, 97, 238, 0.1); }
  100% { background-color: transparent; }
}

.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltip-text {
  visibility: hidden;
  width: 200px;
  background-color: var(--dark-color);
  color: white;
  text-align: center;
  border-radius: var(--border-radius);
  padding: 0.5rem;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 0.875rem;
  font-weight: normal;
}

.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}
/* 实用工具类 */
/* 实用工具类 */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-primary { color: var(--primary-color); }
.text-success { color: var(--success-color); }
.text-warning { color: var(--warning-color); }
.text-danger { color: var(--danger-color); }
.text-gray { color: var(--gray-color); }

.bg-light { background-color: var(--light-color); }
.bg-primary { background-color: var(--primary-color); }
.bg-success { background-color: var(--success-color); }
.bg-warning { background-color: var(--warning-color); }
.bg-danger { background-color: var(--danger-color); }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 1rem; }

.rounded { border-radius: var(--border-radius); }
.rounded-full { border-radius: 9999px; }
.shadow { box-shadow: var(--box-shadow); }
/* AI分析部分样式 */
.ai-section {
    margin-top: 40px;
    padding: 25px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #6366f1;
}

.score-gauge {
    height: 20px;
    background: #e2e8f0;
    border-radius: 10px;
    margin: 15px 0;
    position: relative;
    overflow: hidden;
}

.gauge-progress {
    height: 100%;
    background: linear-gradient(90deg, #4ade80, #3b82f6);
    width: 0;
    transition: width 1s ease;
}

.gauge-value {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.ai-recommendations ol {
    counter-reset: recommendation;
    padding-left: 0;
}

.ai-recommendations li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
    counter-increment: recommendation;
}

.ai-recommendations li::before {
    content: counter(recommendation);
    position: absolute;
    left: 0;
    top: 0;
    background: #6366f1;
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    text-align: center;
    line-height: 22px;
    font-size: 12px;
}

.technical-issues {
    margin-top: 20px;
}

.issue-item {
    padding: 10px;
    margin: 8px 0;
    border-radius: 4px;
}

.priority-high {
    background: #fee2e2;
    border-left: 3px solid #ef4444;
}

.priority-medium {
    background: #fef3c7;
    border-left: 3px solid #f59e0b;
}

.priority-low {
    background: #ecfdf5;
    border-left: 3px solid #10b981;
}

.priority-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
    margin-right: 10px;
}

/* 关键词表格样式 */
.keywords-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.keywords-table th, .keywords-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.keywords-table th {
    background-color: #f5f5f5;
}

.in-title {
    color: #10b981;
    font-weight: bold;
}

.actions {
    margin-top: 20px;
}