html {
    background: #f5f2ef;
}

body.page-search-desktop {
    max-width: none;
    min-width: 1280px;
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(255, 153, 102, 0.12), transparent 28%),
        radial-gradient(circle at top right, rgba(243, 71, 130, 0.08), transparent 30%),
        #f5f2ef;
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: #3f3632;
}

body.page-search-desktop a,
body.page-search-desktop a:visited {
    text-decoration: none;
    color: inherit;
}

body.page-search-desktop button {
    border: 0;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

.ssd-shell * {
    box-sizing: border-box;
}

.ssd-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.ssd-wrap {
    width: min(1240px, calc(100% - 48px));
    margin: 0 auto;
}

/* TOPBAR */
.ssd-topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    background: linear-gradient(180deg, #171718 0%, #1e1d22 100%);
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
}

.ssd-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
}

.ssd-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.ssd-brand img {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    object-fit: cover;
}

.ssd-brand-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ssd-brand-copy strong {
    margin: 0;
    font-size: 18px;
    line-height: 28px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.08em;
}

.ssd-brand-copy span {
    margin: 0;
    font-size: 12px;
    line-height: 16px;
    color: rgba(255, 255, 255, 0.6);
}

.ssd-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 14px;
}

.ssd-nav a {
    padding: 0 4px 4px;
    color: rgba(255, 255, 255, 0.76);
    border-bottom: 2px solid transparent;
    transition: color .2s ease;
}

.ssd-nav a:hover,
.ssd-nav a.is-active {
    color: #fff;
}

.ssd-nav a.is-active {
    font-weight: 500;
    border-bottom-color: #ff9966;
}

.ssd-search-input-box {
    display: inline-flex;
    align-items: center;
    width: 320px;
    height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.1);
    gap: 12px;
    color: #8d7f78;
    font-size: 14px;
}

.ssd-search-input-box input {
    flex: 1;
    min-width: 0;
    border: 0;
    padding: 0;
    background: transparent;
    font-size: 14px;
    color: #3f3632;
    outline: none;
}

.ssd-search-input-box input::placeholder {
    color: #8d7f78;
}

.ssd-search-input-box svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.ssd-search-submit {
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffbf9d 0%, #ff9966 100%);
    box-shadow: 0 8px 16px rgba(255, 153, 102, 0.22);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ssd-search-submit svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 1.8;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ssd-member-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #d7b15e;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.ssd-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* MAIN CONTENT */
.ssd-section {
    padding: 40px 0;
}

.ssd-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ssd-header-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid #eadfd8;
    box-shadow: 0 16px 40px rgba(36, 29, 27, 0.06);
}

.ssd-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.ssd-header-title-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ssd-btn-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid #eadfd8;
    background: #faf7f4;
    font-size: 14px;
    font-weight: 500;
    color: #3f3632;
    white-space: nowrap;
}

.ssd-page-title {
    margin: 0;
    font-size: 32px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #3f3632;
    text-wrap: balance;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.ssd-page-desc {
    margin: 12px 0 0;
    font-size: 14px;
    line-height: 28px;
    color: #8d7f78;
}

.ssd-search-large {
    display: inline-flex;
    align-items: center;
    width: 430px;
    height: 48px;
    padding: 0 8px 0 16px;
    border-radius: 999px;
    background: #faf7f4;
    border: 1px solid #eadfd8;
    gap: 12px;
    color: #8d7f78;
    font-size: 14px;
}

.ssd-search-large svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.ssd-search-large span {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ssd-search-large input {
    flex: 1;
    min-width: 0;
    border: 0;
    padding: 0;
    background: transparent;
    font-size: 14px;
    color: #3f3632;
    outline: none;
}

.ssd-search-large input::placeholder {
    color: #8d7f78;
}

.ssd-btn-re-search {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: #ffe7dd;
    color: #ff7d46 !important;
    font-size: 12px;
    font-weight: 500;
}

.ssd-filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ssd-tag-match {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    border-radius: 999px;
    background: #ffe7dd;
    color: #ff7d46;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.ssd-tag-normal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    border-radius: 999px;
    background: #faf7f4;
    color: #8d7f78;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.ssd-result-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.ssd-result-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid #eadfd8;
    box-shadow: 0 16px 40px rgba(36, 29, 27, 0.06);
    transition: transform 0.2s ease;
}

.ssd-result-card:hover {
    transform: translateY(-4px);
}

.ssd-result-cover {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: #f7ece6;
}

.ssd-result-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
}

.ssd-result-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ssd-result-meta span:last-child {
    font-size: 12px;
    color: #8d7f78;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ssd-result-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #3f3632;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ssd-result-desc {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #8d7f78;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ssd-empty-state {
    padding: 28px 24px;
    border-radius: 22px;
    background: #fffaf7;
    border: 1px solid #eadfd8;
    font-size: 14px;
    line-height: 1.9;
    color: #8d7f78;
    text-align: center;
}

.ssd-bottom-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 16px;
}

.ssd-rec-card {
    padding: 24px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid #eadfd8;
    box-shadow: 0 16px 40px rgba(36, 29, 27, 0.06);
}

.ssd-rec-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ssd-rec-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #3f3632;
}

.ssd-btn-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 999px;
    background: #faf7f4;
    color: #8d7f78;
    font-size: 14px;
    font-weight: 500;
}

.ssd-rec-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.ssd-rec-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.ssd-rec-item img {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 20px;
    object-fit: cover;
    background: #f7ece6;
}

.ssd-rec-item h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #3f3632;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ssd-rec-empty {
    margin-top: 20px;
    font-size: 14px;
    line-height: 1.8;
    color: #8d7f78;
}

.ssd-quick-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid #eadfd8;
    box-shadow: 0 16px 40px rgba(36, 29, 27, 0.06);
}

.ssd-quick-card h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #3f3632;
}

.ssd-hotword-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ssd-hotword-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid #eadfd8;
    background: #faf7f4;
    font-size: 14px;
    font-weight: 500;
    color: #3f3632;
}

/* FOOTER */
.ssd-footer {
    border-top: 1px solid #eadfd8;
    background: #fffaf7;
}

.ssd-footer-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 32px 0;
}

.ssd-footer-info {
    min-width: 0;
}

.ssd-footer-brand {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #241d1b;
}

.ssd-footer-text {
    margin: 8px 0 0;
    font-size: 14px;
    color: #8d7f78;
}

.ssd-footer-links {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #8d7f78;
}

.ssd-footer-links a {
    text-decoration: none;
    color: inherit;
    white-space: nowrap;
}
