/* =======================
 * MASTER STYLESHEET
 * 1. General & Reset Styles
 * 2. Header Styles
 * 3. Main Content Styles
 * 4. Footer Styles
 * 5. Language & Internationalization
 * 6. Responsive Design
 * 7. Components & Utilities
 ======================= */

/* =======================
 * 1. General & Reset Styles
 ======================= */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f8f8;
  margin: 0;
  padding: 0;
  padding-top: 80px !important;
}

body.page-loading {
  cursor: progress;
}

body.page-loading:before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, #4285f4, #34a853, #fbbc05, #ea4335);
  animation: loading-bar 2s linear infinite;
  z-index: 9999;
}

@keyframes loading-bar {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* =======================
 * 2. Header Styles
 ======================= */

/* Header Structure */
.header__area {
  height: 80px !important;
  padding: 0 ;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000 !important;
}

.header__area .container {
  max-width: 100%;
  margin: auto auto;
  height: 100%;
}

.menumenu__container {
  display: flex;
  align-items: center;
  height: 80px !important;
  padding: 0 15px;
}

.col-md-7,
.col-lg-8,
.col-sm-5,
.col-xs-3 {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  height: 80px !important;
  width: 100%;
}

/* Logo Styling */
.logo {
  display: flex !important;
  align-items: center !important;
  height: 50px !important;
  overflow: visible !important;
  margin-right: auto;
}

.logo a {
  display: flex !important;
  align-items: center !important;
  position: relative !important;
}

.header-logo {
  height: 50px;
  width: auto !important;
  max-height: none !important;
  position: relative !important;
  top: 0 !important;
  transform: translateY(0) !important;
}

/* Main Menu */
.main__menu {
  display: flex;
  justify-content: flex-end;
  list-style: none;
  padding: 0;
  margin: 0;
  margin-right: 20px;
}

.main__menu > li {
  position: relative;
  margin: 0 12px;
}

.main__menu > li > a {
  color: #333333;
  font-size: 16px;
  font-family: 'Poppins', sans-serif;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.3s ease;
  height: 80px;
  display: flex;
  align-items: center;
  line-height: normal;
  padding: 10px 12px;
}

.main__menu li a:hover,
.main__menu > li:hover > a {
  color: #4285f4;
}

/* Dropdown Menu */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown .dropdown-content {
  display: none;
  position: absolute;
  top: 80px !important;
  min-width: 170px;
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  border-radius: 4px;
  overflow: hidden;
  left: 50%;
  transform: translateX(-50%);
  border: 1px solid #f0f0f0;
}

.dropdown .dropdown-content a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 15px !important;
  color: #333333;
  text-decoration: none;
  font-size: 16px;
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s ease;
  white-space: nowrap;
  border-bottom: 1px solid #f8f8f8;
}

.dropdown .dropdown-content a:last-child {
  border-bottom: none;
}

.dropdown .dropdown-content a:hover {
  background-color: #f8f9fa !important;
  color: #4285f4 !important;
}

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

/* 头部右侧控制区域 */
.header-right-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: -50px;
    padding: 2px 0;
}

/* 登录状态样式 */
.login-status {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 16px;
    border-radius: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    min-width: 280px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.welcome-text {
    color: #666;
    font-weight: 400;
}

.user-name {
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: color 0.3s ease;
    max-width: 100px;
}

.user-name:hover {
    color: #007bff;
    text-decoration: underline;
}

/* 用户角色徽章 */
.user-role-badge {
    background: #007bff;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    margin-left: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-role-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.user-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.logout-btn {
    background: #ff4757;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.logout-btn:hover {
    background: #ff3742;
}

/* 认证按钮样式 */
.auth-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.auth-btn {
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.auth-btn.login {
    background: transparent;
    color: #333;
    border: 1px solid #ddd;
}

.auth-btn.login:hover {
    background: #f8f9fa;
    border-color: #007bff;
}

.auth-btn.signup {
    background: #007bff;
    color: white;
    border: 1px solid #007bff;
}

.auth-btn.signup:hover {
    background: #0056b3;
    border-color: #0056b3;
}

/* 语言选择器样式 */
.language-selector {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    color: #007bff;
    background: #f8f9fa;
}

.lang-divider {
    color: #ddd;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-right-controls {
        gap: 10px;
    }
    
    .login-status {
        flex-direction: column;
        gap: 8px;
        padding: 12px;
    }
    
    .user-info {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .user-actions {
        width: 100%;
        justify-content: center;
    }
    
    .auth-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .auth-btn {
        padding: 6px 16px;
        font-size: 13px;
    }
}


/* Language Selector */
.language-selector {
  display: flex ;
  align-items: center ;
  height: 80px ;
  margin-top: 0 ;
  margin-left: 15px;
  position: relative;
  z-index: 999;
}

.lang-btn {
  padding: 8px 10px !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
  height: 36px !important;
  line-height: 20px !important;
  display: flex !important;
  align-items: center !important;
  background: none;
  border: none;
  color: #666;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

.lang-btn.active {
  color: #4285f4;
  font-weight: 700;
}

.lang-btn:hover {
  color: #4285f4;
}

.lang-divider {
  color: #ddd;
  margin: 0 4px;
  font-size: 14px;
  line-height: 20px;
}

/* =======================
 * 3. Main Content Styles
 ======================= */

/* Hero Banner Section */
.hero__banner {
  background-color: #eab44f00;
  color: white;
  padding: 280px 0;
  text-align: center;
}

.hero__content h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero__content p {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto;
}

.slider-container {
  overflow: hidden;
  width: 100%;
  position: relative;
}

.slider {
  display: flex;
  width: 300%;
  transition: transform 1s ease;
}

.slider-item {
  width: calc(100% / 3);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  color: white;
  font-size: 20px;
  padding: 20px;
  box-sizing: border-box;
}

.control-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #01060c;
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 1000;
  display: block; 
}

.prev-btn {
  left: 10px;
}

.next-btn {
  right: 10px;
}

/* Introduction Section */
.htc__introduction__area {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: auto;
  background-color: #f8f8f8;
}
  
.intro-header {
  text-align: center;
  margin-top: 50px;
  max-width: 100%;
}
  
.intro-header h1 {
  font-size: 30px;
  margin-bottom: 20px;
}
  
.intro-header p {
  font-size: 20px;
  line-height: 1.5;
  margin-bottom: 20px;
}
  
.intro-content {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin-top: 50px;
}
  
.intro-left {
  flex:1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px;
  max-width: 60%;
}
  
.intro-right {
  flex: 1;
  padding: 20px;
  max-width: 60%;
}
  
.intro-description {
  font-size: 20px;
  line-height: 1.5;
}
  
.intro-skills {
  list-style: none;
  padding: 0;
  font-size: 18px;
}
  
.intro-skills li {
  margin-bottom: 10px;
}

/* Language Columns Styling */
.language-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 50px;
}

.language-column {
  flex: 1;
  min-width: 300px;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  background-color: white;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.language-column:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.language-column h3 {
  color: #1d042e;
  font-size: 24px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  position: relative;
}

.language-column h3:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: #4285f4;
}

.language-column p {
  margin-bottom: 20px;
  line-height: 1.8;
}

.language-column ul {
  padding-left: 20px;
}

.language-column ul li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 15px;
}

.language-column ul li:before {
  content: '•';
  position: absolute;
  left: -5px;
  color: #4285f4;
  font-weight: bold;
}

.english {
  border-top: 4px solid #4285f4;
}

.chinese {
  border-top: 4px solid #1d042e;
}

/* Product Showcase Section */
.product__showcase {
  background-color: #f8f8f8;
  padding: 80px 0;
}

.product-image {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product__features {
  padding: 20px;
}

.product__features h3 {
  color: #1d042e;
  margin-bottom: 20px;
}

.product__features ul {
  list-style: none;
  padding-left: 0;
}

.product__features ul li {
  padding: 12px 0;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
}

.product__features ul li:before {
  content: '✓';
  margin-right: 10px;
  color: #4285f4;
  font-weight: bold;
}

/* =======================
 * 4. Footer Styles - 左右布局
 ======================= */

.footer__area {
  background-color: #333;
  color: #fff;
  padding: 60px 0 30px;
  margin-top: auto;
  width: 100%;
  font-family: 'Roboto', sans-serif;
}

.footer__content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
  text-align: left;
}

/* Brand Section - 左边 */
.footer-brand {
  flex-basis: 35%;
  padding-right: 30px;
}

.footer-logo {
  margin-bottom: 20px;
}

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

.footer-about {
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.8;
  max-width: 300px;
}

/* Links Container - 右边 */
.footer-links-container {
  display: flex;
  flex-wrap: wrap;
  flex-basis: 65%;
  justify-content: flex-end;
  gap: 10px;
}

.footer-column {
  flex-basis: 30%;
  margin-bottom: 20px;
  text-align: left;
}

.footer-heading {
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 20px;
  position: relative;
}

.footer-heading:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 30px;
  height: 2px;
  background-color: #4285f4;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #fff;
  opacity: 0.8;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 14px;
}

.footer-links a:hover {
  opacity: 1;
  color: #4285f4;
  padding-left: 5px;
}

/* Contact Information */
.footer-contact p {
  margin-bottom: 10px;
  font-size: 14px;
  opacity: 0.8;
  display: flex;
  align-items: center;
}

.footer-contact p i, 
.footer-contact p .footer-icon {
  margin-right: 10px;
  color: #4285f4;
}

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

.footer-contact a:hover {
  color: #4285f4;
}

/* Social Icons */
.footer-social {
  margin-top: 20px;
  display: flex;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  margin-right: 10px;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background-color: #4285f4;
  transform: translateY(-3px);
}

.social-icon i {
  width: 16px;
  height: 16px;
  background-size: contain;
  background-repeat: no-repeat;
  display: block;
}

.facebook-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z'%3E%3C/path%3E%3C/svg%3E");
}

.twitter-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M23 3a10.9 10.9 0 0 1-3.14 1.53 4.48 4.48 0 0 0-7.86 3v1A10.66 10.66 0 0 1 3 4s-4 9 5 13a11.64 11.64 0 0 1-7 2c9 5 20 0 20-11.5a4.5 4.5 0 0 0-.08-.83A7.72 7.72 0 0 0 23 3z'%3E%3C/path%3E%3C/svg%3E");
}

.wechat-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M9.5 4C5.36 4 2 6.69 2 10c0 1.89 1.08 3.56 2.78 4.66L4 17l2.5-1.5c1 .39 2.03.5 3 .5a7.3 7.3 0 0 0 .25-2C9.75 10.69 12.64 8 16.5 8c.14 0 .28 0 .42.02C16.12 5.73 13.06 4 9.5 4zm0 2c1.11 0 2 .89 2 2s-.89 2-2 2-2-.89-2-2 .89-2 2-2zm5 7c-2.67 0-5 1.68-5 3.85 0 2.21 2.33 3.85 5 3.85.63 0 1.24-.1 1.81-.29L18.5 22l-.78-2.29c1.37-.91 2.28-2.25 2.28-3.86 0-2.17-2.33-3.85-5-3.85zm0 1.5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5-1.5-.67-1.5-1.5.67-1.5 1.5-1.5z'/%3E%3C/svg%3E");
}

/* University Information */
.footer__contact {
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  margin-bottom: 20px;
}

.footer__contact .university {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 5px;
  text-align: center;
}

.footer__contact .department {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 5px;
  text-align: center;
}

.footer__contact .address {
  font-size: 14px;
  opacity: 0.8;
  font-style: normal;
  text-align: center;
}

/* Copyright */
.footer__copyright {
  text-align: center;
}

.footer__copyright p {
  margin-bottom: 10px;
  font-size: 14px;
  opacity: 0.7;
  text-align: center;
}

.footer__copyright .rights {
  font-size: 12px;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.5;
  text-align: center;
}

/* =======================
 * 5. Language & Internationalization
 ======================= */

/* Language content styling */
.language-content {
  text-align: left;
  font-size: 1.1em;
  color: #0f0f0f;
  width: 100%;
}

.language-content p {
  margin-bottom: 15px;
}

/* .lang-content {
  display: none;
}

.lang-content.active {
  display: block;
} */

/* Footer language content */
.footer__area .language-content {
  text-align: left;
  font-size: 1em;
  color: #fff;
  width: 100%;
}

.footer__area .language-content p {
  margin-bottom: 15px;
}

/* =======================
 * 6. Responsive Design
 ======================= */

@media (max-width: 991px) {
  .header-logo {
    height: 50px !important;
  }
  
  .main__menu > li {
    margin: 0 10px;
  }
  
  .footer__content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .footer-brand {
    flex-basis: 100%;
    padding-right: 0;
    margin-bottom: 30px;
    text-align: center;
  }
  
  .footer-about {
    margin: 0 auto;
  }
  
  .footer-links-container {
    flex-basis: 100%;
    justify-content: center;
    gap: 30px;
  }
  
  .footer-column {
    text-align: center;
    flex-basis: 45%;
  }
  
  .footer-heading:after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .language-columns {
    flex-direction: column;
  }
  
  .hero__content h1 {
    font-size: 36px;
  }
}

@media (max-width: 768px) {
  .header__area {
    height: 70px !important;
  }
  
  .menumenu__container {
    height: 70px !important;
  }
  
  .header-logo {
    height: 50px !important;
  }
  
  .main__menu > li > a {
    height: 70px;
    font-size: 13px;
    padding: 10px 8px;
  }
  
  .auth-buttons,
  .language-selector,
  #user-profile,
  .user-profile {
    height: 70px !important;
  }
  
  .dropdown .dropdown-content {
    top: 70px !important;
  }
  
  .footer-links-container {
    gap: 20px;
    flex-direction: column;
  }
  
  .footer-column {
    flex-basis: 100%;
  }
  
  .footer__area {
    padding: 40px 0;
  }
  
  .hero__banner {
    padding: 150px 0;
  }
  
  .hero__content h1 {
    font-size: 32px;
  }
}

@media (max-width: 576px) {
  body {
    padding-top: 70px !important;
  }
  
  .header-logo {
    height: 40px !important;
  }
  
  .main__menu > li {
    margin: 0 5px;
  }
  
  .main__menu > li > a {
    font-size: 12px;
    padding: 10px 6px;
  }
  
  .auth-btn {
    padding: 6px 8px !important;
    font-size: 12px;
  }
  
  .lang-btn {
    padding: 6px 8px !important;
    font-size: 12px;
  }
  
  .footer__area {
    padding: 30px 0;
  }
  
  .footer-logo-img {
    max-width: 120px;
  }
  
  .hero__banner {
    padding: 100px 0;
  }
  
  .hero__content h1 {
    font-size: 24px;
  }
}

/* =======================
 * 7. Components & Utilities
 ======================= */

/* Scroll to top button */
.scroll-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: #363d48;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.scroll-top-btn:hover {
  background-color: #d7e0f6;
  transform: translateY(-5px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  color: #363d48;
}

.scroll-top-btn.show {
  opacity: 1;
  visibility: visible;
}

.arrow-up {
  font-style: normal;
  line-height: 1;
}

/* Critical overrides */
.wrapper {
  margin-top: 0 !important;
  padding-top: 0 !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.wrapper > *:first-child:not(header),
header + *,
.main-content,
.container:first-of-type,
.slider__container,
.hero-section,
.banner-section,
section:first-of-type,
.dashboard__container,
.row:first-child {
  margin-top: 0 !important;
}