
/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 引入Roboto字体 */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

/* 根元素变量 */
:root {
    --primary-color: #E0F7FA;
    --secondary-color: #FFF8E1;
    --accent-color: #FFEB3B;
    --text-color: #333333;
    --background-gradient: radial-gradient(circle, rgba(224, 247, 250, 1) 0%, rgba(255, 255, 255, 1) 100%);
    --font-family: 'Roboto', sans-serif;
    --transition-speed: 0.3s;
}

/* 全局样式 */
body {
    background: var(--background-gradient);
    color: var(--text-color);
    font-family: var(--font-family);
    line-height: 1.6;
    padding: 20px;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部样式 */
header {
    text-align: center;
    padding: 50px 0;
    background: linear-gradient(135deg, #E0F7FA, #FFF8E1);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 2.5rem;
    color: #FFEB3B;
    margin-bottom: 20px;
}

header p {
    font-size: 1.2rem;
    color: #555555;
}

/* 导航栏 */
nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 40px 0;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    transition: color var(--transition-speed);
}

nav a::after {
    content: '';
    width: 0%;
    height: 2px;
    background: var(--accent-color);
    position: absolute;
    left: 0;
    bottom: -5px;
    transition: width var(--transition-speed);
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    color: var(--accent-color);
}

/* 主要内容区域 */
main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

section {
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

section h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--accent-color);
    position: relative;
}

section h2::after {
    content: '';
    width: 50px;
    height: 3px;
    background: var(--accent-color);
    position: absolute;
    left: 0;
    bottom: -5px;
}

section p {
    font-size: 1rem;
    margin-bottom: 15px;
    color: #555555;
}

section pre {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-size: 0.9rem;
    color: #333333;
}

section code {
    font-family: 'Courier New', Courier, monospace;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

table th, table td {
    border: 1px solid #dddddd;
    padding: 12px;
    text-align: left;
}

table th {
    background: var(--accent-color);
    color: #ffffff;
}

table tr:nth-child(even) {
    background: #f9f9f9;
}

/* 图片样式 */
img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 按钮样式 */
button {
    background: var(--accent-color);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    color: #ffffff;
    font-size: 1rem;
    cursor: pointer;
    transition: background var(--transition-speed), transform var(--transition-speed);
    position: relative;
    overflow: hidden;
}

button::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 300%;
    height: 300%;
    background: rgba(255, 235, 59, 0.5);
    transform: translate(-50%, -50%) rotate(45deg) scale(0);
    transition: transform var(--transition-speed);
}

button:active::after {
    transform: translate(-50%, -50%) rotate(45deg) scale(1);
}

button:hover {
    background: #fdd835;
    transform: scale(1.05);
}

/* 动画效果 */
@keyframes aurora-move {
    0% {
        background: radial-gradient(circle, rgb(255, 87, 34), transparent);
    }
    50% {
        background: radial-gradient(circle, rgb(34, 193, 195), transparent);
    }
    100% {
        background: radial-gradient(circle, rgb(255, 87, 34), transparent);
    }
}

.line-animation {
    animation: aurora-move 15s linear infinite;
}

@keyframes expand {
    0% {
        transform: scaleX(0);
    }
    50% {
        transform: scaleX(1);
    }
    100% {
        transform: scaleX(0);
    }
}

/* 线条样式 */
.line {
    width: 100px;
    height: 2px;
    background-color: var(--accent-color);
    animation: expand 2s ease-in-out infinite;
    margin: 20px 0;
}

/* 互动列表样式 */
ul {
    list-style-type: disc;
    padding-left: 20px;
}

li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 10px;
}

li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* 响应式设计 */
@media (max-width: 1440px) {
    header h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 1200px) {
    main {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    nav {
        gap: 20px;
    }

    header {
        padding: 40px 0;
    }
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 15px;
    }

    section {
        padding: 20px;
    }

    header h1 {
        font-size: 2rem;
    }

    header p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8rem;
    }

    nav a {
        font-size: 0.9rem;
    }

    button {
        font-size: 0.9rem;
        padding: 8px 16px;
    }
}

@media (max-width: 320px) {
    header h1 {
        font-size: 1.5rem;
    }

    nav a {
        font-size: 0.8rem;
    }

    section h2 {
        font-size: 1.5rem;
    }

    section p, section code, table th, table td, li {
        font-size: 0.9rem;
    }
}

/* 模块化设计 */
.about-us, .ai-tools, .user-cases, .reference {
    padding: 20px;
}

.references {
    background: linear-gradient(135deg, #FFF8E1, #E0F7FA);
    border-radius: 10px;
}


