/*
Theme Name: 有道翻译主题
Theme URI: https://www.youdao.com
Description: 有道词典官方WordPress主题 - 仿有道词典PC版官网设计
Version: 1.0.0
Author: @Kabuseo
Author URI: https://t.me/kabuseo
Text Domain: youdao
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* ========== Reset & Base ========== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #333;
    background: #fff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========== Navigation ========== */
.header {
    position: relative;
    z-index: 1000;
}

.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    transition: all 0.3s ease;
    background: transparent;
}

.nav.scrolling {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    height: 64px;
}

.item-left .logo {
    height: 36px;
    width: auto;
}

.item-right .menu {
    display: flex;
    gap: 32px;
}

.item-right .menu .menu-item a {
    font-size: 15px;
    color: #333;
    font-weight: 500;
    transition: color 0.2s;
    padding: 6px 0;
}

.item-right .menu .menu-item a:hover {
    color: #e04040;
}

/* ========== Banner / Hero Section ========== */
.main {
    overflow: hidden;
}

.desktop-content .first {
    position: relative;
    width: 100%;
    height: 759px;
    overflow: hidden;
}

.desktop-content .first .banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.desktop-content .first .content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 220px 24px 0;
    text-align: center;
    height: 100%;
}

.desktop-content .first .content h1 {
    position: relative;
    z-index: 5;
    margin-top: 0;
    font-size: 32px;
    font-weight: 700;
    color: #222;
}

.desktop-content .first .content .title {
    position: relative;
    z-index: 5;
    margin: 20px auto;
    max-width: 900px;
    transform: scale(1.2);
    transform-origin: center top;
}

.desktop-content .first .content .ele.computer {
    position: absolute;
    left: 50%;
    bottom: 40px;
    transform: translateX(-50%);
    width: 80%;
    max-width: 900px;
    z-index: 1;
    pointer-events: none;
}

.download-container {
    position: relative;
    z-index: 5;
    margin-top: 30px;
}

.download-area {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.download-area a {
    display: inline-block;
    transition: transform 0.2s, box-shadow 0.2s;
    outline: none !important;
    border-radius: 8px;
}

.download-area a:hover {
    transform: translateY(-2px);
}

.download-area .download {
    height: 52px;
    width: auto;
}

.download-area .appstore {
    height: 52px;
    width: auto;
}

/* ========== Content More Container ========== */
.content-more_container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== Part 1 - AI Features ========== */
.part1 {
    padding: 80px 0 60px;
}

.part1 > .title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: #222;
    margin-bottom: 8px;
}

.part1 > .desc {
    text-align: center;
    font-size: 14px;
    color: #999;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 50px;
}

.details {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.detail-item {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    background: #f8f9fb;
    border-radius: 16px;
    padding: 40px;
}

.detail-item .img1 {
    width: 45%;
    max-width: 480px;
    border-radius: 12px;
    flex-shrink: 0;
}

/* AI Box */
.ai-Box {
    flex-direction: row;
}

.aiBox-desc {
    flex: 1;
}

.aiBox-desc .subtitle {
    font-size: 24px;
    font-weight: 700;
    color: #222;
    margin-bottom: 12px;
}

.aiBox-desc .subtitle-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.8;
}

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

.infos-item {
    background: #fff;
    border-radius: 10px;
    padding: 16px;
    transition: box-shadow 0.3s;
}

.infos-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.infos-item-tip {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: #e04040;
    margin-bottom: 6px;
    padding: 2px 10px;
    background: #fff0f0;
    border-radius: 4px;
}

.infos-item-tip-desc {
    font-size: 13px;
    color: #888;
    line-height: 1.6;
}

/* AI Translation */
.aiTrans {
    flex-direction: row;
}

.aiTrans-desc {
    flex: 1;
}

.aiTrans-desc .subtitle {
    font-size: 24px;
    font-weight: 700;
    color: #222;
    margin-bottom: 12px;
}

.aiTrans-desc .subtitle-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 10px;
}

.aiTrans-desc .subtitle-desc strong {
    color: #333;
}

/* AI Write */
.aiWrite {
    flex-direction: row;
}

.aiWrite-desc {
    flex: 1;
}

.aiWrite-desc .subtitle {
    font-size: 24px;
    font-weight: 700;
    color: #222;
    margin-bottom: 12px;
}

.aiWrite-desc .subtitle-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 6px;
}

/* ========== Part 2 - Scenarios ========== */
.part2 {
    padding: 80px 0 60px;
}

.part2 > .title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: #222;
    margin-bottom: 50px;
}

.rows {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.row-item {
    display: flex;
    align-items: center;
    gap: 40px;
    background: #f8f9fb;
    border-radius: 16px;
    padding: 40px;
    transition: transform 0.3s;
}

.row-item:hover {
    transform: translateY(-4px);
}

.row-item:nth-child(even) {
    flex-direction: row-reverse;
}

.row-item .text {
    flex: 1;
}

.row-item .sub-title {
    font-size: 22px;
    font-weight: 700;
    color: #222;
    margin-bottom: 12px;
}

.row-item .sub-desc {
    font-size: 14px;
    color: #666;
    line-height: 2;
}

.row-item .img {
    width: 45%;
    max-width: 480px;
    border-radius: 12px;
    flex-shrink: 0;
}

/* Bottom infos row */
.bottom-infos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 60px;
}

.bottom-infos-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    background: #f8f9fb;
    border-radius: 12px;
    transition: box-shadow 0.3s;
}

.bottom-infos-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.bottom-infos-img-box {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.bottom-infos-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bottom-infos-title {
    font-size: 15px;
    font-weight: 600;
    color: #222;
    margin-bottom: 4px;
}

.bottom-infos-desc {
    font-size: 13px;
    color: #999;
}

/* ========== Bottom / Download CTA ========== */
.bottom {
    padding: 80px 0;
    height: auto;
}

.bottom .download {
    text-align: center;
}

.bottom .download .title {
    font-size: 36px;
    font-weight: 700;
    color: #222;
    margin-bottom: 30px;
}

.honor {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.honor-item {
    height: 60px;
    width: auto;
}

.bottom .download .download-btn {
    height: 52px;
    width: auto;
    margin: 0 auto;
    cursor: pointer;
    transition: transform 0.2s;
}

.bottom .download .download-btn:hover {
    transform: translateY(-2px);
}

/* ========== FAQ Section ========== */
.faq-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 24px;
}

.faq-title {
    text-align: center;
    font-size: 30px;
    font-weight: 700;
    color: #222;
    margin-bottom: 40px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.faq-item {
    background: #f8f9fb;
    border-radius: 12px;
    padding: 24px;
    transition: box-shadow 0.3s;
}

.faq-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.faq-q {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    margin-bottom: 10px;
    padding-left: 16px;
    border-left: 3px solid #e04040;
}

.faq-a {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
}

/* ========== News List ========== */
.c-tit {
    font-size: 30px;
    font-weight: 700;
    color: #222;
    text-align: center;
    margin-bottom: 40px;
}

.news-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

.news-list > div {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-list > div:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.news-list > div > a#wps-list-img,
.news-list > div > a.news-thumb {
    display: block;
    height: 15rem;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.atk-title {
    padding: 16px;
}

.atk-title strong a {
    display: block;
}

.atk-title strong a h2,
.atk-title strong a {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    line-height: 1.5;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.atk-title p {
    font-size: 13px;
    color: #888;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
}

.atk-title .text-sm {
    font-size: 12px;
    color: #bbb;
}

/* ========== Footer ========== */
.footer {
    background: #2b2b2b;
    color: #ccc;
    padding-top: 50px;
}

.dict-website-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    gap: 60px;
}

.official-code {
    flex-shrink: 0;
    width: 180px;
}

.official-code .logo {
    width: 120px;
    margin-bottom: 20px;
}

.wechat-container {
    text-align: center;
    margin-bottom: 16px;
}

.wechat-qrcode {
    width: 120px;
    margin: 0 auto 8px;
    border-radius: 8px;
}

.wechat-container p {
    font-size: 12px;
    color: #aaa;
    line-height: 1.5;
}

.channel-area-title {
    font-size: 13px;
    color: #aaa;
    margin-bottom: 8px;
}

.select-channel_area {
    display: flex;
    gap: 10px;
}

.channel-logo {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.channel-logo:hover {
    opacity: 1;
}

.foot-content {
    display: flex;
    flex: 1;
    gap: 30px;
    justify-content: space-between;
}

.foot-list {
    flex: 1;
}

.list-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 14px;
}

.list-cell {
    margin-bottom: 8px;
}

.list-cell .value {
    font-size: 13px;
    color: #999;
    transition: color 0.2s;
}

.list-cell .value:hover {
    color: #fff;
}

.copyright {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px;
    border-top: 1px solid #3a3a3a;
    font-size: 12px;
    color: #777;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.copyright .link {
    color: #777;
    transition: color 0.2s;
}

.copyright .link:hover {
    color: #aaa;
}

.report {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 24px 30px;
    text-align: center;
    font-size: 12px;
    color: #666;
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.report .link {
    color: #666;
    transition: color 0.2s;
}

.report .link:hover {
    color: #aaa;
}

/* ========== Pagination ========== */
.pagination {
    text-align: center;
    padding: 40px 0;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    border-radius: 6px;
    font-size: 14px;
    color: #666;
    background: #f5f5f5;
    transition: all 0.2s;
}

.pagination .page-numbers:hover {
    background: #e04040;
    color: #fff;
}

.pagination .page-numbers.current {
    background: #e04040;
    color: #fff;
}

/* ========== Single Post ========== */
.single-post-container {
    max-width: 800px;
    margin: 100px auto 60px;
    padding: 0 24px;
}

.single-post-container .post-title {
    font-size: 28px;
    font-weight: 700;
    color: #222;
    margin-bottom: 16px;
    line-height: 1.4;
}

.single-post-container .post-meta {
    font-size: 13px;
    color: #999;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.single-post-container .post-content {
    font-size: 16px;
    line-height: 1.9;
    color: #444;
}

.single-post-container .post-content p {
    margin-bottom: 18px;
}

.single-post-container .post-content h2 {
    font-size: 22px;
    font-weight: 700;
    color: #222;
    margin: 32px 0 16px;
}

.single-post-container .post-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 24px 0 12px;
}

.single-post-container .post-content img {
    border-radius: 8px;
    margin: 20px 0;
}

.single-post-container .post-content a {
    color: #e04040;
}

.single-post-container .post-content a:hover {
    text-decoration: underline;
}

.single-post-container .post-content ul,
.single-post-container .post-content ol {
    margin: 16px 0 16px 24px;
}

.single-post-container .post-content li {
    margin-bottom: 8px;
}

.single-post-container .post-content blockquote {
    border-left: 4px solid #e04040;
    padding: 12px 20px;
    margin: 20px 0;
    background: #fafafa;
    border-radius: 0 8px 8px 0;
    color: #666;
}

/* ========== Archive Page ========== */
.archive-container {
    max-width: 1200px;
    margin: 100px auto 60px;
    padding: 0 24px;
}

.archive-title {
    font-size: 30px;
    font-weight: 700;
    color: #222;
    text-align: center;
    margin-bottom: 40px;
}

/* ========== Page Template ========== */
.page-container {
    max-width: 800px;
    margin: 100px auto 60px;
    padding: 0 24px;
}

.page-container .page-title {
    font-size: 28px;
    font-weight: 700;
    color: #222;
    margin-bottom: 24px;
}

.page-container .page-content {
    font-size: 16px;
    line-height: 1.9;
    color: #444;
}

.page-container .page-content p {
    margin-bottom: 18px;
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
    .detail-item {
        flex-direction: column !important;
    }
    .detail-item .img1 {
        width: 100%;
        max-width: 100%;
    }
    .infos {
        grid-template-columns: repeat(2, 1fr);
    }
    .row-item {
        flex-direction: column !important;
    }
    .row-item .img {
        width: 100%;
        max-width: 100%;
    }
    .bottom-infos {
        grid-template-columns: repeat(2, 1fr);
    }
    .news-list {
        grid-template-columns: repeat(2, 1fr);
    }
    .foot-content {
        flex-wrap: wrap;
    }
    .dict-website-footer-container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .nav-content {
        padding: 10px 16px;
        height: 56px;
    }
    .item-left .logo {
        height: 28px;
    }
    .item-right .menu {
        gap: 20px;
    }
    .desktop-content .first .content h1 {
        font-size: 22px;
        margin-top: 20px;
    }
    .part1 > .title,
    .part2 > .title,
    .bottom .download .title {
        font-size: 24px;
    }
    .infos {
        grid-template-columns: 1fr;
    }
    .faq-grid {
        grid-template-columns: 1fr;
    }
    .news-list {
        grid-template-columns: 1fr;
    }
    .bottom-infos {
        grid-template-columns: 1fr;
    }
    .honor-item {
        height: 40px;
    }
    .detail-item {
        padding: 24px;
    }
    .row-item {
        padding: 24px;
    }
}
