/* 公共样式文件 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
}

/* 头部导航 */
.header {
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  text-decoration: none;
  color: white;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.nav-menu a:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* 主要内容区域 */
.main-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
}

.content-area {
  background: white;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 侧边栏 */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-widget {
  background: white;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.widget-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #667eea;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 0.5rem;
}

/* 广告位样式 */
.ad-banner {
  background: linear-gradient(45deg, #f093fb 0%, #f5576c 100%);
  color: white;
  text-align: center;
  padding: 2rem;
  border-radius: 10px;
  margin: 1rem 0;
}

.ad-sidebar {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-align: center;
  padding: 1.5rem;
  border-radius: 10px;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 按钮样式 */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-decoration: none;
  border-radius: 25px;
  transition: transform 0.3s, box-shadow 0.3s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* 卡片样式 */
.card {
  background: white;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.tool-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid #f0f0f0;
}

.tab-btn {
  padding: 0.8rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: #666;
  border-bottom: 3px solid transparent;
  transition: all 0.3s;
}

.tab-btn:hover {
  color: #667eea;
  background: rgba(102, 126, 234, 0.1);
}

.tab-btn.active {
  color: #667eea;
  border-bottom-color: #667eea;
  font-weight: bold;
}

.tool-panel {
  animation: fadeIn 0.3s ease-in;
}

/* 页脚样式 */
footer {
  background-color: #2c3e50;
  color: white;
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-section.about p {
  color: #bdc3c7;
  margin-bottom: 1rem;
}

.socials {
  display: flex;
  gap: 1rem;
}

.socials a {
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #34495e;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.socials a:hover {
  background-color: var(--primary-color);
}

.footer-section.links ul {
  list-style: none;
}

.footer-section.links li {
  margin-bottom: 0.8rem;
}

.footer-section.links a {
  color: #bdc3c7;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section.links a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.footer-section.contact p {
  color: #bdc3c7;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
}

.footer-section.contact i {
  margin-right: 0.5rem;
  color: var(--primary-color);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid #34495e;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  color: #bdc3c7;
}

.footer-policies {
  display: flex;
  gap: 1.5rem;
}

.footer-policies a {
  color: #bdc3c7;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-policies a:hover {
  color: var(--primary-color);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0px auto;
  padding: 0px 1rem;
}




.feature-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin:  0 auto;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    max-width: 1160px;
}

.feature-section h3 {
    color: #2c3e50;
    font-size: 18px;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #3498db;
}

.feature-section p {
    color: #34495e;
    line-height: 1.6;
    margin-bottom: 15px;
}

.feature-section ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.feature-section li {
    margin-bottom: 8px;
    line-height: 1.5;
    color: #34495e;
}

.feature-section strong {
    color: #2c3e50;
    font-weight: 600;
}

.feature-section:last-child {
    margin-bottom: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .tool-main {
    background: white;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
  .tool-tabs {
  display: flex;
/* 换行 */
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid #f0f0f0;
}
.tab-btn {
  padding: 0.5rem 0.8rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.8rem;
  color: #666;
  border-bottom: 3px solid transparent;
  transition: all 0.3s;
}
  .main-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .nav-container {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-menu {
    flex-wrap: wrap;
    justify-content: center;
  }

  /* 页脚响应式 */
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* 工具页面特定样式 */
.tool-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
}

.tool-main {
  background: white;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.tool-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: #555;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem;
  /* height: 200px; */
  border: 2px solid #e0e0e0;
  border-radius: 5px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #667eea;
}

.result-area {
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 5px;
  padding: 1rem;
  margin-top: 1rem;
  min-height: 100px;
}