


   html, body {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    background-color: #424A4C;
    color: #fff;
  }
  a { color: inherit; text-decoration: none; }
  
  
  .site-header {
    position: relative;
    height: 540px;
    overflow: visible;
  }
  
  @keyframes scrollBg {
    to { background-position-x: -10673px; }
  }
  .site-info {
    position: absolute;
    bottom: 10%;
    left: 5%;
    z-index: 2;
    text-align: left;
  }
  .site-info h1 {
    margin: 0;
    font-size: 4.5rem;
  }
  .site-info .site-description {
    margin-top: 0.5rem;
    font-size: 1.5rem;
  }
  
  
  .main-content {
    margin: 20px 0;
    overflow: hidden;
  }
  .post-overview {
    float: left;
    width: 50%;
    margin-left: 5%;
  }
  .video-sidebar {
    float: right;
    width: 35%;
    margin-right: 5%;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  
  
  .video-embed {
    border-radius: 12px;
    overflow: hidden;
  }
  .video-embed iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: 0;
    border-radius: 12px;
  }
  .video-intro {
    margin-bottom: 0.5rem;
    font-size: 2rem;
  }
  
  
  .post-item.card {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    margin-bottom: 3%;
    border-radius: 12px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    transition: transform .3s ease, box-shadow .3s ease;
  }
  .post-item.card .card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(12,36,66,0), rgba(49,60,64,1));
  }
  .post-item.card .card-content {
    position: absolute;
    inset: auto 16px 16px 16px;
    color: #fff;
  }
  .post-item.card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  }
  
  
  .link-group {
    clear: both;
    padding: 16px;
    background: linear-gradient(to right, #0e2542, #313c40);
    border-radius: 12px;
  }
  .link-group h2 {
    margin: 0 0 12px;
    font-size: 2rem;
  }
  .link-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .link-card {
    display: flex;
    align-items: center;
    width: 97%;
    border-radius: 8px;
    padding: 12px;
    background: linear-gradient(to right, #5a89b4, #97c5f4);
    color: #fff;
    transition: transform .2s, box-shadow .2s;
  }
  .link-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    filter: brightness(1.2);
  }
  .link-icon {
    flex: 0 0 auto;
    width: 15%;
    height: 15%;
    margin-right: 12px;
  }
  .link-icon img {
    width: 100%;
    height: auto;
    display: block;
  }
  .link-group-1 .link-card:nth-child(1) { background: linear-gradient(to right, #e50a65, #bcb328) !important; }
  .link-group-1 .link-card:nth-child(2) { background: linear-gradient(to right, #2181b5, #2575fc) !important; }
  .link-group-1 .link-card:nth-child(3) { background: linear-gradient(to right, #ffb736, #7a9d18) !important; }
  .link-group-2 .link-card:nth-child(1) { background: linear-gradient(to right, #333333, #6b6b6b) !important; }
  .link-group-2 .link-card:nth-child(2) { background: linear-gradient(to right, #9a2e13, #bc821c) !important; }
  
  
     .lang-switch {
      position: absolute;
      top: 20px;
      right: 20px;
      z-index: 10;
      overflow: visible;
    }
    .lang-icon {
      width: 32px;
      height: 32px;
      cursor: pointer;
    }
    .lang-icon img {
      width: 80%;
      height: 80%;
      object-fit: contain;
    }
    .lang-dropdown {
      position: absolute;
      top: calc(100% + 4px);
      right: 0;
      display: none;
      list-style: none;
      background: #003366;
      border-radius: 4px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.2);
      min-width: 120px;
      margin: 4px 0 0;
    }
    .lang-switch .lang-dropdown {
      position: absolute;
      top: calc(100% + 4px); 
      left: 0;                
      min-width: 100%;        
      box-sizing: border-box;
    }
    
    .lang-switch:hover .lang-dropdown,
    .lang-dropdown:hover {
      display: block;
    }
    .lang-dropdown li,
    .lang-dropdown li a {
      display: block;
      text-align: center;
      padding: 8px 0;
      white-space: nowrap;
      color: #fff;
      background: transparent;
    }
    .lang-dropdown li.current {
      pointer-events: none;
    }
    .lang-dropdown li:not(.current):hover {
      background: #005599;
    }

.lang-switch .lang-dropdown {
  left: -20%;
  top: calc(100% + 4px);
  min-width: 32px;       
  padding: 4px 0;        
  box-sizing: border-box;
  text-align: center;    
}


.lang-switch .lang-dropdown li {
  display: block;
  width: 100%;
  margin: 0;
  padding: 8px 0;        
  text-align: center;     
}


.lang-switch .lang-dropdown li a {
  display: block;
  width: 100%;
  text-align: center;
}


.lang-switch {
  padding-bottom: 20px;
}


.lang-switch .lang-dropdown {
  top: calc(100% - 20px);
}


.site-header {
  position: relative;
  height: 540px;
  overflow: hidden; 
}


   .site-header {
    position: relative;
    height: 540px;
    overflow: hidden;
  }
  .header-banner {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    
    background: 
      url('images/header.png') repeat-x center;
    background-size: auto 540px;
    animation: scrollBg 120s linear infinite;
    z-index: 0;
    overflow: hidden;
  }
  
  @keyframes scrollBg {
    from {
      background-position-x: 0;
    }
    to {
      
      background-position-x: -10673px;
    }
  }

  
  .header-banner::before {
    content: '';
    position: absolute; inset: 0;
    pointer-events: none;
    background: radial-gradient(
      ellipse at center,
      rgba(0,0,0,0) 50%,
      rgba(0,0,0,0.8) 80%,
      rgba(0,0,0,1) 100%
    );
    z-index: 1;
  }
  
  .header-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    
    background: linear-gradient(
      to bottom,
      rgba(66, 74, 76, 0) 30%,
      rgba(66, 74, 76, 0.5) 50%,
      rgba(66, 74, 76, 1) 100%
    );
    pointer-events: none;
    z-index: 2;
  }



.header-controls {
  position: absolute;
  top: 20px;    
  right: 20px;  
  display: flex;
  align-items: flex-end;
  gap: 12px;
  z-index: 3;   
}

.header-controls .search-field {
  width: 200px;             
  padding: 6px 32px 6px 12px;
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 4px;
  background: transparent;
  color: #fff;
}
.header-controls .search-field::placeholder {
  color: rgba(255,255,255,0.6);
}
.header-controls .search-submit {
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: none;
  color: #fff;
  font-size: 1em;
  cursor: pointer;
  padding: 0;
}


.header-controls .lang-switch {
  position: relative;   
  padding-bottom: 20px; 
}
.header-controls .lang-switch .lang-icon {
  width: 32px;
  height: 32px;
}
.header-controls .lang-switch .lang-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.header-controls .lang-switch .lang-dropdown {
  position: absolute;
  top: calc(100% - 20px);
  left: 0;
  min-width: 32px;
  background: #003366;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  display: none;
  list-style: none;
  padding: 4px 0;
  text-align: center;
}
.header-controls .lang-switch:hover .lang-dropdown,
.header-controls .lang-switch .lang-dropdown:hover {
  display: block;
}
.header-controls .lang-switch .lang-dropdown li a {
  display: block;
  padding: 8px 0;
  color: #fff;
  text-decoration: none;
  transition: background 0.2s;
}
.header-controls .lang-switch .lang-dropdown li a:hover {
  background: rgba(255,255,255,0.1);
}
.header-controls .lang-switch .lang-dropdown li a.current {
  font-weight: bold;
  background: transparent;
}


.header-controls .search-field {
  width: 300px;                      
  padding: 8px 40px 8px 12px;        
  border: 2px solid rgba(255,255,255,0.9); 
  border-radius: 4px;                
  background: rgba(255,255,255,0.1); 
  font-size: 1rem;                   
  color: #fff;
}


.header-controls .search-submit img {
  display: block;
  width: 50px;     
  height: 50px;
  object-fit: contain;
}


.header-controls .search-submit {
  padding: 4px;    
}

.header-controls .search-submit img {
  top: 0px;    
  left: -400x;  
}


.header-controls {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}


.header-controls .search-submit {
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  
  position: static;
}


.header-controls .search-submit img {
  display: block;
  object-fit: contain;
  
  transform: translate(-50px, 30px);
}


.header-controls {
  position: absolute;
  top: -1%;
  right: 20px;
  display: flex;
  align-items: flex-end;  
  gap: 12px;
  z-index: 3;
}


.header-controls .search-form {
  display: flex;
  align-items: center;
}


.header-controls .search-field,
.header-controls .search-submit {
  height: 64px;            
}


.header-controls .search-field {
  width: 500px;            
  padding: 0 12px;
  border: 2px solid rgba(255,255,255,0.9);
  border-radius: 10px 10px 10px 10px;  
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 1rem;
}


.header-controls .search-submit {
  width: 36px;               
  padding: 0;
  border: none;
  background: rgba(255,255,255,0.1);
  border-radius: 25px 25px 25px 25px; 
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}


.header-controls .search-submit img {
  display: block;
  width: 50px;               
  height: 50px;
  object-fit: contain;
}


.header-controls .lang-switch {
  position: relative;      
  padding-bottom: 20px;    
}


.header-controls .lang-switch .lang-icon {
  width: 32px;
  height: 32px;
  cursor: pointer;
}


.header-controls .search-submit {
  padding: 0;          
  background: none;
  border: none;
  cursor: pointer;
}


.header-controls .search-submit img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}


.header-controls .search-form {
  display: flex;
  align-items: center;
}

.site-footer {
  position: relative;
  padding: 20px 0;
  color: #fff;
  text-align: center;
}

.site-footer .site-views {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.7);
}


.top-left-icons {
  position: absolute;
  top: 20px;       
  left: 20px;      
  display: flex;
  gap: 12px;       
  z-index: 5;      
}


.top-left-icons a {
  display: block;
}


.top-left-icons a img {
  display: block;
  width: 64px;     
  height: 64px;
  object-fit: contain;
  transition: transform 0.2s, opacity 0.2s;
}


.top-left-icons a:hover img {
  transform: scale(1.1);
  opacity: 0.8;
}

@media screen and (max-width: 768px) {
  
  .top-left-icons {
    display: none !important;
  }

  
  .post-overview {
    float: none !important;
    width: 100% !important;
    margin: 0 0 20px !important;
  }

  
  .video-sidebar {
    float: none !important;
    width: 100% !important;
    margin: 20px 0 !important;
  }
  
  .video-sidebar .video-embed {
    width: 100% !important;
    margin-bottom: 20px;
  }

  
  .link-group {
    float: none !important;
    clear: both !important;
    width: 100% !important;
    margin: 20px 0 !important;
  }
  .link-group .link-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .link-card {
    width: 50% !important;
    margin: 0 0 12px !important;
  }
  
  .link-group {
    width: 90% !important;
    margin: 20px auto !important;
    clear: both !important;
  }

  
  .link-group .link-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .link-group .link-card {
    width: 95% !important;
    margin: 0 !important;
  }
  
  .post-item p,
  .post-item .entry-summary,
  .post-item .card-excerpt {
    display: -webkit-box;           
    -webkit-box-orient: vertical;   
    -webkit-line-clamp: 2;          
    line-clamp: 2; 
    overflow: hidden;               
  }
  .header-controls {
    left: 10% !important;      
    right: auto !important;    
    top: 10px !important;      
  }
  .header-controls .search-field {
    width: 240px !important;  
  }
}


.sticky-icon {
    position: absolute;
    top: 5%;
    right: 1%;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: 5px;
    z-index: 10;
}

.sticky-icon img {
    width: 18px;
    height: 18px;
}

.sticky-icon span {
    color: #ffffff;
    font-size: 14px;
}


.blog-header {
    position: relative;
    width: 100%;
    height: 50vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
}

.blog-header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(66, 74, 76, 1));
    pointer-events: none;
}

.blog-title-container {
    position: absolute;
    top: 85%; 
    left: 5%;
    width: 90%;
    z-index: 2;
}
.blog-title {
    color: #ffffff;
    font-size: 4.5rem;
    font-weight: bold;
    margin: 0;
}


.blog-content {
    padding: 20px 5%;
    color: #ffffff;
}

.blog-text {
    line-height: 1.6;
    font-size: 1.5rem;
}


.blog-content img {
    width: 50%;
    height: auto;
    display: block;
    margin: 20px auto;
}

.post-item.card .card-title {
  font-size: 2rem;       
  line-height: 1.2;
}

.post-item.card .card-excerpt {
  font-size: 1.25rem;    
  line-height: 1.5em;    
  max-height: 3em;       
}

.link-card h3 {
    font-size: 1.8rem; 
    font-weight: bold;
    margin: 0 0 8px;
}


.link-card p {
    font-size: 1.2rem; 
    margin: 0;
    line-height: 1.6;
}


.footer-contact {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    color: rgba(255,255,255,0.7);
    font-size: 1.2rem;
}

.footer-contact img {
    width: 24px;
    height: 24px;
    display: inline-block;
}

.footer-contact span {
    color: rgba(255,255,255,0.7);
    font-size: 1.2rem;
}

/* === 修正 WordPress 块编辑器生成的表格样式 === */
.wp-block-table {
    margin: 20px 0;
    width: 100%;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    background-color: #ffffff;
    overflow: hidden;
}

.wp-block-table.has-fixed-layout {
    table-layout: fixed;
    width: 100%;
}

/* 表头样式 */
.wp-block-table thead th {
    background-color: #f4f4f4;
    text-align: center;
    font-weight: bold;
    padding: 10px;
    border: 1px solid #cccccc !important;
    background-color: #4a90e2; /* 你可以更换颜色 */
    color: #ffffff;
}

/* 表格主体样式 */
.wp-block-table tbody tr {
    border-bottom: 1px solid #eeeeee;
}

.wp-block-table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

/* 单元格样式 */
.wp-block-table td {
    padding: 10px;
    border: 1px solid #cccccc !important;
    vertical-align: middle;
    text-align: center;
    color: #333333;
    background-color: #ffffff;
    box-sizing: border-box;
}

/* 修正默认的 table 元素 */
table {
    border-collapse: collapse !important;
    border: 1px solid #cccccc !important;
    border-spacing: 0 !important;
    width: 100%;
}

/* 响应式处理 */
@media screen and (max-width: 768px) {
    .wp-block-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* 修正 Quirks Mode 下的表格渲染 */
table {
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    width: 100% !important;
}

th, td {
    border: 1px solid #cccccc !important;
    padding: 10px !important;
    text-align: center !important;
    vertical-align: middle !important;
}

/* 强制覆盖 WordPress 块样式 */
.wp-block-table {
    margin: 20px 0;
    border: 1px solid #cccccc !important;
    overflow: hidden;
}

.wp-block-table.has-fixed-layout {
    table-layout: fixed;
}

/* 表格主体颜色 */
.wp-block-table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

.wp-block-table tbody tr:nth-child(odd) {
    background-color: #ffffff;
}
