/* 基本样式 */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部 */
header {
    background: #333;
    color: #fff;
    padding: 10px 0;
}

header h1 {
    margin: 0;
    display: inline;
}

nav ul {
    list-style: none;
    padding: 0;
    display: inline;
    margin-left: 20px;
}

nav ul li {
    display: inline;
    margin-right: 15px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
}

/* 移动设备样式 */
@media (max-width: 600px) {
    body {
        font-size: 14px;
        line-height: 1.8;
    }

    .container {
        width: 100%;
        padding: 10px;
    }

    header h1 {
        font-size: 24px;
    }

    nav ul {
        display: block;
        text-align: center;
    }

    nav ul li {
        display: block;
        margin: 10px 0;
    }

    pre {
        white-space: pre-wrap;
        word-wrap: break-word;
    }
}

/* 其他样式保持不变 */

/* Banner */
.banner {
    background: #007BFF;
    color: #fff;
    padding: 50px 0;
    text-align: center;
}

.banner h2 {
    margin: 0;
}

.banner p {
    margin: 10px 0 0;
}

/* 内容区域 */
.content {
    padding: 20px 0;
}

.tutorial-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.tutorial-item {
    background: #f4f4f4;
    padding: 15px;
    border-radius: 5px;
    flex: 1 1 calc(33.333% - 40px);
    box-sizing: border-box;
}

.tutorial-item h3, .tutorial-item h4 {
    margin: 0 0 10px;
}

.tutorial-item a {
    color: #007BFF;
    text-decoration: none;
}

/* 教程内容页面样式 */
.tutorial-content {
    padding: 20px 0;
}

.tutorial-content h2 {
    margin-bottom: 10px;
}

.tutorial-content .meta {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 20px;
}

.tutorial-content h3 {
    color: #007BFF;
    margin-top: 20px;
}

.tutorial-content ul {
    list-style-type: disc;
    padding-left: 20px;
}

.tutorial-content ul li {
    margin: 10px 0;
}

.tutorial-content code {
    background: #f4f4f4;
    padding: 2px 5px;
    border-radius: 3px;
    font-family: monospace;
}

/* 关于我们页面样式 */
.about-content {
    padding: 20px 0;
}

.about-content h2 {
    text-align: center;
    margin-bottom: 30px;
}

.about-content h3 {
    color: #007BFF;
    margin-top: 20px;
}

.about-content p {
    line-height: 1.8;
    margin: 10px 0;
}

.about-content ul {
    list-style-type: none;
    padding: 0;
}

.about-content ul li {
    margin: 10px 0;
}

.about-content a {
    color: #007BFF;
    text-decoration: none;
}

.about-content a:hover {
    text-decoration: underline;
}

/* 打赏模块样式 */
.donate {
    margin-top: 30px;
    text-align: center;
}

.donate-images {
    display: flex;
    gap: 40px; /* 调整图片之间的间距 */
    justify-content: center;
    align-items: center; /* 垂直居中 */
    margin-top: 20px;
}

.donate-image {
    text-align: center;
    background: #f9f9f9; /* 添加背景色 */
    padding: 15px;
    border-radius: 10px; /* 圆角 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 添加阴影 */
    transition: transform 0.3s ease; /* 添加悬停效果 */
}

.donate-image:hover {
    transform: translateY(-5px); /* 悬停时轻微上移 */
}

.donate-image img {
    width: 200px; /* 统一图片宽度 */
    height: 200px; /* 统一图片高度 */
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 5px;
    background: #fff; /* 图片背景色 */
}

.donate-image p {
    margin: 10px 0 0;
    font-size: 1em;
    color: #333;
    font-weight: bold; /* 加粗文字 */
}

/* 工具页面样式 */
.tools-content {
    padding: 20px 0;
}

.tools-content h2 {
    margin-bottom: 20px;
}

.tools-content p {
    margin-bottom: 30px;
}

.tool-list {
    display: flex;
    gap: 20px;
}

.tool-item {
    background: #f4f4f4;
    padding: 20px;
    border-radius: 10px;
    flex: 1 1 calc(50% - 20px);
    box-sizing: border-box;
    text-align: center;
}

.tool-item h3 {
    margin: 0 0 10px;
    color: #007BFF;
}

.tool-item p {
    margin: 0 0 15px;
    color: #666;
}

.download-button {
    display: inline-block;
    padding: 10px 20px;
    background: #007BFF;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.download-button:hover {
    background: #0056b3;
}

.server-time, .class-timer {
    margin-top: 20px;
}

/* 课程时间表样式 */
.schedule {
    margin-top: 40px;
}

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

th, td {
    padding: 12px;
    text-align: center;
    border: 1px solid #ddd;
}

th {
    background-color: #f8f9fa;
    font-weight: bold;
}

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

tr:hover {
    background-color: #f1f1f1;
}

/* LED 时钟样式 */
.led-clock {
    text-align: center;
    margin: 20px 0;
    padding: 20px;
    background-color: #1e1e1e; /* 深色背景 */
    border-radius: 10px;
}

.led-clock h3 {
    font-size: 24px;
    color: white;
    margin-bottom: 15px;
}

.led-clock .clock {
    font-family: 'Digital-7', sans-serif;
    font-size: 40px; /* 增大字体 */
    color: #ff0000; /* 红色 LED 效果 */
    text-shadow: 0 0 5px #ff0000, 0 0 10px #ff0000; /* 发光效果 */
    background-color: black;
    padding: 10px 20px;
    border-radius: 10px;
    display: inline-block;
}

.led-clock .digit {
    display: inline-block;
    width: 30px;
    text-align: center;
}

.led-clock .colon {
    display: inline-block;
    width: 10px;
    text-align: center;
}

/* 课程倒计时样式，复用 LED 时钟样式 */
.class-timer {
    text-align: center;
    margin: 20px 0;
    padding: 20px;
    background-color: #1e1e1e; /* 深色背景 */
    border-radius: 10px;
}

.class-timer h3 {
    font-size: 24px;
    color: white;
    margin-bottom: 15px;
}

.class-timer .countdown-container .clock {
    font-family: 'Digital-7', sans-serif;
    font-size: 40px; /* 增大字体 */
    color: #ff0000; /* 红色 LED 效果 */
    text-shadow: 0 0 5px #ff0000, 0 0 10px #ff0000; /* 发光效果 */
    background-color: black;
    padding: 10px 20px;
    border-radius: 10px;
    display: inline-block;
}

.class-timer .countdown-container .digit {
    display: inline-block;
    width: 30px;
    text-align: center;
}

.class-timer .countdown-container .colon {
    display: inline-block;
    width: 10px;
    text-align: center;
}

.class-timer .countdown-container #countdown-text {
    color: white;
    margin-top: 10px;
    display: block;
}

/* 课程时间表样式 */
.schedule {
    margin: 20px 0;
    padding: 20px;
    background-color: #1e1e1e; /* 深色背景 */
    border-radius: 10px;
}

.schedule h3 {
    font-size: 24px;
    color: white;
    margin-bottom: 15px;
}

.schedule table {
    width: 100%;
    border-collapse: collapse;
    color: white;
}

.schedule th, .schedule td {
    padding: 10px;
    text-align: center;
    border: 1px solid #444;
}

.schedule th {
    background-color: #333;
}

.schedule td {
    background-color: #2a2a2a;
}

/* 手机屏幕样式 */
@media only screen and (max-width: 600px) {
    .led-clock h3, .class-timer h3, .schedule h3 {
        font-size: 16px;
    }

    .clock, .countdown-container .clock {
        font-size: 16px;
    }

    .countdown-container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .countdown-container span {
        margin: 5px 0;
    }

    table th, table td {
        padding: 8px;
    }
}

.red-led {
    font-family: 'Digital-7', sans-serif;
    font-size: 40px; /* 增大字体 */
    color: #ff0000; /* 红色 LED 效果 */
    text-shadow: 0 0 5px #ff0000, 0 0 10px #ff0000; /* 发光效果 */
    background-color: black;
    padding: 10px 20px;
    border-radius: 10px;
    display: inline-block;
}

.red-digit {
    font-size: 30px; /* 增大字体 */
    color: #ff0000; /* 红色 */
    text-shadow: 0 0 5px #ff0000, 0 0 10px #ff0000; /* 红色发光效果 */
}