
/* 夜智投 - 智能投顾与量化交易平台 样式设计 */

/* 全局设置 */
body {
    margin: 0;
    padding: 0;
    background: radial-gradient(circle, rgba(18, 18, 18, 1), rgba(0, 0, 0, 1));
    color: #A9A9A9;
    font-family: 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto Mono', monospace;
    color: #FDB813;
    margin-top: 20px;
    margin-bottom: 10px;
}

p {
    margin-bottom: 15px;
}

a {
    color: #00BFFF;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

button {
    background: linear-gradient(to right, #007BFF, #0056b3);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

button:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

button:active::after {
    width: 200%;
    height: 200%;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-gap: 20px;
}

.header, .footer {
    grid-column: span 12;
    text-align: center;
    padding: 20px 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.navbar {
    grid-column: span 12;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.navbar a {
    font-size: 1.1em;
}

.main-content {
    grid-column: span 8;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
}

.sidebar {
    grid-column: span 4;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
}

.article pre {
    background: #1e1e1e;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

.article code {
    color: #FFD700;
    font-family: 'Courier New', Courier, monospace;
}

.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th, td {
    border: 1px solid #333;
    padding: 10px;
    text-align: left;
}

th {
    background: #007BFF;
    color: white;
}

.img-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.img-gallery img {
    width: 100%;
    max-width: 200px;
    border-radius: 5px;
}

@media (max-width: 1440px) {
    .container {
        width: 95%;
    }
}

@media (max-width: 1200px) {
    .main-content {
        grid-column: span 12;
    }
    .sidebar {
        grid-column: span 12;
    }
}

@media (max-width: 1024px) {
    .navbar {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.8em;
    }
    h2 {
        font-size: 1.5em;
    }
    h3 {
        font-size: 1.2em;
    }
}

@media (max-width: 480px) {
    .img-gallery {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 320px) {
    .container {
        padding: 10px;
    }
    button {
        width: 100%;
        padding: 15px;
    }
}

/* 动画与渐变效果 */
body {
    animation: aurora-move 15s linear infinite;
}

@keyframes aurora-move {
    0% { background: radial-gradient(circle, rgba(18, 18, 18, 1), rgba(0, 0, 0, 1)); }
    50% { background: radial-gradient(circle, rgba(20, 20, 20, 1), rgba(10, 10, 10, 1)); }
    100% { background: radial-gradient(circle, rgba(18, 18, 18, 1), rgba(0, 0, 0, 1)); }
}

.button-ripple {
    position: relative;
    overflow: hidden;
}

.button-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.button-ripple:active::after {
    width: 200%;
    height: 200%;
}

@media (prefers-color-scheme: dark) {
    body {
        background: radial-gradient(circle, rgba(18, 18, 18, 1), rgba(0, 0, 0, 1));
        color: #A9A9A9;
    }
}

