* {
    margin: 0;
    padding: 0;
    font-family: 'Inter', 'Roboto', 'Helvetica Neue', Arial, 'PingFang SC', sans-serif;
}

:root {
    --HeaderBC : #072e47;
    --lightC : #f1f3f9;
    --lightPoint : #3080e9;
}

body {
    background-color: var(--lightC);
}

h1 a {
    color: var(--lightC);
    text-decoration: none;
    line-height: 80px;
    margin-right: auto;
}

header {
    background-color: var(--HeaderBC);
    padding: 0 40px;
    height: 80px;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

.RIinformation {
    line-height: 80px;
    display: flex;
    align-items: center;
    gap: 2vw;
}

.RIinformation ul {
    display: flex;
    gap: 2vw;
    margin: 0;
    padding: 0;
    list-style: none;
}

.RIinformation a {
    color: var(--lightC);
    text-decoration: none;
    padding-bottom: 5px;
    position: relative;
    transition: color 0.3s ease;
    padding: 10px 15px;
}

.RIinformation a:hover {
    color: #ffffff;
}

.RIinformation a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--lightPoint);
    transition: width 0.4s ease;
}

.RIinformation a:hover::after {
    width: 100%;
}

#top-searchB {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
}

.focus {
    padding-bottom: 20px;
    border-bottom: solid var(--lightPoint) 3px;
    color: white;
}

header a.focus::after,
header a.focus:hover::after {
    width: 0;
    transition: none;
}

header li {
    display: inline-block;
}

#top-search {
    height: 50px;
    border: none;
    padding-left: 15px;
    background-color: transparent;
    color: white;
    font-size: 1rem;
    border-bottom: solid rgb(192, 192, 192) 2px;
    transition: all 0.5s ease-out;
    outline: none;
    width: 10vw;
    min-width: 100px;
    flex: 0 1 auto;
}

#top-search:hover,
#top-search:focus {
    border-bottom: solid var(--lightC) 2px;
    width: 15vw;
}

#top-search

#top-search::placeholder {
    color: var(--lightC);
    font-size: 1rem;
    opacity: 0.8;
}

#top-searchB {
    margin-left: 1vw;
    width: 100px;
    background-color: transparent;
    border: none;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease-out;
    border-radius: 50px;
    flex-shrink: 0;
    cursor: pointer;
}

#top-searchB:hover {
    background-color: var(--lightPoint);
    box-shadow: 0 2px 8px rgba(121, 179, 255, 0.708);
}

#top-searchB:active {
    background-color: #1a4f9e;
}

#top-searchB img {
    width: 20px;
    display: block;
    pointer-events: none;
    user-select: none;
    filter: invert(1) brightness(200%)
}

#top-searchB span {
    margin-left: 5px;
    color: var(--lightC);
    display: block;
    pointer-events: none;
    font-size: 1rem;
}

main {
    margin-top: 80px;
}

#light-mask {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: radial-gradient(circle at 50% 50%, transparent 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.lightSpan {
    color: var(--lightPoint);
    text-shadow: 0 0 8px #388eff7b;
}

.top {
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.top::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("/static/img/index/img4.webp");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              filter 0.6s ease;
  will-change: transform, filter;
}

.top::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0, 0, 0, 0.6);
    pointer-events: none;
}

.top .container {
    position: relative;
    z-index: 3;
}

.top:focus-within::before {
  transform: scale(1.02);
  filter: blur(6px);
}

.top .container .title h2.light-on,
.top .container .title p.light-on {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3), 0 0 60px rgba(255, 255, 255, 0.15) !important;
    transition: text-shadow 0.4s ease;
}

.top .container .title .lightSpan.light-on {
    text-shadow: 0 0 20px rgba(48, 128, 233, 0.5), 0 0 60px rgba(48, 128, 233, 0.5), 0 0 100px rgba(48, 128, 233, 0.3) !important;
    transition: text-shadow 0.4s ease;
}

#main-search.light-on {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3), 0 0 60px rgba(255, 255, 255, 0.3) !important;
    border-color: #ffffff !important;
    transition: all 0.4s ease;
}

.search-submit-btn.light-on {
    box-shadow: 0 0 30px rgba(48, 128, 233, 0.5), 0 0 60px rgba(48, 128, 233, 0.5), 0 0 100px rgba(48, 128, 233, 0.3) !important;
    transition: box-shadow 0.4s ease;
}

.container {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.container h2 {
    font-size: 3rem;
    color: var(--lightC);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    letter-spacing: 2px;
    transition: transform 0.3s ease, text-shadow 0.3s ease;
}

.container h2:hover {
    text-shadow: 0 8px 30px rgba(0, 0, 0, 0.8);
}

.container p {
    font-size: 1.2rem;
    color: var(--lightC);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.container p:hover {
    opacity: 1;
}

.title {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.main-search {
    margin: 30px 0px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
#main-search-wrapper {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
}

#main-search {
    height: 48px;
    padding: 0 20px 0 48px;
    width: 20vw;
    font-size: 0.95rem;
    font-family: inherit;
    color: #2d3436;
    border: none;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        0 0 0 1px rgba(0, 0, 0, 0.04);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

#main-search::placeholder {
    color: #b2bec3;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.3px;
    opacity: 1;
    transition: color 0.3s ease;
    user-select: none;
}

#main-search:focus {
    outline: none;
    width: 40vw;
    background: rgba(255, 255, 255, 0.95);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.10),
        0 0 0 3px var(--lightPoint, #6c5ce7),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

#main-search:focus::placeholder {
    color: #dfe6e9;
}

#main-search:hover:not(:focus) {
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.88);
}

#main-search-wrapper::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b2bec3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
    pointer-events: none;
    transition: all 0.35s ease;
    z-index: 2;
}

#main-search-wrapper:focus-within::before {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236c5ce7' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

#main-search-wrapper .clear-btn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    width: 20px;
    height: 20px;
    border: none;
    border-radius: 50%;
    background: #dfe6e9;
    color: #636e72;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.25s ease;
    opacity: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

#main-search-wrapper .clear-btn:hover {
    background: #ff7675;
    color: #fff;
}

#main-search-wrapper:focus-within .clear-btn {
    transform: translateY(-50%) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.search-submit-btn {
    height: 48px;
    padding: 0 28px;
    border: none;
    border-radius: 24px;
    background: var(--lightPoint);
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(35, 107, 222, 0.3);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    letter-spacing: 0.5px;
}

.search-submit-btn:hover {
    background-color: var(--lightPoint);
    box-shadow: 0 2px 8px rgba(121, 179, 255, 0.708);
}

.search-submit-btn:active {
    box-shadow: 0 2px 8px rgba(35, 107, 222, 0.3);
    background-color: #1a4f9e;
}

.showProducts {
    background-image: url(/static/img/background/网格背景.png);
    background-size: 1rem;
}

.products {
    display: flex;
    padding: 4vh 6vw;
    width: 100%;
    gap: max(20px, min(4vw, 100px));
    box-sizing: border-box;
}

/* 空状态 */
#products-img.empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    width: 100%;
    grid-column: 1 / -1;
}

.empty-state-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
    padding: 40px 20px;
}

.empty-icon {
    width: 64px;
    height: 64px;
    color: #c0c8d4;
    margin-bottom: 4px;
}

.empty-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #8a94a6;
    margin: 0;
}

.empty-desc {
    font-size: 0.9rem;
    color: #b0b8c4;
    margin: 0;
    max-width: 320px;
    line-height: 1.6;
}

.footer {
    background: #0b1a2b;
    color: #c8d6e5;
    padding: 50px 10px 20px;
    border-top: 4px solid var(--lightPoint);
    width: 100%;
}

.footer-container {
    max-width: 80%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 30px;
    align-items: start;
}

.footer-brand .logo {
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1px;
}

.footer-brand .logo span {
    color: var(--lightPoint);
}

.footer-brand .slogan {
    margin: 10px 0 14px;
    font-size: 14px;
    line-height: 1.7;
    color: #94a3b8;
    max-width: 280px;
}

.footer-brand .cert-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-brand .cert-badges img {
    height: 32px;
    width: auto;
    opacity: 0.7;
    transition: opacity 0.2s;
    background: #1e2a3a;
    padding: 4px 10px;
    border-radius: 4px;
}

.footer-brand .cert-badges img:hover {
    opacity: 1;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 14px;
    letter-spacing: 0.5px;
    position: relative;
}

.footer-col h4::after {
    content: '';
    display: block;
    width: 28px;
    height: 3px;
    background: var(--lightPoint);
    margin-top: 8px;
    border-radius: 2px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 6px;
}

.footer-col ul li a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s, padding-left 0.2s;
    display: inline-block;
}

.footer-col ul li a:hover {
    color: #ffffff;
    padding-left: 4px;
}

.footer-contact p {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-contact p strong {
    color: #e2e8f0;
    font-weight: 500;
}

.footer-contact .social-links {
    display: flex;
    gap: 14px;
    margin-top: 16px;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
}

.footer-contact .social-links .contact {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #94a3b8;
    font-size: 13px;
    padding: 6px 14px;
    border: 1px solid #2d3a4a;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.25s;
    background: transparent;
    cursor: pointer;
}

.footer-contact .social-links .contact:hover {
    background: var(--lightPoint);
    color: #fff;
    border-color: var(--lightPoint);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.25);
}

.footer-contact .social-links .contact a {
    color: inherit;
    text-decoration: none;
    border: none;
    padding: 0;
    background: transparent;
    transition: none;
    display: inline;
    line-height: 1;
}

.footer-contact .social-links .contact a {
    color: inherit;
    text-decoration: none;
    border: none;
    padding: 0;
    background: transparent;
    transition: none;
    display: inline;
    line-height: 1;
}

.footer-contact .social-links .contact a:hover {
    background: transparent;
    color: inherit;
    transform: none;
    box-shadow: none;
    padding-left: 0;
}

.footer-contact .social-links .contact .icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: none;
}

.footer-contact .social-links a .icon {
    width: 20px;
    height: 20px;
    margin-right: 4px;
}

.footer-bottom {
    max-width: 80%;
    margin: 30px auto 0;
    padding-top: 20px;
    border-top: 1px solid #1e2a3a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: #64748b;
}

.footer-bottom .legal-links a {
    color: #64748b;
    text-decoration: none;
    margin-left: 16px;
    transition: color 0.2s;
}

.footer-bottom .legal-links a:hover {
    color: #e2e8f0;
}

.footer-bottom .legal-links a:first-child {
    margin-left: 0;
}