
/* General Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f8f8f8; /* 暖灰 */
    color: #333;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

*, *::before, *::after {
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: #2e8b57; /* 深绿 */
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    color: #1A1A1A; /* 黑色 */
    margin-top: 0;
    margin-bottom: 0.5em;
}

p {
    margin-bottom: 1em;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn-hero-cta {
    display: inline-block;
    background-color: #2e8b57; /* 深绿 */
    color: #fff;
    padding: 15px 35px;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(46, 139, 87, 0.2);
}

.btn-hero-cta:hover {
    background-color: #256f45; /* 更深的深绿 */
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-latest-version {
    display: inline-block;
    background-color: #1A1A1A; /* 黑色 */
    color: #fff;
    padding: 18px 50px;
    border-radius: 10px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 1.3em;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.btn-latest-version:hover {
    background-color: #333;
    transform: translateY(-3px);
    text-decoration: none;
}

/* Header */
.header {
    background-color: #ffffff; /* 白色 */
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #e0e0e0; /* 细线分隔 */
    box-shadow: 0 1px 5px rgba(0,0,0,0.05);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header .logo img {
    height: 40px;
}

.header .nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.header .nav ul li {
    margin-left: 30px;
}

.header .nav ul li a {
    color: #333;
    font-weight: bold;
    font-size: 17px;
    transition: color 0.3s ease;
}

.header .nav ul li a:hover {
    color: #2e8b57; /* 深绿 */
    text-decoration: none;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #333;
    font-size: 28px;
    cursor: pointer;
}

/* Hero Section - Update Title */
.hero-update-title {
    background-color: #ebebeb; /* 暖灰 */
    color: #1A1A1A;
    padding: 100px 0;
    text-align: center;
}

.hero-update-title .hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-update-title h1 {
    font-size: 4em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #1A1A1A;
}

.hero-update-title p {
    font-size: 1.5em;
    margin-bottom: 40px;
    color: #555;
}

/* Main Content Sections */
.main-content section {
    padding: 80px 0;
}

.main-content section:nth-of-type(even) {
    background-color: #f8f8f8; /* 暖灰 */
}

.main-content section:nth-of-type(odd) {
    background-color: #ffffff;
}

.section-subtitle {
    font-size: 1.15em;
    color: #666;
    max-width: 900px;
    margin: 0 auto 40px auto;
    line-height: 1.7;
    text-align: center;
}

/* Update Content Timeline */
.section-update-timeline {
    position: relative;
    padding-bottom: 50px;
}

.section-update-timeline h2 {
    text-align: center;
    font-size: 2.8em;
    margin-bottom: 20px;
}

.timeline-wrapper {
    max-width: 900px;
    margin: 50px auto;
    position: relative;
    padding-left: 30px;
}

.timeline-wrapper::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #ddd;
}

.timeline-item {
    margin-bottom: 40px;
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item .timeline-dot {
    position: absolute;
    left: -10px;
    top: 5px;
    width: 20px;
    height: 20px;
    background-color: #2e8b57; /* 深绿 */
    border-radius: 50%;
    border: 3px solid #fff;
    z-index: 1;
}

.timeline-item .timeline-content {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-left: 40px;
    border-left: 4px solid #2e8b57; /* 深绿 */
}

.timeline-item .version-tag {
    display: inline-block;
    background-color: #1A1A1A; /* 黑色 */
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.85em;
    font-weight: bold;
    margin-bottom: 10px;
}

.timeline-item h3 {
    font-size: 1.6em;
    color: #1A1A1A;
    margin-bottom: 10px;
}

.timeline-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.timeline-item ul li {
    margin-bottom: 8px;
    color: #555;
    position: relative;
    padding-left: 20px;
}

.timeline-item ul li::before {
    content: '•';
    color: #2e8b57; /* 深绿 */
    position: absolute;
    left: 0;
    font-weight: bold;
}

.timeline-item .feature-highlight {
    font-weight: bold;
    color: #1A1A1A;
}

.timeline-illustration {
    width: 100%;
    max-width: 600px;
    margin: 50px auto 0 auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* New Feature List */
.section-new-features h2 {
    text-align: center;
    font-size: 2.8em;
    margin-bottom: 20px;
}

.feature-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.feature-item {
    text-align: center;
    background-color: #ffffff;
    padding: 30px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-top: 5px solid #2e8b57; /* 深绿 */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.feature-item .feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px auto;
}

.feature-item h3 {
    font-size: 1.6em;
    color: #1A1A1A;
    margin-bottom: 10px;
}

.feature-item p {
    color: #666;
    font-size: 1em;
}

/* Device Compatibility Table */
.section-device-compatibility h2 {
    text-align: center;
    font-size: 2.8em;
    margin-bottom: 20px;
}

.responsive-table {
    overflow-x: auto;
    margin-top: 50px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.05);
}

.responsive-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}

.responsive-table th,
.responsive-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.responsive-table th {
    background-color: #1A1A1A; /* 黑色 */
    color: #fff;
    font-weight: bold;
    font-size: 1.05em;
}

.responsive-table tr:last-child td {
    border-bottom: none;
}

.responsive-table tbody tr:nth-child(even) {
    background-color: #f5f5f5; /* 暖灰 */
}

.status-ok {
    color: #2e8b57; /* 深绿 */
    font-weight: bold;
}

.status-pending {
    color: #f39c12; /* 橙色 */
    font-weight: bold;
}

/* Pre-Update Check */
.section-pre-update-check h2 {
    text-align: center;
    font-size: 2.8em;
    margin-bottom: 20px;
}

.check-list {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 50px auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #e0e0e0;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    border-bottom: 1px solid #eee;
    font-size: 1.1em;
    color: #555;
}

.check-list li:last-child {
    border-bottom: none;
}

.check-list li img {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* Troubleshooting Section */
.section-troubleshooting h2 {
    text-align: center;
    font-size: 2.8em;
    margin-bottom: 20px;
}

.troubleshoot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.troubleshoot-item {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    border-bottom: 4px solid #1A1A1A; /* 黑色 */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.troubleshoot-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.troubleshoot-item h3 {
    color: #1A1A1A;
    font-size: 1.5em;
    margin-bottom: 10px;
}

.troubleshoot-item p {
    color: #666;
    font-size: 1em;
}

/* Latest Version CTA */
.section-latest-version-cta {
    text-align: center;
    padding: 90px 0;
}

.section-latest-version-cta h2 {
    font-size: 3.2em;
    color: #1A1A1A;
    margin-bottom: 25px;
}

.section-latest-version-cta p {
    font-size: 1.3em;
    color: #666;
    margin-bottom: 50px;
}

/* Footer - Warm Gray, Deep Green, Black */
.footer-warm-dark {
    background-color: #1A1A1A; /* 黑色 */
    color: #f8f8f8; /* 暖灰 */
    padding: 30px 0;
    text-align: center;
    font-size: 0.9em;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-warm-dark .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-warm-dark p {
    margin: 0;
    color: #b0b0b0;
}

.footer-warm-dark .footer-links {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-warm-dark .footer-links a {
    color: #2e8b57; /* 深绿 */
    transition: color 0.3s ease;
}

.footer-warm-dark .footer-links a:hover {
    color: #3cb371; /* 稍亮的深绿 */
    text-decoration: none;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero-update-title h1 {
        font-size: 3em;
    }

    .hero-update-title p {
        font-size: 1.2em;
    }

    .section-subtitle {
        font-size: 1.05em;
    }

    .timeline-wrapper {
        padding-left: 15px;
    }

    .timeline-wrapper::before {
        left: 0;
    }

    .timeline-item .timeline-dot {
        left: -8px;
    }

    .timeline-item .timeline-content {
        margin-left: 20px;
    }

    .feature-list-grid,
    .troubleshoot-grid {
        grid-template-columns: 1fr;
    }

    .section-update-timeline h2,
    .section-new-features h2,
    .section-device-compatibility h2,
    .section-pre-update-check h2,
    .section-troubleshooting h2,
    .section-latest-version-cta h2 {
        font-size: 2.2em;
    }

    .header .nav {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .responsive-table table {
        min-width: unset;
    }

    .check-list li {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
    }

    .check-list li img {
        margin-bottom: 10px;
    }
}

@media (max-width: 768px) {
    .hero-update-title {
        padding: 70px 0;
    }

    .hero-update-title h1 {
        font-size: 2.5em;
    }

    .hero-update-title p {
        font-size: 1.1em;
    }

    .main-content section {
        padding: 60px 0;
    }

    .section-update-timeline h2,
    .section-new-features h2,
    .section-device-compatibility h2,
    .section-pre-update-check h2,
    .section-troubleshooting h2,
    .section-latest-version-cta h2 {
        font-size: 1.8em;
    }

    .btn-hero-cta,
    .btn-latest-version {
        padding: 12px 30px;
        font-size: 1.1em;
    }

    .footer-warm-dark .footer-links {
        flex-direction: column;
        gap: 10px;
    }
}

/* Recovered final quality layout */
.quality-page{font-family:"Microsoft YaHei",Arial,sans-serif;background:#f7f9fc;color:#172033;line-height:1.75;margin:0}.quality-page *{box-sizing:border-box}.quality-page img{max-width:100%;display:block}.quality-shell{max-width:1180px;margin:0 auto;padding:0 22px}.quality-top{background:#fff;border-bottom:1px solid #e5e9f0;position:sticky;top:0;z-index:5}.quality-top .quality-shell{min-height:72px;display:flex;align-items:center;justify-content:space-between;gap:16px}.quality-top img{height:38px}.quality-top a,.quality-btn{display:inline-block;background:#16a34a;color:#fff;padding:12px 20px;border-radius:6px;font-weight:800;text-decoration:none}.quality-hero{min-height:560px;display:grid;grid-template-columns:1.05fr .95fr;align-items:center;gap:40px;padding:70px 6vw;background:linear-gradient(135deg,#fff,#eef6ff)}.quality-hero h1{font-size:44px;line-height:1.18;margin:10px 0;color:#102033}.quality-hero p{color:#5d6878}.quality-eyebrow{font-weight:900;color:#16784f}.quality-card{background:#fff;border:1px solid #e5e9f0;border-radius:8px;padding:22px;box-shadow:0 22px 55px rgba(30,45,80,.12)}.quality-cta{display:flex;flex-wrap:wrap;gap:12px;margin-top:22px}.quality-cta a{display:inline-block;background:#16a34a;color:#fff;padding:12px 20px;border-radius:6px;font-weight:800;text-decoration:none}.quality-cta a:nth-child(2){background:#1f2937}.quality-section{padding:56px 6vw;background:#fff;border-top:1px solid #e7ebf0}.quality-section:nth-of-type(odd){background:#f7f9fc}.quality-section .quality-shell{display:grid;grid-template-columns:1fr;gap:12px}.quality-section h2{font-size:28px;margin:0;color:#102033}.quality-final{margin:34px 6vw 72px;padding:44px;text-align:center;background:#102033;color:#fff;border-radius:8px}.quality-final p{color:#eef2f7}.quality-ios .quality-hero{background:#f7fbff}.quality-mobile .quality-hero{background:#f1fffb}.quality-official .quality-hero{background:linear-gradient(120deg,#102033,#1d4f75);color:#fff}.quality-official .quality-hero h1,.quality-official .quality-hero p{color:#fff}.quality-latest .quality-hero{background:#fff7ed}.quality-login .quality-hero{background:#fff6fb}.quality-update .quality-hero{background:#f5f7ff}.quality-desktop .quality-hero{grid-template-columns:1.2fr .8fr}.quality-new-user .quality-hero{background:linear-gradient(180deg,#fff,#eefaf3)}@media(max-width:900px){.quality-hero{grid-template-columns:1fr;min-height:auto;padding:48px 22px}.quality-hero h1{font-size:34px}.quality-top .quality-shell{flex-wrap:wrap;padding:16px 22px}.quality-cta a,.quality-btn{width:100%;text-align:center}.quality-section{padding:42px 22px}.quality-final{margin:28px 22px 54px}}
/* AAPoker visual safety patch: CTA sizing, image containment, icon consistency */
html {
    box-sizing: border-box;
    overflow-x: hidden;
}

*, *::before, *::after {
    box-sizing: inherit;
}

body {
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.header .logo img,
.topbar img,
.quality-top img,
.mobile-head img,
img[src*="aapoker-logo-primary"],
img[src*="aapoker-logo-icon"] {
    width: auto;
    height: 38px;
    max-height: 42px;
    max-width: 180px;
    object-fit: contain;
    flex: 0 0 auto;
}

.hero,
.quality-hero,
.section,
.section.media,
.section.compact,
.app,
.pc,
.reinstall,
.note-left,
.entry,
.phone-hero,
.login-hero,
[class*="grid"] {
    min-width: 0;
}

.visual-panel,
.quality-card,
.mini-card,
.card,
article,
figure {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.visual-panel img,
.quality-card img,
.content-image,
.phone-strip img,
.final-image img,
.hero img,
.quality-hero img,
.section img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: contain;
    margin-left: auto;
    margin-right: auto;
}

.cta-row,
.quality-cta,
.download-buttons,
.hero-buttons,
.hero-actions,
.final-cta,
.seo-final-cta,
.quality-hero-cta,
.mid-cta {
    align-items: center;
    align-content: center;
    min-height: 0;
}

.btn-primary,
.btn-secondary,
.btn-primary-large,
.btn-primary-hero,
.btn-primary-final-cta,
.btn-tertiary,
.quality-btn,
.module-cta,
.topbar a,
.mobile-head a,
.cta-row a,
.quality-cta a,
.download-buttons a,
.hero-buttons a,
.hero-actions a,
.final-cta a,
.seo-final-cta a,
.quality-hero-cta a,
.mid-cta a,
button[class*="btn"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    max-width: 100%;
    height: auto;
    min-height: 0;
    align-self: center;
    flex: 0 0 auto;
    white-space: normal;
}

@media (max-width: 900px) {
    .cta-row,
    .quality-cta,
    .download-buttons,
    .hero-buttons,
    .hero-actions,
    .seo-final-cta,
    .quality-hero-cta,
    .mid-cta {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 12px;
    }

    .btn-primary,
    .btn-secondary,
    .btn-primary-large,
    .btn-primary-hero,
    .btn-primary-final-cta,
    .btn-tertiary,
    .quality-btn,
    .module-cta,
    .topbar a,
    .mobile-head a,
    .cta-row a,
    .quality-cta a,
    .download-buttons a,
    .hero-buttons a,
    .hero-actions a,
    .final-cta a,
    .seo-final-cta a,
    .quality-hero-cta a,
    .mid-cta a {
        width: auto;
        max-width: 100%;
        min-height: 0;
        height: auto;
        flex: 0 1 auto;
    }

    .hero,
    .quality-hero,
    .section,
    .section.media,
    .section.compact,
    .app,
    .pc,
    .reinstall,
    .note-left,
    .entry,
    .phone-hero,
    .login-hero {
        max-width: 100%;
        overflow-x: hidden;
    }

    h1, h2, h3, p, li, a {
        overflow-wrap: anywhere;
    }
}
/* AAPoker visual safety patch v2: prevent CTA vertical text and icon oversize */
.btn-primary,
.btn-secondary,
.btn-primary-large,
.btn-primary-hero,
.btn-primary-final-cta,
.btn-tertiary,
.quality-btn,
.module-cta,
.topbar a,
.mobile-head a,
.cta-row a,
.quality-cta a,
.download-buttons a,
.hero-buttons a,
.hero-actions a,
.final-cta a,
.seo-final-cta a,
.quality-hero-cta a,
.mid-cta a,
a[href="/go/aapoker"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    max-width: calc(100vw - 48px) !important;
    height: auto !important;
    min-height: 0 !important;
    line-height: 1.25 !important;
    align-self: center !important;
    flex: 0 1 auto !important;
    white-space: normal !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
    text-align: center !important;
}

.header .logo img,
.topbar img,
.quality-top img,
.mobile-head img,
img[src*="aapoker-logo-primary"],
img[src*="aapoker-logo-icon"] {
    width: auto !important;
    height: auto !important;
    max-height: 42px !important;
    max-width: 180px !important;
    object-fit: contain !important;
}

@media (max-width: 480px) {
    .btn-primary,
    .btn-secondary,
    .btn-primary-large,
    .btn-primary-hero,
    .btn-primary-final-cta,
    .btn-tertiary,
    .quality-btn,
    .module-cta,
    .topbar a,
    .mobile-head a,
    .cta-row a,
    .quality-cta a,
    .download-buttons a,
    .hero-buttons a,
    .hero-actions a,
    .final-cta a,
    .seo-final-cta a,
    .quality-hero-cta a,
    .mid-cta a,
    a[href="/go/aapoker"] {
        padding-top: 11px !important;
        padding-bottom: 11px !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
        font-size: 15px !important;
    }
}
/* AAPoker visual safety patch v3: mobile tables and route-card CTA blocks */
table {
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
}

th,
td {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.table-download-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    line-height: 1.25 !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
}

.route-card,
a.route-card,
.entry-card,
a.entry-card {
    height: auto !important;
    min-height: 0 !important;
    align-items: center !important;
    align-self: center !important;
    line-height: 1.25 !important;
}

.route-card strong,
.route-card small,
.entry-card strong,
.entry-card small {
    line-height: 1.25 !important;
}

@media (max-width: 480px) {
    table {
        font-size: 13px;
    }

    th,
    td {
        padding-left: 6px !important;
        padding-right: 6px !important;
    }

    .route-card,
    a.route-card,
    .entry-card,
    a.entry-card {
        padding: 10px 12px !important;
        gap: 10px !important;
    }
}
/* AAPoker visual safety patch v4: compact route cards and narrow table CTAs */
.route-card,
a.route-card {
    display: grid !important;
    grid-template-columns: 48px minmax(0, 1fr) !important;
    gap: 4px 14px !important;
    padding: 14px 18px !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

.route-card span {
    width: 42px !important;
    height: 42px !important;
    grid-row: span 2 !important;
    flex: 0 0 auto !important;
}

.route-card strong,
.route-card small {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
}

.table-download-link {
    max-width: 100% !important;
    padding: 4px 6px !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    white-space: normal !important;
    word-break: keep-all !important;
}

.info-col-item {
    max-width: 100% !important;
    padding: 22px !important;
}

@media (max-width: 480px) {
    .route-card,
    a.route-card {
        grid-template-columns: 42px minmax(0, 1fr) !important;
        padding: 10px 12px !important;
    }

    .route-card strong {
        font-size: 18px !important;
    }

    .route-card small {
        font-size: 13px !important;
    }

    .info-col-item {
        padding: 18px !important;
    }
}