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

.dropdown-content {
  display: none;
  position: absolute;
  background: white;
  min-width: 220px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  border-radius: 6px;
  padding: 10px 0;
  z-index: 1000;
  top: 100%;
  animation: slideDown 0.3s ease;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-item {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: #333;
  transition: all 0.2s;
}

.dropdown-item img {
  margin-right: 12px;
}

.dropdown-item:hover {
  background: #f8f9fa;
  transform: translateX(5px);
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 移动端适配 */
@media (max-width: 768px) {
  .dropdown-content {
    position: static;
    box-shadow: none;
    display: none;
  }

  .dropdown:hover .dropdown-content {
    display: none;
  }

  .dropdown.active .dropdown-content {
    display: block;
  }
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 为主要内容区域提供更好的布局控制 */
main {
  flex: 1;
  width: 100%;
}

/* 为产品特性页面优化布局 */
.features-page main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* 为支持页面优化布局 */
.support-page main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5px;
}
.header {
  color: white;
}
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  color: rgb(48, 62, 102);
}
.cta-button {
  background: #3498DB;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
}
.button_link {
  color: white;
  text-decoration: none;
}
.button_link:hover {
  color: white;
  text-decoration: underline;
}
.button_link_dark {
  text-decoration: none;
  color: #144b92;
}

.button_link_dark:hover {
  color: #144b92;
  text-decoration: underline;
}
.inline_text_img {
  display: flex;
  align-items: center;
  gap: 10px;
}
footer {
  background: #2C3E50;
  color: white;
  padding: 2rem 0;
  margin-top: auto;
}

/* 确保main内容区域能够撑开 */
main {
  flex: 1;
}

/* 添加教程页特有样式 */
.tutorial-container {
  max-width: 800px;
  margin: 2rem auto;
  padding: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
code {
  background: #f4f4f4;
  padding: 2px 5px;
  border-radius: 3px;
  font-family: Consolas, monospace;
}
pre {
  background: #2C3E50;
  color: white;
  padding: 15px;
  border-radius: 5px;
  overflow-x: auto;
}
.warning {
  background: #FFF3CD;
  border-left: 4px solid #FFC107;
  padding: 15px;
  margin: 20px 0;
}
/* 新增绿色提示样式 */
.special-tip {
  border-left: 4px solid #4CAF50;
  background: #E8F5E9;
  padding: 15px;
  margin: 20px 0;
}
/* IIS专属样式 */
.iis-note {
  border-left: 4px solid #2196F3;
  background: #E3F2FD;
  padding: 15px;
  margin: 20px 0;
}
.powershell {
  background: #012456;
  color: #dcdcdc;
}

/* Tomcat专属样式 */
.tomcat-alert {
  border-left: 4px solid #FF5722;
  background: #FFF3E0;
  padding: 15px;
  margin: 20px 0;
}
.java-command {
  background: #B71C1C;
  color: #FFFFFF;
}

/* 产品页专属样式 */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin: 3rem 0;
  padding: 0 1rem;
}

.feature-card {
  background: #fff;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
  border-color: #2c5aa0;
}

.feature-icon {
  width: 56px;
  height: 54px;
  margin-bottom: 1.5rem;
}

.feature-card h3 {
  color: #2c5aa0;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.feature-card ul {
  list-style: none;
  padding: 0;
}

.feature-card li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f5f5f5;
  position: relative;
  padding-left: 1.5rem;
}

.feature-card li:before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #4CAF50;
  font-weight: bold;
}

.feature-card li:last-child {
  border-bottom: none;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 3rem 0;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.comparison-table th {
  background: #2c5aa0;
  color: white;
  padding: 1.2rem;
  font-weight: 600;
}

.comparison-table td {
  padding: 1rem;
  border-bottom: 1px solid #f0f0f0;
  text-align: center;
}

.comparison-table tr:nth-child(even) {
  background: #f8f9fa;
}

.cta-section {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  margin: 3rem 0;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.spec-item {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border-left: 4px solid #2c5aa0;
}

.spec-item h3 {
  color: #2c5aa0;
  margin-bottom: 1rem;
}

/* 响应式优化 */
@media (max-width: 768px) {
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0;
  }
  
  .feature-card {
    padding: 1.5rem;
  }
  
  .cta-section {
    padding: 2rem 1rem;
  }
}

/* 支持页专属样式 */
.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}
.help-card {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.status-indicator {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 8px;
}
.operational { background: #4CAF50; }
.partial { background: #FFC107; }
.outage { background: #F44336; }
.docs-search {
  max-width: 600px;
  margin: 2rem auto;
}
.contact-form {
  background: #f8f9fa;
  padding: 2rem;
  border-radius: 8px;
}

/* FAQ部分样式 */
.faq-section {
  margin: 3rem 0;
  padding: 2rem 0;
  border-top: 1px solid #e9ecef;
}

.faq-item {
  margin-bottom: 2rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  overflow: hidden;
}

.faq-item h3 {
  background: #f8f9fa;
  margin: 0;
  padding: 1.5rem;
  border-bottom: 1px solid #e9ecef;
  color: #2C3E50;
}

.faq-content {
  padding: 1.5rem;
}

.faq-content ul, .faq-content ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.faq-content li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.faq-content code {
  background: #f1f3f4;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
}

.faq-content pre {
  background: #2C3E50;
  color: white;
  padding: 1rem;
  border-radius: 6px;
  overflow-x: auto;
  margin: 1rem 0;
}

.faq-content pre code {
  background: transparent;
  padding: 0;
  color: inherit;
}

/* 博客页面样式 */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.blog-post {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.5rem;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-post:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.blog-post h2 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.blog-post h2 a {
    color: #2c5aa0;
    text-decoration: none;
}

.blog-post h2 a:hover {
    color: #1e3d6f;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.blog-post p {
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #555;
}

.read-more {
    color: #2c5aa0;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.read-more:hover {
    color: #1e3d6f;
}

.blog-categories {
    margin: 3rem 0 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.blog-categories h3 {
    margin-bottom: 1rem;
    color: #2c5aa0;
}

.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: #2c5aa0;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s ease;
}

.tag:hover {
    background: #1e3d6f;
    color: white;
}

.newsletter-signup {
    background: linear-gradient(135deg, #2c5aa0, #1e3d6f);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin: 2rem 0;
}

.newsletter-signup h3 {
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.newsletter-signup p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.newsletter-form input {
    flex: 1;
    min-width: 250px;
    padding: 0.8rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
}

.newsletter-form button {
    padding: 0.8rem 1.5rem;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .newsletter-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .newsletter-form input {
        min-width: auto;
    }
}
