<!doctype html>
<html lang="zh-CN">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>百度一下,你就知道</title>
    <style>
      * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
      }
      body {
        font-family:
          "Microsoft YaHei",
          -apple-system,
          BlinkMacSystemFont,
          sans-serif;
        background: #fff;
        min-height: 200vh;
        transition:
          background 0.3s,
          color 0.3s;
      }
      body.dark-mode {
        background: #1a1a2e;
        color: #e0e0e0;
      }
      body.dark-mode .header {
        background: #16213e;
        border-bottom-color: #0f3460;
      }
      body.dark-mode .nav-links a {
        color: #b0b0b0;
      }
      body.dark-mode .nav-links a:hover {
        background: #0f3460;
      }
      body.dark-mode .hero-logo {
        color: #6e8efb;
      }
      body.dark-mode .news-section h2 {
        color: #e0e0e0;
        border-bottom-color: #6e8efb;
      }
      body.dark-mode .news-item:hover {
        background: #16213e;
      }
      body.dark-mode .news-item .news-info h3 {
        color: #d0d0d0;
      }
      body.dark-mode .quick-links {
        background: #16213e;
      }
      body.dark-mode .quick-links h3 {
        color: #e0e0e0;
      }
      body.dark-mode .quick-link-item .ql-text {
        color: #c0c0c0;
      }
      body.dark-mode .quick-link-item:hover {
        background: #0f3460;
      }
      body.dark-mode .recommend-section h2 {
        color: #e0e0e0;
      }
      body.dark-mode .recommend-card {
        background: #16213e;
      }
      body.dark-mode .recommend-card .card-text {
        color: #c0c0c0;
      }
      body.dark-mode .knowledge-section {
        background: #16213e;
      }
      body.dark-mode .knowledge-section h2 {
        color: #e0e0e0;
      }
      body.dark-mode .knowledge-item .ki-title {
        color: #d0d0d0;
      }
      body.dark-mode .knowledge-item {
        border-bottom-color: #0f3460;
      }
      body.dark-mode .stock-ticker {
        background: #16213e;
      }
      body.dark-mode .stock-ticker h3 {
        color: #e0e0e0;
      }
      body.dark-mode .stock-item {
        border-bottom-color: #0f3460;
      }
      body.dark-mode .stock-item .stock-name {
        color: #d0d0d0;
      }
      body.dark-mode .weather-forecast {
        background: linear-gradient(135deg, #0f3460, #533483);
      }
      body.dark-mode .gallery-section {
        background: #16213e;
      }
      body.dark-mode .gallery-section h2 {
        color: #e0e0e0;
      }
      body.dark-mode .shopping-section {
        background: #16213e;
      }
      body.dark-mode .shopping-section h2 {
        color: #e0e0e0;
      }
      body.dark-mode .shopping-card {
        background: #1a1a2e;
        border-color: #0f3460;
      }
      body.dark-mode .shopping-card .sc-title {
        color: #d0d0d0;
      }
      body.dark-mode .shopping-card .sc-price {
        color: #f5222d;
      }
      body.dark-mode .games-section {
        background: #16213e;
      }
      body.dark-mode .games-section h2 {
        color: #e0e0e0;
      }
      body.dark-mode .game-card {
        background: #1a1a2e;
      }
      body.dark-mode .game-card .gc-title {
        color: #d0d0d0;
      }
      body.dark-mode .game-card .gc-desc {
        color: #888;
      }
      body.dark-mode .footer {
        background: #0f0f1a;
      }
      body.dark-mode .footer p {
        color: #555;
      }
      body.dark-mode .search-suggestions {
        background: #16213e;
        border-color: #0f3460;
      }
      body.dark-mode .search-suggestions .ss-item {
        color: #c0c0c0;
      }
      body.dark-mode .search-suggestions .ss-item:hover {
        background: #0f3460;
      }
      body.dark-mode .profile-dropdown {
        background: #16213e;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
      }
      body.dark-mode .profile-dropdown a {
        color: #c0c0c0;
      }
      body.dark-mode .profile-dropdown a:hover {
        background: #0f3460;
      }
      body.dark-mode .ticker-bar {
        background: #0f0f1a;
        border-bottom-color: #0f3460;
      }
      body.dark-mode .ticker-item .ticker-name {
        color: #999;
      }
      body.dark-mode .tech-section {
        background: #16213e;
      }
      body.dark-mode .tech-section h2 {
        color: #e0e0e0;
      }
      body.dark-mode .tech-item {
        border-bottom-color: #0f3460;
      }
      body.dark-mode .tech-item .ti-title {
        color: #d0d0d0;
      }
      body.dark-mode .lightbox-overlay {
        background: rgba(0, 0, 0, 0.9);
      }
      .header {
        background: #fff;
        padding: 15px 20px;
        border-bottom: 1px solid #e5e5e5;
        position: sticky;
        top: 0;
        z-index: 100;
      }
      .header-inner {
        max-width: 1200px;
        margin: 0 auto;
        display: flex;
        align-items: center;
        gap: 20px;
      }
      .logo {
        font-size: 28px;
        font-weight: bold;
        color: #4e6ef2;
        cursor: pointer;
        flex-shrink: 0;
      }
      .search-bar {
        flex: 1;
        max-width: 640px;
        display: flex;
        border: 2px solid #4e6ef2;
        border-radius: 10px;
        overflow: hidden;
        position: relative;
      }
      .search-bar input {
        flex: 1;
        padding: 10px 16px;
        font-size: 16px;
        border: none;
        outline: none;
      }
      .search-bar button {
        padding: 10px 30px;
        background: #4e6ef2;
        color: white;
        border: none;
        font-size: 16px;
        cursor: pointer;
      }
      .search-bar button:hover {
        background: #4662d9;
      }
      .search-suggestions {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border: 1px solid #e5e5e5;
        border-top: none;
        border-radius: 0 0 10px 10px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        z-index: 200;
        display: none;
      }
      .search-suggestions.active {
        display: block;
      }
      .search-suggestions .ss-item {
        padding: 10px 16px;
        cursor: pointer;
        font-size: 14px;
        color: #333;
        transition: background 0.15s;
      }
      .search-suggestions .ss-item:hover {
        background: #f5f5f5;
      }
      .search-suggestions .ss-item .ss-icon {
        margin-right: 8px;
        color: #999;
      }
      .search-suggestions .ss-item .ss-highlight {
        color: #4e6ef2;
      }
      .nav-links {
        display: flex;
        gap: 20px;
        margin-left: auto;
        align-items: center;
      }
      .nav-links a {
        color: #333;
        text-decoration: none;
        font-size: 14px;
        padding: 8px 12px;
        border-radius: 6px;
        transition: background 0.2s;
      }
      .nav-links a:hover {
        background: #f5f5f5;
      }
      .header-actions {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-left: 15px;
      }
      .header-action-btn {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        border: none;
        background: transparent;
        cursor: pointer;
        font-size: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.2s;
        position: relative;
        color: #666;
      }
      .header-action-btn:hover {
        background: #f5f5f5;
      }
      .notification-badge {
        position: absolute;
        top: 2px;
        right: 2px;
        width: 16px;
        height: 16px;
        background: #f5222d;
        color: white;
        font-size: 10px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
      }
      .dark-mode-btn {
        font-size: 16px;
      }
      .profile-btn {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: linear-gradient(135deg, #4e6ef2, #764ba2);
        color: white;
        border: none;
        cursor: pointer;
        font-size: 14px;
        font-weight: bold;
        display: flex;
        align-items: center;
        justify-content: center;
      }
      .profile-dropdown {
        position: absolute;
        top: 50px;
        right: 0;
        background: #fff;
        border-radius: 10px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
        min-width: 180px;
        padding: 8px 0;
        z-index: 300;
        display: none;
      }
      .profile-dropdown.active {
        display: block;
      }
      .profile-dropdown .pd-header {
        padding: 15px 16px;
        border-bottom: 1px solid #f0f0f0;
        font-size: 14px;
        color: #333;
        font-weight: bold;
      }
      .profile-dropdown a {
        display: block;
        padding: 10px 16px;
        color: #333;
        text-decoration: none;
        font-size: 14px;
        transition: background 0.15s;
      }
      .profile-dropdown a:hover {
        background: #f5f5f5;
      }
      .ticker-bar {
        background: #fafafa;
        padding: 8px 20px;
        border-bottom: 1px solid #eee;
        overflow: hidden;
        max-width: 100%;
      }
      .ticker-inner {
        display: flex;
        gap: 30px;
        animation: tickerScroll 30s linear infinite;
        white-space: nowrap;
      }
      @keyframes tickerScroll {
        0% {
          transform: translateX(0);
        }
        100% {
          transform: translateX(-50%);
        }
      }
      .ticker-item {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 13px;
      }
      .ticker-item .ticker-name {
        color: #999;
      }
      .ticker-item .ticker-price {
        font-weight: bold;
      }
      .ticker-item .ticker-up {
        color: #f5222d;
      }
      .ticker-item .ticker-down {
        color: #52c41a;
      }
      .hero {
        text-align: center;
        padding: 80px 20px 40px;
      }
      .hero-logo {
        font-size: 56px;
        font-weight: bold;
        color: #4e6ef2;
        margin-bottom: 30px;
      }
      .hero-search {
        max-width: 640px;
        margin: 0 auto;
        position: relative;
      }
      .hot-words {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        margin-top: 20px;
      }
      .hot-word {
        padding: 6px 16px;
        background: #f5f5f5;
        border-radius: 20px;
        font-size: 13px;
        color: #666;
        cursor: pointer;
        transition: all 0.2s;
      }
      .hot-word:hover {
        background: #e8f0fe;
        color: #4e6ef2;
      }
      .hot-word.hot {
        color: #f5222d;
      }
      .content-area {
        max-width: 1200px;
        margin: 0 auto;
        padding: 30px 20px;
        display: grid;
        grid-template-columns: 1fr 300px;
        gap: 30px;
      }
      .main-content {
        min-width: 0;
      }
      .sidebar {
      }
      .news-section {
        margin-bottom: 30px;
      }
      .news-section h2 {
        font-size: 18px;
        color: #333;
        margin-bottom: 15px;
        padding-bottom: 10px;
        border-bottom: 2px solid #4e6ef2;
      }
      .news-item {
        padding: 12px 0;
        border-bottom: 1px solid #f0f0f0;
        display: flex;
        gap: 15px;
        cursor: pointer;
      }
      .news-item:hover {
        background: #fafafa;
      }
      .news-item .news-img {
        width: 120px;
        height: 80px;
        background: linear-gradient(135deg, #667eea, #764ba2);
        border-radius: 6px;
        flex-shrink: 0;
      }
      .news-item .news-info h3 {
        font-size: 15px;
        color: #333;
        margin-bottom: 8px;
        line-height: 1.4;
      }
      .news-item .news-info p {
        font-size: 13px;
        color: #999;
      }
      .quick-links {
        background: #f5f7fa;
        border-radius: 10px;
        padding: 20px;
      }
      .quick-links h3 {
        font-size: 16px;
        color: #333;
        margin-bottom: 15px;
      }
      .quick-link-item {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px;
        border-radius: 8px;
        cursor: pointer;
        transition: background 0.2s;
        margin-bottom: 5px;
      }
      .quick-link-item:hover {
        background: #e8f0fe;
      }
      .quick-link-item .ql-icon {
        width: 36px;
        height: 36px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
      }
      .quick-link-item .ql-text {
        font-size: 14px;
        color: #333;
      }
      .recommend-section {
        margin-bottom: 30px;
      }
      .recommend-section h2 {
        font-size: 18px;
        color: #333;
        margin-bottom: 15px;
      }
      .recommend-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
      }
      .recommend-card {
        border-radius: 10px;
        overflow: hidden;
        background: #f8f9fa;
        cursor: pointer;
        transition:
          transform 0.2s,
          box-shadow 0.2s;
      }
      .recommend-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
      }
      .recommend-card .card-img {
        height: 100px;
        background: linear-gradient(135deg, #a8edea, #fed6e3);
      }
      .recommend-card:nth-child(2) .card-img {
        background: linear-gradient(135deg, #ffecd2, #fcb69f);
      }
      .recommend-card:nth-child(3) .card-img {
        background: linear-gradient(135deg, #a18cd1, #fbc2eb);
      }
      .recommend-card:nth-child(4) .card-img {
        background: linear-gradient(135deg, #fad0c4, #ffd1ff);
      }
      .recommend-card .card-text {
        padding: 10px;
        font-size: 13px;
        color: #333;
      }
      .weather-widget {
        background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
        border-radius: 10px;
        padding: 20px;
        color: white;
        margin-bottom: 20px;
      }
      .weather-widget .temp {
        font-size: 36px;
        font-weight: bold;
      }
      .weather-widget .desc {
        opacity: 0.9;
        margin-top: 5px;
      }
      .weather-widget .location {
        font-size: 13px;
        opacity: 0.8;
        margin-top: 10px;
      }
      .weather-forecast {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border-radius: 10px;
        padding: 15px;
        color: white;
        margin-bottom: 20px;
      }
      .weather-forecast h4 {
        font-size: 14px;
        margin-bottom: 10px;
        opacity: 0.9;
      }
      .forecast-row {
        display: flex;
        justify-content: space-between;
        text-align: center;
        font-size: 12px;
      }
      .forecast-day {
        flex: 1;
        padding: 5px 2px;
      }
      .forecast-day .fd-icon {
        font-size: 18px;
        margin: 4px 0;
      }
      .forecast-day .fd-temp {
        font-weight: bold;
        font-size: 13px;
      }
      .forecast-day .fd-label {
        opacity: 0.8;
      }
      .stock-ticker {
        background: #f5f7fa;
        border-radius: 10px;
        padding: 20px;
        margin-bottom: 20px;
      }
      .stock-ticker h3 {
        font-size: 16px;
        color: #333;
        margin-bottom: 15px;
      }
      .stock-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 0;
        border-bottom: 1px solid #eee;
        font-size: 13px;
      }
      .stock-item:last-child {
        border-bottom: none;
      }
      .stock-item .stock-name {
        color: #333;
        font-weight: 500;
      }
      .stock-item .stock-price {
        font-weight: bold;
      }
      .stock-item .stock-up {
        color: #f5222d;
      }
      .stock-item .stock-down {
        color: #52c41a;
      }
      .stock-item .stock-change {
        font-size: 12px;
      }
      .gallery-section {
        background: white;
        border-radius: 12px;
        padding: 25px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
        margin-bottom: 20px;
      }
      .gallery-section h2 {
        font-size: 18px;
        color: #333;
        margin-bottom: 15px;
      }
      .gallery-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
      }
      .gallery-item {
        height: 120px;
        border-radius: 8px;
        cursor: pointer;
        transition: transform 0.2s;
        position: relative;
        overflow: hidden;
      }
      .gallery-item:hover {
        transform: scale(1.03);
      }
      .gallery-item .gi-overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 8px;
        background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
        color: white;
        font-size: 12px;
      }
      .lightbox-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.85);
        z-index: 1000;
        display: none;
        align-items: center;
        justify-content: center;
      }
      .lightbox-overlay.active {
        display: flex;
      }
      .lightbox-content {
        max-width: 80%;
        max-height: 80%;
        border-radius: 10px;
        position: relative;
      }
      .lightbox-content .lb-image {
        width: 100%;
        height: 400px;
        border-radius: 10px;
      }
      .lightbox-content .lb-caption {
        text-align: center;
        color: white;
        margin-top: 15px;
        font-size: 16px;
      }
      .lightbox-close {
        position: absolute;
        top: -40px;
        right: 0;
        color: white;
        font-size: 28px;
        cursor: pointer;
        background: none;
        border: none;
      }
      .lightbox-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        color: white;
        font-size: 36px;
        cursor: pointer;
        background: rgba(255, 255, 255, 0.15);
        border: none;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
      }
      .lightbox-nav:hover {
        background: rgba(255, 255, 255, 0.3);
      }
      .lightbox-prev {
        left: -60px;
      }
      .lightbox-next {
        right: -60px;
      }
      .shopping-section {
        background: white;
        border-radius: 12px;
        padding: 25px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
        margin-bottom: 20px;
      }
      .shopping-section h2 {
        font-size: 18px;
        color: #333;
        margin-bottom: 15px;
      }
      .shopping-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
      }
      .shopping-card {
        border: 1px solid #eee;
        border-radius: 10px;
        overflow: hidden;
        cursor: pointer;
        transition:
          transform 0.2s,
          box-shadow 0.2s;
        background: #fff;
      }
      .shopping-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
      }
      .shopping-card .sc-img {
        height: 120px;
      }
      .shopping-card .sc-info {
        padding: 12px;
      }
      .shopping-card .sc-title {
        font-size: 13px;
        color: #333;
        margin-bottom: 6px;
      }
      .shopping-card .sc-price {
        font-size: 16px;
        color: #f5222d;
        font-weight: bold;
      }
      .shopping-card .sc-original {
        font-size: 12px;
        color: #999;
        text-decoration: line-through;
        margin-left: 6px;
      }
      .shopping-card .sc-sold {
        font-size: 11px;
        color: #999;
        margin-top: 4px;
      }
      .games-section {
        background: white;
        border-radius: 12px;
        padding: 25px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
        margin-bottom: 20px;
      }
      .games-section h2 {
        font-size: 18px;
        color: #333;
        margin-bottom: 15px;
      }
      .games-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
      }
      .game-card {
        border-radius: 10px;
        overflow: hidden;
        cursor: pointer;
        transition: transform 0.2s;
        background: #f8f9fa;
      }
      .game-card:hover {
        transform: translateY(-3px);
      }
      .game-card .gc-img {
        height: 100px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 40px;
      }
      .game-card .gc-info {
        padding: 12px;
      }
      .game-card .gc-title {
        font-size: 14px;
        color: #333;
        font-weight: bold;
        margin-bottom: 4px;
      }
      .game-card .gc-desc {
        font-size: 12px;
        color: #999;
      }
      .tech-section {
        background: white;
        border-radius: 12px;
        padding: 25px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
        margin-bottom: 20px;
      }
      .tech-section h2 {
        font-size: 18px;
        color: #333;
        margin-bottom: 15px;
        padding-bottom: 10px;
        border-bottom: 2px solid #52c41a;
      }
      .tech-item {
        display: flex;
        gap: 15px;
        padding: 15px 0;
        border-bottom: 1px solid #f0f0f0;
        cursor: pointer;
      }
      .tech-item:last-child {
        border-bottom: none;
      }
      .tech-item .ti-icon {
        width: 48px;
        height: 48px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        flex-shrink: 0;
      }
      .tech-item .ti-content {
        flex: 1;
      }
      .tech-item .ti-title {
        font-size: 15px;
        color: #333;
        margin-bottom: 4px;
      }
      .tech-item .ti-title:hover {
        color: #4e6ef2;
      }
      .tech-item .ti-summary {
        font-size: 13px;
        color: #999;
        line-height: 1.5;
      }
      .footer {
        background: #f5f5f5;
        padding: 30px 20px;
        text-align: center;
        margin-top: 40px;
      }
      .footer-links {
        display: flex;
        justify-content: center;
        gap: 20px;
        margin-bottom: 15px;
        flex-wrap: wrap;
      }
      .footer-links a {
        color: #999;
        text-decoration: none;
        font-size: 13px;
      }
      .footer-links a:hover {
        color: #4e6ef2;
      }
      .footer p {
        color: #bbb;
        font-size: 12px;
      }
      .footer-columns {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        max-width: 900px;
        margin: 0 auto 25px;
        text-align: left;
      }
      .footer-col h4 {
        font-size: 14px;
        color: #333;
        margin-bottom: 12px;
      }
      .footer-col a {
        display: block;
        color: #999;
        text-decoration: none;
        font-size: 12px;
        padding: 3px 0;
      }
      .footer-col a:hover {
        color: #4e6ef2;
      }
      .more-content {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px 40px;
      }
      .knowledge-section {
        background: white;
        border-radius: 12px;
        padding: 25px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
        margin-bottom: 20px;
      }
      .knowledge-section h2 {
        font-size: 18px;
        margin-bottom: 15px;
        color: #333;
      }
      .knowledge-item {
        display: flex;
        gap: 15px;
        padding: 15px 0;
        border-bottom: 1px solid #f0f0f0;
      }
      .knowledge-item:last-child {
        border-bottom: none;
      }
      .knowledge-item .ki-num {
        width: 24px;
        height: 24px;
        background: #ff4d4f;
        color: white;
        border-radius: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        font-weight: bold;
        flex-shrink: 0;
        margin-top: 2px;
      }
      .knowledge-item:nth-child(n + 4) .ki-num {
        background: #999;
      }
      .knowledge-item .ki-title {
        font-size: 15px;
        color: #333;
        cursor: pointer;
      }
      .knowledge-item .ki-title:hover {
        color: #4e6ef2;
      }
      .knowledge-item .ki-meta {
        font-size: 12px;
        color: #999;
        margin-top: 5px;
      }
      .live-section {
        background: white;
        border-radius: 12px;
        padding: 25px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
        margin-bottom: 20px;
      }
      .live-section h2 {
        font-size: 18px;
        color: #333;
        margin-bottom: 15px;
        padding-bottom: 10px;
        border-bottom: 2px solid #f5222d;
      }
      .live-item {
        display: flex;
        gap: 15px;
        padding: 12px 0;
        border-bottom: 1px solid #f0f0f0;
        align-items: center;
      }
      .live-item:last-child {
        border-bottom: none;
      }
      .live-item .li-badge {
        background: #f5222d;
        color: white;
        font-size: 11px;
        padding: 2px 8px;
        border-radius: 4px;
        flex-shrink: 0;
        animation: livePulse 2s infinite;
      }
      @keyframes livePulse {
        0%,
        100% {
          opacity: 1;
        }
        50% {
          opacity: 0.6;
        }
      }
      .live-item .li-title {
        font-size: 14px;
        color: #333;
        flex: 1;
        cursor: pointer;
      }
      .live-item .li-title:hover {
        color: #4e6ef2;
      }
      .live-item .li-viewers {
        font-size: 12px;
        color: #999;
        flex-shrink: 0;
      }
    </style>
  </head>
  <body>
    <div class="header">
      <div class="header-inner">
        <div class="logo">百度</div>
        <div class="search-bar" id="headerSearchBar">
          <input
            type="text"
            placeholder="输入搜索内容"
            id="searchInput"
            autocomplete="off"
          />
          <button onclick="doSearch()">百度一下</button>
          <div class="search-suggestions" id="searchSuggestions"></div>
        </div>
        <div class="nav-links">
          <a href="#">新闻</a>
          <a href="#">hao123</a>
          <a href="#">地图</a>
          <a href="#">贴吧</a>
          <a href="#">视频</a>
          <a href="#">图片</a>
        </div>
        <div class="header-actions" style="position: relative">
          <button
            class="header-action-btn dark-mode-btn"
            id="darkModeBtn"
            onclick="toggleDarkMode()"
          >
            &#9790;
          </button>
          <button
            class="header-action-btn"
            id="settingsBtn"
            onclick="openSettings()"
          >
            &#9881;
          </button>
          <button class="header-action-btn" id="notifBtn">
            &#128276;
            <span class="notification-badge" id="notifBadge">5</span>
          </button>
          <button class="profile-btn" id="profileBtn" onclick="toggleProfile()">
            &#128100;
          </button>
          <div class="profile-dropdown" id="profileDropdown">
            <div class="pd-header">百度用户</div>
            <a href="#">&#127968; 我的主页</a>
            <a href="#">&#128196; 我的收藏</a>
            <a href="#">&#128100; 账号设置</a>
            <a href="#">&#128179; 我的钱包</a>
            <a href="#">&#128221; 历史记录</a>
            <a href="#">&#128682; 退出登录</a>
          </div>
        </div>
      </div>
    </div>
    <div class="ticker-bar">
      <div class="ticker-inner">
        <div class="ticker-item">
          <span class="ticker-name">上证指数</span
          ><span class="ticker-price ticker-up">3,342.58</span
          ><span class="ticker-up">+1.23%</span>
        </div>
        <div class="ticker-item">
          <span class="ticker-name">深证成指</span
          ><span class="ticker-price ticker-up">11,287.34</span
          ><span class="ticker-up">+0.87%</span>
        </div>
        <div class="ticker-item">
          <span class="ticker-name">创业板指</span
          ><span class="ticker-price ticker-down">2,198.76</span
          ><span class="ticker-down">-0.45%</span>
        </div>
        <div class="ticker-item">
          <span class="ticker-name">恒生指数</span
          ><span class="ticker-price ticker-up">18,456.23</span
          ><span class="ticker-up">+0.56%</span>
        </div>
        <div class="ticker-item">
          <span class="ticker-name">纳斯达克</span
          ><span class="ticker-price ticker-up">16,892.45</span
          ><span class="ticker-up">+1.78%</span>
        </div>
        <div class="ticker-item">
          <span class="ticker-name">道琼斯</span
          ><span class="ticker-price ticker-down">38,234.12</span
          ><span class="ticker-down">-0.12%</span>
        </div>
        <div class="ticker-item">
          <span class="ticker-name">日经225</span
          ><span class="ticker-price ticker-up">38,567.89</span
          ><span class="ticker-up">+0.92%</span>
        </div>
        <div class="ticker-item">
          <span class="ticker-name">上证指数</span
          ><span class="ticker-price ticker-up">3,342.58</span
          ><span class="ticker-up">+1.23%</span>
        </div>
        <div class="ticker-item">
          <span class="ticker-name">深证成指</span
          ><span class="ticker-price ticker-up">11,287.34</span
          ><span class="ticker-up">+0.87%</span>
        </div>
        <div class="ticker-item">
          <span class="ticker-name">创业板指</span
          ><span class="ticker-price ticker-down">2,198.76</span
          ><span class="ticker-down">-0.45%</span>
        </div>
        <div class="ticker-item">
          <span class="ticker-name">恒生指数</span
          ><span class="ticker-price ticker-up">18,456.23</span
          ><span class="ticker-up">+0.56%</span>
        </div>
        <div class="ticker-item">
          <span class="ticker-name">纳斯达克</span
          ><span class="ticker-price ticker-up">16,892.45</span
          ><span class="ticker-up">+1.78%</span>
        </div>
        <div class="ticker-item">
          <span class="ticker-name">道琼斯</span
          ><span class="ticker-price ticker-down">38,234.12</span
          ><span class="ticker-down">-0.12%</span>
        </div>
        <div class="ticker-item">
          <span class="ticker-name">日经225</span
          ><span class="ticker-price ticker-up">38,567.89</span
          ><span class="ticker-up">+0.92%</span>
        </div>
      </div>
    </div>
    <div class="hero">
      <div class="hero-logo">百度</div>
      <div class="hero-search">
        <div class="search-bar" id="heroSearchBar">
          <input
            type="text"
            placeholder="输入搜索内容"
            id="heroSearchInput"
            autocomplete="off"
          />
          <button onclick="doHeroSearch()">百度一下</button>
          <div class="search-suggestions" id="heroSearchSuggestions"></div>
        </div>
        <div class="hot-words">
          <span class="hot-word hot">&#128293; 热搜</span>
          <span class="hot-word">科技新闻</span>
          <span class="hot-word">天气预报</span>
          <span class="hot-word">AI技术</span>
          <span class="hot-word">体育赛事</span>
          <span class="hot-word">电影推荐</span>
          <span class="hot-word">健康养生</span>
          <span class="hot-word">数码评测</span>
          <span class="hot-word">旅游攻略</span>
          <span class="hot-word">美食推荐</span>
        </div>
      </div>
    </div>
    <div class="content-area">
      <div class="main-content">
        <div class="recommend-section">
          <h2>推荐阅读</h2>
          <div class="recommend-grid">
            <div class="recommend-card">
              <div class="card-img"></div>
              <div class="card-text">人工智能技术发展趋势分析</div>
            </div>
            <div class="recommend-card">
              <div class="card-img"></div>
              <div class="card-text">全球科技产业最新动态</div>
            </div>
            <div class="recommend-card">
              <div class="card-img"></div>
              <div class="card-text">数字经济转型升级之路</div>
            </div>
            <div class="recommend-card">
              <div class="card-img"></div>
              <div class="card-text">未来科技生活场景展望</div>
            </div>
          </div>
        </div>
        <div class="news-section">
          <h2>热点新闻</h2>
          <div class="news-item">
            <div class="news-img"></div>
            <div class="news-info">
              <h3>OpenHarmony系统发布新版本,生态持续繁荣发展</h3>
              <p>百度新闻 &middot; 2小时前 &middot; 128万阅读</p>
            </div>
          </div>
          <div class="news-item">
            <div
              class="news-img"
              style="background: linear-gradient(135deg, #f093fb, #f5576c)"
            ></div>
            <div class="news-info">
              <h3>人工智能大模型技术突破,赋能千行百业数字化转型</h3>
              <p>科技日报 &middot; 3小时前 &middot; 96万阅读</p>
            </div>
          </div>
          <div class="news-item">
            <div
              class="news-img"
              style="background: linear-gradient(135deg, #4facfe, #00f2fe)"
            ></div>
            <div class="news-info">
              <h3>5G技术应用持续拓展,智慧城市建设加速推进</h3>
              <p>新华网 &middot; 5小时前 &middot; 75万阅读</p>
            </div>
          </div>
          <div class="news-item">
            <div
              class="news-img"
              style="background: linear-gradient(135deg, #43e97b, #38f9d7)"
            ></div>
            <div class="news-info">
              <h3>新能源汽车市场持续增长,智能驾驶技术日新月异</h3>
              <p>经济观察网 &middot; 6小时前 &middot; 64万阅读</p>
            </div>
          </div>
          <div class="news-item">
            <div
              class="news-img"
              style="background: linear-gradient(135deg, #fa709a, #fee140)"
            ></div>
            <div class="news-info">
              <h3>量子计算取得重大突破,商用化进程加速推进</h3>
              <p>人民日报 &middot; 7小时前 &middot; 58万阅读</p>
            </div>
          </div>
          <div class="news-item">
            <div
              class="news-img"
              style="background: linear-gradient(135deg, #a8edea, #fed6e3)"
            ></div>
            <div class="news-info">
              <h3>数字人民币试点范围扩大,跨境支付取得新进展</h3>
              <p>央视新闻 &middot; 8小时前 &middot; 52万阅读</p>
            </div>
          </div>
          <div class="news-item">
            <div
              class="news-img"
              style="background: linear-gradient(135deg, #d299c2, #fef9d7)"
            ></div>
            <div class="news-info">
              <h3>航空航天事业蓬勃发展,深空探测计划稳步实施</h3>
              <p>中国航天报 &middot; 9小时前 &middot; 47万阅读</p>
            </div>
          </div>
        </div>
        <div class="live-section">
          <h2>实时热点</h2>
          <div class="live-item">
            <span class="li-badge"></span>
            <span class="li-title">全国两会召开在即,代表委员积极建言献策</span>
            <span class="li-viewers">328万人关注</span>
          </div>
          <div class="live-item">
            <span class="li-badge"></span>
            <span class="li-title"
              >国产大飞机C919商业运营满一年,运营数据亮眼</span
            >
            <span class="li-viewers">215万人关注</span>
          </div>
          <div class="live-item">
            <span class="li-badge"></span>
            <span class="li-title">春节档电影票房创新高,国产影片表现强劲</span>
            <span class="li-viewers">189万人关注</span>
          </div>
          <div class="live-item">
            <span class="li-badge"></span>
            <span class="li-title">教育部发布最新政策,推动教育数字化转型</span>
            <span class="li-viewers">156万人关注</span>
          </div>
        </div>
        <div class="tech-section">
          <h2>科技前沿</h2>
          <div class="tech-item">
            <div class="ti-icon" style="background: #e3f2fd">&#129302;</div>
            <div class="ti-content">
              <div class="ti-title">
                大语言模型推理能力大幅提升,行业应用加速落地
              </div>
              <div class="ti-summary">
                多家科技企业发布新一代大模型产品,在逻辑推理和代码生成方面取得显著进步
              </div>
            </div>
          </div>
          <div class="tech-item">
            <div class="ti-icon" style="background: #e8f5e9">&#128752;</div>
            <div class="ti-content">
              <div class="ti-title">
                6G技术研发取得阶段性成果,太赫兹通信实现突破
              </div>
              <div class="ti-summary">
                工信部表示6G关键技术试验取得重要进展,预计2030年前后实现商用
              </div>
            </div>
          </div>
          <div class="tech-item">
            <div class="ti-icon" style="background: #fff3e0">&#129520;</div>
            <div class="ti-content">
              <div class="ti-title">
                国产芯片制造工艺持续进步,先进制程研发加速
              </div>
              <div class="ti-summary">
                国内半导体企业多线并举,在成熟制程和先进封装领域取得多项突破
              </div>
            </div>
          </div>
        </div>
        <div class="gallery-section">
          <h2>精选图集</h2>
          <div class="gallery-grid">
            <div
              class="gallery-item"
              style="background: linear-gradient(135deg, #667eea, #764ba2)"
              onclick="openLightbox(0)"
            >
              <div class="gi-overlay">城市夜景</div>
            </div>
            <div
              class="gallery-item"
              style="background: linear-gradient(135deg, #f093fb, #f5576c)"
              onclick="openLightbox(1)"
            >
              <div class="gi-overlay">自然风光</div>
            </div>
            <div
              class="gallery-item"
              style="background: linear-gradient(135deg, #4facfe, #00f2fe)"
              onclick="openLightbox(2)"
            >
              <div class="gi-overlay">科技产品</div>
            </div>
            <div
              class="gallery-item"
              style="background: linear-gradient(135deg, #43e97b, #38f9d7)"
              onclick="openLightbox(3)"
            >
              <div class="gi-overlay">美食文化</div>
            </div>
            <div
              class="gallery-item"
              style="background: linear-gradient(135deg, #fa709a, #fee140)"
              onclick="openLightbox(4)"
            >
              <div class="gi-overlay">人文艺术</div>
            </div>
            <div
              class="gallery-item"
              style="background: linear-gradient(135deg, #a18cd1, #fbc2eb)"
              onclick="openLightbox(5)"
            >
              <div class="gi-overlay">建筑之美</div>
            </div>
            <div
              class="gallery-item"
              style="background: linear-gradient(135deg, #fad0c4, #ffd1ff)"
              onclick="openLightbox(6)"
            >
              <div class="gi-overlay">旅行见闻</div>
            </div>
            <div
              class="gallery-item"
              style="background: linear-gradient(135deg, #ffecd2, #fcb69f)"
              onclick="openLightbox(7)"
            >
              <div class="gi-overlay">运动健身</div>
            </div>
          </div>
        </div>
        <div class="shopping-section">
          <h2>好物推荐</h2>
          <div class="shopping-grid">
            <div class="shopping-card">
              <div
                class="sc-img"
                style="background: linear-gradient(135deg, #e3f2fd, #bbdefb)"
              ></div>
              <div class="sc-info">
                <div class="sc-title">智能蓝牙耳机 降噪版</div>
                <div>
                  <span class="sc-price">&#165;199</span
                  ><span class="sc-original">&#165;399</span>
                </div>
                <div class="sc-sold">已售 2.3万件</div>
              </div>
            </div>
            <div class="shopping-card">
              <div
                class="sc-img"
                style="background: linear-gradient(135deg, #fce4ec, #f8bbd0)"
              ></div>
              <div class="sc-info">
                <div class="sc-title">便携式充电宝 20000mAh</div>
                <div>
                  <span class="sc-price">&#165;89</span
                  ><span class="sc-original">&#165;169</span>
                </div>
                <div class="sc-sold">已售 5.6万件</div>
              </div>
            </div>
            <div class="shopping-card">
              <div
                class="sc-img"
                style="background: linear-gradient(135deg, #e8f5e9, #c8e6c9)"
              ></div>
              <div class="sc-info">
                <div class="sc-title">机械键盘 青轴 RGB背光</div>
                <div>
                  <span class="sc-price">&#165;259</span
                  ><span class="sc-original">&#165;459</span>
                </div>
                <div class="sc-sold">已售 1.8万件</div>
              </div>
            </div>
            <div class="shopping-card">
              <div
                class="sc-img"
                style="background: linear-gradient(135deg, #fff3e0, #ffe0b2)"
              ></div>
              <div class="sc-info">
                <div class="sc-title">智能手表 运动健康监测</div>
                <div>
                  <span class="sc-price">&#165;349</span
                  ><span class="sc-original">&#165;699</span>
                </div>
                <div class="sc-sold">已售 3.2万件</div>
              </div>
            </div>
          </div>
        </div>
        <div class="games-section">
          <h2>休闲小游戏</h2>
          <div class="games-grid">
            <div class="game-card">
              <div
                class="gc-img"
                style="background: linear-gradient(135deg, #667eea, #764ba2)"
              >
                &#127918;
              </div>
              <div class="gc-info">
                <div class="gc-title">消除大作战</div>
                <div class="gc-desc">经典三消益智游戏</div>
              </div>
            </div>
            <div class="game-card">
              <div
                class="gc-img"
                style="background: linear-gradient(135deg, #f093fb, #f5576c)"
              >
                &#127922;
              </div>
              <div class="gc-info">
                <div class="gc-title">欢乐斗地主</div>
                <div class="gc-desc">经典棋牌对战</div>
              </div>
            </div>
            <div class="game-card">
              <div
                class="gc-img"
                style="background: linear-gradient(135deg, #4facfe, #00f2fe)"
              >
                &#128020;
              </div>
              <div class="gc-info">
                <div class="gc-title">贪吃蛇大作战</div>
                <div class="gc-desc">经典复古小游戏</div>
              </div>
            </div>
            <div class="game-card">
              <div
                class="gc-img"
                style="background: linear-gradient(135deg, #43e97b, #38f9d7)"
              >
                &#127956;
              </div>
              <div class="gc-info">
                <div class="gc-title">2048</div>
                <div class="gc-desc">数字合并策略游戏</div>
              </div>
            </div>
            <div class="game-card">
              <div
                class="gc-img"
                style="background: linear-gradient(135deg, #fa709a, #fee140)"
              >
                &#9917;
              </div>
              <div class="gc-info">
                <div class="gc-title">足球射门</div>
                <div class="gc-desc">精准射门挑战</div>
              </div>
            </div>
            <div class="game-card">
              <div
                class="gc-img"
                style="background: linear-gradient(135deg, #a18cd1, #fbc2eb)"
              >
                &#128214;
              </div>
              <div class="gc-info">
                <div class="gc-title">成语闯关</div>
                <div class="gc-desc">中华成语知识竞答</div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <div class="sidebar">
        <div class="weather-widget">
          <div class="temp">26&#176;C</div>
          <div class="desc">&#9728;&#65039; 晴转多云</div>
          <div class="location">&#128205; 北京市</div>
        </div>
        <div class="weather-forecast">
          <h4>&#128197; 未来五天预报</h4>
          <div class="forecast-row">
            <div class="forecast-day">
              <div class="fd-label">今天</div>
              <div class="fd-icon">&#9728;&#65039;</div>
              <div class="fd-temp">28&#176;</div>
            </div>
            <div class="forecast-day">
              <div class="fd-label">明天</div>
              <div class="fd-icon">&#9925;</div>
              <div class="fd-temp">26&#176;</div>
            </div>
            <div class="forecast-day">
              <div class="fd-label">周三</div>
              <div class="fd-icon">&#127783;&#65039;</div>
              <div class="fd-temp">22&#176;</div>
            </div>
            <div class="forecast-day">
              <div class="fd-label">周四</div>
              <div class="fd-icon">&#127782;&#65039;</div>
              <div class="fd-temp">24&#176;</div>
            </div>
            <div class="forecast-day">
              <div class="fd-label">周五</div>
              <div class="fd-icon">&#9925;</div>
              <div class="fd-temp">27&#176;</div>
            </div>
          </div>
        </div>
        <div class="stock-ticker">
          <h3>&#128200; 自选股行情</h3>
          <div class="stock-item">
            <span class="stock-name">贵州茅台</span>
            <span class="stock-price stock-up">1,687.50</span>
            <span class="stock-change stock-up">+2.35%</span>
          </div>
          <div class="stock-item">
            <span class="stock-name">宁德时代</span>
            <span class="stock-price stock-down">198.76</span>
            <span class="stock-change stock-down">-1.12%</span>
          </div>
          <div class="stock-item">
            <span class="stock-name">比亚迪</span>
            <span class="stock-price stock-up">267.30</span>
            <span class="stock-change stock-up">+1.89%</span>
          </div>
          <div class="stock-item">
            <span class="stock-name">中国平安</span>
            <span class="stock-price stock-up">48.92</span>
            <span class="stock-change stock-up">+0.67%</span>
          </div>
          <div class="stock-item">
            <span class="stock-name">招商银行</span>
            <span class="stock-price stock-down">35.18</span>
            <span class="stock-change stock-down">-0.34%</span>
          </div>
        </div>
        <div class="quick-links">
          <h3>常用服务</h3>
          <div class="quick-link-item">
            <div class="ql-icon" style="background: #e3f2fd">&#128197;</div>
            <div class="ql-text">日历</div>
          </div>
          <div class="quick-link-item">
            <div class="ql-icon" style="background: #fff3e0">&#128200;</div>
            <div class="ql-text">股票</div>
          </div>
          <div class="quick-link-item">
            <div class="ql-icon" style="background: #e8f5e9">&#128694;</div>
            <div class="ql-text">翻译</div>
          </div>
          <div class="quick-link-item">
            <div class="ql-icon" style="background: #fce4ec">&#128247;</div>
            <div class="ql-text">图片</div>
          </div>
          <div class="quick-link-item">
            <div class="ql-icon" style="background: #f3e5f5">&#127911;</div>
            <div class="ql-text">音乐</div>
          </div>
          <div class="quick-link-item">
            <div class="ql-icon" style="background: #e0f7fa">&#128202;</div>
            <div class="ql-text">学术</div>
          </div>
          <div class="quick-link-item">
            <div class="ql-icon" style="background: #fff8e1">&#128188;</div>
            <div class="ql-text">网盘</div>
          </div>
          <div class="quick-link-item">
            <div class="ql-icon" style="background: #e8eaf6">&#128221;</div>
            <div class="ql-text">文库</div>
          </div>
          <div class="quick-link-item">
            <div class="ql-icon" style="background: #fbe9e7">&#128666;</div>
            <div class="ql-text">地图</div>
          </div>
          <div class="quick-link-item">
            <div class="ql-icon" style="background: #e0f2f1">&#128250;</div>
            <div class="ql-text">视频</div>
          </div>
        </div>
      </div>
    </div>
    <div class="more-content">
      <div class="knowledge-section">
        <h2>百度热搜</h2>
        <div class="knowledge-item">
          <div class="ki-num">1</div>
          <div>
            <div class="ki-title">科技企业发布最新财报数据</div>
            <div class="ki-meta">482万热度</div>
          </div>
        </div>
        <div class="knowledge-item">
          <div class="ki-num">2</div>
          <div>
            <div class="ki-title">国际形势最新发展动态</div>
            <div class="ki-meta">396万热度</div>
          </div>
        </div>
        <div class="knowledge-item">
          <div class="ki-num">3</div>
          <div>
            <div class="ki-title">全民健身运动热潮持续升温</div>
            <div class="ki-meta">287万热度</div>
          </div>
        </div>
        <div class="knowledge-item">
          <div class="ki-num">4</div>
          <div>
            <div class="ki-title">航天科技新成果发布</div>
            <div class="ki-meta">251万热度</div>
          </div>
        </div>
        <div class="knowledge-item">
          <div class="ki-num">5</div>
          <div>
            <div class="ki-title">文化传承与创新融合发展</div>
            <div class="ki-meta">198万热度</div>
          </div>
        </div>
        <div class="knowledge-item">
          <div class="ki-num">6</div>
          <div>
            <div class="ki-title">新能源汽车销量再创新高</div>
            <div class="ki-meta">176万热度</div>
          </div>
        </div>
        <div class="knowledge-item">
          <div class="ki-num">7</div>
          <div>
            <div class="ki-title">医疗保障制度改革新进展</div>
            <div class="ki-meta">153万热度</div>
          </div>
        </div>
        <div class="knowledge-item">
          <div class="ki-num">8</div>
          <div>
            <div class="ki-title">数字经济发展规划发布</div>
            <div class="ki-meta">142万热度</div>
          </div>
        </div>
        <div class="knowledge-item">
          <div class="ki-num">9</div>
          <div>
            <div class="ki-title">教育改革政策全面解读</div>
            <div class="ki-meta">128万热度</div>
          </div>
        </div>
        <div class="knowledge-item">
          <div class="ki-num">10</div>
          <div>
            <div class="ki-title">绿色低碳发展路线图公布</div>
            <div class="ki-meta">115万热度</div>
          </div>
        </div>
      </div>
    </div>
    <div class="lightbox-overlay" id="lightboxOverlay">
      <div class="lightbox-content">
        <button class="lightbox-close" onclick="closeLightbox()">
          &#10005;
        </button>
        <button class="lightbox-nav lightbox-prev" onclick="navLightbox(-1)">
          &#8249;
        </button>
        <button class="lightbox-nav lightbox-next" onclick="navLightbox(1)">
          &#8250;
        </button>
        <div class="lb-image" id="lightboxImage"></div>
        <div class="lb-caption" id="lightboxCaption"></div>
      </div>
    </div>
    <div class="footer">
      <div class="footer-columns">
        <div class="footer-col">
          <h4>关于百度</h4>
          <a href="#">公司介绍</a>
          <a href="#">发展历程</a>
          <a href="#">企业文化</a>
          <a href="#">加入我们</a>
          <a href="#">联系我们</a>
        </div>
        <div class="footer-col">
          <h4>产品服务</h4>
          <a href="#">百度搜索</a>
          <a href="#">百度地图</a>
          <a href="#">百度网盘</a>
          <a href="#">百度翻译</a>
          <a href="#">百度学术</a>
        </div>
        <div class="footer-col">
          <h4>开发者</h4>
          <a href="#">百度AI开放平台</a>
          <a href="#">百度智能云</a>
          <a href="#">百度开发者中心</a>
          <a href="#">百度地图开放平台</a>
          <a href="#">百度统计</a>
        </div>
        <div class="footer-col">
          <h4>帮助与支持</h4>
          <a href="#">帮助中心</a>
          <a href="#">意见反馈</a>
          <a href="#">隐私政策</a>
          <a href="#">服务协议</a>
          <a href="#">安全中心</a>
        </div>
      </div>
      <div class="footer-links">
        <a href="#">关于百度</a>
        <a href="#">About Baidu</a>
        <a href="#">百度推广</a>
        <a href="#">使用百度前必读</a>
        <a href="#">意见反馈</a>
        <a href="#">帮助中心</a>
        <a href="#">隐私政策</a>
        <a href="#">服务协议</a>
        <a href="#">京ICP证000001号</a>
      </div>
      <p>&copy; 2024 Baidu 使用百度前必读 京ICP证000001号</p>
    </div>
    <script>
      function test() {
        return true;
      }
      function doSearch() {
        var query = document.getElementById("searchInput").value;
        if (query) {
          window.location.href = "/s?wd=" + encodeURIComponent(query);
        }
      }
      function doHeroSearch() {
        var query = document.getElementById("heroSearchInput").value;
        if (query) {
          window.location.href = "/s?wd=" + encodeURIComponent(query);
        }
      }
      var suggestionsData = [
        { text: "人工智能", type: "热搜" },
        { text: "天气预报", type: "生活" },
        { text: "百度地图导航", type: "工具" },
        { text: "新能源汽车排行榜", type: "汽车" },
        { text: "ChatGPT最新消息", type: "科技" },
        { text: "春节旅游攻略", type: "旅游" },
        { text: "健康饮食指南", type: "养生" },
        { text: "编程学习资源", type: "教育" },
        { text: "数码产品评测", type: "科技" },
        { text: "电影排行榜", type: "娱乐" },
        { text: "股市行情分析", type: "财经" },
        { text: "奥运赛事直播", type: "体育" },
        { text: "Python教程入门", type: "教育" },
        { text: "家常菜做法大全", type: "美食" },
        { text: "手机推荐2024", type: "数码" },
        { text: "考研复习计划", type: "教育" },
        { text: "装修设计灵感", type: "家居" },
        { text: "健身减脂计划", type: "运动" },
        { text: "音乐排行榜", type: "娱乐" },
        { text: "AI绘画工具", type: "科技" },
      ];
      function showSuggestions(input, panel) {
        var val = input.value.trim().toLowerCase();
        panel.innerHTML = "";
        if (!val) {
          panel.classList.remove("active");
          return;
        }
        var matches = suggestionsData
          .filter(function (item) {
            return item.text.toLowerCase().indexOf(val) !== -1;
          })
          .slice(0, 8);
        if (matches.length === 0) {
          panel.classList.remove("active");
          return;
        }
        matches.forEach(function (item) {
          var div = document.createElement("div");
          div.className = "ss-item";
          var highlighted = item.text.replace(
            new RegExp(
              "(" + val.replace(/[.*+?^${}()|[\]\\]/g, "\\$&") + ")",
              "gi",
            ),
            '<span class="ss-highlight">$1</span>',
          );
          div.innerHTML =
            '<span class="ss-icon">&#128270;</span>' +
            highlighted +
            ' <span class="ss-icon" style="margin-left:auto;font-size:11px;">' +
            item.type +
            "</span>";
          div.addEventListener("click", function () {
            input.value = item.text;
            panel.classList.remove("active");
            input.click();
          });
          panel.appendChild(div);
        });
        panel.classList.add("active");
      }
      var searchInput = document.getElementById("searchInput");
      var searchSuggestions = document.getElementById("searchSuggestions");
      var heroSearchInput = document.getElementById("heroSearchInput");
      var heroSearchSuggestions = document.getElementById(
        "heroSearchSuggestions",
      );
      searchInput.addEventListener("input", function () {
        showSuggestions(searchInput, searchSuggestions);
      });
      searchInput.addEventListener("focus", function () {
        showSuggestions(searchInput, searchSuggestions);
      });
      heroSearchInput.addEventListener("input", function () {
        showSuggestions(heroSearchInput, heroSearchSuggestions);
      });
      heroSearchInput.addEventListener("focus", function () {
        showSuggestions(heroSearchInput, heroSearchSuggestions);
      });
      document.addEventListener("click", function (e) {
        if (!document.getElementById("headerSearchBar").contains(e.target)) {
          searchSuggestions.classList.remove("active");
        }
        if (!document.getElementById("heroSearchBar").contains(e.target)) {
          heroSearchSuggestions.classList.remove("active");
        }
        var dropdown = document.getElementById("profileDropdown");
        var btn = document.getElementById("profileBtn");
        if (!dropdown.contains(e.target) && e.target !== btn) {
          dropdown.classList.remove("active");
        }
      });
      function toggleProfile() {
        document.getElementById("profileDropdown").classList.toggle("active");
      }
      function toggleDarkMode() {
        document.body.classList.toggle("dark-mode");
        var btn = document.getElementById("darkModeBtn");
        if (document.body.classList.contains("dark-mode")) {
          btn.innerHTML = "&#9788;";
        } else {
          btn.innerHTML = "&#9790;";
        }
      }
      function openSettings() {
        alert("设置功能开发中...");
      }
      var galleryData = [
        {
          bg: "linear-gradient(135deg, #667eea, #764ba2)",
          caption: "城市夜景 - 霓虹灯下的都市繁华",
        },
        {
          bg: "linear-gradient(135deg, #f093fb, #f5576c)",
          caption: "自然风光 - 壮丽的山川湖泊",
        },
        {
          bg: "linear-gradient(135deg, #4facfe, #00f2fe)",
          caption: "科技产品 - 最新智能硬件展示",
        },
        {
          bg: "linear-gradient(135deg, #43e97b, #38f9d7)",
          caption: "美食文化 - 中华传统佳肴",
        },
        {
          bg: "linear-gradient(135deg, #fa709a, #fee140)",
          caption: "人文艺术 - 精彩文艺演出",
        },
        {
          bg: "linear-gradient(135deg, #a18cd1, #fbc2eb)",
          caption: "建筑之美 - 世界著名建筑巡礼",
        },
        {
          bg: "linear-gradient(135deg, #fad0c4, #ffd1ff)",
          caption: "旅行见闻 - 世界各地的精彩瞬间",
        },
        {
          bg: "linear-gradient(135deg, #ffecd2, #fcb69f)",
          caption: "运动健身 - 活力四射的运动时刻",
        },
      ];
      var currentLightbox = 0;
      function openLightbox(index) {
        currentLightbox = index;
        updateLightbox();
        document.getElementById("lightboxOverlay").classList.add("active");
      }
      function closeLightbox() {
        document.getElementById("lightboxOverlay").classList.remove("active");
      }
      function navLightbox(dir) {
        currentLightbox =
          (currentLightbox + dir + galleryData.length) % galleryData.length;
        updateLightbox();
      }
      function updateLightbox() {
        var data = galleryData[currentLightbox];
        document.getElementById("lightboxImage").style.background = data.bg;
        document.getElementById("lightboxCaption").textContent = data.caption;
      }
      document
        .getElementById("lightboxOverlay")
        .addEventListener("click", function (e) {
          if (e.target === this) closeLightbox();
        });
      document.addEventListener("keydown", function (e) {
        if (
          !document
            .getElementById("lightboxOverlay")
            .classList.contains("active")
        )
          return;
        if (e.key === "Escape") closeLightbox();
        if (e.key === "ArrowLeft") navLightbox(-1);
        if (e.key === "ArrowRight") navLightbox(1);
      });
    </script>
  </body>
</html>