/* =============================================================
 * 法量官方网站 - 全局样式
 * 主色：#FF6C39（与 cbt-app 保持一致）
 * ============================================================= */
:root {
    --primary-color: #FF6C39;
    --primary-hover: #e55a2e;
    --primary-light: #fff5f0;
    --primary-soft: #ffe5d9;
    --text-color: #333333;
    --text-secondary: #666666;
    --text-light: #999999;
    --bg-light: #f7f8fa;
    --bg-white: #ffffff;
    --border-color: #e8e8e8;
    --border-light: #f0f0f0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-primary: 0 4px 15px rgba(255, 108, 57, 0.25);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --transition: all 0.3s ease;
    --max-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
        'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-light);
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
}

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

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    font-family: inherit;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ============== 顶部导航 ============== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-img {
    height: 36px;
    width: auto;
    display: block;
}

.logo-text {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #FF6C39 0%, #ff8a5f 100%);
    border-radius: 8px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    box-shadow: var(--shadow-primary);
}

.nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-item {
    font-size: 15px;
    color: var(--text-color);
    position: relative;
    padding: 8px 0;
    transition: var(--transition);
}

.nav-item:hover,
.nav-item.active {
    color: var(--primary-color);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 22px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    height: 38px;
    padding: 0 22px;
    background: linear-gradient(135deg, #FF6C39 0%, #ff8a5f 100%);
    color: #fff;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--shadow-primary);
    transition: var(--transition);
}

.nav-cta:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 108, 57, 0.35);
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    font-size: 22px;
    color: var(--text-color);
}

/* ============== 通用 Hero ============== */
.hero {
    background: linear-gradient(135deg, #FF6C39 0%, #FF6C39 100%);
    color: #fff;
    padding: 100px 0 110px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,108,57,0.12) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,108,57,0.08) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
}

.hero-inner {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.3;
}

.hero p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 18px;
    max-width: 720px;
    margin: 0 auto 32px;
}

.hero-search {
    display: flex;
    max-width: 640px;
    margin: 0 auto;
    background: #fff;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.hero-search input {
    flex: 1;
    border: 0;
    padding: 0 24px;
    height: 52px;
    font-size: 15px;
    color: var(--text-color);
    outline: none;
}

.hero-search button {
    background: linear-gradient(135deg, #FF6C39 0%, #ff8a5f 100%);
    color: #fff;
    border: 0;
    padding: 0 36px;
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition);
}

.hero-search button:hover {
    background: var(--primary-hover);
}

/* ============== 通用分区 ============== */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 32px;
    color: var(--text-color);
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.section-title p {
    color: var(--text-secondary);
    font-size: 16px;
}

/* ============== 平台模块网格 ============== */
.platform-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.platform-card {
    padding: 32px 24px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.platform-card::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -30%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    pointer-events: none;
}

.platform-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.platform-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.platform-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.platform-card p {
    font-size: 14px;
    line-height: 1.7;
    opacity: 0.85;
}

@media (max-width: 992px) {
    .platform-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .platform-grid {
        grid-template-columns: 1fr;
    }
}

/* ============== 按钮 ============== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 22px;
    background: var(--primary-color);
    color: #fff;
    border: 0;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: var(--shadow-primary);
}

.btn:hover {
    color: #fff;
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 108, 57, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 1.5px solid var(--primary-color);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
}

.btn-lg {
    height: 48px;
    padding: 0 32px;
    font-size: 16px;
}

/* ============== 卡片 ============== */
.card {
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

/* ============== 标签 ============== */
.tag {
    display: inline-block;
    padding: 2px 10px;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.6;
}

.tag-gray {
    background: var(--bg-light);
    color: var(--text-secondary);
}

/* ============== 通用列表空态/加载态/分页 ============== */
.empty {
    padding: 80px 0;
    text-align: center;
    color: var(--text-light);
}

.empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 32px;
}

.empty p {
    font-size: 15px;
    color: var(--text-light);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    min-width: 36px;
    height: 36px;
    line-height: 36px;
    padding: 0 12px;
    text-align: center;
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--text-secondary);
    font-size: 14px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.pagination a:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.pagination .active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.pagination .disabled {
    color: var(--text-light);
    background: var(--bg-light);
    cursor: not-allowed;
}

/* ============== 筛选条 ============== */
.filter-bar {
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 20px 24px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.filter-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-right: 4px;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 14px;
    background: var(--bg-light);
    color: var(--text-color);
    border-radius: 30px;
    font-size: 13px;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
}

.filter-chip:hover {
    color: var(--primary-color);
}

.filter-chip.active {
    background: var(--primary-light);
    color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 500;
}

.filter-search {
    flex: 1;
    min-width: 200px;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 14px;
    background: var(--bg-light);
    border-radius: 30px;
    transition: var(--transition);
}

.filter-search:focus-within {
    background: #fff;
    box-shadow: 0 0 0 2px var(--primary-color);
}

.filter-search input {
    flex: 1;
    border: 0;
    background: transparent;
    font-size: 14px;
    outline: none;
    height: 100%;
}

.filter-search svg {
    flex-shrink: 0;
}

/* ============== 面包屑 ============== */
.breadcrumb {
    padding: 16px 0;
    color: var(--text-light);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--text-secondary);
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb .sep {
    margin: 0 8px;
    color: var(--text-light);
}

.breadcrumb .current {
    color: var(--text-color);
}

/* ============== 页脚 ============== */
.footer {
    background: #1f1f1f;
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo {
    margin-bottom: 16px;
    color: #fff;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    line-height: 1.8;
}

.footer-col {
    position: relative;
}

.footer-col h4 {
    color: #fff;
    font-size: 15px;
    margin-bottom: 16px;
    font-weight: 600;
}

.footer-col a {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    line-height: 2.2;
}

.footer-col a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.5);
    margin: 0 8px;
}

.footer-bottom a:hover {
    color: var(--primary-color);
}

/* ============== 响应式 ============== */
@media (max-width: 1024px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .header-inner { height: 60px; }
    .nav { display: none; }
    .nav-toggle { display: block; }
    .nav.open {
        display: flex;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        padding: 12px 0;
        box-shadow: var(--shadow-md);
    }
    .nav.open .nav-item {
        padding: 12px 24px;
    }
    .hero { padding: 60px 0 70px; }
    .hero h1 { font-size: 30px; }
    .hero p { font-size: 15px; }
    .hero-search { flex-direction: column; border-radius: 14px; }
    .hero-search input { height: 44px; }
    .hero-search button { height: 44px; }
    .section { padding: 50px 0; }
    .section-title h2 { font-size: 24px; }
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .container { padding: 0 14px; }
}

.pcweb-toast {
    position: fixed;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 14px;
    z-index: 3000;
    max-width: calc(100vw - 40px);
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.pcweb-toast.show {
    opacity: 1;
}

.cooperation-modal,
.cooperation-captcha-modal {
    position: fixed;
    inset: 0;
    z-index: 2500;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cooperation-captcha-modal {
    z-index: 2600;
}

.cooperation-modal[hidden],
.cooperation-captcha-modal[hidden] {
    display: none;
}

.cooperation-mask {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.cooperation-dialog {
    position: relative;
    width: 460px;
    max-width: calc(100vw - 32px);
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    padding: 22px 20px 18px;
}

.cooperation-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
    padding-right: 26px;
}

.cooperation-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    background: #fff;
    color: var(--text-secondary);
    font-size: 18px;
    line-height: 30px;
    padding: 0;
}

.cooperation-close:hover {
    color: var(--primary-color);
    border-color: var(--primary-soft);
    background: var(--primary-light);
}

.cooperation-form {
    margin-top: 16px;
    display: grid;
    gap: 12px;
}

.cooperation-field {
    display: grid;
    gap: 8px;
}

.cooperation-field span {
    font-size: 13px;
    color: var(--text-secondary);
}

.cooperation-field input {
    height: 42px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0 12px;
    outline: none;
    font-size: 14px;
    transition: var(--transition);
    background: #fff;
}

.cooperation-field input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 108, 57, 0.14);
}

.cooperation-code-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
}

.cooperation-send-code {
    height: 42px;
    border-radius: 10px;
    border: 1px solid var(--primary-soft);
    background: var(--primary-light);
    color: var(--primary-color);
    font-weight: 600;
    padding: 0 12px;
    white-space: nowrap;
}

.cooperation-send-code:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cooperation-submit {
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #FF6C39 0%, #ff8a5f 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
}

.cooperation-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.cooperation-hint {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.6;
}

.cooperation-captcha-row {
    display: grid;
    grid-template-columns: 1fr 110px;
    gap: 10px;
    align-items: center;
    margin-top: 14px;
}

.cooperation-captcha-row input {
    height: 42px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0 12px;
    outline: none;
    font-size: 14px;
    transition: var(--transition);
    background: #fff;
}

.cooperation-captcha-row input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 108, 57, 0.14);
}

.cooperation-captcha-modal .cooperation-submit {
    width: 240px;
    display: block;
    margin: 16px auto 0;
}

.cooperation-captcha-img {
    width: 110px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    object-fit: cover;
    cursor: pointer;
}

/* ============== 通用下载按钮小程序码浮层 ============== */
.download-btn-wrapper {
    position: relative;
    display: inline-block;
}

.download-qrcode-popover {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}

.download-btn-wrapper:hover .download-qrcode-popover,
.download-btn-wrapper:active .download-qrcode-popover,
.download-btn-wrapper:focus-within .download-qrcode-popover {
    opacity: 1;
    visibility: visible;
}

.download-qrcode-content {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.download-qrcode-img {
    width: 120px;
    height: 120px;
    background: #fff;
    border-radius: 8px;
    padding: 4px;
    border: 1px solid #f0f0f0;
    overflow: hidden;
}

.download-qrcode-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.download-qrcode-tip {
    font-size: 14px;
    color: var(--text-color);
    font-weight: 500;
}

.download-qrcode-arrow {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #fff;
}

.biz-cooperation-wrapper {
    position: relative;
    display: inline-block;
}

.biz-qrcode-popover {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}

.biz-cooperation-wrapper:hover .biz-qrcode-popover,
.biz-cooperation-wrapper.active .biz-qrcode-popover {
    opacity: 1;
    visibility: visible;
}

.biz-qrcode-content {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.biz-qrcode-img {
    width: 140px;
    height: 140px;
    background: #fff;
    border-radius: 8px;
    padding: 4px;
    border: 1px solid #f0f0f0;
    overflow: hidden;
}

.biz-qrcode-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.biz-qrcode-tip {
    font-size: 14px;
    color: var(--text-color);
    font-weight: 500;
}

.biz-qrcode-arrow {
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #fff;
}

.footer .biz-qrcode-popover {
    top: auto;
    bottom: calc(100% + 12px);
}

.footer .biz-qrcode-arrow {
    top: auto;
    bottom: -6px;
    border-bottom: none;
    border-top: 8px solid #fff;
}
