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

body {
    font-family: 'Microsoft YaHei', '微软雅黑', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #F3F4F6;
    color: #333;
    line-height: 1.6;
}

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

.header {
    background: white;
    padding: 24px 32px;
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.header h1 {
    font-size: 22px;
    color: #1a1a1a;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    font-family: 'Microsoft YaHei', '微软雅黑', sans-serif;
    font-weight: bold;
    letter-spacing: -0.3px;
}

.header h1::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 22px;
    background: #1a1a1a;
    margin-right: 10px;
    border-radius: 2px;
}

.header .nav {
    display: flex;
    gap: 0;
    background: #F3F4F6;
    border-radius: 8px;
    overflow: hidden;
}

.header .nav a {
    flex: 1;
    padding: 12px 20px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    text-align: center;
    transition: all 0.3s;
    border-right: 1px solid #E5E5E5;
    font-weight: bold;
}

.header .nav a:last-child {
    border-right: none;
}

.header .nav a:hover,
.header .nav a.active {
    background: #1a1a1a;
    color: white;
}

.header .nav a:hover {
    background: #333;
}

.filter-bar {
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.filter-bar .date-filter {
    width: 120px;
    height: 40px;
    padding: 0 15px;
    border: 1px solid #E5E5E5;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s;
    cursor: pointer;
    line-height: 38px;
    color: #666;
    font-weight: 500;
    font-family: 'Microsoft YaHei', '微软雅黑', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.filter-bar select.date-filter {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 35px;
}

.filter-bar input.date-filter {
    padding-right: 15px;
}

.filter-bar .date-filter::-webkit-calendar-picker-indicator {
    display: none;
}

.filter-bar .date-filter::-webkit-inner-spin-button,
.filter-bar .date-filter::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.filter-bar .date-filter:focus {
    border-color: #1a1a1a;
}

.filter-bar .btn-query {
    height: 40px;
    padding: 0 24px;
    background: #F3F4F6;
    color: #666;
    border: 1px solid #E5E5E5;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    line-height: 38px;
}

.filter-bar .btn-query:hover {
    background: #E8E8E8;
    color: #333;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.filter-bar .btn-today {
    height: 40px;
    padding: 0 24px;
    background: #F3F4F6;
    color: #666;
    border: 1px solid #E5E5E5;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    line-height: 38px;
}

.filter-bar .btn-today:hover {
    background: #E8E8E8;
    color: #333;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.filter-bar .btn-today.active {
    background: #1a1a1a;
    color: white;
    border: 1px solid #1a1a1a;
}

.filter-bar .btn-today.active:hover {
    background: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.filter-bar .btn {
    height: 40px;
    padding: 0 24px;
    background: #F3F4F6;
    color: #666;
    border: 1px solid #E5E5E5;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    line-height: 38px;
}

.filter-bar .btn:hover {
    background: #E8E8E8;
    color: #333;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.filter-bar .btn-primary {
    background: #1a1a1a;
    color: white;
    border: 1px solid #1a1a1a;
}

.filter-bar .btn-primary:hover {
    background: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.sort-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    padding: 0;
}

.sort-btn {
    height: 40px;
    padding: 0 24px;
    background: #F3F4F6;
    color: #666;
    border: 1px solid #E5E5E5;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    line-height: 38px;
}

.sort-btn:hover {
    background: #E8E8E8;
    color: #333;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.sort-btn.active {
    background: #1a1a1a;
    color: white;
    border: 1px solid #1a1a1a;
}

.sort-btn.active:hover {
    background: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

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

.user-info {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.user-info .avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
    border: 2px solid #F3F4F6;
}

.user-info .user-details {
    flex: 1;
}

.user-info .name {
    font-weight: bold;
    font-size: 16px;
    color: #333;
    margin-bottom: 3px;
}

.user-info .time {
    color: #999;
    font-size: 13px;
}

.btn-delete {
    padding: 6px 16px;
    background: #FF4D4F;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.btn-delete:hover {
    background: #FF7875;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 77, 79, 0.3);
}

.btn-delete:active {
    transform: translateY(0);
}

.countdown {
    font-size: 14px;
    color: #FF4D4F;
    font-weight: 600;
    margin-bottom: 20px;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.modal-btn-secondary {
    background: #E5E7EB;
    color: #333;
}

.modal-btn-secondary:hover {
    background: #D9D9D9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.modal-btn-danger {
    background: #FF4D4F;
}

.modal-btn-danger:hover {
    background: #FF7875;
    box-shadow: 0 2px 8px rgba(255, 77, 79, 0.3);
}

.modal-btn-danger:disabled {
    background: #D9D9D9;
    cursor: not-allowed;
    box-shadow: none;
}

.card .content {
    color: #333;
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 15px;
    white-space: pre-wrap;
    word-break: break-word;
}

.card .actions {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-top: 15px;
    border-top: 1px solid #F3F4F6;
}

.card .action-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
    font-size: 14px;
}

.card .action-item .count {
    font-weight: 600;
    color: #1a1a1a;
}

.card .btn {
    padding: 8px 24px;
    background: #1a1a1a;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    margin-left: auto;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.card .btn:hover {
    background: #333;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.card .btn.primary {
    background: #1a1a1a;
    color: white;
}

.card .btn.primary:hover {
    background: #333;
}

.card .btn.liked {
    background: #F3F4F6;
    color: #1a1a1a;
}

.card .btn.liked:hover {
    background: #E8E8E8;
}

.card .btn.error {
    background: #FF4D4F;
    animation: shake 0.5s ease-in-out;
}

.card .btn.error:hover {
    background: #FF4D4F;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

.card .btn.voted {
    background: #52c41a;
    color: white;
}

.card .btn.voted:hover {
    background: #389e0d;
}

.card .btn:disabled {
    background: #D9D9D9;
    color: #999;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.card .btn-icon {
    font-size: 16px;
}

.likers-list {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #F3F4F6;
}

.likers-list .title {
    font-size: 13px;
    color: #999;
    margin-bottom: 10px;
}

.likers-list .avatars {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.likers-list .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #F3F4F6;
    transition: all 0.3s;
}

.likers-list .avatar:hover {
    transform: scale(1.1);
    border-color: #1a1a1a;
}

.likers-list .liker-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: #F9FAFB;
    border-radius: 20px;
    transition: all 0.3s;
}

.likers-list .liker-item:hover {
    background: #F0F4F8;
}

.likers-list .liker-name {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.likers-list .no-likes {
    font-size: 13px;
    color: #999;
    padding: 10px 0;
    font-style: italic;
}

.loading {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 14px;
}

.empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty .icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    z-index: 1000;
    animation: slideDown 0.3s;
    font-size: 14px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translate(-50%, -20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.like-bubble {
    position: fixed;
    font-size: 32px;
    pointer-events: none;
    z-index: 1000;
    opacity: 1;
    transform: translate(-50%, -50%) scale(0);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: white;
    border-radius: 8px;
    padding: 30px 40px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    transform: scale(0.8);
    transition: all 0.3s;
}

.modal-overlay.show .modal {
    transform: scale(1);
}

.modal-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: popIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes popIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.modal-message {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.modal-btn {
    padding: 10px 30px;
    background: #1a1a1a;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.modal-btn:hover {
    background: #333;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.hidden {
    display: none;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.form-group textarea {
    width: 100%;
    min-height: 180px;
    padding: 15px;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s;
    background: white;
}

.form-group textarea:focus {
    outline: none;
    border-color: #1a1a1a;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.1);
}

.form-group .char-count {
    text-align: right;
    font-size: 12px;
    color: #999;
    margin-top: 8px;
}

.form-group .char-count.warning {
    color: #FF9800;
}

.form-group .char-count.error {
    color: #F44336;
    font-weight: 600;
}

.btn {
    background: #1a1a1a;
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.3s;
    font-weight: 500;
    text-align: center;
}

.btn:hover {
    background: #333;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.btn:disabled {
    background: #D9D9D9;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-block {
    width: 100%;
    text-align: center;
    display: block;
}

.btn-outline {
    background: transparent;
    border: 2px solid #1a1a1a;
    color: #1a1a1a;
}

.btn-outline:hover {
    background: #1a1a1a;
    color: white;
}

.btn-secondary {
    background: #F3F4F6;
    color: #666;
    border: 1px solid #E5E5E5;
}

.btn-secondary:hover {
    background: #E8E8E8;
    color: #333;
}

.ranking-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: white;
    border-radius: 8px;
    margin-bottom: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

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

.ranking-item .rank {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #F3F4F6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
    margin-right: 15px;
    color: #666;
}

.ranking-item .rank.top-1 {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: white;
    box-shadow: 0 2px 8px rgba(255,215,0,0.3);
}

.ranking-item .rank.top-2 {
    background: linear-gradient(135deg, #C0C0C0, #A8A8A8);
    color: white;
    box-shadow: 0 2px 8px rgba(192,192,192,0.3);
}

.ranking-item .rank.top-3 {
    background: linear-gradient(135deg, #CD7F32, #B87333);
    color: white;
    box-shadow: 0 2px 8px rgba(205,127,50,0.3);
}

.ranking-item .info {
    flex: 1;
}

.ranking-item .info .name {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.ranking-item .votes {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.load-more {
    text-align: center;
    padding: 20px;
}

.load-more .btn {
    background: white;
    color: #1a1a1a;
    border: 2px solid #1a1a1a;
    padding: 10px 30px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.load-more .btn:hover {
    background: #1a1a1a;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.stats-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #FFF7E6;
    color: #FF9800;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    margin-left: 10px;
}

.btn-group {
    display: flex;
    gap: 200px;
    margin-top: 25px;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.btn-group .btn {
    flex: 0 0 120px;
    padding: 10px 30px;
    font-size: 14px;
    border-radius: 6px;
    transition: all 0.3s;
    font-weight: 500;
    width: 120px;
    text-align: center;
}

.btn-group .btn-secondary {
    background: #F3F4F6;
    color: #666;
    border: 1px solid #E5E5E5;
}

.btn-group .btn-secondary:hover {
    background: #E8E8E8;
    color: #333;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.btn-group .btn-primary {
    background: #1a1a1a;
    color: white;
    border: none;
}

.btn-group .btn-primary:hover {
    background: #333;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
