/* 洋屿 - 文章归档(今昨前天)页面（A-洋屿-文章归档(今昨前天)页面） */
.xy-a3-wrap {
    max-width: 900px;
    margin: 20px auto 60px;
    padding: 0 16px;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* 页面标题 */
.xy-a3-page-title {
    text-align: center;
    font-size: 26px;
    font-weight: 600;
    margin: 0 0 24px;
    color: var(--main-color, #333);
    position: relative;
    padding-bottom: 12px;
}

.xy-a3-page-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, #ff4d8f, #6a5af9);
}

/* 搜索框卡片 */
.xy-a3-search {
    position: relative;
    padding: 24px;
    margin-bottom: 20px;
    border-radius: 16px;
    background: var(--main-bg-color, #fff);
    border: 1px solid var(--muted-border-color, #f0f0f0);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.xy-a3-search .search-loading {
    display: none;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 16px;
    z-index: 2;
}

.xy-a3-search.searching .search-loading {
    display: flex;
}

.xy-a3-search-form {
    margin: 0 0 16px;
}

.xy-a3-search-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--body-bg-color, #f6f7f9);
    border: 1px solid var(--muted-border-color, #e8e8e8);
    border-radius: 8px;
    padding: 4px;
}

.xy-a3-search-input {
    flex: 1;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 10px 14px !important;
    font-size: 14px;
    color: var(--main-color, #333) !important;
    outline: none;
}

.xy-a3-search-input::placeholder {
    color: #aaa;
}

.xy-a3-search-btns {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.xy-a3-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 18px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.1s ease;
    white-space: nowrap;
}

.xy-a3-btn:hover {
    opacity: 0.9;
    text-decoration: none;
}

.xy-a3-btn:active {
    transform: translateY(1px);
}

.xy-a3-btn-submit {
    background: #ff4d8f;
    color: #fff;
}

.xy-a3-btn-search {
    background: #1e90ff;
    color: #fff;
}

/* 热门搜索 */
.xy-a3-hot-search {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13px;
}

.xy-a3-hot-label {
    flex-shrink: 0;
    color: #999;
    margin-top: 5px;
}

.xy-a3-hot-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
}

.xy-a3-hot-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    background: var(--body-bg-color, #f6f7f9);
    color: var(--main-color, #555);
    text-decoration: none;
    transition: all 0.2s ease;
}

.xy-a3-hot-tag:hover {
    background: #1e90ff;
    color: #fff;
    text-decoration: none;
}

/* Tab 切换条 */
.xy-a3-tabs {
    display: flex;
    gap: 10px;
    padding: 6px;
    margin-bottom: 20px;
    border-radius: 12px;
    background: var(--main-bg-color, #fff);
    border: 1px solid var(--muted-border-color, #f0f0f0);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.xy-a3-tab {
    flex: 1;
    padding: 12px 10px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    color: var(--main-color, #333);
    background: transparent;
    transition: all 0.2s ease;
    user-select: none;
    font-size: 14px;
}

.xy-a3-tab:hover {
    background: var(--body-bg-color, #f6f9fd);
}

.xy-a3-tab.active {
    background: var(--body-bg-color, #f6f9fd);
    color: var(--theme-color, #1e90ff);
    font-weight: 600;
}

.xy-a3-tab .xy-a3-count {
    color: #F56C6C;
    margin-left: 2px;
}

/* 搜索结果 */
.xy-a3-search-results {
    border-radius: 16px;
    background: var(--main-bg-color, #fff);
    border: 1px solid var(--muted-border-color, #f0f0f0);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    margin-bottom: 20px;
    overflow: hidden;
}

.xy-a3-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    border-bottom: 1px solid var(--muted-border-color, #f0f0f0);
    background: var(--body-bg-color, #f9f9f9);
}

.xy-a3-results-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--main-color, #333);
}

.xy-a3-results-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 16px;
    border-radius: 2px;
    background: linear-gradient(180deg, #ff4d8f, #6a5af9);
    margin-right: 8px;
    vertical-align: middle;
}

.xy-a3-results-close {
    background: transparent;
    border: 0;
    font-size: 24px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 0 4px;
}

.xy-a3-results-close:hover {
    color: #ff4d8f;
}

.xy-a3-results-body {
    padding: 8px 24px 16px;
}

.xy-a3-results-body .xy-a3-empty {
    padding: 40px 0;
}

/* 内容面板 */
.xy-a3-panels {
    border-radius: 16px;
    background: var(--main-bg-color, #fff);
    border: 1px solid var(--muted-border-color, #f0f0f0);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    padding: 16px 24px;
}

.xy-a3-panel {
    display: none;
}

.xy-a3-panel.active {
    display: block;
}

.xy-a3-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.xy-a3-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px dashed var(--muted-border-color, #e8e8e8);
}

.xy-a3-list li:last-child {
    border-bottom: 0;
}

.xy-a3-title {
    flex: 1;
    color: var(--main-color, #333);
    font-size: 15px;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.xy-a3-title:hover {
    color: var(--theme-color, #1e90ff);
}

.xy-a3-time {
    flex-shrink: 0;
    font-size: 13px;
    color: #999;
    white-space: nowrap;
}

.xy-a3-empty {
    padding: 40px 0;
    text-align: center;
    color: #999;
    font-size: 14px;
}

/* 夜间模式适配 */
body.dark-theme .xy-a3-page-title {
    color: var(--main-color, #e0e0e0);
}

body.dark-theme .xy-a3-page-title::after {
    background: linear-gradient(90deg, #ff4d8f, #8f82bc);
}

body.dark-theme .xy-a3-search,
body.dark-theme .xy-a3-tabs,
body.dark-theme .xy-a3-panels,
body.dark-theme .xy-a3-search-results {
    background: var(--main-bg-color, #1e1e1e);
    border-color: var(--muted-border-color, #333);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

body.dark-theme .xy-a3-results-header {
    background: var(--body-bg-color, #252525);
    border-color: var(--muted-border-color, #333);
}

body.dark-theme .xy-a3-results-title {
    color: var(--main-color, #e0e0e0);
}

body.dark-theme .xy-a3-results-close {
    color: #888;
}

body.dark-theme .xy-a3-results-close:hover {
    color: #ff4d8f;
}

body.dark-theme .xy-a3-search-inner {
    background: var(--body-bg-color, #252525);
    border-color: var(--muted-border-color, #333);
}

body.dark-theme .xy-a3-search-input {
    color: var(--main-color, #e0e0e0) !important;
}

body.dark-theme .xy-a3-search-input::placeholder {
    color: #666;
}

body.dark-theme .xy-a3-tab:hover,
body.dark-theme .xy-a3-tab.active {
    background: var(--body-bg-color, #252525);
}

body.dark-theme .xy-a3-hot-tag {
    background: var(--body-bg-color, #252525);
    color: var(--main-color, #aaa);
}

body.dark-theme .xy-a3-hot-tag:hover {
    background: #1e90ff;
    color: #fff;
}

body.dark-theme .xy-a3-title {
    color: var(--main-color, #e0e0e0);
}

body.dark-theme .xy-a3-time,
body.dark-theme .xy-a3-empty,
body.dark-theme .xy-a3-hot-label {
    color: #888;
}

body.dark-theme .xy-a3-search .search-loading {
    background: rgba(30, 30, 30, 0.85);
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .xy-a3-page-title {
        font-size: 22px;
        margin-bottom: 18px;
    }

    .xy-a3-search {
        padding: 16px;
    }

    .xy-a3-search-inner {
        flex-wrap: wrap;
        gap: 8px;
    }

    .xy-a3-search-input {
        width: 100%;
        flex: auto;
    }

    .xy-a3-search-btns {
        width: 100%;
    }

    .xy-a3-btn {
        flex: 1;
    }

    .xy-a3-hot-search {
        flex-direction: column;
        gap: 8px;
    }

    .xy-a3-hot-label {
        margin-top: 0;
    }

    .xy-a3-tabs {
        gap: 6px;
        padding: 4px;
    }

    .xy-a3-tab {
        padding: 10px 6px;
        font-size: 13px;
    }

    .xy-a3-panels {
        padding: 12px 16px;
    }

    .xy-a3-results-header {
        padding: 12px 16px;
    }

    .xy-a3-results-body {
        padding: 8px 16px 12px;
    }

    .xy-a3-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 12px 0;
    }

    .xy-a3-time {
        font-size: 12px;
    }
}
