@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Noto+Sans+SC:wght@300;400;700&display=swap');

:root {
    --tech-pink: #ff00cc;
    --tech-purple: #7000ff;
    --tech-blue: #00f2ff;
    --bg-dark: #0a0c1b;
    --card-text: #1a1a1a;
}

body {
    background-color: var(--bg-dark);
    color: #f0f0f0;
    font-family: 'Noto Sans SC', sans-serif;
    overflow-x: hidden;
    margin: 0;
    -webkit-tap-highlight-color: transparent;
}

.tech-font { font-family: 'Orbitron', sans-serif; }

#stars-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
    background: radial-gradient(circle at center, #1a1c3a 0%, #05060f 100%);
}

.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: none;
    position: relative;
    z-index: 1;
    border-radius: 1.5rem;
    color: var(--card-text);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.glass-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 1.5rem; 
    padding: 2px; 
    background: linear-gradient(135deg, var(--tech-pink), var(--tech-purple));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
    opacity: 0.7;
}

.gradient-text {
    background: linear-gradient(90deg, var(--tech-pink), #fff, var(--tech-blue));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 4s linear infinite;
}

@keyframes shine { to { background-position: 200% center; } }

.btn-primary {
    background: linear-gradient(45deg, var(--tech-pink), var(--tech-purple));
    color: white !important;
    box-shadow: 0 4px 15px rgba(255, 0, 204, 0.3);
}

.btn-outline {
    border: 2px solid var(--tech-pink);
    color: var(--tech-pink) !important;
    background: rgba(255, 0, 204, 0.05);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}
.accordion-item.active .accordion-content { max-height: 800px; }
.accordion-item.active .chevron { transform: rotate(180deg); color: var(--tech-pink); }

/* --- 接口地址板块 --- */
.api-box-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.api-display {
    background: rgba(0, 0, 0, 0.05);
    border: 1px dashed var(--tech-pink);
    border-radius: 1rem;
    padding: 1.25rem;
    word-break: break-all;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    color: var(--tech-purple);
    text-align: center;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.api-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.action-btn {
    padding: 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: white;
}

.btn-copy { background: linear-gradient(45deg, #ff00cc, #7000ff); }
.btn-random { background: linear-gradient(45deg, #00f2ff, #7000ff); }

.action-btn:hover { transform: translateY(-2px); filter: brightness(1.1); }
.action-btn:active { transform: translateY(0) scale(0.95); }

/* Toast 提醒 */
#toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    z-index: 2000;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    border: 1px solid var(--tech-pink);
    display: flex;
    align-items: center;
    gap: 10px;
}
#toast.show { transform: translateX(-50%) translateY(0); }

/* --- 群聊板块 --- */
.group-card {
    position: relative;
    overflow: hidden;
    padding: 3rem 2rem;
}
.group-card::after, .group-card::before {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 4px;
    background-image: radial-gradient(circle, var(--tech-pink) 1.5px, transparent 1.5px);
    background-size: 12px 100%;
    opacity: 0.4;
}
.group-card::before { top: 15px; }
.group-card::after { bottom: 15px; }

.group-inner-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 10% 10%, rgba(255, 0, 204, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 90% 90%, rgba(112, 0, 255, 0.03) 0%, transparent 50%);
    z-index: -1;
}

.qq-btn {
    background: linear-gradient(135deg, #12b7f5 0%, #0088cc 100%);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 25px rgba(18, 183, 245, 0.4);
}
.qq-btn::after {
    content: "";
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: rotate(45deg);
    animation: btnShine 3s infinite;
}
@keyframes btnShine {
    0% { left: -100%; top: -100%; }
    100% { left: 100%; top: 100%; }
}
.qq-btn:hover { transform: scale(1.05) translateY(-3px); }

/* 弹窗 */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    backdrop-filter: blur(15px);
}
.modal.active { display: flex; }
.modal-img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 12px;
    border: 3px solid var(--tech-pink);
    background: white;
    animation: modalZoom 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes modalZoom { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.close-btn {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .close-btn { top: -50px; right: 10px; font-size: 40px; }
}

@media (max-width: 640px) {
    .api-actions { grid-template-columns: 1fr; }
    .api-display { font-size: 0.75rem; padding: 1rem; }
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-thumb { background: var(--tech-pink); border-radius: 10px; }
