/* Generated by Trae Work */
/* ========== Shared styles for agent sub-pages ========== */

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

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #1a1f36;
    background: #ffffff;
    line-height: 1.8;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* ========== Hero Section ========== */
.hero {
    position: relative;
    padding: 56px 24px 64px;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 45%, #059669 100%);
    color: #ffffff;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: -80px;
    right: -80px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    bottom: -100px;
    left: -60px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    z-index: 1;
}

.hero-breadcrumb {
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.6;
}

.hero-breadcrumb a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    display: inline-block;
    margin-right: 20px;
    padding: 4px 0;
}

.hero-breadcrumb a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.hero-brand {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    font-size: 13px;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    backdrop-filter: blur(4px);
}

.hero h1 {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 16px;
    letter-spacing: -0.3px;
}

.hero-subtitle {
    font-size: 18px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin-bottom: 20px;
}

.hero-meta {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
}

.hero-meta span {
    margin-right: 18px;
}

/* ========== Main Content ========== */
.content {
    max-width: 800px;
    margin: 0 auto;
    padding: 48px 24px 64px;
}

.content h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1f36;
    margin: 40px 0 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e3e8ee;
    line-height: 1.4;
}

.content h2:first-of-type {
    margin-top: 0;
}

.content h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1f36;
    margin: 28px 0 12px;
    line-height: 1.5;
}

.content p {
    margin-bottom: 16px;
    color: #1a1f36;
}

.content ul,
.content ol {
    margin: 12px 0 20px 24px;
}

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

.content strong {
    font-weight: 600;
    color: #1a1f36;
}

.content blockquote {
    margin: 24px 0;
    padding: 16px 20px;
    background: #f8fafc;
    border-left: 4px solid #2563eb;
    border-radius: 0 6px 6px 0;
    color: #3c4257;
    font-size: 15px;
}

.content blockquote p:last-child {
    margin-bottom: 0;
}

.content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0 28px;
    font-size: 14px;
}

.content table th,
.content table td {
    padding: 12px 14px;
    text-align: left;
    border: 1px solid #e3e8ee;
    vertical-align: top;
}

.content table th {
    background: #f1f5f9;
    font-weight: 600;
    color: #1a1f36;
}

.content table tr:nth-child(even) td {
    background: #fafbfc;
}

.content hr {
    border: none;
    border-top: 1px solid #e3e8ee;
    margin: 40px 0;
}

/* ========== Product Matrix Cards ========== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 24px 0;
}

.product-card {
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e3e8ee;
    border-radius: 10px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    border-color: #bfdbfe;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
}

.product-card .product-name {
    font-size: 16px;
    font-weight: 700;
    color: #1a1f36;
    margin-bottom: 4px;
}

.product-card .product-tag {
    display: inline-block;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-bottom: 10px;
    font-weight: 500;
}

.product-card .product-tag.geo { background: #dbeafe; color: #1d4ed8; }
.product-card .product-tag.pub { background: #ede9fe; color: #6d28d9; }
.product-card .product-tag.ai  { background: #d1fae5; color: #047857; }
.product-card .product-tag.scrm{ background: #fef3c7; color: #b45309; }

.product-card .product-value {
    font-size: 14px;
    color: #2563eb;
    font-weight: 600;
    margin-bottom: 8px;
}

.product-card .product-desc {
    font-size: 14px;
    color: #3c4257;
    line-height: 1.7;
    margin-bottom: 8px;
}

.product-card .product-price {
    font-size: 13px;
    color: #697386;
}

.product-card .product-price strong {
    color: #7c3aed;
    font-weight: 700;
}

/* ========== Callout / Highlight Boxes ========== */
.callout {
    margin: 24px 0;
    padding: 20px 24px;
    border-radius: 8px;
    border: 1px solid #e3e8ee;
    background: #f8fafc;
}

.callout-primary {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.callout-success {
    background: #ecfdf5;
    border-color: #a7f3d0;
}

.callout-warning {
    background: #fffbeb;
    border-color: #fde68a;
}

.callout-title {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 8px;
    color: #1a1f36;
}

.callout p:last-child {
    margin-bottom: 0;
}

/* ========== CTA Section ========== */
.cta-section {
    margin: 48px 0 0;
    padding: 32px;
    background: linear-gradient(135deg, #eff6ff 0%, #f5f3ff 100%);
    border: 1px solid #c7d2fe;
    border-radius: 12px;
    text-align: center;
}

.cta-section h3 {
    margin-top: 0;
    font-size: 20px;
    margin-bottom: 12px;
}

.cta-section p {
    color: #3c4257;
    margin-bottom: 20px;
}

.cta-btn {
    display: inline-block;
    padding: 12px 32px;
    background: #2563eb;
    color: #ffffff !important;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none !important;
    transition: background 0.2s ease, transform 0.2s ease;
}

.cta-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

/* ========== Numbered Steps ========== */
.step-list {
    counter-reset: step-counter;
    list-style: none;
    margin-left: 0;
}

.step-list > li {
    counter-increment: step-counter;
    position: relative;
    padding-left: 52px;
    margin-bottom: 24px;
    min-height: 40px;
}

.step-list > li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 36px;
    height: 36px;
    background: #2563eb;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
}

.step-list > li > strong {
    display: block;
    font-size: 16px;
    margin-bottom: 6px;
    color: #1a1f36;
}

/* ========== FAQ ========== */
.faq-item {
    margin: 16px 0;
    padding: 18px 20px;
    background: #ffffff;
    border: 1px solid #e3e8ee;
    border-radius: 8px;
    page-break-inside: avoid;
}

.faq-q {
    font-weight: 600;
    color: #1a1f36;
    margin-bottom: 8px;
    font-size: 15px;
}

.faq-q::before {
    content: "Q：";
    color: #2563eb;
    font-weight: 700;
}

.faq-a {
    color: #3c4257;
    font-size: 15px;
}

.faq-a::before {
    content: "A：";
    color: #059669;
    font-weight: 700;
}

/* ========== Data Highlight ========== */
.data-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 24px 0;
}

.data-card {
    flex: 1;
    min-width: 160px;
    padding: 20px;
    background: #f8fafc;
    border: 1px solid #e3e8ee;
    border-radius: 8px;
    text-align: center;
}

.data-num {
    font-size: 28px;
    font-weight: 700;
    color: #2563eb;
    line-height: 1.2;
    margin-bottom: 6px;
}

.data-label {
    font-size: 13px;
    color: #697386;
}

/* ========== Profit Calculation ========== */
.profit-box {
    margin: 20px 0;
    padding: 24px;
    background: #f8fafc;
    border: 1px solid #e3e8ee;
    border-radius: 10px;
}

.profit-box h4 {
    font-size: 16px;
    font-weight: 700;
    color: #1a1f36;
    margin-bottom: 12px;
}

.profit-box .profit-formula {
    font-size: 14px;
    color: #3c4257;
    line-height: 2;
    margin-bottom: 12px;
}

.profit-box .profit-result {
    font-size: 20px;
    font-weight: 700;
    color: #059669;
}

/* ========== Contact Section ========== */
.contact-box {
    margin: 32px 0;
    padding: 28px;
    background: linear-gradient(135deg, #1a1f36 0%, #2d3748 100%);
    color: #ffffff;
    border-radius: 12px;
    text-align: center;
}

.contact-box h3 {
    color: #ffffff;
    font-size: 22px;
    margin-bottom: 16px;
}

.contact-box p {
    color: #cbd5e1;
    font-size: 15px;
    margin-bottom: 12px;
}

.contact-box .contact-wechat {
    font-size: 24px;
    font-weight: 700;
    color: #60a5fa;
    letter-spacing: 2px;
    margin: 16px 0;
}

.contact-box .contact-qr {
    width: 160px;
    height: 160px;
    background: #ffffff;
    border-radius: 8px;
    margin: 16px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 13px;
}

/* ========== Footer ========== */
.footer {
    background: #1a1f36;
    color: rgba(255, 255, 255, 0.75);
    text-align: center;
    padding: 32px 24px;
    font-size: 14px;
    line-height: 1.8;
}

.footer strong {
    color: #ffffff;
    font-weight: 600;
}

.footer a {
    color: #93c5fd;
}

/* ========== Form Styles (for apply.html) ========== */
.form-intro {
    margin: 0 0 32px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #eff6ff 0%, #f5f3ff 100%);
    border: 1px solid #c7d2fe;
    border-radius: 10px;
    font-size: 15px;
    color: #1e3a8a;
    line-height: 1.8;
}

.form-intro strong {
    color: #1d4ed8;
}

.apply-form {
    margin-top: 8px;
}

.form-group {
    margin-bottom: 22px;
    padding: 18px 20px;
    background: #ffffff;
    border: 1px solid #e3e8ee;
    border-radius: 10px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group:hover {
    border-color: #bfdbfe;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.06);
}

.form-label {
    display: block;
    font-weight: 600;
    font-size: 15px;
    color: #1a1f36;
    margin-bottom: 10px;
    line-height: 1.5;
}

.form-label .required {
    color: #ef4444;
    margin-left: 2px;
}

.form-label .q-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #2563eb;
    color: #ffffff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    margin-right: 8px;
    flex-shrink: 0;
    vertical-align: middle;
}

.form-text {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    font-family: inherit;
    color: #1a1f36;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    line-height: 1.6;
}

.form-text:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

textarea.form-text {
    min-height: 100px;
    resize: vertical;
}

.form-hint {
    display: block;
    font-size: 12px;
    color: #697386;
    margin-top: 6px;
}

.radio-group,
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.radio-group.vertical,
.checkbox-group.vertical {
    flex-direction: column;
    gap: 8px;
}

.radio-item,
.checkbox-item {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: #f8fafc;
    border: 1px solid #e3e8ee;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #1a1f36;
    transition: all 0.2s ease;
    user-select: none;
}

.radio-group.vertical .radio-item,
.checkbox-group.vertical .checkbox-item {
    padding: 10px 16px;
}

.radio-item:hover,
.checkbox-item:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.radio-item input,
.checkbox-item input {
    margin-right: 8px;
    accent-color: #2563eb;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.radio-item input[type="radio"]:checked ~ span,
.checkbox-item input[type="checkbox"]:checked ~ span {
    color: #1d4ed8;
    font-weight: 500;
}

.submit-area {
    margin-top: 40px;
    text-align: center;
}

.submit-btn {
    display: inline-block;
    padding: 14px 56px;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

/* ========== Form Success Message ========== */
.form-success {
    display: none;
    text-align: center;
    padding: 56px 32px;
    background: #ffffff;
    border: 2px solid #a7f3d0;
    border-radius: 16px;
    margin: 32px 0;
}

.form-success.show {
    display: block;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.success-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 36px;
    font-weight: 700;
}

.form-success h2 {
    font-size: 24px;
    color: #065f46;
    margin: 0 0 16px;
    border: none;
    padding: 0;
}

.form-success p {
    font-size: 15px;
    color: #3c4257;
    line-height: 1.9;
    max-width: 520px;
    margin: 0 auto 12px;
}

.form-success .contact-info {
    display: inline-block;
    margin-top: 12px;
    padding: 14px 28px;
    background: #ecfdf5;
    border: 1px dashed #10b981;
    border-radius: 8px;
    font-size: 15px;
    color: #065f46;
    font-weight: 600;
}

/* ========== Print Friendly ========== */
@media print {
    *,
    *::before,
    *::after {
        background: transparent !important;
        color: #000000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    html, body {
        font-size: 12pt;
        line-height: 1.6;
    }

    .hero {
        padding: 24px 0;
        background: none !important;
        color: #000 !important;
        border-bottom: 2px solid #000;
        page-break-after: avoid;
    }

    .hero::before,
    .hero::after {
        display: none;
    }

    .hero-breadcrumb {
        display: none;
    }

    .hero-brand {
        background: none !important;
        border: 1px solid #000 !important;
        color: #000 !important;
        font-size: 10pt;
        padding: 2px 8px;
    }

    .hero h1 {
        font-size: 20pt;
        color: #000 !important;
        margin-bottom: 8px;
    }

    .hero-subtitle {
        font-size: 12pt;
        color: #333 !important;
    }

    .hero-meta {
        color: #333 !important;
        font-size: 10pt;
    }

    .content {
        max-width: 100%;
        padding: 20px 0;
    }

    .content h2 {
        font-size: 15pt;
        border-bottom: 1px solid #000;
        margin-top: 24px;
        page-break-after: avoid;
    }

    .content h3 {
        font-size: 13pt;
        page-break-after: avoid;
    }

    .content p, .content li {
        font-size: 11pt;
        orphans: 3;
        widows: 3;
    }

    .content blockquote {
        border-left: 3px solid #000;
        background: none !important;
        padding: 8px 14px;
    }

    .callout, .cta-section, .profit-box, .contact-box {
        border: 1px solid #000;
        background: none !important;
        page-break-inside: avoid;
    }

    .cta-btn, .submit-btn {
        display: none;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-card {
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }

    .data-card {
        border: 1px solid #ccc;
    }

    table {
        page-break-inside: avoid;
    }

    table th {
        background: #eee !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* Form print */
    .form-group {
        border: 1px solid #ccc;
        padding: 12px;
        page-break-inside: avoid;
    }

    .form-intro {
        border: 1px solid #000;
        background: none !important;
    }

    .form-label .q-num {
        background: #ccc !important;
        color: #000 !important;
    }

    .radio-item, .checkbox-item {
        border: 1px solid #ccc;
        background: none !important;
        padding: 6px 12px;
    }

    .form-success {
        border: 2px solid #000;
    }

    .form-success .success-icon {
        background: #ccc !important;
        color: #000 !important;
        border: 2px solid #000;
    }

    .footer {
        background: none !important;
        color: #000 !important;
        border-top: 1px solid #000;
        padding: 16px 0;
    }

    .footer strong {
        color: #000 !important;
    }

    a {
        color: #000 !important;
        text-decoration: underline;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 9pt;
        color: #666;
    }

    .hero-breadcrumb a[href]::after,
    .footer a[href]::after {
        content: "";
    }

    .page-break {
        page-break-before: always;
    }
}
