    /* 核心变量 */
    :root {
      --hemba-red: #bf0008;
      --hemba-blue: #001254;
      --gold: #d4af37;
      --bg-gray: #f4f6f9;
      --text-main: #333333;
      --text-light: #666666;
      --white: #ffffff;
    }

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

    body {
      font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
      color: var(--text-main);
      line-height: 1.6;
      background-color: var(--white);
    }

    html {
      scroll-behavior: smooth;
    }

    /* 导航栏 */
    header {
      background-color: var(--white);
      box-shadow: 0 2px 15px rgba(0,0,0,0.08);
      position: fixed;
      width: 100%;
      top: 0;
      z-index: 1000;
      height: 80px;
    }

    nav {
      max-width: 1400px;
      margin: 0 auto;
      height: 100%;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 0 20px;
    }

    .logo-container {
      display: flex;
      align-items: center;
      gap: 12px;
      text-decoration: none;
    }


    .logo-img {
      height: 55px;
      width: auto;
      object-fit: contain;
    }

    .logo-text-group {
      display: flex;
      flex-direction: column;
      line-height: 1.2;
    }

    .logo-title {
      font-size: 1.2rem;
      font-weight: 800;
      color: var(--hemba-blue);
    }

    .logo-subtitle {
      font-size: 0.85rem;
      font-weight: bold;
      color: var(--hemba-red);
      letter-spacing: 2px;
    }

    .nav-links {
      display: flex;
      gap: 30px;
    }

    .nav-links a {
      font-size: 0.95rem;
      font-weight: 600;
      color: var(--text-main);
      cursor: pointer;
      position: relative;
      transition: color 0.3s;
    }

    .nav-links a:hover {
      color: var(--hemba-red);
    }

    .nav-links a::after {
      content: '';
      display: block;
      width: 0;
      height: 2px;
      background: var(--hemba-red);
      transition: width 0.3s;
      position: absolute;
      bottom: -5px;
      left: 0;
    }

    .nav-links a:hover::after {
      width: 100%;
    }

    .mobile-menu-btn {
      display: none;
      font-size: 1.8rem;
      color: var(--hemba-blue);
      cursor: pointer;
      background: none;
      border: none;
    }

    /* 首屏 */
    .hero {
      background: linear-gradient(rgba(0, 18, 84, 0.85), rgba(191, 0, 8, 0.45)),
      url('/img/background.jpg');
      background-size: cover;
      background-position: center center;
      background-repeat: no-repeat;
      min-height: 100vh;
      margin-top: 80px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      text-align: center;
      color: white;
      padding: 40px 20px;
    }

    .hero h2 {
      font-size: 3rem;
      margin-bottom: 1rem;
      margin-top: 60px;
      font-weight: 800;
      letter-spacing: 2px;
    }

    .hero h2 span {
      color: var(--gold);
    }

    .hero p {
      font-size: 1.2rem;
      max-width: 700px;
      margin-bottom: 2.5rem;
      opacity: 0.95;
    }

    .hero-buttons {
      display: flex;
      gap: 15px;
      flex-wrap: wrap;
      justify-content: center;
    }

    .btn {
      padding: 14px 40px;
      border-radius: 50px;
      font-weight: bold;
      cursor: pointer;
      border: none;
      transition: all 0.3s;
      font-size: 1rem;
    }

    .btn:hover {
      transform: translateY(-3px);
    }

    .btn-primary {
      background-color: var(--hemba-red);
      color: white;
      box-shadow: 0 4px 15px rgba(191,0,8,0.4);
    }

    .btn-outline {
      background-color: transparent;
      border: 2px solid white;
      color: white;
    }

    /* 通用样式 */
    section {
      padding: 80px 10px;
      max-width: 1600px;
      margin: 0 auto;
    }

    .section-header {
      text-align: center;
      margin-bottom: 50px;
    }

    .section-header h3 {
      font-size: 2.2rem;
      color: var(--hemba-blue);
      font-weight: 700;
      margin-bottom: 15px;
    }

    .section-header .divider {
      width: 60px;
      height: 4px;
      background: var(--hemba-red);
      margin: 0 auto 15px;
    }

    .section-header p {
      color: var(--text-light);
      font-size: 1rem;
    }

    .bg-gray {
      background-color: var(--bg-gray);
    }

    /* 球队文化 */
    .culture-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 30px;
      max-width: 1200px;
      margin: 0 auto;
    }

    .culture-card {
      text-align: center;
      padding: 40px 30px;
      border-radius: 12px;
      background: var(--white);
      transition: all 0.3s;
      border: 2px solid transparent;
    }

    .culture-card:hover {
      border-color: var(--gold);
      box-shadow: 0 10px 30px rgba(0,0,0,0.1);
      transform: translateY(-5px);
    }

    .culture-icon {
      font-size: 3rem;
      margin-bottom: 20px;
      display: block;
    }

    .culture-title {
      font-size: 1.4rem;
      font-weight: bold;
      color: var(--hemba-blue);
      margin-bottom: 15px;
    }

    .culture-text {
      color: var(--text-light);
      font-size: 0.95rem;
      line-height: 1.8;
    }

    /* 组织架构 - 强制居中 */
    #organization {
      text-align: center !important;
      display: block !important;
      margin: 0 auto !important;
      padding: 0 20px !important;
      max-width: 100% !important;
    }

    .org-section {
      margin-bottom: 40px;
      text-align: center !important;
      width: 100%;
      max-width: 1200px;
      margin-left: auto !important;
      margin-right: auto !important;
      display: flex !important;
      flex-direction: column !important;
      align-items: center !important;
      justify-content: center !important;
    }

    /* 移动端额外居中规则 */
    @media (max-width: 768px) {
      #organization {
        text-align: center !important;
        padding: 0 15px !important;
      }

      .org-section {
        text-align: center !important;
        padding: 0 !important;
      }

      .card-grid {
        justify-items: center !important;
        text-align: center !important;
      }
    }

    .org-section-title {
      text-align: center;
      margin-bottom: 35px;
      position: relative;
    }

    .org-section-title h4 {
      font-size: 1.6rem;
      font-weight: bold;
      display: inline-block;
      padding-bottom: 12px;
      position: relative;
    }

    .org-section-title h4::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      height: 3px;
      border-radius: 2px;
    }

    .org-section-title.gold h4 {
      color: var(--gold);
    }

    .org-section-title.gold h4::after {
      background: var(--gold);
    }

    .org-section-title.red h4 {
      color: var(--hemba-red);
    }

    .org-section-title.red h4::after {
      background: var(--hemba-red);
    }

    .org-section-title.blue h4 {
      color: var(--hemba-blue);
    }

    .org-section-title.blue h4::after {
      background: var(--hemba-blue);
    }

    .org-section-subtitle {
      font-size: 0.9rem;
      color: var(--text-light);
      margin-top: 8px;
    }

    .card-grid {
      display: flex !important;
      flex-wrap: wrap !important;
      gap: 20px !important;
      max-width: 800px !important;
      margin: 10px auto 0 !important;
      width: 100% !important;
      justify-content: center !important;
      align-items: center !important;
    }

    .member-card {
      background: white;
      padding: 30px 20px;
      border-radius: 10px;
      text-align: center;
      box-shadow: 0 5px 20px rgba(0,0,0,0.08);
      transition: all 0.3s;
      cursor: pointer;
    }

    .member-card:hover {
      transform: translateY(-8px);
      box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    }

    .card-gold {
      border-top: 4px solid var(--gold);
    }

    .card-red {
      border-top: 4px solid var(--hemba-red);
    }

    .card-blue {
      border-top: 4px solid var(--hemba-blue);
    }

    .avatar {
      width: 80px;
      height: 80px;
      background: linear-gradient(135deg, #e0e0e0, #f5f5f5);
      border-radius: 50%;
      margin: 0 auto 15px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 2rem;
      color: #999;
      border: 4px solid white;
      box-shadow: 0 0 15px rgba(0,0,0,0.1);
      overflow: hidden;
      position: relative;
    }

    .avatar img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      border-radius: 50%;
    }

    .role-badges {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 6px;
      margin-bottom: 10px;
      min-height: 28px;
    }

    .role-badge {
      display: inline-block;
      padding: 5px 12px;
      font-size: 0.72rem;
      font-weight: bold;
      border-radius: 20px;
    }

    .badge-gold {
      background: rgba(212, 175, 55, 0.15);
      color: #b89628;
      border: 1px solid rgba(212, 175, 55, 0.3);
    }

    .badge-red {
      background: rgba(191, 0, 8, 0.1);
      color: var(--hemba-red);
      border: 1px solid rgba(191, 0, 8, 0.2);
    }

    .badge-blue {
      background: rgba(0, 18, 84, 0.1);
      color: var(--hemba-blue);
      border: 1px solid rgba(0, 18, 84, 0.2);
    }

    .member-name {
      font-size: 1.2rem;
      font-weight: bold;
      margin-bottom: 5px;
      color: var(--text-main);
    }

    .member-grade {
      font-size: 0.9rem;
      color: var(--text-light);
    }

    /* 球队新闻 */
    .news-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
      gap: 25px;
      margin-bottom: 40px;
    }

    .news-card {
      background: white;
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 5px 20px rgba(0,0,0,0.08);
      transition: all 0.3s;
      cursor: pointer;
      display: flex;
      flex-direction: column;
    }

    .news-card:hover {
      transform: translateY(-8px);
      box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    }

    .news-card-cover {
      width: 100%;
      height: 200px;
      object-fit: cover;
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }

    .news-card-content {
      padding: 20px;
      flex: 1;
      display: flex;
      flex-direction: column;
    }

    .news-card-title {
      font-size: 1.1rem;
      font-weight: 700;
      color: var(--primary);
      margin-bottom: 10px;
      line-height: 1.4;
    }

    .news-card-subtitle {
      font-size: 0.9rem;
      color: #666;
      margin-bottom: 15px;
      line-height: 1.5;
      flex: 1;
    }

    .news-card-meta {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 0.85rem;
      color: #999;
      padding-top: 15px;
      border-top: 1px solid #eee;
    }

    .news-card-author {
      font-weight: 500;
    }

    .news-card-tags {
      display: flex;
      gap: 8px;
    }

    .news-card-tag {
      padding: 3px 8px;
      border-radius: 4px;
      font-size: 0.75rem;
    }

    .news-card-tag.featured {
      background: #fff3cd;
      color: #856404;
    }

    .news-card-tag.video {
      background: #d1ecf1;
      color: #0c5460;
    }

    /* 新闻详情图片 - 彻底解决大图显示问题 */
    .news-detail-images {
      width: 100%;
      max-width: 100%;
      margin: 15px 0;
      box-sizing: border-box;
      overflow: hidden;
    }
    .news-detail-images img {
      width: 100%;
      height: auto;
      max-width: 100%;
      max-height: 600px;
      display: block;
      box-sizing: border-box;
      object-fit: contain;
    }
    /* 新闻正文中的图片 */
    .news-detail-body img {
      width: 100%;
      height: auto;
      max-width: 100%;
      max-height: 600px;
      object-fit: contain;
      display: block;
      margin: 10px 0;
    }

    /* 挥杆时刻 */
    .activity-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
      gap: 20px;
      margin-bottom: 40px;
    }

    .activity-card {
      background: white;
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 5px 20px rgba(0,0,0,0.08);
      transition: all 0.3s;
      cursor: pointer;
      display: flex;
      flex-direction: column;
    }

    .activity-card:hover {
      transform: translateY(-8px);
      box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    }

    .activity-media {
      height: 280px;
      background-size: cover;
      background-position: center;
      background-color: transparent;
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .media-icon {
      position: absolute;
      top: 15px;
      left: 15px;
      background: rgba(0,0,0,0.75);
      color: white;
      padding: 6px 12px;
      border-radius: 20px;
      font-size: 0.75rem;
      font-weight: bold;
      z-index: 10;
    }

    .activity-tag {
      position: absolute;
      top: 15px;
      right: 15px;
      padding: 6px 14px;
      border-radius: 20px;
      font-size: 0.75rem;
      font-weight: bold;
      color: white;
      z-index: 10;
    }

    .tag-major {
      background-color: var(--hemba-red);
    }

    .tag-match {
      background-color: var(--hemba-blue);
    }

    .tag-daily {
      background-color: #28a745;
    }

    .play-btn {
      width: 60px;
      height: 60px;
      background: rgba(255,255,255,0.95);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.5rem;
      color: var(--hemba-red);
      box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    }

    .activity-content {
      padding: 25px;
      flex: 1;
      display: flex;
      flex-direction: column;
    }

    .activity-date {
      font-size: 0.85rem;
      color: #999;
      margin-bottom: 8px;
    }

    .activity-title {
      font-size: 1.2rem;
      font-weight: bold;
      margin-bottom: 12px;
      color: var(--text-main);
      line-height: 1.4;
    }

    .activity-desc {
      font-size: 0.95rem;
      color: #666;
      margin-bottom: 15px;
      flex-grow: 1;
      line-height: 1.6;
    }

    .activity-info {
      display: flex;
      gap: 20px;
      padding-top: 15px;
      border-top: 1px solid #eee;
      font-size: 0.85rem;
      color: var(--text-light);
      flex-wrap: wrap;
    }

    .load-more-container {
      text-align: center;
      margin-top: 20px;
    }

    .btn-load-more {
      padding: 14px 50px;
      background: var(--hemba-blue);
      color: white;
      border: none;
      border-radius: 50px;
      font-weight: bold;
      font-size: 1rem;
      cursor: pointer;
      transition: all 0.3s;
    }

    .btn-load-more:hover {
      background: var(--hemba-red);
      transform: translateY(-3px);
      box-shadow: 0 5px 20px rgba(191,0,8,0.4);
    }

    .btn-load-more:disabled {
      background: #ccc;
      cursor: not-allowed;
      transform: none;
    }

    /* 赞助商 */
    .sponsor-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
      gap: 25px;
      max-width: 1000px;
      margin: 0 auto;
    }

    .sponsor-box {
      min-height: 140px;
      background: white;
      border: 2px solid #eee;
      border-radius: 8px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 25px 20px;
      transition: all 0.3s;
      text-align: center;
      gap: 10px;
    }

    .sponsor-box:hover {
      border-color: var(--hemba-blue);
      box-shadow: 0 5px 15px rgba(0,0,0,0.1);
      transform: scale(1.05);
    }

    .sponsor-logo {
      max-width: 100%;
      max-height: 80px;
      width: auto;
      height: auto;
      object-fit: contain;
      display: block;
    }

    .sponsor-name {
      color: var(--text-main);
      font-size: 0.95rem;
      font-weight: 600;
      margin-top: 5px;
    }

    .logo-placeholder {
      color: #ccc;
      font-size: 0.85rem;
      font-weight: bold;
      display: block;
    }

    /* 悬浮微信按钮 */
    .floating-widget {
      position: fixed;
      right: 25px;
      bottom: 200px;
      transform: none;
      z-index: 990;
    }

    /* 手机端微信按钮位置调整 */
    @media (max-width: 768px) {
      .floating-widget {
        bottom: 120px; /* 调整到更合适的位置，避免过低 */
      }
    }

    .wechat-btn {
      width: 65px;
      height: 65px;
      background: #09BB07;
      color: white;
      border-radius: 50%;
      box-shadow: 0 4px 20px rgba(9,187,7,0.5);
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all 0.3s;
      font-size: 2.2rem;
      position: relative;
    }

    .wechat-btn:hover {
      transform: scale(1.1);
      box-shadow: 0 6px 25px rgba(9,187,7,0.7);
    }

    .wechat-btn img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      border-radius: 50%;
    }

    .wechat-btn::after {
      content: '联系我们';
      position: absolute;
      bottom: -28px;
      left: 50%;
      transform: translateX(-50%);
      font-size: 0.7rem;
      white-space: nowrap;
      color: #666;
      background: white;
      padding: 4px 8px;
      border-radius: 4px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    
    /* 页脚 */
    footer {
      background: var(--hemba-blue);
      color: white;
      padding: 60px 20px 30px;
    }

    .footer-container {
      max-width: 1200px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 40px;
      margin-bottom: 40px;
    }

    .footer-col h4 {
      color: var(--gold);
      margin-bottom: 20px;
      font-size: 1.1rem;
    }

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

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

    .footer-links-list a {
      color: rgba(255,255,255,0.7);
      font-size: 0.9rem;
      text-decoration: none;
      transition: color 0.3s;
    }

    .footer-links-list a:hover {
      color: white;
    }

    .social-btns {
      display: flex;
      gap: 15px;
      flex-wrap: wrap;
    }

    .social-btn {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 10px 18px;
      background: rgba(255,255,255,0.1);
      border-radius: 25px;
      border: 1px solid rgba(255,255,255,0.2);
      font-size: 0.85rem;
      cursor: pointer;
      transition: all 0.3s;
    }

    .social-btn:hover {
      background: rgba(255,255,255,0.2);
    }

    .copyright {
      text-align: center;
      font-size: 0.85rem;
      opacity: 0.7;
      border-top: 1px solid rgba(255,255,255,0.1);
      padding-top: 25px;
      margin-top: 20px;
    }

    /* 模态框 */
    .modal-overlay {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0,0,0,0.85);
      z-index: 2000;
      overflow-y: auto;
      padding: 20px;
    }

    .modal-overlay.show {
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .modal-content {
      background: white;
      width: 100%;
      max-width: 900px;
      border-radius: 12px;
      padding: 40px;
      position: relative;
      animation: slideUp 0.3s ease;
      max-height: 90vh;
      overflow-y: auto;
    }

    .modal-center {
      max-width: 450px;
      text-align: center;
    }

    @keyframes slideUp {
      from {
        transform: translateY(30px);
        opacity: 0;
      }
      to {
        transform: translateY(0);
        opacity: 1;
      }
    }

    .close-modal {
      position: absolute;
      top: 20px;
      right: 20px;
      font-size: 2rem;
      cursor: pointer;
      color: #999;
      background: none;
      border: none;
      width: 40px;
      height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      transition: all 0.3s;
    }

    .close-modal:hover {
      color: #333;
      background: #f0f0f0;
    }

    .modal-title {
      font-size: 1.8rem;
      font-weight: bold;
      color: var(--hemba-blue);
      margin-bottom: 10px;
    }

    .modal-subtitle {
      font-size: 1rem;
      color: var(--hemba-red);
      margin-bottom: 25px;
      font-weight: 600;
    }

    .modal-body {
      font-size: 1rem;
      color: #555;
      line-height: 1.8;
    }

    .modal-media-container {
      width: 100%;
      margin-bottom: 25px;
      border-radius: 8px;
      overflow: hidden;
    }

    .modal-media-container img {
      width: 100%;
      height: auto;
      display: block;
    }

    .modal-media-container iframe {
      width: 100%;
      min-height: 450px;
      border: none;
      display: block;
    }

    .qr-container {
      width: 220px;
      height: 220px;
      background: #f5f5f5;
      margin: 0 auto 25px;
      display: flex;
      align-items: center;
      justify-content: center;
      border: 2px dashed #ddd;
      border-radius: 8px;
    }

    .qr-container img {
      width: 100%;
      height: 100%;
      object-fit: contain;
    }

    /* 图片轮播样式 */
    .image-carousel {
      position: relative;
      width: 100%;
      border-radius: 8px;
      overflow: hidden;
      background: #f5f5f5;
    }

    .carousel-container {
      position: relative;
      width: 100%;
      height: 500px;
      overflow: hidden;
      background: transparent;
    }

    .carousel-item {
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .carousel-controls {
      position: absolute;
      top: 50%;
      left: 0;
      right: 0;
      transform: translateY(-50%);
      display: flex;
      justify-content: space-between;
      padding: 0 20px;
      z-index: 10;
    }

    .carousel-btn {
      background: rgba(0, 0, 0, 0.5);
      color: white;
      border: none;
      border-radius: 50%;
      width: 40px;
      height: 40px;
      font-size: 18px;
      cursor: pointer;
      transition: all 0.3s;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .carousel-btn:hover:not(:disabled) {
      background: rgba(0, 0, 0, 0.8);
      transform: scale(1.1);
    }

    .carousel-btn:disabled {
      opacity: 0.3;
      cursor: not-allowed;
    }

    .carousel-indicators {
      position: absolute;
      bottom: 20px;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      gap: 8px;
      z-index: 10;
    }

    .carousel-indicator {
      width: 12px;
      height: 12px;
      border-radius: 50%;
      border: 2px solid white;
      background: rgba(255, 255, 255, 0.3);
      cursor: pointer;
      transition: all 0.3s;
      margin: 0 4px;
      font-size: 0;
    }

    .carousel-indicator.active {
      background: white;
      transform: scale(1.2);
    }

    .carousel-counter {
      position: absolute;
      top: 20px;
      right: 20px;
      background: rgba(0, 0, 0, 0.7);
      color: white;
      padding: 8px 16px;
      border-radius: 20px;
      font-size: 0.9rem;
      font-weight: bold;
      z-index: 10;
    }

    /* 移动端轮播适配 */
    @media (max-width: 768px) {
      .carousel-container {
        height: 250px;
      }

      .carousel-item img {
        height: 250px !important;
      }

      .carousel-controls {
        padding: 0 10px;
      }

      .carousel-btn {
        width: 30px;
        height: 30px;
        font-size: 14px;
      }

      .carousel-indicators {
        bottom: 15px;
      }

      .carousel-indicator {
        width: 10px;
        height: 10px;
      }

      .carousel-counter {
        top: 15px;
        right: 15px;
        padding: 6px 12px;
        font-size: 0.8rem;
      }
    }

    /* 卡片轮播样式 */
    .card-carousel {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      overflow: hidden;
      border-radius: 12px;
      background: transparent;
    }

    .carousel-image {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
      transition: opacity 0.5s ease-in-out;
    }

    /* 为竖屏图片添加特殊处理 - 使用更高优先级 */
    .carousel-image.portrait {
      object-fit: contain !important;
      background: #f0f0f0 !important;
      width: 100% !important;
      height: 100% !important;
    }

    /* 单张图片的竖屏处理 */
    .single-image.portrait {
      object-fit: contain !important;
      background: #f0f0f0 !important;
      border: 1px solid #dee2e6 !important;
      padding: 10px;
      box-sizing: border-box;
    }

    /* 图片容器背景处理 */
    .card-carousel {
      background: transparent;
      position: relative;
    }

    .card-carousel::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: radial-gradient(circle at center, rgba(255,255,255,0.05) 0%, transparent 70%);
      z-index: 1;
      pointer-events: none;
    }

    .carousel-image {
      z-index: 2;
    }

    .carousel-dots {
      position: absolute;
      bottom: 15px;
      right: 15px;
      display: flex;
      gap: 6px;
      z-index: 10;
    }

    .carousel-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.4);
      border: 1px solid rgba(255, 255, 255, 0.6);
      cursor: pointer;
      transition: all 0.3s ease;
    }

    .carousel-dot.active {
      background: rgba(255, 255, 255, 0.9);
      transform: scale(1.2);
    }

    .carousel-card {
      position: relative;
    }

    .carousel-card .activity-media {
      position: relative;
      overflow: hidden;
    }

    /* 单张图片容器 */
    .single-image-container {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: transparent;
      border-radius: 12px;
      overflow: hidden;
    }

    .single-image-container::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: radial-gradient(circle at center, rgba(255,255,255,0.05) 0%, transparent 70%);
      z-index: 1;
      pointer-events: none;
    }

    .single-card-image {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: 2;
      transition: opacity 0.3s ease;
      object-fit: cover;
    }

    /* 竖屏图片特殊处理 */
    .single-card-image.portrait {
      object-fit: contain !important;
      background: #f0f0f0 !important;
    }

    /* 详情页图片优化 */
    .detail-carousel-image {
      border-radius: 8px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .detail-carousel-image.portrait {
      background: #f0f0f0 !important;
      border: 1px solid #dee2e6;
    }

    /* 图片容器优化 */
    .carousel-container {
      background: transparent;
      border-radius: 8px;
      position: relative;
    }

    /* 移动端图片优化 */
    @media (max-width: 768px) {
      .carousel-image {
        object-fit: cover;
      }

      .carousel-image.portrait {
        object-fit: contain;
      }

      .detail-carousel-image {
        height: 300px !important;
      }
    }

    /* 移动端适配 */
    @media (max-width: 768px) {
      header {
        height: 70px;
      }

      .logo-img {
        height: 45px;
      }

      .logo-title {
        font-size: 1rem;
      }

      .logo-subtitle {
        font-size: 0.7rem;
      }

      .mobile-menu-btn {
        display: block;
      }

      .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
      }

      .nav-links.show {
        display: flex;
      }

      .nav-links a {
        padding: 15px 0;
        border-bottom: 1px solid #eee;
        text-align: center;
      }

      .nav-links a::after {
        display: none;
      }

      .hero {
        margin-top: 70px;
        min-height: 80vh;
        padding: 30px 20px;
      }

      .hero h2 {
        font-size: 2rem;
        margin-top: 60px;
      }

      .hero p {
        font-size: 1rem;
        margin-top: 0px;
      }

      .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
      }

      .btn {
        width: 100%;
      }

      section {
        padding: 10px 20px;
      }

      .section-header h3 {
        font-size: 1.8rem;
      }

      .org-section-title h4 {
        font-size: 1.3rem;
      }

      .activity-grid {
        grid-template-columns: 1fr;
      }

      .card-grid {
        gap: 12px !important;
        max-width: 100% !important;
      }

      .member-card {
        padding: 20px 15px;
      }

      .avatar {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
      }

      .sponsor-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
      }

      .floating-widget {
        right: 25px;
        bottom: 200px; /* 确保微信按钮位置一致 */
        transform: none;
        z-index: 990;
      }

      /* 手机端微信按钮位置调整 */
      @media (max-width: 768px) {
        .floating-widget {
          bottom: 50px; /* 调整到更合适的位置，避免过低 */
        }
      }

      .wechat-btn {
        width: 55px;
        height: 55px;
        font-size: 1.8rem;
      }

      .modal-content {
        padding: 30px 20px;
      }

      .modal-title {
        font-size: 1.5rem;
      }

      .modal-media-container iframe {
        min-height: 300px;
      }

      /* 移除手机端首页按钮的背景颜色 */
      .hero .btn-primary {
        background-color: transparent !important;
        border: 2px solid white !important;
        color: white !important;
        box-shadow: none !important;
      }

      .hero .btn-outline {
        background-color: transparent !important;
        border: 2px solid white !important;
        color: white !important;
      }

      /* 手机端hero背景 - 图片在上，文字紧随下方 */
      .hero {
        background: url('/img/background.jpg');
        background-size: contain;
        background-position: top center;
        background-repeat: no-repeat;
        background-color: white;
        height: auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 0 20px 20px;
        color: var(--text-main) !important; /* 文字改为深色 */
      }

      .hero h2 {
        color: var(--hemba-blue) !important; /* 标题改为蓝色 */
        text-shadow: none !important;
        margin-top: 230px; /* 增加顶部边距，避免与图片重叠 */
      }

      .hero h2 span {
        color: var(--hemba-red) !important; /* 标题span改为红色 */
      }

      .hero p {
        color: var(--text-light) !important; /* 副标题文字改为深灰色 */
      }

      /* 手机端按钮样式 - 在白色背景上清晰可见 */
      .hero .btn-primary {
        background-color: var(--hemba-blue) !important;
        border: 2px solid var(--hemba-blue) !important;
        color: white !important;
        box-shadow: 0 4px 15px rgba(0, 18, 84, 0.3) !important;
      }

      .hero .btn-outline {
        background-color: transparent !important;
        border: 2px solid var(--hemba-red) !important;
        color: var(--hemba-red) !important;
      }

      .hero .btn-outline:hover {
        background-color: var(--hemba-red) !important;
        color: white !important;
      }

      /* 确保图片完全显示，不被裁切 */
      body {
        background-color: white;
      }
    }
