/* ================================================================
   iPMU Pro - 知识产权页面专用样式
   命名空间: .ip-page（避免与主题冲突）
   ================================================================ */

/* === 1. 变量与页面容器 === */
.ip-page {
    --bg-base: #000000;
    --bg-elevated: #151516;
    --bg-glass: rgba(28, 28, 30, 0.6);
    --border-subtle: rgba(255, 255, 255, 0.08);

    --text-title: #F5F5F7;
    --text-body: #A1A1A6;
    --text-muted: #6E6E73;

    --accent-blue: #2997FF;
    --accent-purple: #BF5AF2;
    --accent-green: #30D158;
    --accent-orange: #FF9F0A;
    --accent-red: #FF453A;
    --accent-gold: #FFD60A;

    --radius-lg: 24px;
    --radius-md: 16px;

    --font-stack: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-mono: "SF Mono", "Menlo", "Consolas", monospace;

    background-color: var(--bg-base);
    color: var(--text-body);
    font-family: var(--font-stack);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
}

.ip-page *, .ip-page *::before, .ip-page *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.ip-page a { text-decoration: none; color: inherit; transition: color 0.3s; }

/* === 1b. 顶栏（复刻 courses.css 顶栏样式） === */
.ip-page .cp-topbar {
    height: 60px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 40px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.ip-page .cp-nav-links {
    position: absolute;
    left: 50%; transform: translateX(-50%);
    display: flex; gap: 32px;
}
.ip-page .cp-nav-links a {
    color: rgba(255,255,255,0.5);
    text-decoration: none; font-size: 13px;
    transition: color 0.3s; letter-spacing: 0.02em;
}
.ip-page .cp-nav-links a:hover { color: #fff; }
.ip-page .cp-nav-links a.active { color: #fff; font-weight: 500; }
.ip-page .cp-right-area { margin-left: auto; display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.ip-page .cp-btn-login {
    background: transparent; border: none;
    color: #0ea5e9; font-size: 13px; cursor: pointer;
    letter-spacing: 0.02em; transition: opacity 0.3s;
    text-decoration: none;
}
.ip-page .cp-btn-login:hover { opacity: 0.7; }

/* === 2. 滚动浮现动画 === */
.ip-page .reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.ip-page .reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* === 3. 全局布局容器 === */
.ip-page .ip-section { padding: 100px 0; position: relative; }
.ip-page .ip-container { max-width: 1080px; margin: 0 auto; padding: 0 30px; }

.ip-page .ip-overline {
    font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
    color: var(--accent-gold); margin-bottom: 16px; display: block;
}

.ip-page .ip-section-title {
    font-size: 40px; font-weight: 700; letter-spacing: -0.02em; color: var(--text-title);
    margin-bottom: 20px; line-height: 1.1;
}
.ip-page .ip-section-subtitle {
    font-size: 18px; font-weight: 400; color: var(--text-body); line-height: 1.5;
    max-width: 700px;
}

.ip-page .ip-text-center { text-align: center; }
.ip-page .ip-mx-auto { margin-left: auto; margin-right: auto; }

/* === 4. Hero 区域 === */
.ip-page .ip-hero {
    padding: 180px 0 100px;
    text-align: center;
    position: relative;
}

.ip-page .ip-hero-glow {
    position: absolute; top: 20%; left: 50%; transform: translate(-50%, -50%);
    width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(255, 214, 10, 0.12) 0%, transparent 60%);
    z-index: 0; pointer-events: none;
}

.ip-page .ip-hero h1 {
    font-size: 56px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(180deg, #FFFFFF 0%, #A1A1A6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.ip-page .ip-hero p {
    font-size: 22px; color: var(--text-body); max-width: 800px;
    margin: 0 auto 48px; font-weight: 400; position: relative;
}

/* Hero 统计条 */
.ip-page .ip-hero-stats {
    display: flex; justify-content: center; gap: 48px; flex-wrap: wrap;
    position: relative;
}
.ip-page .ip-hero-stat {
    text-align: center;
}
.ip-page .ip-hero-stat-value {
    font-size: 36px; font-weight: 700; color: var(--text-title);
    letter-spacing: -0.02em; line-height: 1;
}
.ip-page .ip-hero-stat-label {
    font-size: 13px; font-weight: 500; color: var(--text-muted);
    margin-top: 8px; text-transform: uppercase; letter-spacing: 0.05em;
}

/* Hero 时间轴 */
.ip-page .ip-timeline-wrap {
    margin-top: 60px;
    position: relative;
}
.ip-page .ip-timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
}
.ip-page .ip-timeline::before {
    content: '';
    position: absolute;
    top: 26px;
    left: 5%; right: 5%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 214, 10, 0.3), rgba(255, 214, 10, 0.3), transparent);
}
.ip-page .ip-timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    text-align: center;
    padding: 0 4px;
}
.ip-page .ip-timeline-year {
    font-size: 12px;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--accent-gold);
    margin-bottom: 10px;
    letter-spacing: 0.02em;
    line-height: 1;
}
.ip-page .ip-timeline-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent-gold);
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}
.ip-page .ip-timeline-dot.current {
    width: 12px; height: 12px;
    box-shadow: 0 0 12px rgba(255, 214, 10, 0.5), 0 0 24px rgba(255, 214, 10, 0.2);
}
.ip-page .ip-timeline-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* === 5. 专利证书展示 === */
.ip-page .ip-patent-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--bg-elevated);
    border: 1px solid rgba(255, 214, 10, 0.15);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-top: 60px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.ip-page .ip-patent-card:hover {
    transform: scale(1.005);
    border-color: rgba(255, 214, 10, 0.3);
}

.ip-page .ip-patent-image {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 60px 40px;
    position: relative;
    min-height: 480px;
}
.ip-page .ip-patent-image-frame {
    width: 280px; height: 380px;
    border: 2px solid rgba(255, 214, 10, 0.2);
    border-radius: 4px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    background: rgba(255, 255, 255, 0.02);
    position: relative;
}
.ip-page .ip-patent-image-frame::before {
    content: '';
    position: absolute; top: -1px; left: 20%; right: 20%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}
.ip-page .ip-patent-image-frame i {
    font-size: 48px; color: rgba(255, 214, 10, 0.15); margin-bottom: 16px;
}
.ip-page .ip-patent-image-frame .ip-placeholder-text {
    font-size: 13px; color: var(--text-muted); font-family: var(--font-mono);
    text-align: center; line-height: 1.6;
}

.ip-page .ip-patent-info {
    padding: 60px 50px;
    display: flex; flex-direction: column; justify-content: center;
}
.ip-page .ip-patent-badge {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 11px; font-weight: 700; padding: 6px 14px;
    border-radius: 100px; width: fit-content; margin-bottom: 24px;
    background: rgba(255, 214, 10, 0.1);
    color: var(--accent-gold);
    border: 1px solid rgba(255, 214, 10, 0.2);
    letter-spacing: 0.05em; font-family: var(--font-mono);
}
.ip-page .ip-patent-name {
    font-size: 24px; font-weight: 700; color: var(--text-title);
    margin-bottom: 32px; letter-spacing: -0.01em; line-height: 1.3;
}

.ip-page .ip-patent-meta { display: flex; flex-direction: column; gap: 20px; }
.ip-page .ip-patent-meta-item {
    display: flex; align-items: flex-start; gap: 12px;
}
.ip-page .ip-patent-meta-icon {
    width: 36px; height: 36px; border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.ip-page .ip-patent-meta-icon i { font-size: 16px; color: var(--text-muted); }
.ip-page .ip-patent-meta-label {
    font-size: 11px; font-weight: 600; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 2px;
}
.ip-page .ip-patent-meta-value {
    font-size: 15px; color: var(--text-title); font-weight: 500;
}

.ip-page .ip-patent-abstract {
    margin-top: 32px; padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
}
.ip-page .ip-patent-abstract-label {
    font-size: 11px; font-weight: 600; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px;
}
.ip-page .ip-patent-abstract-text {
    font-size: 14px; color: var(--text-body); line-height: 1.7;
}

/* === 6. 原创算法 === */
.ip-page .ip-algo-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
    margin-top: 60px;
}

.ip-page .ip-algo-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 40px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.ip-page .ip-algo-card:hover { transform: scale(1.01); border-color: rgba(255,255,255,0.15); }

.ip-page .ip-algo-card.full { grid-column: span 2; }

.ip-page .ip-algo-card-icon {
    width: 48px; height: 48px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px; font-size: 22px;
}

.ip-page .ip-algo-card h3 {
    font-size: 20px; font-weight: 600; color: var(--text-title);
    margin-bottom: 12px; letter-spacing: -0.01em;
}
.ip-page .ip-algo-card p {
    font-size: 15px; color: var(--text-body); line-height: 1.6;
}


/* === 7. 基础理论研究 === */
.ip-page .ip-research-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
    margin-top: 60px;
}
.ip-page .ip-research-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 36px;
    display: flex; flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.ip-page .ip-research-card:hover { transform: scale(1.02); border-color: rgba(255,255,255,0.15); }
.ip-page .ip-research-card-num {
    font-size: 11px; font-weight: 700; font-family: var(--font-mono);
    color: var(--accent-gold); letter-spacing: 0.05em; margin-bottom: 16px;
    opacity: 0.7;
}
.ip-page .ip-research-card h3 {
    font-size: 18px; font-weight: 600; color: var(--text-title);
    margin-bottom: 12px; line-height: 1.3;
}
.ip-page .ip-research-card p {
    font-size: 14px; color: var(--text-body); line-height: 1.6; flex: 1;
}
.ip-page .ip-research-link {
    margin-top: 20px; font-size: 13px; font-weight: 500;
    color: var(--accent-blue); display: flex; align-items: center; gap: 4px;
}

/* === 7b. 视频课程 === */
.ip-page .ip-course-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
    margin-top: 60px;
}
.ip-page .ip-course-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.ip-page .ip-course-card:hover { transform: scale(1.01); border-color: rgba(255,255,255,0.15); }
.ip-page .ip-course-thumb {
    height: 200px;
    background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    border-bottom: 1px solid var(--border-subtle);
}
.ip-page .ip-course-thumb i { font-size: 40px; color: #333; margin-bottom: 10px; }
.ip-page .ip-course-thumb span { font-size: 12px; color: var(--text-muted); font-family: var(--font-mono); }
.ip-page .ip-course-body { padding: 32px; }
.ip-page .ip-course-badge {
    display: inline-block; font-size: 11px; font-weight: 700;
    padding: 4px 10px; border-radius: 6px;
    background: rgba(41, 151, 255, 0.1); color: var(--accent-blue);
    margin-bottom: 12px; font-family: var(--font-mono);
}
.ip-page .ip-course-body h3 {
    font-size: 20px; font-weight: 600; color: var(--text-title);
    margin-bottom: 10px; line-height: 1.3;
}
.ip-page .ip-course-body p {
    font-size: 14px; color: var(--text-body); line-height: 1.6;
    margin-bottom: 16px;
}
.ip-page .ip-course-stats {
    display: flex; gap: 20px; font-size: 13px; color: var(--text-muted);
}
.ip-page .ip-course-stats span { display: flex; align-items: center; gap: 4px; }
.ip-page .ip-course-stats i { font-size: 14px; }

/* === 8. 专业积累 — 公众号 === */
.ip-page .ip-wechat-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 60px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 50px;
    margin-top: 60px;
    align-items: center;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.ip-page .ip-wechat-card:hover { transform: scale(1.005); border-color: rgba(255,255,255,0.15); }

.ip-page .ip-wechat-info h3 {
    font-size: 24px; font-weight: 700; color: var(--text-title);
    margin-bottom: 16px;
}
.ip-page .ip-wechat-info p {
    font-size: 15px; color: var(--text-body); line-height: 1.6;
    margin-bottom: 24px; max-width: 560px;
}

.ip-page .ip-wechat-tags {
    display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px;
}
.ip-page .ip-wechat-tag {
    padding: 6px 14px; border-radius: 100px; font-size: 12px; font-weight: 600;
    background: rgba(255, 255, 255, 0.05); color: var(--text-title);
    border: 1px solid var(--border-subtle);
}

.ip-page .ip-wechat-stats {
    display: flex; gap: 32px;
}
.ip-page .ip-wechat-stat-value {
    font-size: 24px; font-weight: 700; color: var(--text-title); line-height: 1;
}
.ip-page .ip-wechat-stat-label {
    font-size: 12px; color: var(--text-muted); margin-top: 4px;
}

.ip-page .ip-wechat-qr {
    width: 180px; height: 180px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    flex-shrink: 0;
}
.ip-page .ip-wechat-qr i { font-size: 40px; color: #333; margin-bottom: 10px; }
.ip-page .ip-wechat-qr span {
    font-size: 12px; color: var(--text-muted); font-family: var(--font-mono);
}

/* === 9. 专业论文 === */
.ip-page .ip-paper-list {
    display: flex; flex-direction: column; gap: 16px;
    margin-top: 60px;
}
.ip-page .ip-paper-item {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 28px 32px;
    display: flex; align-items: flex-start; gap: 24px;
    transition: transform 0.3s, border-color 0.3s;
}
.ip-page .ip-paper-item:hover { transform: translateX(4px); border-color: rgba(255,255,255,0.15); }

.ip-page .ip-paper-icon {
    width: 44px; height: 44px; border-radius: 12px;
    background: rgba(41, 151, 255, 0.08);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.ip-page .ip-paper-icon i { font-size: 20px; color: var(--accent-blue); }

.ip-page .ip-paper-body { flex: 1; }
.ip-page .ip-paper-title {
    font-size: 16px; font-weight: 600; color: var(--text-title);
    margin-bottom: 6px; line-height: 1.4;
}
.ip-page .ip-paper-meta {
    display: flex; flex-wrap: wrap; gap: 16px;
    font-size: 13px; color: var(--text-muted); margin-bottom: 8px;
}
.ip-page .ip-paper-meta span { display: flex; align-items: center; gap: 4px; }
.ip-page .ip-paper-meta i { font-size: 12px; }
.ip-page .ip-paper-desc {
    font-size: 14px; color: var(--text-body); line-height: 1.6;
}
.ip-page .ip-paper-placeholder {
    padding: 24px; text-align: center;
    background: rgba(41, 151, 255, 0.03);
    border: 1px dashed rgba(41, 151, 255, 0.15);
    border-radius: var(--radius-md);
    font-size: 13px; color: var(--text-muted); font-family: var(--font-mono);
    margin-top: 24px;
}

/* === 10. CTA & Footer === */
.ip-page .ip-cta-section {
    padding: 120px 0; text-align: center;
    border-top: 1px solid var(--border-subtle); margin-top: 60px;
}
.ip-page .ip-cta-section h2 {
    font-size: 40px; font-weight: 700; color: var(--text-title); margin-bottom: 16px;
}

.ip-page .ip-btn-group { display: flex; gap: 16px; justify-content: center; }
.ip-page .ip-btn {
    padding: 14px 28px; border-radius: 100px; font-size: 15px; font-weight: 600;
    cursor: pointer; transition: all 0.3s; text-align: center; border: none;
    text-decoration: none; display: inline-block;
}
.ip-page .ip-btn-primary { background: var(--text-title); color: var(--bg-base); }
.ip-page .ip-btn-primary:hover { transform: scale(1.02); background: #fff; box-shadow: 0 4px 20px rgba(255,255,255,0.2); }
.ip-page .ip-btn-secondary { background: rgba(255,255,255,0.08); color: var(--text-title); backdrop-filter: blur(10px); }
.ip-page .ip-btn-secondary:hover { background: rgba(255,255,255,0.12); }

.ip-page .ip-cta-link { font-size: 14px; color: var(--accent-blue); display: inline-block; margin-top: 20px; font-weight: 500; }
.ip-page .ip-trust-line { font-size: 13px; color: var(--text-muted); margin-top: 40px; font-weight: 500; }

/* === 11. Footer === */
.ip-page .ip-footer {
    padding: 40px 0; text-align: center;
    border-top: 1px solid var(--border-subtle);
    color: var(--text-muted); font-size: 12px;
}
.ip-page .ip-footer a {
    color: var(--text-muted); text-decoration: none; margin: 0 10px;
    transition: color 0.3s;
}
.ip-page .ip-footer a:hover { color: var(--text-body); }

/* === 12. 响应式：移动端 === */
@media (max-width: 768px) {
    /* 顶栏 */
    .ip-page .cp-topbar { padding: 0 16px; }
    .ip-page .cp-nav-links { position: static; transform: none; gap: 6px; }
    .ip-page .cp-right-area { gap: 8px; }
    .ip-page .cp-btn-login { font-size: 11px; }

    /* 全局 */
    .ip-page .ip-section { padding: 60px 0; }
    .ip-page .ip-container { padding: 0 16px; }
    .ip-page .ip-section-title { font-size: 26px; }
    .ip-page .ip-section-subtitle { font-size: 15px; }

    /* Hero */
    .ip-page .ip-hero { padding: 100px 0 60px; }
    .ip-page .ip-hero h1 { font-size: 32px; }
    .ip-page .ip-hero p { font-size: 16px; }
    .ip-page .ip-hero-stats { gap: 20px; }
    .ip-page .ip-hero-stat-value { font-size: 24px; }

    /* 时间轴 — 横向滚动 */
    .ip-page .ip-timeline-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 60px -16px 0; padding: 0 16px; }
    .ip-page .ip-timeline { min-width: 700px; }

    /* 专利卡片 */
    .ip-page .ip-patent-card { grid-template-columns: 1fr; }
    .ip-page .ip-patent-image { min-height: 300px; padding: 40px 20px; }
    .ip-page .ip-patent-image-frame { width: 200px; height: 270px; }
    .ip-page .ip-patent-info { padding: 30px 20px; }
    .ip-page .ip-patent-name { font-size: 18px; }

    /* 算法网格 */
    .ip-page .ip-algo-grid { grid-template-columns: 1fr; }
    .ip-page .ip-algo-card.full { grid-column: span 1; }
    .ip-page .ip-algo-card { padding: 24px; }

    /* 研究网格 */
    .ip-page .ip-research-grid { grid-template-columns: 1fr; }
    .ip-page .ip-research-card { padding: 24px; }

    /* 课程网格 */
    .ip-page .ip-course-grid { grid-template-columns: 1fr; }
    .ip-page .ip-course-stats { flex-wrap: wrap; gap: 12px; }

    /* 公众号卡片 */
    .ip-page .ip-wechat-card {
        grid-template-columns: 1fr;
        gap: 30px; padding: 24px;
    }
    .ip-page .ip-wechat-qr { margin: 0 auto; }
    .ip-page .ip-wechat-stats { flex-wrap: wrap; gap: 20px; }

    /* 论文 */
    .ip-page .ip-paper-item { padding: 20px 16px; gap: 16px; }

    /* CTA */
    .ip-page .ip-cta-section { padding: 60px 0; }
    .ip-page .ip-cta-section h2 { font-size: 26px; }
    .ip-page .ip-btn-group { flex-direction: column; align-items: center; }
    .ip-page .ip-btn { width: 100%; max-width: 280px; }

    /* 页脚 */
    .ip-page .ip-footer { padding: 30px 16px; }
}

@media (max-width: 480px) {
    .ip-page .cp-nav-links { margin-left: 10px; }
    .ip-page .cp-nav-links a { max-width: 2.2em; text-align: center; line-height: 1.3; }
}
