:root {
    --main-color: #0267f4;
    --accent-color: #ff69b4;
    --text-light: #f0f8ff;
    --bg-dark: #1a1a2e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

body {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #0a1929 100%), 
                url('images/ATRI.png') center/cover no-repeat fixed;
    color: var(--text-light);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 60%, rgba(0,0,0,0.7));
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    backdrop-filter: blur(5px);
    background: rgba(26, 26, 46, 0.7);
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(2, 103, 244, 0.3);
}

header {
    text-align: center;
    padding: 30px;
    border-bottom: 2px solid var(--accent-color);
    margin-bottom: 30px;
    position: relative;
}

.logo {
    display: inline-block;
    transition: transform 0.3s ease;
    cursor: pointer;
    padding-top: 80px;
}

.logo:hover {
    transform: scale(1.1) rotate(5deg);
}

h1 {
    font-size: 2.5rem;
    margin: 20px 0;
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(255, 105, 180, 0.5);
    position: relative;
    display: inline-block;
}

h1::after {
    content: "✦";
    position: absolute;
    right: -30px;
    top: 50%;
    transform: translateY(-50%);
    animation: sparkle 2s infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; text-shadow: 0 0 15px #fff; }
}

p {
    margin: 15px 0;
    font-size: 1.1rem;
}

.content-section {
    margin: 40px ;
    padding: 25px;
    background: rgba(42, 42, 72, 0.5);
    border-radius: 15px;
    border-left: 4px solid var(--accent-color);
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.link-card {
    background: rgba(30, 30, 60, 0.7);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.link-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 5px 15px rgba(255, 105, 180, 0.3);
}

.link-card a {
    color: #7fbfff;
    text-decoration: none;
    font-size: 1.2rem;
    display: block;
    padding: 10px;
    transition: color 0.3s;
}

.link-card a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

footer {
    text-align: center;
    padding: 30px 0;
    margin-top: 50px;
    border-top: 1px solid #3a506b;
    font-size: 0.9rem;
    color: #a0a0c0;
}

.back-top {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background: rgba(2, 103, 244, 0.3);
    border-radius: 50px;
    text-decoration: none;
    color: #a0f0ff;
    transition: all 0.3s;
}

.back-top:hover {
    background: rgba(255, 105, 180, 0.3);
    transform: translateY(-3px);
}

.fixed-header, .fixed-footer{
    width: 100%;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    position: fixed;        
    padding: 10px 0;
    color: #5d8be0;
}

.fixed-header{
    top:-10px;
}

.container1 {
    max-width: 1920px;
    opacity: 0.7;
    margin: 0 auto;
    padding: 3px;
    backdrop-filter: blur(15px);
    background:#3485f7c3;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.641);
}

.container1{
    width: 95%;
    margin: 0 auto; /* 将 DIV 水平居中 */
}

nav a{
    color: #fff;
    text-decoration: none;
    padding: 7px 25px;
    display: inline-block;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .links-grid {
        grid-template-columns: 1fr;
    }

@media (max-width: 900px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
    }

/* 加载动画 */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader-content {
    text-align: center;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 105, 180, 0.3);
    border-radius: 50%;
    border-top-color: var(--accent-color);
    animation: spin 1s ease-in-out infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.mobile-toggle {
    display: block;
}

.secret-note {
    font-size: 0.8rem;
    opacity: 0.6;
    margin-top: 5px;
    font-style: italic;
}

.container2 {
    text-align: center;
    width: 40vmin;
    left: calc(50% - 20vmin);
    position: relative;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3CforeignObject width='100%25' height='100%25'%3E%3Cbody class='wrap' xmlns='http://www.w3.org/1999/xhtml'%3E%3Cstyle%3E.wrap%7Bbox-sizing:border-box;margin:0;height:100%25;padding:25px%7D.shadow%7Bheight:100%25;background:%23000;border-radius:20px;box-shadow:0 0 10px %23000,0 0 15px %23000,0 0 20px %23000%7D%3C/style%3E%3Cdiv class='shadow'/%3E%3C/body%3E%3C/foreignObject%3E%3C/svg%3E")
}