/* 多语言支持样式 */
.language-selector {
  position: relative;
  display: inline-block;
}

.dropdown {
  position: relative;
}

.dropdown-btn {
  background: white;
  border: 1px solid #ddd;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  min-width: 120px;
}

.dropdown-btn:hover {
  background-color: #f5f5f5;
}

.dropdown-arrow {
  margin-left: auto;
  transition: transform 0.3s;
}

.dropdown.show .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: white;
  min-width: 200px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  border-radius: 4px;
  z-index: 1000;
  right: 0;
  top: 100%;
  margin-top: 2px;
  border: 1px solid #ddd;
  max-height: 300px;
  overflow-y: auto;
}

.dropdown-content.show {
  display: block;
}

.dropdown-item {
  color: #333;
  padding: 10px 15px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background-color 0.3s;
}

.dropdown-item:hover {
  background-color: #f1f1f1;
}

.dropdown-item.active {
  background-color: #e3f2fd;
  color: #1976d2;
}

.flag {
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.lang-name {
  flex: 1;
}

/* Header 样式 */
header {
  background: white;
  border-bottom: 1px solid #ddd;
  padding: 10px 0;
  margin-bottom: 20px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo img {
  width: 40px;
  height: 40px;
}

.logo h1 {
  margin: 0;
  color: #2196F3;
  font-size: 24px;
}

.logo small {
  display: block;
  color: #666;
  font-size: 12px;
  margin-top: 2px;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 20px;
}

.nav-menu a {
  text-decoration: none;
  color: #333;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.nav-menu a:hover {
  background-color: #f5f5f5;
}

/* Footer 样式 */
footer {
  background: #333;
  color: white;
  padding: 40px 0 20px;
  margin-top: 50px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.footer-section h3 {
  margin-bottom: 15px;
  color: #2196F3;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 8px;
}

.footer-section ul li a {
  color: #ccc;
  text-decoration: none;
}

.footer-section ul li a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #555;
  color: #ccc;
}

/* 内链样式 */
.internal-links {
  background: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.internal-links h2 {
  color: #2196F3;
  margin-bottom: 20px;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.links-grid a {
  display: block;
  padding: 12px 15px;
  background: #f9f9f9;
  border-radius: 4px;
  text-decoration: none;
  color: #333;
  border-left: 4px solid #2196F3;
  transition: background-color 0.3s;
}

.links-grid a:hover {
  background: #e3f2fd;
}

/* RTL 支持 */
.rtl {
  direction: rtl;
  text-align: right;
}

.rtl .dropdown-content {
  right: auto;
  left: 0;
}

/* 语言特定样式 */
.lang-ar {
  font-family: 'Arial', 'Tahoma', sans-serif;
}

.lang-hi {
  font-family: 'Arial Unicode MS', 'Noto Sans Devanagari', sans-serif;
}

.lang-zh, .lang-zh-tw {
  font-family: 'Microsoft YaHei', 'SimHei', sans-serif;
}

.lang-ja {
  font-family: 'Hiragino Sans', 'Yu Gothic', 'Meiryo', sans-serif;
}

.lang-ko {
  font-family: 'Malgun Gothic', 'Dotum', sans-serif;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 15px;
  }
  
  .nav-menu {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .dropdown-content {
    min-width: 180px;
  }
  
  .dropdown-btn {
    min-width: 100px;
    font-size: 13px;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 30px;
  }
  
  .links-grid {
    grid-template-columns: 1fr;
  }
}