@counter-style self-introduce {
    system: fixed;
    symbols: 👨‍💻 🐍 🗾;
    suffix: " ";
}

body {
    display: flex;
    justify-content: center;
}

nav {
    display: flex;
    /* justify-content: space-between; */
    gap: 0.3%;
}

nav a {
    flex: 1;
    color: black;
    text-decoration: none;
    outline-color: transparent;
    text-align: center;
    line-height: 3;
    border-radius: 0.5rem;
    filter: drop-shadow(10px 4px 4px rgb(169, 165, 120));
    -webkit-filter: drop-shadow(10px 4px 4px rgb(169, 165, 120));
}

nav a:link,
nav a:visited,
nav a:focus {
    background: palegoldenrod;
    color: balck;
}

nav a:hover {
    text-decoration: underline;
    background-color: orange;
    border-radius: 1rem;
}

ul.introducing {
    list-style-type: self-introduce;
}

.main-nav {
    margin: 20px 0;
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}

.main-nav a {
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    color: #333;
    transition: all 0.3s ease;
}

.main-nav a:hover {
    background-color: #f0f0f0;
}

.main-nav a.active {
    background-color: #333;
    color: white;
}

.resource-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    display: grid;
    gap: 12px;
    max-width: 600px;
}

.resource-list li {
    background: #f8f9fa;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.resource-list li:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.resource-list a {
    display: block;
    padding: 16px 20px;
    color: #333;
    text-decoration: none;
    font-size: 1.1em;
}

.resource-list a[target="_blank"]::after {
    content: "↗";
    margin-left: 8px;
    font-size: 0.9em;
    opacity: 0.7;
}

/* 针对日语文本的特殊样式 */
.resource-list li[lang="ja"] a {
    font-family: "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴ Pro W3", sans-serif;
}