body {
    margin: 0;
    padding: 0;
    font-family: "Open Sans", sans-serif;
    font-size: 14px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    color: #333;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1;
}

.logo {
    margin-left: 20px;
}

.logo img {
    vertical-align: middle;
}

.no-wrap {
  white-space: nowrap;
}


.right-container {
    display: flex;
    align-items: center;
    margin-right: 20px;
    white-space: nowrap;
}


.search-container {
    position: relative;
    margin-right: 10px;
}



.search-input {
    width: 260px;
    height: 36px;
    border: 1px solid #a0c3ff;
    border-radius: 20px;
    padding: 0 20px;
    font-size: 14px;
    color: #333;
    outline: none;
    transition: border-color 0.2s ease-in-out;
}

.search-input:focus {
    border-color: #007bff;
}

.search-container .dropdown {
    display:none;
    position: absolute;
    top: 105%;
    left: 0;
    border-top: none;
    border-radius: 4px;
    width: 100%;
    line-height: 2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    background-color:  #f9f9f9;
    padding: 10px 1px;
    max-height: calc(100vh - 130px); 
    overflow-x: hidden;
}

.search-container .dropdown a {
    display:block;
    width: 100%;
    text-align: left;
    padding-left: 22px;
    text-decoration: none;
    color: #333;
    line-height: 2.5;
    font-size: 16px;
}

.search-container .dropdown a img {
    margin-right: 5px;
    height: 20px;
    vertical-align: middle;
}

.search-container .dropdown a span {
    vertical-align: middle;
    font-size: 13px;
}

.search-container .dropdown a:hover {
    font-weight: bold;
}

.privilege {
    margin-left: 10px;
    margin-right: 10px;
    text-decoration: none;
    background-image: url("/img/svg/privilege.svg");
    background-repeat: no-repeat;
    background-position: left center;
    padding-left: 25px;
    color: inherit;
}

.language-container {
    border-radius: 4px;
    background-image: url("/img/svg/language.svg");
    background-repeat: no-repeat;
    background-position: left center;
    padding: 4px 4px 4px 25px;
    position: relative;
    margin: 20px 10px;
}

.language-container a {
    color: inherit;
    text-decoration: none;
}

.language-container .dropdown {
    display:none;
    position: absolute;
    top: 100%; left: 0;
    background-color: #f2f2f2;
    border-radius: 4px;
    width: 100%;
    line-height: 2;
}

.language-container .dropdown a {
    display:block;
    width: 100%;
    text-align: center;
}

.language-container .dropdown a:hover {
    font-weight: bold;
}


.login {
    margin-left: 10px;
    color: #fff;
    background-color: blue;
    border-radius: 20px;
    padding: 10px 30px;
    font-weight: bold;
    text-decoration: none;
}

.login-avatar {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    padding-left: 10px;
    padding-right: 5px;
    position: relative;
  }

.login-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
  }

.login-avatar .account-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 220px);
    right: 0;
    transform: translateY(-100%);
    background-color: #f2f2f2;
    border-radius: 8px;
    padding: 15px;
    padding-bottom: 0px;
    z-index: 1;
}

.login-avatar .account-show::before {
    content: "";
    position: absolute;
    top: -20px;
    right: 19px;
    transform: none;
    border: 10px solid transparent;
    border-bottom-color: #f2f2f2;
}

.login-avatar .account-show {
    display: block;
  }

.login-avatar .account-show a {
  color: #000000; 
  text-decoration: none; 
}

.login-avatar .account-show a:hover {
  font-weight: bold;
}

.login-avatar .account-show .renew-vip, .login-avatar .account-show .upgrade-to-vip {
    background-color: #F9A632;
    border-radius: 4px;
    margin-top: 10px;
    padding: 0px 10px;
    font-size: 13px;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 32px;
}

.login-avatar .account-show .renew-vip a, .login-avatar .account-show .upgrade-to-vip a {
    color: #fff;
}

.login-avatar .account-show .renew-vip a:hover, .login-avatar .account-show .upgrade-to-vip a:hover {
    font-weight: normal;
}

.login-avatar .account-show .account {
    background-image: url("/img/svg/account.svg");
    background-repeat: no-repeat;
    background-position: left center;
    padding-left: 30px;
    margin-left: 5px;
}

.login-avatar .account-show .logout {
    background-image: url("/img/svg/logout.svg");
    background-repeat: no-repeat;
    background-position: left center;
    padding-left: 30px;
    margin-left: 5px;
}

.content {
    margin-top: 80px;
    display: flex;
    flex-wrap: nowrap;
    height: calc(100vh - 80px);
}

.left {
    width: 200px;
    background-color: #fff;
    position: fixed;
    left: 0;
    top: 80px;
    bottom: 0;
    overflow-y: auto;
}
.navigation {
    list-style: none;
    padding: 25px;
    margin: 20px 0;
    font-family: "Source Sans Pro", Helvetica, Arial, "Noto Sans SC", sans-serif;
}

.navigation li {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 5px;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 500;
}

.navigation li.active {
    background-color: #eee;
}

.navigation li:hover {
    background-color: #eee;
    border-color: #09f;
}

.navigation li a {
    display: flex;
    align-items: center;
    color: #333;
    text-decoration: none;
    width: 100%;
    min-width: 130px;
}

.navigation li a img {
    width: 20px;
    height: 20px;
    margin-right: 16px;
}

.navigation li.active a {
    color: #417ff9;
}

.navigation li.active::before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 100%;
    margin-right: 10px;
    background-color: #ccc;
    border-radius: 5px 0 0 5px;
}

.navigation li::before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 100%;
    margin-right: 10px;
    background-color: transparent;
    border-radius: 0;
}

.right {
    flex-grow: 1;
    background-color: #f9f9f9;
    margin-left: 200px;
    padding: 10px 30px;
    overflow-y: auto;
}

.right h3 {
    color: #686868;
    font-size: 16px;
}

.square-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;    
    margin-top: 10px;
}

.square {
    width: 150px;
    height: 150px;
    margin-right: 10px;
    margin-bottom: 10px;
    border-radius: 10px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    text-decoration: none;
}

.square a {
    color: #686868;
    text-decoration: none;
}

.square a:hover {
    color: #485fc7;
    text-decoration: none;
}

.square img {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
}

.square span {
    display: block;
    text-align: center;
}



@media (max-width: 600px) {
  .privilege {
    display: none;
  }
  .language-container {
    display: none;
  }    

  .search-input {
    width: 130px;  
  }
}

@media (max-width: 768px) {
  .search-input {
    width: 130px;  
  }
}
/* Brand subtitle: text to the right of the logo */
.brand-cn { display: inline-block; vertical-align: middle; position: relative; top: 3px; margin-left: 8px; font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 12px; font-weight: 600; color: #1a1a1a; letter-spacing: 0.5px; }

/* ===== 移动端适配（≤768px）：纯追加，不影响 PC ===== */
@media (max-width: 768px) {
    .header { padding: 0 12px; box-sizing: border-box; }
    .header .logo-ad-wrapper { display: none; } /* logo旁推广贴纸：移动端放不下，隐藏防横向溢出 */
    .header .search-container,
    .header .language-container,
    .header .privilege { display: none; }
    .logo { margin-left: 0; }
    .content { display: block; height: auto; min-height: calc(100vh - 80px); }
    .left { position: static; width: 100%; height: auto; overflow-y: visible; }
    .navigation { display: flex; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 8px; margin: 0; }
    .navigation li { flex: 0 0 auto; margin-bottom: 0; padding: 8px 12px; font-size: 15px; }
    .right { margin-left: 0; padding: 12px; height: auto; overflow-y: visible; }
    .square-container { justify-content: space-between; }
    .square { width: calc(50% - 5px); height: auto; min-height: 100px; margin-right: 0; padding: 12px 6px; box-sizing: border-box; }
    .file-item .size, .file-item .count { display: none; }
    .file-item { font-size: 13px; flex-wrap: wrap; }
    #file-container { height: 180px; }
    img, video { max-width: 100%; }
}

/* ===== 移动端抽屉导航（配 public.js 注入的 .nav-toggle / .mobile-nav-drawer） ===== */
.nav-toggle { display: none; }
.mobile-nav-drawer { display: none; }
@media (max-width: 768px) {
    .left { display: none; }
    .nav-toggle {
        display: flex; flex-direction: column; justify-content: center; align-items: center;
        width: 44px; height: 44px; margin-left: 2px; cursor: pointer; border-radius: 6px;
    }
    .nav-toggle span { display: block; width: 20px; height: 2px; background: #333; margin: 2.5px 0; border-radius: 1px; transition: background 0.2s ease; }
    /* 不变形为 X：打开抽屉时三道杠变蓝提示状态，再点一次关闭 */
    .nav-toggle.open span { background: #1e5af5; }
    .mobile-nav-drawer {
        display: none; position: fixed; top: 80px; left: 0; right: 0; z-index: 999;
        background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.12);
        max-height: calc(100vh - 80px); overflow-y: auto;
    }
    .mobile-nav-drawer.open { display: block; }
    .mobile-nav-list { list-style: none; padding: 8px 0; margin: 0; }
    .mobile-nav-list li { display: flex; align-items: center; padding: 14px 24px; font-size: 16px; font-weight: 500; border-radius: 0; margin-bottom: 0; }
    .mobile-nav-list li.active { background: #eee; }
    .mobile-nav-list li a { display: flex; align-items: center; color: #333; text-decoration: none; }
    .mobile-nav-list li a img { width: 20px; height: 20px; margin-right: 12px; }
}

/* ===== 移动端搜索（搜索图标 + header 下方展开） ===== */
.search-toggle { display: none; }
@media (max-width: 768px) {
    .search-toggle { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: 2px; cursor: pointer; border-radius: 6px; }
    .header.search-open .search-container {
        display: block; position: fixed; top: 80px; left: 0; right: 0; z-index: 998;
        background: #fff; padding: 10px 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    }
    .header.search-open .search-input { width: 100%; box-sizing: border-box; height: 40px; font-size: 16px; }
    .header.search-open .dropdown { position: absolute; top: 100%; left: 12px; right: 12px; max-height: 60vh; overflow-y: auto; }
}

/* ===== 移动端语言切换（地球图标）+ 登录图标化 ===== */
.lang-toggle { display: none; }
.login > svg { display: none; }
@media (max-width: 768px) {
    .lang-toggle { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: 2px; cursor: pointer; border-radius: 6px; }
    .header.lang-open .language-container {
        display: block; position: fixed; top: 80px; right: 0; z-index: 998;
        background: #fff; padding: 8px 0; box-shadow: 0 4px 12px rgba(0,0,0,0.12); min-width: 140px;
    }
    .header.lang-open .language-container > a { display: none !important; }
    .header.lang-open .dropdown { display: block !important; position: static; box-shadow: none; border: 0; margin: 0; padding: 0 8px; }
    .header.lang-open .dropdown a { display: block; padding: 12px 16px; font-size: 15px; white-space: nowrap; }
    .login { font-size: 0; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: 6px; }
    .login > svg { display: block; }
}

/* ===== 移动端语言面板美化 + 登录去按钮化 ===== */
@media (max-width: 768px) {
    /* 登录：纯图标，无按钮底色 */
    .login {
        font-size: 0; background: none; border-radius: 0; padding: 0;
        display: inline-flex; align-items: center; justify-content: center;
        width: 44px; height: 44px; margin-left: 2px; color: #333;
    }
    .login > svg { display: block; }
    /* 语言面板：白底圆角卡片 + 分隔线 + 选中态 */
    .header.lang-open .language-container {
        top: 76px; right: 12px; min-width: 160px;
        border-radius: 12px; padding: 6px; box-shadow: 0 8px 24px rgba(0,0,0,0.16);
    }
    .header.lang-open .language-container > a { display: none !important; }
    .header.lang-open .dropdown {
        display: block !important; position: static; box-shadow: none; border: 0;
        margin: 0; padding: 0; background: none; width: auto; line-height: 1.2;
    }
    .header.lang-open .dropdown a {
        display: flex; align-items: center; justify-content: space-between;
        padding: 13px 14px; font-size: 15px; white-space: nowrap; color: #333;
        border-radius: 8px; text-align: left; width: auto;
    }
    .header.lang-open .dropdown a:hover { font-weight: normal; background: #f5f5f5; }
    .header.lang-open .dropdown a:active { background: #eee; }
}

/* ===== 移动端文件列表单行化（勾选+文件名+短进度条+紧凑按钮） ===== */
@media (max-width: 768px) {
    .file-item { flex-wrap: nowrap; row-gap: 0; padding: 8px; font-size: 13px; }
    .file-item .checkbox { width: 28px; flex: 0 0 28px; }
    .file-item .size, .file-item .count { display: none; }
    .file-item .name { flex: 1 1 auto; width: auto; min-width: 0; margin-right: 6px; }
    .file-item .progress { order: 0; flex: 0 0 20%; width: auto; }
    /* 数据行的 progress-bar 是 file-item 直接子元素（无 .progress 包装层）；占剩余宽度约 92%，右侧留缝不顶到按钮 */
    .file-item .progress-bar { width: 100%; height: 6px; flex: 1 1 auto; margin-right: 5%; }
    .file-item-header .name, .file-item-header .progress { display: none; }
    .file-item .convert, .file-item .batchConvertOrDownloadLink { flex: 0 0 auto; width: auto; margin-left: 4px; text-align: center; }
    .file-item .convert button, .file-item .batchConvertOrDownloadLink span { width: auto; min-height: 34px; padding: 6px 10px; }
    /* 表头「批量转换」出现时不撑高表头行 */
    .file-item-header .batchConvertOrDownloadLink span { min-height: 0; padding: 2px 8px; font-size: 12px; line-height: 20px; align-self: center; }
}

/* ===== 客户端下载区：双卡片（桌面套件 + 移动端，2026-09-08 v2）===== */
#clients-section { margin-bottom: 14px; }
.clients-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.clients-card {
    background: linear-gradient(135deg, #f7f9ff 0%, #eef4ff 70%, #fdf7ee 100%);
    border: 1px solid #e3eaf6; border-radius: 14px; padding: 20px 22px;
    box-shadow: 0 2px 10px rgba(30, 90, 245, 0.06);
}
.clients-card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.clients-icon {
    width: 46px; height: 46px; border-radius: 12px; flex: 0 0 46px;
    display: flex; align-items: center; justify-content: center;
    background: #1e5af5; overflow: hidden;
}
.clients-icon img { width: 26px; height: 26px; }
.clients-icon-mobile { padding: 0; background: #eef1f6; }
.clients-icon-mobile img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18); }
#clients-section h3 { margin: 0 0 4px; font-size: 17px; color: #1a1a1a; }
#clients-section p { margin: 0; font-size: 13px; color: #666; }
.clients-feats { list-style: none; margin: 0 0 14px; padding: 0; }
.clients-feats li {
    font-size: 14px; color: #444; line-height: 1.6; padding-left: 22px; position: relative;
}
.clients-feats li::before {
    content: ""; position: absolute; left: 0; top: 7px;
    width: 14px; height: 14px; background: url(/img/svg/tick-mark.svg) no-repeat center / contain;
}
.clients-btns { display: flex; align-items: center; gap: 12px; }
.clients-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: #1e5af5; color: #fff; border: 1px solid #1e5af5; border-radius: 8px;
    padding: 9px 18px; font-size: 14px; font-weight: 500; text-decoration: none;
    box-shadow: 0 2px 6px rgba(30, 90, 245, 0.3); transition: box-shadow 0.2s ease;
}
.clients-btn:hover { color: #fff; box-shadow: 0 4px 12px rgba(30, 90, 245, 0.45); }
.clients-btn img { width: 18px; height: 18px; }
.clients-btn-ghost { background: #fff; color: #1d1d1f; border-color: #1d1d1f; box-shadow: none; }
.clients-btn-ghost:hover { color: #1d1d1f; }
.clients-qr-row { gap: 0; }
.clients-qr { display: flex; align-items: center; gap: 12px; }
.clients-qr img {
    width: 64px; height: 64px; background: #fff; padding: 3px; box-sizing: content-box;
    border: 1px solid #e3eaf6; border-radius: 8px;
}
.clients-qr span { font-size: 13px; color: #444; }
@media (max-width: 768px) {
    .clients-grid { grid-template-columns: 1fr; }
    .clients-card-desktop { display: none; }
    .clients-btn { flex: 1; justify-content: center; min-height: 44px; box-sizing: border-box; }
}

/* ===== 桌面卡右侧 Office 三件套界面缩略图 ===== */
.clients-card-desktop { position: relative; }
.clients-card-visual {
    position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
    width: 190px; pointer-events: none;
}
.clients-card-visual img { width: 100%; display: block; }
@media (max-width: 1200px) { .clients-card-visual { display: none; } }

/* ===== 移动卡右侧手机 mockup ===== */
.clients-card { position: relative; }
.clients-card-visual--phone { width: 118px; right: 26px; }

/* ===== 移动端登录用户下拉面板美化（纯追加，不影响 PC） ===== */
@media (max-width: 768px) {
    .login-avatar .account-dropdown {
        position: fixed;
        top: 76px;
        right: 10px;
        transform: none;
        background: #fff;
        border: 1px solid #eef0f4;
        border-radius: 12px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
        padding: 14px 14px 6px;
        min-width: 230px;
        max-width: calc(100vw - 24px);
        box-sizing: border-box;
        z-index: 1000;
    }
    .login-avatar .account-show::before { display: none; }
    .login-avatar .account-dropdown #avatarImg2 {
        width: 44px !important;
        height: 44px !important;
        border-radius: 50%;
    }
    .login-avatar .account-dropdown #userInfo {
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        padding-left: 10px !important;
        font-size: 13px !important;
        line-height: 1.5 !important;
    }
    .login-avatar .account-show .renew-vip,
    .login-avatar .account-show .upgrade-to-vip {
        margin: 12px 0 10px;
        border-radius: 8px;
        line-height: 34px;
    }
    .login-avatar .account-show p {
        margin: 0;
        border-top: 1px solid #f0f0f0;
    }
    .login-avatar .account-show p a {
        display: block;
        padding: 13px 6px 13px 2px;
        font-size: 15px;
    }
    .login-avatar .account-show .account,
    .login-avatar .account-show .logout {
        padding-left: 28px;
        margin-left: 0;
        background-size: 20px 20px;
    }}
