.akz-app-search {
--akz-brand: #12395b;
--akz-brand-soft: rgba(18, 57, 91, 0.08);
--akz-line: #2f6797;
--akz-text: #18324d;
--akz-muted: #66778d;
--akz-bg: linear-gradient(180deg, rgba(255, 251, 242, 0.92), rgba(255, 255, 255, 0.98));
display: block;
width: 100%;
max-width: min(430px, 100%);
max-inline-size: 100%;
inline-size: min(100%, 430px);
min-width: 0;
margin: 0.7rem 0 1.35rem;
overflow-x: hidden;
}
.akz-app-search__panel {
display: grid;
gap: 0.62rem;
max-inline-size: 100%;
inline-size: 100%;
width: 100%;
max-width: 100%;
min-width: 0;
padding: 0.82rem 1rem 0.92rem;
border: 5px solid var(--akz-line);
border-radius: 14px;
background: var(--akz-bg);
box-shadow: 0 10px 22px rgba(18, 57, 91, 0.08);
justify-items: stretch;
align-items: start;
overflow-x: hidden;
}
.akz-app-search,
.akz-app-search * {
box-sizing: border-box;
}
.akz-app-search button,
.akz-app-search a,
.akz-app-search input,
.akz-app-search label {
font: inherit;
letter-spacing: 0;
text-rendering: geometricPrecision;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.akz-app-search__switch {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
grid-auto-columns: minmax(0, 1fr);
gap: 0.22rem;
width: 100%;
max-width: 100%;
max-inline-size: 100%;
padding: 0.24rem;
border-radius: 999px;
background: var(--akz-brand-soft);
align-self: start;
justify-self: start;
overflow: hidden;
}
.akz-app-search__switch-btn {
display: inline-flex;
align-items: center;
justify-content: center;
width: 100%;
min-width: 0;
border: 0;
border-radius: 999px;
padding: 0.72rem 1.05rem;
background: transparent;
color: var(--akz-muted);
font-weight: 600;
cursor: pointer;
outline: none;
box-shadow: none;
white-space: nowrap;
transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
-webkit-tap-highlight-color: transparent;
}
.akz-app-search__switch-btn:not(.is-active):hover,
.akz-app-search__switch-btn:not(.is-active):focus-visible {
background: #d9e5f0;
color: var(--akz-brand);
box-shadow: inset 0 0 0 1px rgba(18, 57, 91, 0.1);
}
.akz-app-search__switch-btn.is-active,
.akz-app-search__switch-btn.is-active:hover,
.akz-app-search__switch-btn.is-active:focus-visible {
background: var(--akz-brand);
color: #fff;
box-shadow: none;
}
.akz-app-search__label {
display: block;
margin-top: 0;
color: var(--akz-text);
font-weight: 700;
font-size: 1.08rem;
}
.akz-app-search__input {
display: block;
box-sizing: border-box !important;
width: 100% !important;
max-width: 100% !important;
min-width: 0 !important;
max-inline-size: 100% !important;
inline-size: 100% !important;
justify-self: stretch;
margin-right: 0 !important;
height: 40px;
min-height: 40px;
margin: 0;
padding: 0 12px;
border: 2px solid rgba(47, 103, 151, 0.36);
border-radius: 6px;
background: #fff;
color: var(--akz-text);
font-size: 15px;
font-weight: 500;
line-height: 40px;
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
appearance: none;
-webkit-appearance: none;
}
.akz-app-search__input::placeholder {
color: #73859b;
opacity: 1;
}
.akz-app-search__input:focus,
.akz-app-search__input:focus-visible {
outline: none;
border-color: #2f6797;
box-shadow: 0 0 0 3px rgba(47, 103, 151, 0.12);
}
.akz-app-search__status {
min-height: 0;
color: #4f657d;
font-size: 1.08rem;
font-weight: 700;
line-height: 1.28;
margin-top: -0.04rem;
}
.akz-app-search__status[hidden] {
display: none !important;
}
.akz-app-search__input::-webkit-search-cancel-button {
-webkit-appearance: none;
height: 14px;
width: 14px;
cursor: pointer;
}
.akz-app-search__results {
position: relative;
z-index: 1;
display: grid;
gap: 0;
padding-top: 0;
min-width: 0;
max-inline-size: 100%;
overflow-x: hidden;
overflow-y: visible;
touch-action: pan-y;
border: 1px solid rgba(47, 103, 151, 0.28);
border-top: 0;
border-radius: 10px;
background: #fff;
box-shadow: 0 8px 20px rgba(18, 57, 91, 0.08);
}
.akz-app-search__results[hidden] {
display: none !important;
margin: 0 !important;
padding: 0 !important;
border: 0 !important;
box-shadow: none !important;
}
.akz-app-search__result,
.akz-app-search__result:link,
.akz-app-search__result:visited,
.akz-app-search__result:hover,
.akz-app-search__result:active {
color: var(--akz-text);
text-decoration: none !important;
}
.akz-app-search__results:not([hidden]) {
margin-top: 0.06rem;
margin-bottom: 0.12rem;
}
.akz-app-search__result {
position: relative;
z-index: 1;
display: grid;
gap: 0.14rem;
width: 100%;
inline-size: 100%;
min-width: 0;
max-width: 100%;
max-inline-size: 100%;
padding: 0.68rem 0.82rem 0.72rem;
border: 0;
border-radius: 0;
border-bottom: 1px solid rgba(47, 103, 151, 0.18);
background: #fff;
color: var(--akz-text);
text-align: left;
text-decoration: none;
cursor: pointer;
appearance: none;
-webkit-appearance: none;
outline: none;
-webkit-tap-highlight-color: transparent;
-webkit-touch-callout: none;
-webkit-user-select: none;
user-select: none;
touch-action: pan-y;
overflow-x: hidden;
}
.akz-app-search__result:first-child {
border-top-left-radius: 10px;
border-top-right-radius: 10px;
}
.akz-app-search__result:last-child {
border-bottom: 0;
border-bottom-left-radius: 10px;
border-bottom-right-radius: 10px;
}
.akz-app-search__result:focus,
.akz-app-search__result:focus-visible,
.akz-app-search__result:active {
outline: none;
box-shadow: inset 0 0 0 1px rgba(47, 103, 151, 0.18);
background: #f7fbff;
}
.akz-app-search__result:hover {
z-index: 2;
background: #f7fbff;
box-shadow: none;
}
.akz-app-search__result .akz-app-search__code,
.akz-app-search__result .akz-app-search__origin,
.akz-app-search__result .akz-app-search__meta {
text-decoration: none !important;
}
.akz-app-search__code {
font-size: 1.52rem;
font-weight: 800;
line-height: 1.15;
color: var(--akz-brand);
max-inline-size: 100%;
overflow-wrap: anywhere;
}
.akz-app-search__origin {
font-size: 1.48rem;
font-weight: 600;
line-height: 1.28;
color: var(--akz-text);
max-inline-size: 100%;
overflow-wrap: anywhere;
word-break: break-word;
}
.akz-app-search__meta {
color: var(--akz-muted);
font-size: 1.22rem;
line-height: 1.28;
max-inline-size: 100%;
overflow-wrap: anywhere;
word-break: break-word;
}
.akz-app-search__submit {
display: block;
width: 100%;
min-height: 46px;
margin: 0.1rem 0 0;
padding: 0 1rem;
border: 0;
border-radius: 16px;
background: linear-gradient(180deg, #2b5e8a 0%, #12395b 34%, #0c2d4a 100%);
color: #fff;
font-size: 0.96rem;
font-weight: 700;
line-height: 1.2;
cursor: pointer;
appearance: none;
-webkit-appearance: none;
outline: none;
-webkit-tap-highlight-color: transparent;
box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.12),
inset 0 8px 14px rgba(69, 125, 174, 0.16),
0 8px 18px rgba(18, 57, 91, 0.16);
transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.akz-app-search__submit:hover,
.akz-app-search__submit:focus-visible {
transform: translateY(-1px);
background: linear-gradient(180deg, #3a709f 0%, #18486f 32%, #103551 100%);
outline: none;
box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.14),
inset 0 8px 14px rgba(88, 150, 205, 0.18),
0 10px 22px rgba(18, 57, 91, 0.2);
}
.akz-app-search__submit:active {
transform: translateY(0);
background: linear-gradient(180deg, #1b496f 0%, #0f3554 36%, #0a2a43 100%);
box-shadow:
inset 0 2px 8px rgba(0, 0, 0, 0.18),
0 5px 12px rgba(18, 57, 91, 0.12);
}
@media (max-width: 640px) {
.akz-app-search {
max-width: 100%;
}
.akz-app-search__panel {
width: 100%;
}
.akz-app-search__results {
padding-top: 0;
max-height: min(19rem, 52vh);
overflow-y: auto;
-webkit-overflow-scrolling: touch;
overscroll-behavior: contain;
padding-right: 0.08rem;
}
.akz-app-search__results:not([hidden]) {
margin-bottom: 0;
}
.akz-app-search__input {
max-width: 100%;
}
.akz-app-search__panel {
padding: 0.78rem 0.88rem 0.9rem;
border-radius: 12px;
}
.akz-app-search__switch {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 0.18rem;
width: 100%;
padding: 0.18rem;
}
.akz-app-search__switch-btn {
width: 100%;
padding: 0.6rem 0.82rem;
font-size: 0.94rem;
white-space: normal;
}
.akz-app-search__status {
font-size: 1.12rem;
line-height: 1.34;
}
.akz-app-search__code {
font-size: 1.44rem;
}
.akz-app-search__origin {
font-size: 1.4rem;
line-height: 1.26;
}
.akz-app-search__meta {
font-size: 1.16rem;
line-height: 1.24;
}
.akz-app-search__submit {
margin-top: 0.1rem;
}
}