/* 基础布局与全局样式 - 小石头纠错官网 */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: linear-gradient(-45deg, #66cdcc 0%, #336799 100%);
    background-attachment: fixed;
}

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

/* 头部导航 */
header {
    padding: 20px 0;
    position: relative;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.logo-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.logo h1 {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
}

.nav-main {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-main a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    opacity: 0.95;
}

.nav-main a:hover {
    opacity: 1;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-main {
        width: 100%;
        gap: 16px;
    }
}

/* 底部 */
footer {
    background: #336799;
    color: rgba(255, 255, 255, 0.9);
    padding: 40px 0;
    text-align: center;
}

footer p {
    opacity: 0.9;
    margin-bottom: 10px;
}

footer p:last-child {
    margin-bottom: 0;
}

.footer-links {
    margin-bottom: 6px;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-sep {
    margin: 0 8px;
    opacity: 0.7;
}

/* 无障碍：跳过导航 */
.skip-link {
    position: absolute;
    left: -9999px;
    z-index: 999;
    padding: 8px 16px;
    background: #336799;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
}

.skip-link:focus {
    left: 20px;
    top: 20px;
}
