:root {
    --apple-blue: #007aff;
    --apple-blue-dark: #0051a8;
    --card-bg: #fff;
    --body-bg: #f5f6fa;
    --text-main: #222;
    --text-secondary: #666;
    --border-radius: 28px;
    --shadow: 0 8px 32px rgba(0,0,0,0.08);
    --transition: .25s cubic-bezier(.4,0,.2,1);
    --max-width: 960px;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-size: 16px;
}

body {
    min-height: 100vh;
    background: var(--body-bg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    line-height: 1.6;
}

.main-title-container {
    margin-top: 4vh;
    margin-bottom: 3vh;
    font-size: 2.6rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--apple-blue);
    text-align: center;
    background: none;
    box-shadow: none;
    width: 90vw;
    max-width: 100%;
}

.container {
    width: 90vw;
    max-width: var(--max-width);
    display: flex;
    flex-direction: column;
    gap: 2.8vh;
    margin-bottom: 2vh;
}

.section {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 3.6vh 3.2vw 3.2vh 3.2vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow var(--transition), transform var(--transition);
    border: none;
    opacity: 0;
    transform: translateY(3.2vh);
    animation: fadeInUp .7s var(--transition) forwards;
}

.section:nth-child(1) { animation-delay: 0.1s; }
.section:nth-child(2) { animation-delay: 0.2s; }
.section:nth-child(3) { animation-delay: 0.3s; }

.section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.section:hover {
    box-shadow: 0 1.2vh 4vh rgba(0,0,0,0.13);
    transform: translateY(-0.2vh) scale(1.01);
}

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

.main-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.8vh 4.4vw;
    background: linear-gradient(90deg, var(--apple-blue), var(--apple-blue-dark));
    color: #fff;
    border-radius: 999px;
    font-size: 1.25rem;
    font-weight: 600;
    border: none;
    box-shadow: 0 0.2vh 0.8vh rgba(0,122,255,0.10);
    cursor: pointer;
    transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
    text-decoration: none;
    margin-bottom: 1.8vh;
    gap: 1.2vw;
}

.main-button:hover {
    background: linear-gradient(90deg, var(--apple-blue-dark), var(--apple-blue));
    box-shadow: 0 0.6vh 2.4vh rgba(0,122,255,0.18);
    transform: translateY(-0.2vh) scale(1.03);
}

.button-icon {
    font-size: 1.3em;
    margin-right: 10px;
}

.alternative-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.4vh;
    justify-content: center;
    margin-top: 1vh;
}

.alternative-button {
    display: flex;
    align-items: center;
    gap: 0.8vw;
    padding: 1.2vh 2.8vw;
    border-radius: 999px;
    background: #f1f4fa;
    color: var(--apple-blue);
    font-weight: 500;
    font-size: 1rem;
    border: 1.5px solid #e0e6ef;
    box-shadow: none;
    transition: background var(--transition), color var(--transition), border var(--transition);
    text-decoration: none;
}

.alternative-button:hover {
    background: var(--apple-blue);
    color: #fff;
    border: 1.5px solid var(--apple-blue);
}

.button-icon-spaced {
    font-size: 1.1em;
}

.note-text {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 1vh 0 0 0;
    text-align: center;
    font-style: italic;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--apple-blue-dark);
    margin-bottom: 1.8vh;
    display: flex;
    align-items: center;
    gap: 1vw;
    letter-spacing: 0.5px;
}

.warning-icon { color: #ff9500; }
.info-icon { color: var(--apple-blue); }

.numbered-list, .dotted-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.8vh 0;
    width: 100%;
    color: var(--text-main);
    font-size: 1.05rem;
}

.numbered-list li, .dotted-list li {
    margin-bottom: 1vh;
    padding-left: 0.5em;
    position: relative;
    line-height: 1.7;
    border-left: 3px solid #e0e6ef;
    padding-left: 1.2em;
    background: #fafbfc;
    border-radius: 0.8vh;
}

.numbered-list li::before {
    content: counter(num) ". ";
    counter-increment: num;
    color: var(--apple-blue);
    font-weight: bold;
    position: absolute;
    left: 0.2em;
    top: 0;
}

.numbered-list {
    counter-reset: num;
}

.dotted-list li::before {
    content: '•';
    color: var(--apple-blue);
    font-size: 1.2em;
    position: absolute;
    left: 0.2em;
    top: 0;
}

.bookmark-section {
    text-align: center;
    margin-top: 1.8vh;
}

.bookmark-button {
    display: inline-flex;
    align-items: center;
    gap: 0.8vw;
    padding: 1vh 2.8vw;
    background: #f1f4fa;
    color: var(--apple-blue);
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    border: 1.5px solid #e0e6ef;
    cursor: pointer;
    transition: background var(--transition), color var(--transition), border var(--transition);
    box-shadow: none;
}

.bookmark-button:hover {
    background: var(--apple-blue);
    color: #fff;
    border: 1.5px solid var(--apple-blue);
}

.bookmark-instruction {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 1vh;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity var(--transition), max-height var(--transition);
}

.bookmark-instruction.show {
    opacity: 1;
    max-height: 5vh;
}

.footer-note {
    margin: 4.8vh 0 2vh;
    padding: 0 2vw;
    text-align: center;
    width: 100%;
    max-width: var(--max-width);
}

.footer-content {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 1.8vh 0 1vh 0;
    box-shadow: var(--shadow);
    border: none;
    font-size: 1rem;
    color: var(--text-secondary);
}

.deepseek-link {
    color: var(--apple-blue);
    font-weight: 600;
    text-decoration: none;
    position: relative;
    transition: color var(--transition);
}

.deepseek-link:hover {
    color: var(--apple-blue-dark);
    text-decoration: underline;
}

.tech-tribute {
    display: inline-flex;
    align-items: center;
    gap: 0.8vw;
    color: #ee1c25;
    font-weight: 500;
    padding: 0.6vh 1.5vw;
    border-radius: 2vh;
    background: rgba(238,28,37,0.08);
    font-size: 0.95rem;
    margin-top: 0.8vh;
}

.tech-tribute .fa-star {
    font-size: 0.8em;
    color: #ee1c25;
}

/* 微信禁止访问全屏提示框 */
.wechat-warning-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.wechat-warning-overlay.show {
    opacity: 1;
    visibility: visible;
}

.wechat-warning-content {
    background: white;
    padding: 4vh;
    border-radius: 2vh;
    box-shadow: 0 2vh 6vh rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 90vw;
    width: 50vh;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.wechat-warning-overlay.show .wechat-warning-content {
    transform: scale(1);
}

.wechat-warning-content h3 {
    color: #ff6b6b;
    margin-top: 0;
    font-size: 1.6rem;
    margin-bottom: 2vh;
}

.wechat-warning-content p {
    color: #333;
    margin-bottom: 0;
    line-height: 1.6;
    font-size: 1.1rem;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    :root {
        --max-width: 900px;
    }
    .main-title-container {
        font-size: 2.4rem;
    }
}

@media (max-width: 900px) {
    :root {
        --max-width: 800px;
    }
    .main-title-container {
        font-size: 2.2rem;
        margin-top: 3vh;
        margin-bottom: 2.5vh;
    }
    .container {
        width: 95vw;
    }
    .section {
        padding: 3vh 2.5vw 3vh 2.5vw;
    }
    .main-button {
        padding: 1.5vh 3.5vw;
        font-size: 1.1rem;
    }
    .alternative-button {
        padding: 1vh 2.5vw;
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    :root {
        --max-width: 700px;
    }
    .main-title-container {
        font-size: 2rem;
        margin-top: 2.5vh;
        margin-bottom: 2vh;
    }
    .section {
        padding: 2.5vh 2vw 2.5vh 2vw;
    }
    .main-button {
        padding: 1.3vh 3vw;
        font-size: 1rem;
    }
    .alternative-button {
        padding: 1vh 2vw;
        font-size: 0.9rem;
    }
    .section-title {
        font-size: 1.1rem;
    }
    .numbered-list li, .dotted-list li {
        font-size: 0.95rem;
    }
}

@media (max-width: 600px) {
    :root {
        --max-width: 95vw;
    }
    .main-title-container {
        font-size: 1.8rem;
        margin-top: 2vh;
        margin-bottom: 1.5vh;
    }
    .container {
        gap: 2vh;
    }
    .section {
        padding: 2vh 1.5vw 2vh 1.5vw;
        margin-bottom: 1vh;
    }
    .main-button {
        padding: 1.2vh 2.5vw;
        font-size: 0.95rem;
        gap: 0.8vw;
    }
    .alternative-links {
        gap: 1vh;
    }
    .alternative-button {
        padding: 0.9vh 1.8vw;
        font-size: 0.85rem;
        gap: 0.5vw;
    }
    .bookmark-button {
        padding: 0.9vh 2vw;
        font-size: 0.9rem;
    }
    .bookmark-instruction {
        font-size: 0.85rem;
    }
    .footer-note {
        margin: 3vh 0 1vh;
    }
    .tech-tribute {
        font-size: 0.85rem;
        gap: 0.6vw;
        padding: 0.5vh 1.2vw;
    }
    .wechat-warning-content {
        width: 80vw;
        padding: 3vh;
    }
    .wechat-warning-content h3 {
        font-size: 1.4rem;
        margin-bottom: 1.5vh;
    }
    .wechat-warning-content p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    :root {
        --max-width: 90vw;
    }
    .main-title-container {
        font-size: 1.6rem;
        margin-top: 2vh;
        margin-bottom: 1.2vh;
    }
    .container {
        gap: 1.5vh;
    }
    .section {
        padding: 2vh 1vw 2vh 1vw;
    }
    .main-button {
        padding: 1vh 2vw;
        font-size: 0.9rem;
    }
    .alternative-button {
        padding: 0.8vh 1.5vw;
        font-size: 0.8rem;
    }
    .section-title {
        font-size: 1rem;
    }
    .numbered-list li, .dotted-list li {
        font-size: 0.9rem;
        padding-left: 1vw;
    }
    .tech-tribute {
        font-size: 0.8rem;
    }
    .wechat-warning-content {
        width: 90vw;
        padding: 2vh;
    }
    .wechat-warning-content h3 {
        font-size: 1.2rem;
    }
    .wechat-warning-content p {
        font-size: 0.9rem;
    }
}

@media (max-width: 360px) {
    .main-title-container {
        font-size: 1.4rem;
        margin-top: 1.5vh;
    }
    .section {
        padding: 1.5vh 0.8vw 1.5vh 0.8vw;
    }
    .alternative-button {
        padding: 0.7vh 1.2vw;
        font-size: 0.75rem;
    }
    .tech-tribute {
        padding: 0.4vh 1vw;
    }
}

/* 高分辨率屏幕优化 */
@media (min-width: 1920px) {
    :root {
        --max-width: 1200px;
    }
    .main-title-container {
        font-size: 3rem;
    }
    .section {
        padding: 4vh 4vw 4vh 4vw;
    }
    .main-button {
        padding: 2vh 5vw;
        font-size: 1.4rem;
    }
    .alternative-button {
        padding: 1.5vh 3.5vw;
        font-size: 1.1rem;
    }
}