* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.8;
    color: #333;
    font-size: 16px;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 1rem 5%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #3498db;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #3498db;
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: #ecf0f1;
    margin: 5px;
    transition: all 0.3s ease;
}

main {
    max-width: 100%;
    margin-top: 0; /* 移除顶部边距 */
    padding: 0;
    background-color: #ffffff;
    box-shadow: none;
}

.coin-flipper {
    text-align: center;
    margin-bottom: 4rem;
    padding: 2rem 5% 4rem;
    background-color: #e8f4fd;
}

.coin {
    width: 200px;
    height: 200px;
    margin: 2rem auto;
    position: relative;
    transition: transform 0.1s;
    transform-style: preserve-3d;
    animation-fill-mode: forwards;
}

.heads, .tails {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: #ffffff; /* 将文字颜色改为白色 */
    background: radial-gradient(ellipse at center, var(--coin-color-1) 0%, var(--coin-color-2) 70%, var(--coin-color-3) 100%);
    box-shadow: 
        inset 0 0 10px rgba(0,0,0,0.5),
        0 0 20px rgba(0,0,0,0.3);
    border: 4px solid var(--coin-color-3);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5); /* 添加文字阴影以增加可读性 */
}

.heads::before, .tails::before {
    content: '';
    position: absolute;
    width: 90%;
    height: 90%;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.2) 100%);
}

.heads {
    z-index: 2;
}

.tails {
    transform: rotateX(180deg);
}

.heads::after, .tails::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(255,255,255,0.5) 0%, transparent 100%);
    top: -50%;
    left: -50%;
    opacity: 0.6;
}

button {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

button:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

button:active {
    transform: translateY(0);
}

section {
    margin-bottom: 0;
    padding: 4rem 10%;
    background-color: #ffffff;
    border-radius: 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: none;
}

section:hover {
    transform: none;
}

h1, h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

h1 {
    font-size: 2.8rem;
    text-align: center;
}

h1::after, h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: #3498db;
}

h1::after {
    left: 50%;
    transform: translateX(-50%);
}

h2 {
    font-size: 2.2rem;
}

p {
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 1.5rem;
}

footer {
    text-align: center;
    background-color: #2c3e50;
    color: #ffffff; /* 将颜色改为白色 */
    padding: 2rem 5%;
    position: relative;
    bottom: 0;
    width: 100%;
}

/* 为了确保版权信息文字是白色的，我们可以添加一个特定的样式 */
footer p {
    color: #ffffff; /* 明确指定段落文字为白色 */
}

@media screen and (max-width: 768px) {
    body {
        font-size: 14px;
    }

    .navbar {
        flex-wrap: wrap;
    }

    .nav-links {
        position: absolute;
        top: 100%; /* 确保导航菜单位于导航栏正下方 */
        left: 0;
        right: 0;
        background-color: #2c3e50;
        flex-direction: column;
        align-items: center;
        width: 100%;
        display: none;
        padding: 0;
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 0;
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 15px 0;
        width: 100%;
    }

    .burger {
        display: block;
        cursor: pointer;
    }

    /* 汉堡菜单动画 */
    .burger.active .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .burger.active .line2 {
        opacity: 0;
    }

    .burger.active .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    main {
        padding: 1rem;
        margin-top: 0; /* 移除顶部边距 */
    }

    .coin {
        width: 150px;
        height: 150px;
    }

    .heads, .tails {
        font-size: 1.5rem;
    }

    h1 {
        font-size: 2.4rem;
    }

    h2 {
        font-size: 2rem;
    }

    section, .coin-flipper {
        padding: 3rem 5%;
    }
}

@media screen and (max-width: 480px) {
    body {
        font-size: 12px;
    }

    .coin {
        width: 120px;
        height: 120px;
    }

    .heads, .tails {
        font-size: 1.2rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    button {
        padding: 0.5rem 1rem;
    }

    section, .coin-flipper {
        padding: 2rem 5%;
    }
}

@keyframes flip {
    from {
        transform: rotateX(0);
    }
    to {
        transform: rotateX(var(--rotation));
    }
}

/* 在文件末尾添加以下样式 */

#stats {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    font-size: 1.1rem;
    gap: 8px; /* 减小间距，从15px改为8px */
}

.stat-item {
    display: flex;
    align-items: center;
    white-space: nowrap;
    margin: 0;
    padding: 0 5px; /* 添加少量内边距 */
}

.stat-label {
    margin-right: 5px;
}

.stat-value {
    font-weight: bold;
    color: #3498db;
}

/* 删除或注释掉这个媒体查询中关于stats的部分 */
@media screen and (max-width: 480px) {
    /* 删除这部分
    #stats {
        flex-direction: column;
        align-items: flex-start;
    }

    .stat-item {
        margin: 5px 0;
    }
    */
    
    #stats {
        font-size: 0.9em;
        gap: 5px; /* 在移动设备上使用更小的间距 */
    }
    
    .stat-item {
        padding: 0 3px; /* 在移动设备上使用更小的内边距 */
    }
}

.tips ul {
    list-style-type: none;
    padding-left: 0;
}

.tips li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.tips li:before {
    content: '•';
    color: #3498db;
    font-size: 1.5em;
    position: absolute;
    left: 0;
    top: -0.2em;
}

.disclaimer {
    background-color: rgba(0, 0, 0, 0.1); /* 半透明黑色背景 */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    padding: 1.5rem;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #ffffff; /* 将文字颜色改为白色 */
}

.disclaimer h3 {
    color: #ffffff; /* 将标题颜色改为白色 */
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.disclaimer p {
    margin-bottom: 0;
    line-height: 1.5;
    color: #ffffff; /* 确保段落文字也是白色 */
}

.faq ul {
    list-style-type: none;
    padding-left: 0;
}

.faq li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.faq li:before {
    content: '•';
    color: #3498db;
    font-size: 1.5em;
    position: absolute;
    left: 0;
    top: -0.2em;
}

.faq details {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.faq details:hover {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.faq summary {
    font-weight: bold;
    cursor: pointer;
    color: #2c3e50;
    transition: color 0.3s ease;
}

.faq summary:hover {
    color: #3498db;
}

.faq p {
    margin-top: 1rem;
    padding-left: 1rem;
}

/* 在文件末尾添加以下样式 */

.color-schemes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    gap: 10px; /* 使用gap来控制按钮之间的间距 */
}

.color-schemes h3 {
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
}

.color-scheme {
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: transform 0.2s, box-shadow 0.2s;
    margin: 0;
}

.color-scheme:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* 删除或注释掉这些会导致垂直排列的媒体查询 */
@media screen and (max-width: 480px) {
    /* 删除这个样式
    .color-schemes {
        flex-direction: column;
    }
    */
    
    .color-scheme {
        padding: 8px 12px;
        font-size: 0.9em;
    }

    #stats {
        font-size: 0.9em;
    }
}

/* 在文件末尾添加以下样式 */

.about h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

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

.about li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.about li:before {
    content: '•';
    color: #3498db;
    font-size: 1.5em;
    position: absolute;
    left: 0;
    top: -0.2em;
}

.about strong {
    color: #2c3e50;
}

/* 在文件末尾添加以下样式 */

.about .important-note {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 5px;
    padding: 1rem;
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: #856404;
}

.about .important-note strong {
    color: #856404;
}

/* 添加 iPad 特定的媒体查询 */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    .nav-links {
        display: flex;
    }

    .burger {
        display: none;
    }
}

/* 在文件末尾添加以下样式 */

.footer-nav {
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-nav a {
    color: #ffffff;
    text-decoration: none;
    margin: 5px 10px;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #3498db;
}

/* 现有的CSS保持不变 */

/* 添加以下媒体查询 */
@media screen and (max-width: 768px) {
    .color-schemes {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .color-schemes h3 {
        width: 100%;
        text-align: center;
    }

    .color-scheme {
        flex: 0 1 auto;
    }

    #stats {
        display: flex;
        justify-content: space-around;
        flex-wrap: wrap;
    }

    .stat-item {
        flex: 1 1 auto;
        text-align: center;
        margin: 5px;
    }
}

/* 可选：为了确保在更小的屏幕上也能正常显示 */
@media screen and (max-width: 480px) {
    .color-scheme {
        padding: 8px 12px;
        font-size: 0.9em;
    }

    #stats {
        font-size: 0.9em;
    }
}

/* 如果需要在非常小的屏幕上调整间距，可以添加以下媒体查询 */
@media screen and (max-width: 320px) {
    .footer-nav a {
        margin: 3px 5px;
        font-size: 0.8rem;
    }
}

