/* ========================================
   雅加达生活通 - 静态页面样式
   适用于：关于我们、联系方式、广告合作、用户协议、隐私政策
   ======================================== */

/* ---------- 静态内容卡片 ---------- */
.static-card {
    max-width: 680px;
    margin: 0 auto 12px;
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    animation: fadeIn 0.5s ease-out 0.1s both;
}

.static-header {
    padding: 20px 16px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(255, 85, 46, 0.03) 0%, rgba(245, 166, 35, 0.03) 100%);
}

.static-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.4;
}

.static-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.static-meta svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

/* ---------- 内容区域 ---------- */
.static-content {
    padding: 16px;
}

.content-section {
    margin-bottom: 24px;
}

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

.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border);
}

.section-title svg {
    width: 20px;
    height: 20px;
    fill: var(--primary);
}

.content-section p {
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

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

/* ---------- 服务列表 ---------- */
.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.service-list li {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.service-list li:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(255, 85, 46, 0.1);
}

.service-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-icon svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.service-text h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.service-text p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ---------- 联系网格 ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 12px;
}

.contact-grid .contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.contact-grid .contact-item:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.contact-grid .contact-item svg {
    width: 18px;
    height: 18px;
    fill: var(--primary);
    flex-shrink: 0;
}

/* ---------- 表单样式 ---------- */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-label .required {
    color: var(--danger);
    margin-left: 2px;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: var(--font-body);
    color: var(--text-primary);
    transition: all 0.2s;
    outline: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 85, 46, 0.1);
}

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

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted);
}

.form-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.form-submit {
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 85, 46, 0.3);
    transition: all 0.2s;
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 85, 46, 0.4);
}

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

/* ---------- 广告套餐 ---------- */
.ad-packages {
    display: grid;
    gap: 16px;
    margin-top: 12px;
}

.ad-package {
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px 16px;
    transition: all 0.2s;
    cursor: pointer;
}

.ad-package:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(255, 85, 46, 0.15);
}

.ad-package.recommended {
    border-color: var(--primary);
    position: relative;
}

.ad-package.recommended::before {
    content: '推荐';
    position: absolute;
    top: -10px;
    right: 16px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
}

.package-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.package-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.package-price {
    text-align: right;
}

.package-price .amount {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    font-family: var(--font-display);
}

.package-price .period {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.package-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.package-features li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.package-features li:last-child {
    margin-bottom: 0;
}

.package-features svg {
    width: 16px;
    height: 16px;
    fill: var(--success);
    flex-shrink: 0;
    margin-top: 2px;
}

/* ---------- 协议条款 ---------- */
.terms-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.terms-item {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px dashed var(--border);
}

.terms-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.terms-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 700;
    margin-right: 8px;
}

.terms-subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.terms-text {
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
}

.terms-text + .terms-text {
    margin-top: 8px;
}

.terms-sublist {
    list-style: disc;
    padding-left: 24px;
    margin-top: 8px;
}

.terms-sublist li {
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

/* ---------- 隐私政策特殊样式 ---------- */
.privacy-highlight {
    background: linear-gradient(135deg, rgba(255, 85, 46, 0.08) 0%, rgba(245, 166, 35, 0.08) 100%);
    border-left: 3px solid var(--primary);
    padding: 16px;
    border-radius: var(--radius-sm);
    margin: 16px 0;
}

.privacy-highlight p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* ---------- 静态页面间距 ---------- */
.static-page main {
    padding-top: 10px;
    padding-bottom: 68px;
}

.static-page .footer {
    margin-bottom: 58px;
}

/* ---------- 返回顶部按钮 ---------- */
.static-back-to-top {
    position: fixed;
    right: 16px;
    bottom: 92px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    box-shadow: 0 8px 20px rgba(255, 85, 46, 0.28);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, box-shadow 0.25s ease;
    z-index: 120;
}

.static-back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.static-back-to-top:hover {
    box-shadow: 0 12px 24px rgba(255, 85, 46, 0.34);
    transform: translateY(-2px);
}

.static-back-to-top:active {
    transform: translateY(0);
}

.static-back-to-top svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* ---------- 响应式 ---------- */
@media (max-width: 703px) {
    .static-card {
        margin: 0 12px 12px;
        max-width: none;
    }

    .static-back-to-top {
        right: 12px;
        bottom: 86px;
        width: 40px;
        height: 40px;
    }
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .static-back-to-top {
        right: max(24px, calc(50vw - 420px));
    }
}

@media (prefers-color-scheme: dark) {
    .service-list li {
        background: rgba(255, 255, 255, 0.02);
    }

    .contact-grid .contact-item {
        background: rgba(255, 255, 255, 0.02);
    }

    .ad-package {
        background: rgba(255, 255, 255, 0.02);
    }
}