body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

/* 提示框样式 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #ffffff;
    color: #ff6b6b;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-weight: 600;
    font-size: 14px;
    z-index: 9999;
    animation: slideInNotification 0.4s ease-out;
    will-change: transform, opacity;
    backface-visibility: hidden;
}

.notification.hide {
    animation: slideOutNotification 0.4s ease-out forwards;
}

@keyframes slideInNotification {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutNotification {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.notification-text {
    white-space: normal;
    word-break: break-word;
}

.notification-close {
    background: none;
    border: none;
    color: #ff6b6b;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.notification-close:hover {
    transform: scale(1.2);
}

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

header {
    color: #fff;
    padding: 4rem 0;
    text-align: center;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    position: relative;
    background: linear-gradient(45deg, #007BFF, #0056b3);
    background-size: cover;
    background-position: center;
}

header .container {
    display: block !important;
}

header.loaded {
    animation: slideInBackground 1.5s ease-out;
}

@keyframes slideInBackground {
    0% {
        background-image: linear-gradient(45deg, #007BFF, #0056b3);
        filter: brightness(1);
    }
    100% {
        filter: brightness(1);
    }
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 56, 139, 0.85) 0%, rgba(0, 30, 89, 0.85) 100%);
    pointer-events: none;
    animation: overlayFade 1.5s ease-out;
}

header.loaded .header-overlay {
    animation: none;
}

@keyframes overlayFade {
    from {
        opacity: 1;
    }
    to {
        opacity: 1;
    }
}

header h1 {
    margin: 0;
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

header p {
    margin-top: 0.5rem;
    font-size: 1.2rem;
    opacity: 0.9;
}

.header-contact {
    margin-top: 1rem;
    font-size: 0.95rem;
    opacity: 0.85;
}

#header-email {
    cursor: pointer;
    color: #ffffff;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: inline-block;
}

#header-email:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

#header-email.copied {
    color: #ffd700;
    background-color: rgba(255, 215, 0, 0.2);
    transform: scale(1);
}

.filter-bar {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 20px 0;
}

.sort-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 20px;
    margin: 20px auto;
    max-width: 500px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 500;
}

.sort-bar label {
    font-weight: 700;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sort-bar select {
    padding: 12px 16px;
    border: 2px solid #007BFF;
    border-radius: 10px;
    background-color: white;
    color: #2c3e50;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
    flex: 1;
    max-width: 250px;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23007BFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
}

.sort-bar select:hover {
    border-color: #0056b3;
    background-color: #f0f8ff;
    box-shadow: 0 6px 16px rgba(0, 86, 179, 0.2);
    transform: translateY(-2px);
}

.sort-bar select:focus {
    outline: none;
    border-color: #0056b3;
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.25);
    background-color: white;
}

.filter-btn {
    padding: 8px 16px;
    border: 1px solid #007BFF;
    background-color: white;
    color: #007BFF;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.filter-btn:hover {
    background-color: #007BFF;
    color: white;
}

.filter-btn.active {
    background-color: #007BFF;
    color: white;
}

.bing-daily {
    display: none;
}

.container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.container > h2 {
    grid-column: 1 / -1;
}

.sold-title {
    text-align: left;
    font-size: 1.5rem;
    color: #333;
    margin: 2rem 0 1rem 0;
    padding-bottom: 0rem;
}

.sold-section {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.card.sold {
    border: 2px dashed #adb5bd;
    background-color: #f1f3f5;
}

.card-content h3 {
    margin-top: 0;
    color: #007BFF;
}

.card-content h3 a {
    color: #007BFF;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.card-content h3 a::after {
    content: "";
}

.card-content h3 a:hover {
    text-decoration-line: underline;
    text-decoration-skip-ink: auto;
}

.card-content h3 a i {
    font-size: 0.85em;
    transition: transform 0.2s ease;
}

.card-content h3 a:hover i {
    transform: translate(2px, -2px);
}

.card.sold .card-content h3,
.card.sold .card-content h3 a {
    color: #6c757d;
    text-decoration: line-through;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 12px;
    margin-left: 8px;
    vertical-align: middle;
}

.badge-featured {
    background-color: #2A2825;
    color: #F3F0B6;
}

.badge-discount {
    background-color: #ff6b6b;
    color: #fff;
}

.card-content .meaning {
    color: #555;
    margin-bottom: 15px;
}

.card-content p {
    margin: 5px 0;
}

.card-content .status {
    color: #dc3545;
    font-weight: 600;
}

.card.sold .card-content .status {
    color: #6c757d;
}

.card-content .price {
    font-weight: bold;
    font-size: 1.2em;
    color: #28a745;
}

.card.sold .card-content .price {
    color: #6c757d;
    text-decoration: line-through;
}

footer {
    background: linear-gradient(45deg, #0056b3, #007BFF);
    color: #ecf0f1;
    text-align: center;
    padding: 4rem 0 2rem 0;
    margin-top: 3rem;
    font-size: 0.9rem;
    clip-path: polygon(0 15%, 100% 0, 100% 100%, 0 100%);
}

footer .container {
    display: block !important;
}

footer p {
    margin: 0.5rem 0;
}

.links {
    margin: 1rem 0;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.links span {
    color: #ffffff;
    font-weight: 700;
}

.links a {
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.links a:hover {
    text-decoration: none;
}

.emoji-link {
    font-size: 2.5rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

footer a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
}

footer a:hover {
    text-decoration: underline;
    opacity: 0.9;
}

.github-icon {
    display: inline-block;
    margin-left: 4px;
    margin-right: 4px;
    font-size: 1.2em;
}

/* Font Awesome 图标样式 */
.fas, .fab {
    margin-right: 4px;
}

.links i {
    color: #ffffff;
    font-size: 1em;
}

footer a i {
    transition: all 0.3s ease;
}

.emoji-link i {
    font-size: 0.9em;
    margin-right: 6px;
}

.email-link {
    cursor: pointer;
    color: #ffffff;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: inline-block;
}

.email-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.email-link.copied {
    color: #ffd700;
    background-color: rgba(255, 215, 0, 0.2);
    transform: scale(1);
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .notification {
        top: 10px;
        right: 10px;
        left: auto;
        max-width: 280px;
        font-size: 12px;
        padding: 12px 16px;
        gap: 8px;
    }
    
    .notification-text {
        word-break: break-word;
        flex: 1;
    }
    
    header h1 {
        font-size: 2.5rem;
    }
    header {
        padding: 3rem 1rem;
        clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    }
    .domain-cards {
        grid-template-columns: 1fr;
    }
    .filter-bar {
        flex-wrap: wrap;
        gap: 8px;
        padding: 15px;
        justify-content: center;
    }
    .filter-btn {
        padding: 6px 12px;
        font-size: 12px;
        flex: 0 1 auto;
        min-width: fit-content;
    }
    .sort-bar {
        padding: 15px;
        flex-direction: column;
        gap: 12px;
    }
    .sort-bar label {
        font-size: 13px;
    }
    .sort-bar select {
        max-width: 100%;
        width: 100%;
        font-size: 13px;
    }
}