/* 净利润核算浏览器插件说明页 */

.pce-page {
    max-width: 960px;
    margin: 0 auto 56px;
    padding: 0 16px;
}

/* ── 下载区 ── */
.pce-download-card {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: stretch;
    justify-content: space-between;
    padding: 28px;
    margin-bottom: 24px;
    border-radius: 16px;
    border: 1px solid #bbf7d0;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 55%, #f8fafc 100%);
}

.pce-download-main {
    flex: 1 1 320px;
    min-width: 0;
}

.pce-download-main h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    font-size: 20px;
    color: #065f46;
}

.pce-download-desc {
    margin: 0 0 14px;
    color: #374151;
    line-height: 1.7;
    font-size: 15px;
}

.pce-download-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-bottom: 18px;
    font-size: 13px;
    color: #047857;
}

.pce-download-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.pce-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 10px;
    background: linear-gradient(135deg, #10b981, #14b8a6);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.25);
    transition: transform 0.12s, box-shadow 0.12s;
}

.pce-download-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(16, 185, 129, 0.32);
    color: #fff;
}

.pce-download-side {
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
    flex: 0 0 auto;
}

.pce-browser-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #111827;
}

.pce-browser-badge i { font-size: 18px; }
.pce-browser-badge--chrome i { color: #4285f4; }
.pce-browser-badge--edge i { color: #0078d4; }

/* ── 卡片通用 ── */
.pce-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

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

.pce-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 24px;
}

.pce-card--wide {
    margin-bottom: 20px;
}

.pce-card h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 18px;
    color: #111827;
}

.pce-card h2 i { color: #10b981; }

.pce-card-lead {
    margin: 8px 0 18px;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
}

/* ── 安装步骤（编号卡片） ── */
.pce-step-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pce-step-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #f9fafb;
    border: 1px solid #f3f4f6;
}

.pce-step-item--tip {
    background: #fffbeb;
    border-color: #fde68a;
}

.pce-step-num {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #047857;
    background: #d1fae5;
}

.pce-step-item--tip .pce-step-num {
    color: #b45309;
    background: #fde68a;
}

.pce-step-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.pce-step-title {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    line-height: 1.45;
}

.pce-step-desc {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.55;
}

.pce-step-desc code {
    padding: 1px 6px;
    border-radius: 4px;
    background: #fff;
    border: 1px solid #e5e7eb;
    font-size: 0.92em;
    color: #374151;
}

/* ── 使用说明（四宫格） ── */
.pce-usage-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

@media (max-width: 560px) {
    .pce-usage-grid { grid-template-columns: 1fr; }
}

.pce-usage-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px;
    border-radius: 12px;
    background: #f9fafb;
    border: 1px solid #f3f4f6;
}

.pce-usage-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ecfdf5;
    color: #059669;
    font-size: 16px;
}

.pce-usage-title {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.pce-usage-desc {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.55;
}

.pce-usage-desc a {
    color: #059669;
    font-weight: 500;
}

.pce-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    padding: 12px 14px;
    border-radius: 10px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    font-size: 13px;
    color: #047857;
    line-height: 1.55;
}

.pce-note i {
    flex-shrink: 0;
    margin-top: 2px;
    font-size: 15px;
}

/* ── 常见问题（分块卡片） ── */
.pce-faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pce-faq-item {
    padding: 14px 16px;
    border-radius: 10px;
    background: #f9fafb;
    border: 1px solid #f3f4f6;
}

.pce-faq-q {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    line-height: 1.45;
}

.pce-faq-a {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.6;
}

.pce-faq-a code {
    padding: 1px 5px;
    border-radius: 4px;
    background: #fff;
    border: 1px solid #e5e7eb;
    font-size: 0.9em;
}

.pce-back {
    margin-top: 12px;
    font-size: 14px;
}

.pce-back a {
    color: #059669;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.pce-back a:hover { text-decoration: underline; }

/* ── 净利润页顶部插件引导条 ── */
.profit-ext-banner {
    max-width: 1200px;
    margin: -8px auto 16px;
    padding: 0 16px;
}

.profit-ext-banner__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px dashed #6ee7b7;
    background: #ecfdf5;
    color: #047857;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.15s, border-color 0.15s;
}

.profit-ext-banner__link:hover {
    background: #d1fae5;
    border-color: #34d399;
    color: #065f46;
}

.profit-ext-banner__link > i:first-child {
    font-size: 18px;
    flex-shrink: 0;
}

.profit-ext-banner__link span {
    flex: 1;
    min-width: 0;
}

.profit-ext-banner__link > i:last-child {
    flex-shrink: 0;
    opacity: 0.7;
}
