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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  background-color: #fff;
  color: #1f1f1f;
  min-height: 100vh;
}

.search-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 90px;
}


.logo {
  font-size: 78px;
  font-weight: 400;
  margin-bottom: 70px;
  user-select: none;
  font-family: "Product Sans", Arial, sans-serif;
}

.home-logo-link {
  color: inherit;
  text-decoration: none;
}

.logo-G  { color: #4285f4; }  /* 蓝 */
.logo-o1 { color: #ea4335; }  /* 红 */
.logo-o2 { color: #fbbc05; }  /* 黄 */
.logo-g  { color: #4285f4; }  /* 蓝 */
.logo-l  { color: #34a853; }  /* 绿 */
.logo-e  { color: #ea4335; }  /* 红 */

/* =========================================
   核心：搜索框容器
   ========================================= */
.search-container {
  width: 100%;
  max-width: 690px; /* Google 搜索框最大宽度约 690px */
  padding: 0 16px;
}

/* --- 搜索框外壳 --- */
.search-box {
  display: flex;
  align-items: center;
  width: 100%;
  height: 52px;                              /* 高度 52px（含 border） */
  padding: 0 8px 0 14px;
  border: 1px solid #dadce0;                 /* 边框颜色 rgb(218,220,224) */
  border-radius: 26px;                       /* 圆角 = 高度一半，呈胶囊形 */
  background: #fff;
  box-shadow: 0 3px 10px 0 rgba(31,31,31,0.08); /* 默认淡阴影 */
  transition: box-shadow 0.2s ease,
              border-color 0.2s ease;
  position: relative;
}

/* --- 搜索框 Hover 状态 --- */
.search-box:hover {
  box-shadow: 0 2px 8px 1px rgba(64,60,67,0.24); /* 加深阴影 */
  border-color: transparent;                       /* 隐藏边框 */
}

/* --- 搜索框 Focus-within 状态 --- */
.search-box:focus-within {
  box-shadow: 0 2px 8px 1px rgba(64,60,67,0.24);
  border-color: transparent;
}

/* =========================================
   搜索输入框（<input>）
   ========================================= */
.search-input {
  flex: 1;
  height: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: 16px;                           /* 输入文字 16px */
  font-family: Arial, sans-serif;
  color: rgba(0, 0, 0, 0.87);               /* 文字颜色 */
  padding: 0 8px;
  line-height: 52px;
}

.search-input::placeholder {
  color: #9aa0a6;
}

/* =========================================
   搜索框内的放大镜按钮
   ========================================= */
.search-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 50%;
  flex-shrink: 0;
  transition: background-color 0.15s ease;
  padding: 0;
  margin-right: 4px;
}

.search-icon-btn:hover {
  background-color: rgba(60, 64, 67, 0.08); /* 悬停高亮 */
}

/* 放大镜按钮 hover 时图标变深 */
.search-btn:hover svg path {
  fill: #70757a;
}

.home-keywords {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 15px;
  width: min(820px, calc(100% - 32px));
  margin-top: 48px;
}

.home-keyword {
  display: block;
  padding: 4px 10px;
  border-radius: 4px;
  background: #f5f5f5;
  color: #5f6670;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
  transition: background-color 0.15s ease,
              color 0.15s ease;
}

.home-keyword:hover {
  background: #ededed;
  color: #5f6670;
}

.home-keyword-top {
  color: #2f6f46;
  font-weight: 700;
}

.home-keyword-top:hover {
  color: #24583a;
}

.home-keyword:focus-visible {
  outline: 2px solid #4285f4;
  outline-offset: 2px;
}

/* =========================================
   搜索按钮组（Google 搜索 / 手气不错）
   ========================================= */
.search-buttons {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.search-submit-btn {
  font-size: 14px;
  font-family: Arial, sans-serif;
  color: #3c4043;
  background-color: #f8f9fa;
  border: 1px solid #f8f9fa;
  border-radius: 8px;
  height: 36px;
  padding: 0 16px;
  margin: 0 4px;
  cursor: pointer;
  transition: border-color 0.15s ease,
              box-shadow 0.15s ease,
              background-color 0.15s ease;
  line-height: 36px;
}

.search-submit-btn:hover {
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
  border-color: #dadce0;
  background-color: #f8f9fa;
  color: #1f1f1f;
}

.search-submit-btn:focus {
  border-color: #4285f4;
  outline: none;
}

/* =========================================
   响应式适配
   ========================================= */
@media (max-width: 600px) {
  .search-page {
    padding-top: 80px;
  }
  
  .logo {
    font-size: 50px;
    margin-bottom: 20px;
  }
  
  .search-container {
    max-width: 100%;
  }

  .home-keywords {
    gap: 10px;
    margin-top: 32px;
  }
}
