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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background: url('images/background-pattern.webp');
    background-repeat: repeat;
    background-size: 100%;
    background-position: center;
    background-color: #ffffff;
}

.container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

/* Top Bar */
.top-bar {
    background-color: #dfdbdb;
    color: #333;
    padding: 10px 0;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
}

.sign-in a {
    color: #333;
    text-decoration: none;
    margin: 0 5px;
}

.sign-in a:hover {
    text-decoration: underline;
}

.search-container {
    display: flex;
    align-items: center;
}

.search-container input[type="text"] {
    padding: 5px;
    border: none;
    border-radius: 3px 0 0 3px;
}

.search-container button {
    padding: 5px 10px;
    background: #4CAF50;
    border: none;
    color: white;
    border-radius: 0 3px 3px 0;
    cursor: pointer;
}

/* 用户信息样式 */
.user-info {
    display: flex;
    align-items: center;
    color: white;
}

.user-info img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
}

.user-info .user-name {
    margin-right: 15px;
}

.user-info .logout {
    color: #ff6b6b;
    text-decoration: none;
    cursor: pointer;
}

.user-info .logout:hover {
    text-decoration: underline;
}

.hidden {
    display: none !important;
}

/* Header */
header {
    background-color: #2a3158;
    background-image: url('images/header-bg.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    height: 130px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/header-bg.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    opacity: 0.1;
    z-index: 1;
}

header .container {
    position: relative;
    z-index: 2;
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo a {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo img {
    max-height: 120px;
    width: auto;
    height: 100%;
    object-fit: contain;
}

.logo-text {
    color: #fff;
}

.logo-text h1 {
    font-size: 20px;
    font-weight: bold;
    color: #c9a227;
    margin-bottom: 0;
    line-height: 1.2;
}

.logo-text h2 {
    font-size: 20px;
    font-weight: bold;
    color: #c9a227;
    margin-bottom: 0;
    line-height: 1.2;
}

.logo-text h3 {
    font-size: 18px;
    color: #c9a227;
    font-weight: normal;
}

/* Main Navigation */
.main-nav {
    background-color: #3C3F79;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 14px;
    cursor: pointer;
    padding: 10px;
}

.nav-menu {
    display: flex;
    align-items: flex-start;
    padding: 0;
    margin: 0;
}

.nav-menu li {
    position: relative;
    margin: 0;
    padding: 0;
}

.nav-menu li a {
    display: block;
    color: white;
    padding: 6px 30px;
    font-weight: bold;
    white-space: nowrap;
}

.nav-menu li:hover > a,
.nav-menu li.active > a {
    background-color: #6b0000;
}

/* Main Content */
main.container {
    display: flex;
    background-color: white;
    margin-top: 0;
    min-height: 600px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Sidebar */
.sidebar {
    width: 25%;
    background-color: #f5f5f5;
    border-right: 1px solid #e9e9e9;
}

.side-menu li a {
    display: block;
    padding: 15px;
    border-bottom: 1px solid #e9e9e9;
    color: #333;
    font-size: 14px;
}

.side-menu li.active a {
    background-color: #8b0000;
    color: white;
}

.side-menu li a:hover {
    background-color: #e9e9e9;
}

.side-menu li.active a:hover {
    background-color: #8b0000;
}

/* Content */
.content {
    width: 75%;
    padding: 30px;
}

.content h2 {
    color: #2a3158;
    margin-bottom: 30px;
    font-size: 24px;
    border-bottom: 2px solid #e9e9e9;
    padding-bottom: 10px;
}

.governance-item {
    margin-bottom: 30px;
}

.governance-item h3 {
    color: #2a3158;
    font-size: 18px;
    margin-bottom: 15px;
}

.governance-item p {
    line-height: 1.7;
    color: #444;
}

/* Content Styles */
.charter-content h3 {
    color: #FF6B6B;  /* 设置为淡红色 */
    margin-bottom: 15px;
    font-size: 18px;
}

.charter-content h4 {
    font-weight: bold;
    margin: 20px 0;  /* 添加上下间距 */
    line-height: 1.5;  /* 确保良好的行高 */
}

/* 添加缩进样式 */
.charter-content .charter-item p.indent {
    padding-left: 1.5em;  /* 使用 1.5em 实现缩进 */
}

/* Footer */
footer {
    background-color: #2a3158;
    color: white;
    padding: 40px 0;
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo {
    text-align: center;
    margin-bottom: 30px;
    width: 100%;
}

.footer-logo img {
    width: 80px;
    height: auto;
}

.footer-columns {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
}

.footer-column {
    width: 22%;
}

.footer-column h4 {
    color: #c9a227;
    margin-bottom: 15px;
    font-size: 16px;
}

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column ul li a {
    color: #ddd;
    font-size: 14px;
}

.footer-column ul li a:hover {
    color: #c9a227;
}

/* Responsive Design */
@media (max-width: 992px) {
    .footer-column {
        width: 48%;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    main.container {
        flex-direction: column;
    }
    
    .sidebar, .content {
        width: 100%;
    }
    
    .sidebar {
        border-right: none;
        border-bottom: 1px solid #e9e9e9;
    }
}

@media (max-width: 576px) {
    .footer-column {
        width: 100%;
    }
    
    .top-bar .container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .search-container {
        margin-top: 10px;
        width: 100%;
    }
    
    .search-container form {
        width: 100%;
        display: flex;
    }
    
    .search-container input[type="text"] {
        flex-grow: 1;
    }
}

@media (max-width: 600px) {
    .footer-column {
        margin-left: 20px;
    }
    .logo img {
        max-height: 100px;
    }
}

/* IFRA Specific Styles */
.ifra-page {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #fff;
}

.ifra-top-bar {
    background-color: #fff;
    padding: 5px 20px;
    text-align: right;
}

.ifra-search-box {
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.ifra-header {
    background-color: #2A2B5F;
    padding: 15px 0;
}

.ifra-container {
    max-width: 1000px;
    margin: 0 auto;
}

.ifra-logo-container {
    display: flex;
    align-items: center;
}

.ifra-logo {
    width: 60px;
    height: 60px;
    margin-right: 15px;
}

.ifra-logo-text {
    color: #FFD700;
    font-size: 24px;
    font-weight: bold;
    line-height: 1.2;
}

.ifra-nav {
    background-color: #2A2B5F;
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ifra-nav-list {
    display: flex;
    justify-content: center;
    list-style: none;
}

.ifra-nav-item {
    margin: 0 20px;
}

.ifra-nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

.ifra-main-content {
    margin: 20px auto;
}

.ifra-slider {
    position: relative;
    margin-bottom: 30px;
}

.ifra-slider img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.ifra-slider-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 15px;
}

.ifra-content-sections {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.ifra-section {
    border: 1px solid #ddd;
    padding: 20px;
}

.ifra-section h2 {
    margin-bottom: 15px;
    color: #2A2B5F;
}

.ifra-section-list {
    list-style: none;
}

.ifra-section-list li {
    margin-bottom: 10px;
}

.ifra-section-list a {
    color: #2A2B5F;
    text-decoration: none;
}

.ifra-section-list a:hover {
    text-decoration: underline;
}

.ifra-feature-sections {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
    text-align: center;
}

.ifra-feature-section img {
    width: 150px;
    height: 150px;
    margin-bottom: 15px;
}

.ifra-footer {
    background-color: #2A2B5F;
    color: #fff;
    padding: 40px 0;
}

.ifra-footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.ifra-footer-section h3 {
    color: #FFD700;
    margin-bottom: 15px;
}

.ifra-footer-list {
    list-style: none;
}

.ifra-footer-list li {
    margin-bottom: 8px;
}

.ifra-footer-list a {
    color: #fff;
    text-decoration: none;
}

.ifra-footer-list a:hover {
    text-decoration: underline;
}

.ifra-footer-logo {
    text-align: center;
    margin-top: 30px;
}

.ifra-footer-logo img {
    width: 80px;
    height: 80px;
}

/* IFRA Responsive Design */
@media (max-width: 992px) {
    .ifra-footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .ifra-content-sections,
    .ifra-feature-sections {
        grid-template-columns: 1fr;
    }
    
    .ifra-nav-list {
        flex-direction: column;
        align-items: center;
    }
    
    .ifra-nav-item {
        margin: 10px 0;
    }
}

@media (max-width: 576px) {
    .ifra-footer-content {
        grid-template-columns: 1fr;
    }
    
    .ifra-logo-container {
        flex-direction: column;
        text-align: center;
    }
    
    .ifra-logo {
        margin-right: 0;
        margin-bottom: 15px;
    }
}

/* Main Content Layout */
.main-content {
    padding: 30px 0;
}

.content-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.grid-section {
    background: #fff;
    border: 1px solid #e9e9e9;
    padding: 20px;
    border-radius: 4px;
    height: 100%;
}

.grid-section h2 {
    color: #2a3158;
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9e9e9;
}

.content-list {
    list-style: none;
}

.content-list li {
    margin-bottom: 12px;
}

.content-list a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.content-list a:hover {
    color: #c9a227;
}

/* Feature Items */
.feature-item {
    text-align: center;
    padding: 20px;
    background: #fff;
    border: 1px solid #e9e9e9;
    border-radius: 4px;
    height: 100%;
}

.feature-item img {
    width: 150px;
    height: 150px;
    margin-bottom: 20px;
}

.feature-item h2 {
    color: #2a3158;
    font-size: 18px;
    margin-bottom: 15px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .content-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .content-row {
        grid-template-columns: 1fr;
    }
}

/* Banner Slider Styles */
.ifra-banner {
    width: 100%;
    background: #fff;
    margin-bottom: 20px;
    padding: 20px 0;
}

.banner-wrapper {
    position: relative;
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    aspect-ratio: 2.5 / 1; /* 设置固定的宽高比 */
}

.banner-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.banner-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    position: relative;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    padding: 0;
    margin: 0;
}

.banner-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(42, 43, 95, 0.7);
    color: #FFD700;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s ease;
    z-index: 2;
}

.banner-nav:hover {
    background: rgba(42, 43, 95, 0.9);
}

.banner-nav.prev {
    left: 10px;
    border-radius: 0 3px 3px 0;
}

.banner-nav.next {
    right: 10px;
    border-radius: 3px 0 0 3px;
}

.banner-dots {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 2;
}

.banner-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid #FFD700;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.banner-dot.active {
    background: #FFD700;
    transform: scale(1.2);
}

/* Additional Styles from main.html */
.grid-section, .feature-item {
    border-radius: 0 !important;
}

.feature-item img {
    width: 100%;
    height: auto;
}

.ifra-banner {
    border-radius: 0 !important;
    background-image: url('images/background-pattern.webp');
    background-repeat: repeat;
    background-size: 100%;
    background-position: center;
    background-color: #ffffff;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    padding: 0;
    margin: 0;
}

.content-list li {
    position: relative;
    padding-left: 20px;
    text-align: left;
}

.content-list li::before {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: #666;
    font-size: 12px;
}

.content-list li a {
    display: inline-block;
    text-align: left;
}

.feature-item h2 {
    text-align: left;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #f5f5f5;
    min-width: 250px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1000;
    padding: 0;
    margin: 0;
}

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

.dropdown-menu li {
    display: block;
    margin: 0;
    padding: 0;
}

.dropdown-menu li a {
    color: #000 !important;
    padding: 10px 15px;
    display: block;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background: #f5f5f5;
}

.banner-link {
    display: block;
    position: relative;
    text-decoration: none;
    color: white;
    width: 100%;
    height: 100%;
}

.banner-text {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 18px;
    font-weight: 500;
    z-index: 2;
}

.banner-link:hover .banner-text {
    background-color: rgba(0, 0, 0, 0.9);
}

table {
  table-layout: fixed;
  width: 100%;
  word-break: break-all;
  border-collapse: collapse;
  border: 1px solid #222;
}
th, td {
  white-space: pre-line;
  word-break: break-word;
  padding: 8px 10px;
  max-width: 220px;
  vertical-align: top;
  border: 1px solid #222;
}

/* Login Page Styles */
.login-page {
  background: #232a54;
  font-family: 'Montserrat', Arial, sans-serif;
  margin: 0;
  min-height: 100vh;
  color: #232a54;
}

.login-page .ifra-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  padding: 20px 0;
  z-index: 2;
  position: relative;
  top: -40px;
}

.login-page .ifra-logo img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  display: block;
  margin: 0 auto;
}

.login-page .login-container {
  background: #fff;
  max-width: 400px;
  margin: 50px auto;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.login-page .login-header {
  text-align: center;
  margin-bottom: 30px;
}

.login-page .login-header h1 {
  color: #2a3158;
  font-size: 24px;
  margin-bottom: 10px;
}

.login-page .form-group {
  margin-bottom: 20px;
}

.login-page .form-group label {
  display: block;
  margin-bottom: 5px;
  color: #333;
}

.login-page .form-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

.login-page .form-group input:focus {
  border-color: #2a3158;
  outline: none;
}

.login-page .error-message {
  color: #ff6b6b;
  font-size: 14px;
  margin-top: 5px;
  display: none;
}

.login-page .login-button {
  width: 100%;
  padding: 12px;
  background: #2a3158;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.login-page .login-button:hover {
  background: #3C3F79;
}

.login-page .login-footer {
  text-align: center;
  margin-top: 20px;
}

.login-page .login-footer a {
  color: #2a3158;
  text-decoration: none;
}

.login-page .login-footer a:hover {
  text-decoration: underline;
}

.login-page .captcha-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.login-page .captcha-container img {
  height: 40px;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
}

@media (max-width: 600px) {
  .login-page .login-container {
    padding: 32px 8px 24px 8px;
    max-width: 98vw;
  }
  .login-page .ifra-logo img {
    width: 120px;
    height: 120px;
  }
}

/* News Page Styles */
.news-page {
    font-family: Arial, sans-serif;
    color: #222;
    background: #fff;
}

.news-page h1 {
    font-size: 1.3em;
    font-weight: bold;
    margin-top: 1.5em;
    margin-bottom: 1em;
}

.news-page .intro-title {
    font-size: 1.3em;
    font-weight: bold;
    margin-top: 1.5em;
    margin-bottom: 1em;
}

.news-page .bold {
    font-weight: bold;
}

.news-page .abbr {
    font-weight: bold;
    letter-spacing: 1px;
}

.news-page .section {
    margin-bottom: 1.5em;
}

.news-page .mt-2 {
    margin-top: 2em;
}

.news-page .mb-2 {
    margin-bottom: 2em;
}

.news-page .italic {
    font-style: italic;
}

.news-page .note {
    color: #666;
    font-size: 13px;
}

.news-page p {
    margin-bottom: 1.2em;
}