body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 1.5em;
    line-height: 1.6;
    color: #333;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f4f7f9;
}

header {
    background-color: #3776ab;
    color: white;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 30px;
}

header h1 {
    margin: 0;
}

header p {
    margin: 10px 0 0;
    font-style: italic;
}

nav {
    margin-top: 15px;
}

nav a {
    color: #ffd343;
    text-decoration: none;
    font-weight: bold;
    margin: 0 10px;
}

nav a:hover {
    text-decoration: underline;
}

h2 {
    color: #3776ab;
    border-bottom: 2px solid #ffd343;
    padding-bottom: 5px;
    margin-top: 40px;
    position: relative;
}

.headerlink {
    visibility: hidden;
    padding-left: 10px;
    text-decoration: none;
    color: #ffd343;
    font-size: 0.8em;
}

h2:hover .headerlink {
    visibility: visible;
}

.headerlink:hover {
    color: #3776ab;
}

.section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    scroll-margin-top: 20px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.item-link {
    display: block;
    padding: 8px 12px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    font-family: monospace;
    transition: all 0.2s;
}

.item-link:hover {
    background: #ffd343;
    border-color: #3776ab;
    color: #000;
}

.topic-link {
    font-family: inherit;
    font-weight: bold;
}

.important-link {
    background: #fff9e6;
    border-color: #ffd343;
    font-weight: bold;
}

footer {
    text-align: center;
    margin-top: 50px;
    font-size: 1.35em;
    color: #666;
}

.search-tip {
    background: #e7f3ff;
    padding: 15px;
    border-left: 5px solid #3776ab;
    margin-bottom: 20px;
}
