* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background:
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.2) 0%, transparent 50%),
        linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
    color: #333;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    touch-action: manipulation;
}

/* 动态背景粒子效果 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.1), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.05), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255, 255, 255, 0.08), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255, 255, 255, 0.03), transparent);
    background-repeat: repeat;
    background-size: 150px 150px;
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-10px) rotate(1deg); }
    66% { transform: translateY(5px) rotate(-1deg); }
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 100;
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(120, 219, 255, 0.1) 50%,
        transparent 100%);
    animation: scan 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes scan {
    0%, 100% { transform: translateX(-100%); opacity: 0; }
    50% { transform: translateX(100%); opacity: 1; }
}

.nav-brand h1 {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #00d4ff, #ff00d4, #00ff88);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease infinite;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 212, 255, 0.2), rgba(255, 0, 212, 0.2));
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-links a:hover {
    color: white;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
    transform: translateY(-2px);
}

.nav-links a:hover::before {
    opacity: 1;
}

.hero {
    text-align: center;
    padding: 4rem 2rem;
    color: white;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* Hero统计区域 */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.hero-stats .stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 1.5rem 2rem;
    min-width: 120px;
    transition: all 0.3s ease;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.hero-stats .stat-item:hover {
    transform: translateY(-5px);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(0, 212, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.3);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #00d4ff;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
    margin-bottom: 0.5rem;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.nav-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent);
    transition: left 0.5s ease;
}

.nav-card:hover::before {
    left: 100%;
}

.nav-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(0, 212, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.3);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.3));
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem auto;
}

.card-icon img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.card-icon .fallback-icon {
    font-size: 3rem;
    display: block;
}

.nav-card:hover .card-icon {
    transform: scale(1.1) rotateY(10deg);
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.6));
}

.nav-card:hover .card-icon img {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.3)) drop-shadow(0 0 15px rgba(0, 212, 255, 0.4));
}

.nav-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav-card p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    font-weight: 400;
}

/* 延迟状态样式 */
.latency-status {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1); }
    50% { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
}

.nav-card {
    position: relative;
}

.status-excellent {
    color: #00ff88;
    border-color: #00ff88;
    box-shadow:
        0 4px 15px rgba(0, 255, 136, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.status-good {
    color: #ffeb3b;
    border-color: #ffeb3b;
    box-shadow:
        0 4px 15px rgba(255, 235, 59, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.status-slow {
    color: #ff9800;
    border-color: #ff9800;
    box-shadow:
        0 4px 15px rgba(255, 152, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.status-timeout {
    color: #f44336;
    border-color: #f44336;
    box-shadow:
        0 4px 15px rgba(244, 67, 54, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.status-error {
    color: #9e9e9e;
    border-color: #9e9e9e;
    box-shadow:
        0 4px 15px rgba(158, 158, 158, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* 侧边悬浮按钮 */
.floating-controls {
    position: fixed;
    right: 24px;
    bottom: 100px;
    z-index: 1000;
    pointer-events: none;
}

.floating-btn-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: auto;
}

.floating-btn {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.floating-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

.floating-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.floating-icon {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
}

/* 简洁的tooltip */
.floating-btn[title]:hover::after {
    content: attr(title);
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
    animation: tooltipFadeIn 0.2s ease-out;
}

@keyframes tooltipFadeIn {
    from { opacity: 0; transform: translateY(-50%) translateX(10px); }
    to { opacity: 1; transform: translateY(-50%) translateX(0); }
}

/* 悬浮按钮入场动画 */
.floating-btn-group .floating-btn {
    animation: fadeInRight 0.5s ease-out both;
}

.floating-btn-group .floating-btn:nth-child(1) {
    animation-delay: 0.1s;
}

.floating-btn-group .floating-btn:nth-child(2) {
    animation-delay: 0.2s;
}

.floating-btn-group .floating-btn:nth-child(3) {
    animation-delay: 0.3s;
}

.floating-btn-group .floating-btn:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 隐藏旧的按钮样式，现在使用悬浮按钮 */
.latency-btn {
    display: none;
}



/* 延迟统计弹窗样式 */
.latency-stats {
    text-align: left;
    margin: 1rem 0;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    margin: 0.5rem 0;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.stat-name {
    font-weight: 600;
    text-transform: capitalize;
}

.stat-status {
    font-weight: 500;
}

.stat-time {
    font-size: 0.8rem;
    color: #666;
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 10% auto;
    padding: 2rem;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    color: white;
    animation: modalSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.modal-actions button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    background: #667eea;
    color: white;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s;
}

.modal-actions button:hover {
    background: #5a6fd8;
}

/* 平板端适配 */
@media (max-width: 1024px) {
    .nav-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .hero-stats {
        gap: 2rem;
    }

    .hero-stats .stat-item {
        min-width: 110px;
    }
}

/* 手机端适配 */
@media (max-width: 768px) {
    /* 移动端悬浮按钮优化 */
    .floating-controls {
        right: 16px;
        bottom: 80px;
    }

    .floating-btn {
        width: 46px;
        height: 46px;
    }

    .floating-icon {
        font-size: 1.1rem;
    }

    .floating-btn-group {
        gap: 10px;
    }
    .navbar {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        position: sticky;
        top: 0;
        z-index: 100;
    }

    .nav-brand h1 {
        font-size: 1.3rem;
        text-align: center;
    }

    .nav-links {
        justify-content: center;
        gap: 0.8rem;
        flex-wrap: wrap;
    }

    .nav-links a {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        border-radius: 20px;
        min-width: 70px;
        text-align: center;
    }

    .hero {
        padding: 2rem 1rem;
    }

    .hero h2 {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: 0.8rem;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        line-height: 1.4;
    }

    .hero-stats {
        flex-direction: row;
        gap: 1rem;
        justify-content: space-around;
        flex-wrap: wrap;
    }

    .hero-stats .stat-item {
        min-width: 90px;
        padding: 1rem;
        flex: 1;
        max-width: 120px;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .nav-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1.2rem;
    }

    .nav-card {
        padding: 1.5rem;
        margin: 0 auto;
        max-width: 400px;
        width: 100%;
    }



    .modal-content {
        margin: 5% auto;
        width: 95%;
        max-width: 400px;
        padding: 1.5rem;
    }
}

/* 小屏手机适配 */
@media (max-width: 480px) {
    /* 小屏手机悬浮按钮优化 */
    .floating-controls {
        right: 12px;
        bottom: 60px;
    }

    .floating-btn {
        width: 42px;
        height: 42px;
    }

    .floating-icon {
        font-size: 1rem;
    }

    .floating-btn-group {
        gap: 8px;
    }
    .navbar {
        padding: 0.8rem;
    }

    .nav-brand h1 {
        font-size: 1.2rem;
    }

    .nav-links a {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        min-width: 60px;
    }

    .hero {
        padding: 1.5rem 0.8rem;
    }

    .hero h2 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .hero p {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
    }

    .hero-stats {
        gap: 0.8rem;
    }

    .hero-stats .stat-item {
        min-width: 80px;
        padding: 0.8rem;
        max-width: 100px;
    }

    .stat-number {
        font-size: 1.3rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .nav-grid {
        padding: 0.8rem;
        gap: 1rem;
    }

    .nav-card {
        padding: 1.2rem;
        max-width: 350px;
    }

    .card-icon {
        font-size: 2.2rem;
        margin-bottom: 0.8rem;
        width: 56px;
        height: 56px;
    }

    .card-icon img {
        width: 40px;
        height: 40px;
    }

    .card-icon .fallback-icon {
        font-size: 2.2rem;
    }

    .nav-card h3 {
        font-size: 1.2rem;
        margin-bottom: 0.4rem;
    }

    .nav-card p {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .latency-status {
        top: 8px;
        left: 8px;
        padding: 3px 6px;
        font-size: 0.65rem;
        border-radius: 15px;
    }



    .btn-icon {
        font-size: 1rem;
        margin-right: 0.4rem;
    }

    .modal-content {
        margin: 5% auto;
        width: 95%;
        max-width: 350px;
        padding: 1.2rem;
        max-height: 85vh;
        overflow-y: auto;
    }

    .modal-content h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .latency-stats .stat-item {
        padding: 0.6rem;
        margin: 0.4rem 0;
        font-size: 0.85rem;
    }

    .loading-spinner {
        width: 60px;
        height: 60px;
    }

    .loading-text {
        font-size: 1rem;
    }
}

/* 超小屏适配 */
@media (max-width: 360px) {
    /* 超小屏悬浮按钮优化 */
    .floating-controls {
        right: 10px;
        bottom: 50px;
    }

    .floating-btn {
        width: 38px;
        height: 38px;
    }

    .floating-icon {
        font-size: 0.9rem;
    }

    .floating-btn-group {
        gap: 6px;
    }

    /* 超小屏跳转提示优化 */
    .redirect-toast {
        top: 50px;
        padding: 10px 14px;
        min-width: 240px;
        max-width: 80vw;
    }

    .toast-icon {
        font-size: 1.2rem;
    }

    .toast-title {
        font-size: 0.8rem;
    }

    .toast-url {
        font-size: 0.7rem;
    }
    .nav-brand h1 {
        font-size: 1.1rem;
    }

    .hero h2 {
        font-size: 1.3rem;
    }

    .hero p {
        font-size: 0.85rem;
    }

    .hero-stats .stat-item {
        min-width: 70px;
        padding: 0.6rem;
    }

    .nav-card {
        padding: 1rem;
    }

    .card-icon {
        font-size: 2rem;
    }

    .nav-card h3 {
        font-size: 1.1rem;
    }

    .nav-card p {
        font-size: 0.8rem;
    }


}

/* 移动端触摸优化 */
@media (hover: none) and (pointer: coarse) {
    .floating-btn:hover {
        transform: none;
        background: rgba(255, 255, 255, 0.1);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    }

    .floating-btn:active {
        transform: scale(0.95);
        background: rgba(255, 255, 255, 0.2);
    }

    /* 移动端隐藏tooltip */
    .floating-btn[title]:hover::after {
        display: none;
    }

    /* 移动端跳转提示优化 */
    .redirect-toast {
        top: 60px;
        padding: 12px 16px;
        min-width: 260px;
        max-width: 85vw;
    }

    .toast-icon {
        font-size: 1.3rem;
    }

    .toast-title {
        font-size: 0.85rem;
    }

    .toast-url {
        font-size: 0.75rem;
    }

    .toast-cancel {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    .nav-card:hover {
        transform: none;
        box-shadow:
            0 8px 32px rgba(0, 0, 0, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.1);
    }

    .nav-card:active {
        transform: scale(0.98);
        box-shadow:
            0 4px 16px rgba(0, 0, 0, 0.4),
            0 0 20px rgba(0, 212, 255, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
        border-color: rgba(0, 212, 255, 0.4);
    }

    .latency-btn:hover {
        transform: none;
        background: linear-gradient(45deg, rgba(0, 212, 255, 0.2), rgba(255, 0, 212, 0.2));
        box-shadow:
            0 4px 15px rgba(0, 0, 0, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }

    .latency-btn:active {
        transform: scale(0.95);
        background: linear-gradient(45deg, rgba(0, 212, 255, 0.3), rgba(255, 0, 212, 0.3));
        box-shadow:
            0 2px 8px rgba(0, 0, 0, 0.3),
            0 0 15px rgba(0, 212, 255, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }

    .nav-links a:hover {
        transform: none;
        text-shadow: none;
    }

    .nav-links a:active {
        transform: scale(0.95);
        background: rgba(255, 255, 255, 0.1);
    }

    .hero-stats .stat-item:hover {
        transform: none;
        box-shadow:
            0 8px 32px rgba(0, 0, 0, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }

    .hero-stats .stat-item:active {
        transform: scale(0.98);
    }
}

/* 横屏手机优化 */
@media (max-width: 896px) and (orientation: landscape) {
    .hero {
        padding: 1rem;
    }

    .hero h2 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .hero p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .hero-stats {
        gap: 1.5rem;
        margin-top: 1rem;
    }

    .hero-stats .stat-item {
        padding: 0.8rem 1rem;
    }

    .nav-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
        padding: 1rem;
    }

    .nav-card {
        padding: 1rem;
    }

    .card-icon {
        font-size: 2rem;
        margin-bottom: 0.5rem;
        width: 48px;
        height: 48px;
    }

    .card-icon img {
        width: 32px;
        height: 32px;
    }

    .card-icon .fallback-icon {
        font-size: 2rem;
    }

    .nav-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.3rem;
    }

    .nav-card p {
        font-size: 0.8rem;
    }


}

/* 加载动画样式 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-spinner {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 2rem;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top: 3px solid #00d4ff;
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

.spinner-ring:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 10px;
    left: 10px;
    border-top-color: #ff00d4;
    animation-duration: 1.2s;
    animation-direction: reverse;
}

.spinner-ring:nth-child(3) {
    width: 40px;
    height: 40px;
    top: 20px;
    left: 20px;
    border-top-color: #00ff88;
    animation-duration: 0.9s;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* 跳转提示样式 */
.redirect-toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(0, 212, 255, 0.2);
    max-width: 90vw;
    min-width: 280px;
}

.redirect-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    animation: toast-glow 2s ease-in-out infinite;
}

@keyframes toast-glow {
    0%, 100% {
        box-shadow:
            0 10px 40px rgba(0, 0, 0, 0.3),
            0 0 20px rgba(0, 212, 255, 0.2);
    }
    50% {
        box-shadow:
            0 10px 40px rgba(0, 0, 0, 0.4),
            0 0 30px rgba(0, 212, 255, 0.4);
    }
}

.toast-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    animation: rocket-bounce 0.6s ease-out;
}

@keyframes rocket-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.toast-content {
    flex: 1;
    min-width: 0;
}

.toast-title {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 4px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.toast-url {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    font-family: 'Courier New', monospace;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 8px;
}

.toast-progress {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #00d4ff, #ff00d4);
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s ease;
}

@keyframes progress-fill {
    from { width: 0%; }
    to { width: 100%; }
}

.toast-cancel {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.toast-cancel:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: scale(1.1);
}

.toast-cancel:active {
    transform: scale(0.9);
}

.cancel-toast {
    background: rgba(255, 0, 0, 0.9) !important;
}

.cancel-toast .toast-icon {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    75% { transform: translateX(3px); }
}

/* 错误信息样式 */
.error-message {
    grid-column: 1 / -1;
    background: rgba(255, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 0, 0, 0.3);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    color: white;
    margin: 2rem auto;
    max-width: 600px;
}

.error-message h3 {
    color: #ff6b6b;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.error-message p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.error-details {
    text-align: left;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.error-details ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.error-details li {
    margin: 0.5rem 0;
}

.error-details code {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #00d4ff;
}

