/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'CircularBody';
    src: url('CircularBody.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

/* 基础样式 */
body {
    font-family: 'CircularBody', sans-serif;
    background-color: #e8eaf6; /* Material Design 3 背景色 */
    color: #333;
    line-height: 1.6;
    text-align: center;
    padding: 20px;
}

/* 容器 */
.container {
    max-width: 960px;
    margin: 0 auto;
    background-color: #ffffffcc; /* 半透明白色 */
    padding: 20px;
    border-radius: 12px; /* 更圆的边角 */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.container:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); /* Hover时更强的阴影效果 */
}

/* 标题 */
h1 {
    font-size: 2.5rem;
    color: #222;
    margin-bottom: 20px;
}

h2 {
    font-size: 1.5rem;
    margin-top: 20px;
    color: #444;
}

h3 {
    font-size: 1.2rem;
    color: #555;
}

/* 链接 */
a.repo-link {
    color: #6200ea; /* Material Design 主色 */
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.repo-link:hover {
    color: #3700b3; /* 鼠标悬停时改变颜色 */
}

/* 输入框样式 */
.input-field,
.file-input {
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    width: 100%;
    max-width: 400px;
    margin-top: 10px;
    display: inline-block;
    opacity: 1;
    background-color: #fff;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* 聚焦效果 */
.input-field:focus,
.file-input:focus {
    border-color: #6200ea;
    box-shadow: 0 0 5px rgba(98, 0, 234, 0.6); /* 聚焦时增加阴影 */
    outline: none;
}

/* 输入框的浮动标签 */
.input-field:focus + label,
.file-input:focus + label {
    transform: translateY(-20px);
    font-size: 0.875rem;
    color: #6200ea;
}

/* 按钮样式 */
.button {
    padding: 12px 24px;
    border: none;
    background-color: rgba(98, 0, 234, 0.6); /* 浅紫色半透明背景 */
    color: white;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

/* 按钮的 hover 效果 */
.button:hover {
    background-color: rgba(98, 0, 234, 0.8); /* 悬停时透明度降低，颜色加深 */
}

.button:active {
    transform: scale(0.98); /* 按钮点击时的缩放效果 */
}

/* 错误提示 */
.prompt {
    color: red;
    margin-top: 10px;
}

/* 代码块 */
pre {
    background-color: #f1f1f1;
    padding: 20px;
    border-radius: 8px;
    font-size: 1rem;
    text-align: left;
    margin-top: 20px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
}

/* 输入框和按钮的浮动标签 */
label {
    position: absolute;
    left: 16px;
    top: 16px;
    font-size: 1rem;
    color: #aaa;
    transition: all 0.2s ease;
}

/* 动画效果：浮动标签 */
.input-field:not(:placeholder-shown) + label,
.file-input:not(:placeholder-shown) + label {
    transform: translateY(-20px);
    font-size: 0.875rem;
    color: #6200ea;
}
