/* ===== CSS VARIABLES ===== */
:root {
    --green: #07c160;
    --green-hover: #06ad56;
    --gray-bg: #f4f6f8;
    --gray-line: #e8e8e8;
    --gray-light: #f9f9f9;
    --gray-text: #888;
    --dark: #1a1a1a;
    --text-primary: #333;
    --text-secondary: #666;
    --white: #fff;
    --header-h: 56px;
}

/* ===== RESET ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 14px;
    color: var(--text-primary);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

ul {
    list-style: none;
}

p {
    margin: 0;
}

/* ===== HEADER ===== */
.header-wrap {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    border-bottom: 1px solid var(--gray-line);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    gap: 16px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    flex-shrink: 0;
}

.header-logo img {
    width: 32px;
    height: 32px;
}

.header-logo-text {
    font-size: 17px;
    font-weight: 700;
    color: var(--dark);
    white-space: nowrap;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.nav-link {
    font-size: 15px;
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.nav-link:hover {
    background: #f0faf5;
    color: var(--green);
}

.nav-link.active {
    color: var(--green);
    font-weight: 600;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.dl-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.dl-btn-phone {
    border: 1.5px solid var(--green);
    color: var(--green);
    background: var(--white);
}

.dl-btn-phone:hover {
    background: #f0faf5;
}

.dl-btn-pc {
    background: var(--green);
    color: var(--white);
    border: 1.5px solid var(--green);
}

.dl-btn-pc:hover {
    background: var(--green-hover);
    border-color: var(--green-hover);
}

.dl-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-menu-icon {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    padding: 6px;
}

.header-menu-icon span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: 0.2s;
}

.header-placeholder {
    height: var(--header-h);
}

/* ===== MAIN LAYOUT ===== */
.main {
    margin-top: 0;
    padding-bottom: 60px;
}

/* ===== CONTAINER ===== */
.page-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 24px 48px;
}

/* ===== PAGE TITLE ===== */
.page-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--green);
    display: inline-block;
}

/* ===== PERMISSION LIST ===== */
.permission-list {
    display: flex;
    flex-direction: column;
}

.permission-item {
    padding: 18px 0;
    border-bottom: 1px solid var(--gray-line);
}

.permission-item:last-child {
    border-bottom: none;
}

.permission-item-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 6px;
    line-height: 1.5;
}

.permission-item-desc {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.75;
}

/* ===== DOWNLOAD TIP ===== */
.download-tip {
    position: fixed;
    bottom: 24px;
    left: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    border: 1px solid var(--gray-line);
    border-radius: 12px;
    padding: 10px 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 900;
    transition: box-shadow 0.2s;
}

.download-tip:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.14);
}

.download-tip img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.download-tip-text {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 500;
}

/* ===== FOOTER ===== */
.site-footer {
    background: #f9f9f9;
    border-top: 1px solid var(--gray-line);
    padding: 32px 24px 24px;
}

.footer-inner {
    max-width: 900px;
    margin: 0 auto;
}

.contact-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 14px;
    text-align: center;
}

.contact-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.contact-item {
    position: relative;
    cursor: pointer;
}

.contact-icon {
    width: 40px;
    height: 40px;
    transition: transform 0.15s;
}

.contact-item:hover .contact-icon {
    transform: scale(1.1);
}

.contact-qr-popup {
    display: none;
    position: absolute;
    bottom: 52px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    border: 1px solid var(--gray-line);
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    z-index: 100;
}

.contact-item:hover .contact-qr-popup {
    display: block;
}

.contact-qr-popup img {
    width: 124px;
    height: 124px;
    display: block;
}

.footer-separator {
    height: 1px;
    background: var(--gray-line);
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 0;
    margin-bottom: 20px;
}

.footer-link-item {
    display: flex;
    align-items: center;
    font-size: 12.5px;
}

.footer-link-item a {
    color: var(--gray-text);
    padding: 3px 8px;
    transition: color 0.15s;
}

.footer-link-item a:hover {
    color: var(--green);
}

.footer-link-sep {
    color: #ccc;
    font-size: 12px;
    user-select: none;
}

.footer-meta {
    text-align: center;
    font-size: 12px;
    color: #aaa;
    line-height: 2;
}

.footer-copyright {
    text-align: center;
    font-size: 12px;
    color: #bbb;
    margin-top: 6px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .header-nav {
        display: none;
    }

    .dl-btn-phone {
        display: none;
    }

    .header-menu-icon {
        display: flex;
    }

    .page-container {
        padding: 28px 16px 40px;
    }

    .page-title {
        font-size: 24px;
    }

    .download-tip {
        left: 12px;
        bottom: 12px;
    }

    .contact-list {
        gap: 12px;
    }
}
