/* CSS Reset和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root {
    --adm-radius-s: 4px;
    --adm-radius-m: 8px;
    --adm-radius-l: 12px;
    --adm-font-size-1: 9px;
    --adm-font-size-2: 10px;
    --adm-font-size-3: 11px;
    --adm-font-size-4: 12px;
    --adm-font-size-5: 13px;
    --adm-font-size-6: 14px;
    --adm-font-size-7: 15px;
    --adm-font-size-8: 16px;
    --adm-font-size-9: 17px;
    --adm-font-size-10: 18px;
    --adm-color-primary: #1677ff;
    --adm-color-success: #00b578;
    --adm-color-warning: #ff8f1f;
    --adm-color-danger: #ff3141;
    --adm-color-yellow: #ff9f18;
    --adm-color-orange: #ff6430;
    --adm-color-wathet: #e7f1ff;
    --adm-color-text: #333;
    --adm-color-text-secondary: #666;
    --adm-color-weak: #999;
    --adm-color-light: #ccc;
    --adm-color-border: #eee;
    --adm-color-background: #fff;
    --adm-color-highlight: var(--adm-color-danger);
    --adm-color-white: #fff;
    --adm-color-box: #f5f5f5;
    --adm-color-text-light-solid: var(--adm-color-white);
    --adm-color-text-dark-solid: #000;
    --adm-color-fill-content: var(--adm-color-box);
    --adm-font-size-main: var(--adm-font-size-5);
    --adm-font-family: -apple-system, blinkmacsystemfont, "Helvetica Neue", helvetica, segoe ui, arial, roboto, "PingFang SC", "miui", "Hiragino Sans GB", "Microsoft Yahei", sans-serif;
    --adm-border-color: var(--adm-color-border);
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #f093fb;
    --text-primary: #333333;
    --text-secondary: #666666;
    --background-color: #ffffff;
    --border-color: #e1e8ed;
    --shadow-light: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-medium: 0 4px 20px rgba(0,0,0,0.15);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

body {
    font-family: "exo", Sans-Serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: rgb(236, 238, 240);
    font-size: 16px;
}

/* 容器 */
.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 15px 0;
    box-shadow: var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo img {
    height: 50px;
    width: auto;
    transition: var(--transition);
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: var(--transition);
}

/* 主要内容区域 */
main {
    padding: 2px 0;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 10px;
    margin: 40px 0;
}

.article-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid var(--border-color);
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.article-card:hover .article-image {
    transform: scale(1.05);
}

.article-content {
    padding: 20px;
}


.article-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 10px 0;
    line-height: 1.4;
    color: var(--text-primary);
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

.article-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    font-size: 12px;
    padding: 6px 12px;
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    transition: var(--transition);
}

.read-more:hover {
    background-color: var(--primary-color);
    color: white;
}

/* 加载更多按钮 */
.load-more {
    text-align: center;
    margin: 40px 0;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* 页脚样式 */
.footer {
    background: linear-gradient(135deg, var(--text-primary) 0%, #2c3e50 100%);
    color: white;
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.footer-section p {
    color: #bdc3c7;
    line-height: 1.8;
    font-size: 14px;
}

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

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
}

.footer-section ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    border-radius: 50%;
    transition: var(--transition);
    font-size: 14px;
}

.social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: #95a5a6;
    font-size: 12px;
    line-height: 1.6;
}

.footer-bottom a {
    color: var(--accent-color);
    text-decoration: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-medium);
    }

    .nav-menu.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .article-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 30px 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .navbar {
        position: relative;
    }
}

@media (max-width: 480px) {
    .article-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .article-content {
        padding: 15px;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .container {
        padding: 0 10px;
    }
}

/* 加载动画 */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 辅助功能 */
.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;
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 图片懒加载效果 */
.lazy-load {
   /* opacity: 1;*/
    transition: opacity 0.3s;
}

.lazy-load.loaded {
    opacity: 1;
}

/* 文章卡片样式 */
.article-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.article-image {
    position: relative;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.article-title {
    margin-bottom: 15px;
}

.article-title a {
    color: #333;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.article-title a:hover {
    color: #667eea;
}


.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #888;
    margin-top: auto;
}

/* 趋势列表样式 */
.trend-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.trend-list-item {
    transition: transform 0.3s ease;
}

.trend-list-item:hover {
    transform: translateY(-3px);
}

.vertical-news-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    height: 100%;
}

.news-card-top {
    position: relative;
    overflow: hidden;
}

.news-card-img-link {
    display: block;
    text-decoration: none;
}

.news-card-img-link img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.vertical-news-card:hover .news-card-img-link img {
    transform: scale(1.05);
}

.news-card-bottom {
    padding: 15px;
}

.news-card-cnt a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.news-card-cnt a:hover {
    color: #667eea;
}

.ellipsis-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 全部文章列表样式 */
.all-articles-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .trend-list {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }

    .all-articles-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .article-card {
        flex-direction: column;
    }

    .article-image img {
        height: 160px;
    }
}

@media (max-width: 480px) {
    .trend-list {
        grid-template-columns: 1fr;
    }

    .article-content {
        padding: 15px;
    }

    .article-title a {
        font-size: 1rem;
    }
}

/* 主题颜色变量 */
@media (prefers-color-scheme: dark) {
    :root {
        --background-color: #1a1a1a;
        --text-primary: #ffffff;
        --text-secondary: #b3b3b3;
        --border-color: #333333;
    }

    .ad-banner,
    .ad-container {
        background-color: #2a2a2a;
        border-color: var(--border-color);
    }

    .article-card,
    .vertical-news-card {
        background: #2a2a2a;
        border-color: var(--border-color);
    }

    .article-title a,
    .news-card-cnt a {
        color: #ffffff;
    }
    .article-meta {
        color: #b3b3b3;
    }
}


/*候补部分*/
.home-layout {
    position: relative;
    z-index: 1;
    height: 100%;
    margin: 0 auto;
    background-color: #0e0e10;
}

.layout {
    position: relative;
    z-index: 1;
    height: 100%;
    margin: 0 auto;
    background-color: #0e0e10;
}

.home-layout:before {
    content: "";
}

.header-wrap {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 1200px;
    height: 92px;
    padding: 24px 20px;
    margin: 0 auto;
}


.mobile-menu-icon {
    width: 20px;
    height: 20px;
    background-size: 20px 20px;
}

.logo-wrap {
    display: flex;
    align-items: center;
}

.pc-logo-wrap {
    position: absolute;
    left: 50%;
    transform: translate3d(-50%, 0, 0);
}

.logo-wrap .askweai-logo {
    width: 130px;
}

.mobile-feedback-icon {
    position: absolute;
    right: 20px;
    width: 18px;
    height: 18px;
    background-size: 18px 18px;
}

.main {
    max-width: 1200px;
    min-width: 200px;
    min-height: calc(100vh - 140px);
    margin: 0 auto;
    padding: 0 20px;
}

.search-bar-wrap {
    display: flex;
    align-items: center;
    width: calc(100% - 6px);
    max-width: 748px;
    height: 44px;
    padding: 9px 12px;
    margin: 40px auto 30px;
    border-radius: 10px;
}

.search-bar-dark {
    border: 2px solid #65508e;
}

.search-bar-input {
    width: calc(100% - 40px);
    height: 30px;
    line-height: 30px;
    font-size: 16px;
    border: none;
}

.adm-input {
    --font-size: var(--adm-font-size-9);
    --color: var(--adm-color-text);
    --placeholder-color: var(--adm-color-light);
    --text-align: left;
    --background-color: transparent;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    max-width: 100%;
    max-height: 100%;
    min-height: 24px;
    background-color: var(--background-color);
}

.adm-input-element {
    flex: auto;
    display: inline-block;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    max-height: 100%;
    padding: 0;
    margin: 0;
    color: var(--color);
    font-size: var(--font-size);
    line-height: 1.5;
    background: transparent;
    border: 0;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    min-height: 1.5em;
    text-align: var(--text-align);
}

.search-bar-dark .adm-input-element {
    color: #673AB7;
}

.search-bar-input .adm-input-element {
    font-style: italic
}

.search-bar-input .adm-input-element::placeholder {
    color: #757575;
    font-style: italic
}

.search-icon {
    width: 25px;
    height: 25px;
    margin-left: 6px;
    background-size: 25px 25px !important;
    background-color: #673AB7 !important;
    background: no-repeat url("/assets/img/askinfoai/search.webp");
    cursor: pointer;
}

.trending-module {
    margin-bottom: 48px;
}

.home-page-module:last-child {
    margin-bottom: 0;
}

.home-page-module-title {
    position: relative;
    margin: 0 0 11px;
    padding-left: 4px;
    color: #673AB7;
    font-weight: 700;
    text-align: left;
    font-size: 20px;
    line-height: 24px;
}

.search-result-title:before {
    opacity: .6;
}

.triangle:before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -2px;
    left: 0;
    width: 0;
    height: 0;
    border-right: 11px solid transparent;
    border-bottom: 13px solid transparent;
}

.triangle-blue:before {
    border-top: 13px solid #37b6f5;
    border-left: 11px solid #37b6f5;
}

.trend-list {
    display: flex;
    flex-wrap: wrap;
}

.news-card {
    overflow: hidden;
    border-radius: 10px;
    transition: all .3s;
}

.news-card-dark {
    background-color: #0e0e10;
}

.trend-list-item .trending-article-card {
    flex-direction: column;
}

.vertical-news-card .news-card-top {
    overflow: hidden;
    cursor: pointer;
    opacity: 1;
    font-size: 0;
    transition: opacity .3s;
}

.news-card-img-link {
    display: block;
}

.vertical-news-card img {
    width: 100%;
    height: 200px;
}

.news-card-dark.vertical-news-card img {
    border-radius: 10px;
}

.news-card-cnt {
    padding: 13px 11px;
    height: 72px;
}

.news-card-dark.vertical-news-card .news-card-cnt {
    padding: 13px 0;
}

.ellipsis-2 {
    overflow: hidden;
    display: -webkit-box;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.news-card-cnt a {
    color: #333;
    font-size: 19px;
    line-height: 23px;
    font-weight: 700;
    text-align: left;
    word-break: break-all;
}

.news-card-dark a {
    color: #fff;
}

.search-bar-light {
    background-color: #fff;
    border: 2px solid #fff;
}

.header-wrap .pc-header-search {
    display: none;
    width: 482px;
    margin: 0 0 0 22px;
}

.page-layout {
    display: flex;
    justify-content: space-between;
}

.detail-page {
    margin-top: 10px;
}

.page-layout-main {
    flex: 1 1;
    max-width: 765px;
    min-width: 300px;
}

.detail-page-title {
    position: relative;
    -webkit-line-clamp: 4;
    font-weight: 800;
    font-size: 24px;
    color: #333;
    line-height: 30px;
    margin-bottom: 8px;
}

.multi-ellipsis-base {
    overflow: hidden;
    display: -webkit-box;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
}

.detail-page p {
    font-weight: 400;
    font-size: 16px;
    color: #333;
    line-height: 22px;
    margin-bottom: 16px;
}

.detail-page .first-paragraph {
    margin-bottom: 8px;
}

.detail-page img {
    width: 100% !important;
    border-radius: 10px;
}

.article-content-html {
    overflow: hidden;
}

.back-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 2000;
    width: 60px;
    height: 60px;
    background-size: contain;
    opacity: .6;
    cursor: pointer;
}

.page-layout-aside {
    display: block;
    width: 350px;
}

.latest-post-title-wrap {
    position: relative;
    height: 28px;
    margin-bottom: 20px;
}

.latest-post-title-wrap:after,
.latest-post-title-wrap:before {
    position: absolute;
    top: 50%;
    transform: translate3d(0, -50%, 0);
    content: "";
    width: 90px;
    height: 0;
    border: 1px solid;
}

.latest-post-title-wrap:before {
    left: 0;
}

.latest-post-title-wrap-light:after,
.latest-post-title-wrap-light:before {
    border-image: linear-gradient(90deg, transparent, #000) 1 1;
}

.latest-post-title {
    font-size: 20px;
    line-height: 28px;
    text-align: center;
}

.latest-post-title-wrap-light h2 {
    color: #000;
}

.latest-post-title-wrap:after {
    right: 0;
    transform: translate3d(0, -50%, 0) rotate(180deg);
}

.latest-post-item {
    margin-bottom: 18px;
}

.news-card-light {
    background-color: #fff;
}

.search-page {
    padding-top: 14px;
}

.search-result-title {
    position: relative;
    margin: 0 0 2px;
    padding-left: 4px;
    color: #6ecbff;
    font-weight: 700;
    font-size: 20px;
    line-height: 24px;
}

.search-result-item {
    padding: 14px 0;
    border-bottom: 1px solid #404040;
}

.search-result-item-title {
    margin-bottom: 2px;
    font-size: 18px;
    line-height: 26px;
}

.search-result-item h2 {
    margin: 0 0 4px;
}

.search-result-item-link {
    color: #488ef9;
}

.search-result-item-title a {
    color: #333333;
    font-weight: 700;
}

.search-result-item-cnt {
    flex: 1 1;
    margin-top: 2px;
    color: #333333;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    word-break: break-word;
}

.latest-post-title-wrap-dark h2 {
    color: #333333;
}

.latest-post-title-wrap-dark:after,
.latest-post-title-wrap-dark:before {
    border-image: linear-gradient(90deg, hsla(0, 0%, 100%, 0), #333333) 1 1;
}

.triangle-yellow:before {
    border-top: 13px solid #fcc81a;
    border-left: 11px solid #fcc81a;
}

.overflow {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -999;
    width: 100%;
    height: 100%;
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.36);
    backdrop-filter: blur(5px);
}

.ads-close {
    position: absolute;
    left: 2%;
    top: 3px;
    z-index: 1001;
    width: 22px;
    background: transparent;
    border: none;
    opacity: 0.4;
    cursor: not-allowed;
}


@media screen and (min-width: 600px) and (max-width: 800px) {
    .trend-list-item {
        width: calc(50% - 10px);
        margin-bottom: 18px;
        margin-right: 20px;
    }

    .trend-list-item:nth-child(2n) {
        margin-right: 0;
    }
}

@media screen and (max-width: 1000px) {
    .page-layout-aside {
        width: 250px;
    }

    .latest-post-title-wrap:after,
    .latest-post-title-wrap:before {
        width: 60px;
    }

    .latest-post-title {
        font-size: 16px;
        line-height: 28px;
    }

    .latest-post-title-wrap:after,
    .latest-post-title-wrap:before {
        width: 60px;
    }
}

@media screen and (max-width: 840px) {
    .header-wrap .search-bar-wrap {
        width: 250px;
    }
}

@media screen and (max-width: 1040px) {
    .header-wrap .search-bar-wrap {
        width: 300px;
    }
}

@media screen and (max-width: 600px) {
    .trend-list-item {
        width: 100%;
        margin-bottom: 16px;
    }
}

@media screen and (max-width: 765px) {
    .header-wrap {
        height: 44px;
        margin: 0;
        padding: 0 20px;
    }

    .header-wrap .logo-wrap {
        margin: 0 auto;
    }

    .page-layout {
        flex-direction: column;
    }

    .page-layout .page-layout-main {
        margin-right: 0;
    }

    .page-layout-aside {
        display: none;
    }
}

@media screen and (min-width: 765px) {
    .header-wrap .mobile-menu-icon {
        display: none;
    }

    .header-wrap .mobile-feedback-icon {
        display: none;
    }

    .home-page-module-title {
        margin-bottom: 19px;
        font-size: 28px;
        line-height: 33px;
    }

    .trend-list-item {
        width: calc(33.33333% - 13.33333px);
        margin-bottom: 18px;
        margin-right: 20px;
    }

    .trend-list-item:nth-child(3n) {
        margin-right: 0;
    }

    .page-layout-aside {
        display: block;
    }

    .page-layout .page-layout-main {
        margin-right: 100px;
    }

    .page-layout {
        flex-direction: row;
    }

    .header-wrap .pc-header-search {
        display: block;
    }

    .ads-close {
        left: 10%;
    }
}
