:root {
    --primary-color: #00f7ff;
    --secondary-color: #6e00ff;
    --dark-bg: #0a0a1a;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background-color: var(--dark-bg);
    color: white;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(110, 0, 255, 0.15) 0%, transparent 25%),
        radial-gradient(circle at 80% 70%, rgba(0, 247, 255, 0.15) 0%, transparent 25%);
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    position: relative;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 15px rgba(0, 247, 255, 0.3);
}

.subtitle {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.8);
}

/* 服务网格布局 */
.teaching-services {
    width: 100%;
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 1rem;
}

.teaching-services h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    position: relative;
}

.teaching-services h2::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    margin: 0.8rem auto 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    width: calc(100% - 4rem);
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.service-card {
    background: rgba(20, 20, 40, 0.7);
    border: 1px solid rgba(0, 247, 255, 0.5);
    border-radius: 10px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(110, 0, 255, 0.1), rgba(0, 247, 255, 0.05));
    z-index: -1;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 15px rgba(0, 247, 255, 0.1);
    pointer-events: none;
}

.service-icon {
    transition: all 0.3s ease;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(0, 247, 255, 0.3);
    background: rgba(20, 20, 40, 0.9);
}

.service-features {
    text-align: left;
    padding-left: 1rem;
}

.service-features li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.hint {
    font-size: 0.8em;
    color: rgba(255,255,255,0.6);
    margin-left: 0.5em;
    font-weight: normal;
}

/* 图表区域样式 */
.chart-section {
    width: 100%;
    margin: 3rem 0;
    text-align: center;
}

/* 更新图表容器样式 */
#chartContainer {
    width: calc(100% - 4rem);
    max-width: 1200px;
    height: 600px;
    margin: 0 auto;
    background: rgba(10, 10, 26, 0.7);
    border: 1px solid var(--primary-color);
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 247, 255, 0.2);
    overflow: hidden;
    position: relative;
    padding: 0;
}

/* 强制图表填充容器 */
#chartContainer > div {
    width: 100% !important;
    height: 100% !important;
}

/* 调整工具栏位置 */
.tv-close-panel {
    right: 5px !important;
    top: 5px !important;
}

.chart-section h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin: 2rem 0 1rem;
    position: relative;
}

.chart-section h2::after {
    content: '';
    display: block;
    width: 100px;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    margin: 0.5rem auto 0;
}

.chart-description {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.chart-footer {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* 其他元素样式 */
.analytics-btn {
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(110, 0, 255, 0.5);
    text-decoration: none;
    margin: 2rem 0;
}

.analytics-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(0, 247, 255, 0.7);
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* 关于我们部分 */
.about-section {
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(10, 10, 26, 0.7);
    border: 1px solid var(--primary-color);
    border-radius: 10px;
    width: 80%;
    max-width: 800px;
    box-shadow: 0 0 20px rgba(0, 247, 255, 0.2);
}

.about-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 2rem;
    text-align: center;
    font-family: 'Noto Sans SC', sans-serif;
}

.contact-info {
    line-height: 1.8;
}

.bilingual-item {
    margin: 1.2rem 0;
}

.chinese {
    font-family: 'Noto Sans SC', sans-serif;
    margin: 0.5rem 0;
    font-weight: 500;
}

.english {
    font-family: 'Roboto', sans-serif;
    margin: 0.5rem 0;
    font-style: italic;
    color: rgba(255, 255, 255, 0.8);
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-info a:hover {
    color: white;
    text-decoration: underline;
}

/* 页脚 */
footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Noto Sans SC', sans-serif;
}

footer::after {
    content: " | Data Visualization Platform";
    font-family: 'Roboto', sans-serif;
}

/* 响应式调整 */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    #chartContainer {
        height: 500px;
    }
}

@media (max-width: 768px) {
    .services-grid, 
    #chartContainer {
        width: calc(100% - 2rem);
    }
    #chartContainer {
        height: 400px;
    }
    .service-card {
        padding: 1.2rem;
    }
    .service-features li {
        font-size: 0.9rem;
    }
    .hint {
        display: block;
        margin-left: 0;
        margin-top: 0.5rem;
    }
    .about-section {
        width: 90%;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    #chartContainer {
        height: 350px;
    }
    h1 {
        font-size: 2.5rem;
    }
    .subtitle {
        font-size: 1.2rem;
    }
}