/* GT Network 官网样式 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a2e 50%, #16213e 100%);
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}

/* 动态背景粒子效果 */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.4;
}

.bg-animation span {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #ff456b;
    border-radius: 50%;
    animation: float 15s infinite;
    box-shadow: 0 0 10px #ff456b, 0 0 20px #ff456b;
}

@keyframes float {
    0%, 100% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% {
        transform: translateY(-10vh) scale(1);
        opacity: 0;
    }
}

/* 头部样式 - 玻璃拟态 */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 69, 107, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 69, 107, 0.2);
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    animation: slideDown 0.8s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

header img {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(255, 69, 107, 0.4);
    transition: transform 0.3s ease;
}

header img:hover { transform: rotate(10deg) scale(1.1); }

header h1 {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #ff456b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

/* 导航栏 */
nav {
    position: fixed;
    top: 85px;
    left: 0;
    right: 0;
    z-index: 999;
    display: flex;
    justify-content: center;
    padding: 15px;
    animation: fadeIn 1s ease-out 0.3s backwards;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.nav-container {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 8px;
    display: flex;
    gap: 5px;
}

.nav-btn {
    padding: 10px 24px;
    border-radius: 25px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    border: none;
    background: transparent;
}

.nav-btn:hover {
    background: rgba(255, 69, 107, 0.1);
    color: #ff456b;
}

.nav-btn.active {
    background: #ff456b;
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 69, 107, 0.3);
}

/* 主容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 180px 20px 60px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    position: relative;
    z-index: 1;
}

/* 卡片样式 - 玻璃拟态 */
.card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 35px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 69, 107, 0.2), transparent);
    transition: left 0.7s;
}

.card:hover::before { left: 100%; }

.card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(255, 69, 107, 0.5);
    box-shadow: 0 20px 40px rgba(255, 69, 107, 0.2),
                0 0 0 1px rgba(255, 69, 107, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* 图标容器 */
.icon-wrapper {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(255, 69, 107, 0.2) 0%, rgba(255, 69, 107, 0.05) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 69, 107, 0.3);
    transition: all 0.3s ease;
}

.card:hover .icon-wrapper {
    background: linear-gradient(135deg, rgba(255, 69, 107, 0.4) 0%, rgba(255, 69, 107, 0.1) 100%);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 30px rgba(255, 69, 107, 0.3);
}

.card .material-symbols-outlined {
    font-size: 32px;
    color: #ff456b;
    transition: all 0.3s ease;
}

.card:hover .material-symbols-outlined {
    color: #fff;
    transform: scale(1.2);
}

.card h2 {
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    letter-spacing: -0.3px;
}

.card .subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 5px;
    font-weight: 400;
}

.card .visit-btn {
    margin-top: 20px;
    padding: 10px 24px;
    background: rgba(255, 69, 107, 0.1);
    border: 1px solid rgba(255, 69, 107, 0.3);
    border-radius: 20px;
    color: #ff456b;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.card:hover .visit-btn {
    background: #ff456b;
    color: #fff;
    box-shadow: 0 5px 20px rgba(255, 69, 107, 0.4);
}

/* 特殊卡片样式 */
.card.featured::after {
    content: 'HOT';
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ff456b;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 10px;
    letter-spacing: 1px;
}

.card.new::after {
    content: 'NEW';
    position: absolute;
    top: 15px;
    right: 15px;
    background: #00d4aa;
    color: #000;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 10px;
    letter-spacing: 1px;
}

.card.external .icon-wrapper {
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.2) 0%, rgba(0, 212, 170, 0.05) 100%);
    border-color: rgba(0, 212, 170, 0.3);
}

.card.external .material-symbols-outlined { color: #00d4aa; }

.card.external:hover {
    border-color: rgba(0, 212, 170, 0.5);
    box-shadow: 0 20px 40px rgba(0, 212, 170, 0.2),
                0 0 0 1px rgba(0, 212, 170, 0.3);
}

.card.external:hover .icon-wrapper {
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.4) 0%, rgba(0, 212, 170, 0.1) 100%);
    box-shadow: 0 10px 30px rgba(0, 212, 170, 0.3);
}

.card.external:hover .material-symbols-outlined { color: #fff; }

.card.external .visit-btn {
    background: rgba(0, 212, 170, 0.1);
    border-color: rgba(0, 212, 170, 0.3);
    color: #00d4aa;
}

.card.external:hover .visit-btn {
    background: #00d4aa;
    color: #000;
    box-shadow: 0 5px 20px rgba(0, 212, 170, 0.4);
}

/* 页脚 */
footer {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 13px;
    position: relative;
    z-index: 1;
}

footer a { color: #ff456b; text-decoration: none; transition: opacity 0.3s; }
footer a:hover { opacity: 0.8; }

/* 加载动画 */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.card { animation: fadeInUp 0.6s ease-out backwards; }
.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.15s; }
.card:nth-child(3) { animation-delay: 0.2s; }
.card:nth-child(4) { animation-delay: 0.25s; }
.card:nth-child(5) { animation-delay: 0.3s; }
.card:nth-child(6) { animation-delay: 0.35s; }
.card:nth-child(7) { animation-delay: 0.4s; }
.card:nth-child(8) { animation-delay: 0.45s; }
.card:nth-child(9) { animation-delay: 0.5s; }
.card:nth-child(10) { animation-delay: 0.55s; }

/* 响应式优化 */
@media (max-width: 768px) {
    header { padding: 15px 20px; }
    header h1 { font-size: 20px; }
    
    nav { top: 70px; padding: 10px; }
    .nav-container {
        border-radius: 30px;
        padding: 6px;
        width: calc(100% - 40px);
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .nav-container::-webkit-scrollbar { display: none; }
    .nav-btn { padding: 8px 16px; font-size: 13px; white-space: nowrap; }
    
    .container {
        grid-template-columns: 1fr;
        padding-top: 150px;
    }
    .card { padding: 25px 20px; }
}

@media (max-width: 480px) {
    header { padding: 12px 15px; }
    header h1 { font-size: 18px; }
    header img { width: 36px; height: 36px; }
    
    nav { top: 65px; }
    .nav-btn { padding: 6px 12px; font-size: 12px; }
    .nav-btn .material-symbols-outlined { font-size: 16px; }
}
