* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #f1f2f3;
}

.container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1600px;
  min-width: 1240px;
  margin: 20px auto;
  color: #333;
}

.container *{
  box-sizing: border-box;
}

header {
  text-align: center;
  margin-bottom: 25px;
}

h1 {
  font-size: 2.2rem;
  margin-bottom: 5px;
}

.subtitle {
  font-size: 1rem;
  opacity: 0.9;
  max-width: 95%;
  margin: 0 auto;
}

/* 标签页样式 */
.tabs-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
  overflow: hidden;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  background: #f8f9fa;
  border-bottom: 1px solid #eaeaea;
  padding: 10px 10px 0;
}

.tab {
  flex: 1;
  padding: 12px;
  cursor: pointer;
  font-weight: 600;
  border-radius: 8px 8px 0 0;
  margin-right: 5px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f0f2f5;
  border: 1px solid #eaeaea;
  border-bottom: none;
  position: relative;
  top: 1px;
}

.tab.active {
  background: white;
  border-bottom: 1px solid white;
  color: #1a73e8;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.tab:hover:not(.active) {
  background: #e6f0ff;
}

/* 内容区域样式 */
.tab-content {
  display: none;
  padding: 0px;
  min-height: 900px;
}

.tab-content.active {
  display: block;
}

/* 翻译框架样式 */
.iframe-container {
  position: relative;
  height: 900px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  background: white;
  border: 1px solid #eaeaea;
}

iframe {
  width: 100%;
  height: calc(100% - 70px);
  border: none;
}

.iframe-footer {
  position: relative;
  top: -6px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
}

.open-new {
  background: #1a73e8;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.open-new:hover {
  background: #0d62da;
}

/* 不支持iframe的样式 */
.unsupported-container {
  background: white;
  border-radius: 8px;
  padding: 40px;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  border: 1px solid #eaeaea;
  height: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.unsupported-container h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #333;
}

.unsupported-container p {
  max-width: 600px;
  margin-bottom: 30px;
  color: #666;
}

.open-directly {
  background: #1a73e8;
  color: white;
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  font-size: 1.1rem;
  box-shadow: 0 4px 10px rgba(26, 115, 232, 0.3);
}

.open-directly:hover {
  background: #0d62da;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(26, 115, 232, 0.4);
}

/* 特色介绍区域 */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 25px;
}

.feature-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #f0f0f0;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.feature-card h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: #1a73e8;
}

/* 页脚样式 */
footer {
  text-align: center;
  margin-top: 25px;
  color: #666;
  font-size: 0.9rem;
  line-height: 1.75;
}
