:root {
    --text-color: #333;
    --bg-color: #fff;
}

/* 全局样式重置 */

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

html,
body {
    height: 100%
}

body {
    font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
    color: var(--text-color);
    background-color: var(--bg-color);
}

/* 通用 */

.container {
    width: 93%;
    margin: 0 auto;
}

/* Header */

header {
    padding: 1.6rem 0;
    text-align: center;
    line-height: 1.6;
    color: #fff;
    background: linear-gradient(135deg, #4361ee, #7209b7);
    margin-bottom: 2rem;
}

.logo {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

h1.home {
    font-size: 1.3rem;
    font-weight: 500;
    opacity: 0.9;
}

/* 主体内容 */

.category-header {
    margin-top: 3rem;
    padding-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 1.8rem;
    text-align: center;
    margin: 2rem auto;
}

h3 {
    unicode-bidi: isolate;
    font-size: 1.6rem;
    color: #007bff;
}

.symbol-count {
    background: #007bff;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* Symbol Grid Layout (Responsive) */
.symbol-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
}

.symbol-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    min-height: 70px;
    color: #343a40;
    font-size: 1.8rem;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background-color: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.symbol-item:hover {
    transform: translateY(-2px);
    color: #fff;
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.2);
    border-color: #007bff;
    background-color: #007bff;
}

.symbol-item:active {
    transform: scale(0.98);
    background-color: #0056b3;
}

.copy-indicator {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    color: #fff;
    padding: 0.2rem;
    font-size: 0.7rem;
    transform: translateY(-100%);
    transition: all 0.3s ease;
    background: #4bb543;
}

.symbol-item.copied .copy-indicator {
    transform: translateY(0);
}

/* Toast Notification */

.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    z-index: 1000;
    padding: 0.75rem 1.5rem;
    transform: translateX(-50%);
    color: #fff;
    border-radius: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s;
    background-color: #4bb543;
}

.toast.show {
    opacity: 1;
    visibility: visible;
}

/* Footer */
.footer {
    background: #e9ecef;
    color: #6c757d;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer p {
    margin-bottom: 0.5rem;
}


/* Responsive Adjustments (Media Queries) */
/*
@media (min-width: 768px) {
    .symbol-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 1.25rem;
    }
}

@media (min-width: 1024px) {
    .symbol-grid {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    }

    .symbol-item {
        font-size: 2rem;
        min-height: 90px;
    }
} */