/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(52, 152, 219, 0.05) 0%, rgba(46, 204, 113, 0.05) 50%, rgba(155, 89, 182, 0.05) 100%);
    z-index: -1;
}

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

/* 页头 */
header {
    background: linear-gradient(135deg, #2c3e50, #4a6491);
    color: white;
    padding: 2rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* 头部内容容器 */
.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

/* 网站头像 */
.site-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.site-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 头部文本 */
.header-text {
    text-align: left;
    flex: 1;
}

/* 头部左侧按钮区域 */
.header-left {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 10;
}

.about-btn {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    font-weight: bold;
    backdrop-filter: blur(5px);
    font-size: 0.9rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}



.about-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

header::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    transform: rotate(45deg);
    animation: movePattern 20s linear infinite;
    z-index: 0;
}

@keyframes movePattern {
    0% { transform: rotate(45deg) translateY(0); }
    100% { transform: rotate(45deg) translateY(20px); }
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
    animation: fadeInDown 0.8s ease-out;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.disclaimer {
    color: #ff6b6b !important;
    font-size: 1rem !important;
    font-weight: bold;
    margin-top: 0.5rem;
    animation: pulse 2s infinite;
    position: relative;
    z-index: 1;
}

@keyframes pulse {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

@keyframes fadeInDown {
    0% { opacity: 0; transform: translateY(-20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* 网站运行天数显示 */
.site-running-days {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(44, 62, 80, 0.9);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    transform: translateZ(0);
    transition: all 0.3s ease;
    animation: slideInRight 0.6s ease-out;
}

.site-running-days:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

@keyframes slideInRight {
    0% { opacity: 0; transform: translateX(30px); }
    100% { opacity: 1; transform: translateX(0); }
}

/* 搜索区域 */
.search-section {
    background-color: white;
    padding: 2rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.search-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #3498db, #2ecc71, #9b59b6, #e74c3c, #f39c12, #3498db);
    background-size: 300% 100%;
    animation: gradientShift 6s ease infinite;
    z-index: 1;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.tabs {
    display: flex;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.tab-btn {
    background: #f1f1f1;
    border: none;
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    border-radius: 5px 5px 0 0;
    margin-right: 5px;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
}

.tab-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.tab-btn:hover::before {
    transform: translateX(100%);
}

.tab-btn.active {
    background: #3498db;
    color: white;
    box-shadow: 0 3px 10px rgba(52, 152, 219, 0.3);
    transform: translateY(-2px);
}

.tab-btn:hover {
    background: #2980b9;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.brand-selector {
    margin-bottom: 1.5rem;
    animation: fadeInLeft 0.6s ease-out 0.2s both;
    position: relative;
    z-index: 2;
}

@keyframes fadeInLeft {
    0% { opacity: 0; transform: translateX(-20px); }
    100% { opacity: 1; transform: translateX(0); }
}

.brand-selector label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.brand-selector select {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    width: 200px;
    background: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.brand-selector select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.brand-selector select:hover {
    border-color: #3498db;
}

.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 1rem;
    animation: fadeInUp 0.6s ease-out 0.4s both;
    position: relative;
    z-index: 2;
}

.search-type {
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
    animation: fadeInUp 0.6s ease-out 0.3s both;
    position: relative;
    z-index: 2;
}

.search-type label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-type label:hover {
    color: #3498db;
}

.search-type input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #3498db;
}

#searchInput {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

#searchInput:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    transform: translateY(-2px);
}

#searchInput::placeholder {
    color: #aaa;
}

#searchBtn {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 5px rgba(52, 152, 219, 0.3);
    position: relative;
    overflow: hidden;
}

#searchBtn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

#searchBtn:hover::before {
    width: 300px;
    height: 300px;
}

#searchBtn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(41, 128, 185, 0.4);
}

#searchBtn:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(41, 128, 185, 0.4);
}

.search-options {
    display: flex;
    gap: 1.5rem;
}

.search-options label {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* 结果区域 */
.results-section {
    margin-bottom: 2rem;
}

#loadingIndicator, #noResults {
    text-align: center;
    padding: 2rem;
    font-size: 1.2rem;
    color: #666;
}

.hidden {
    display: none;
}

#searchResults {
    background: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.5s ease-out;
    display: block !important;
    visibility: visible !important;
    color: #000000 !important;
    overflow: visible !important;
}

/* 结果项基本样式 */
.result-item {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #000000 !important;
    background-color: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    padding: 1rem !important;
    margin-bottom: 1rem !important;
    border-radius: 5px !important;
    overflow: visible !important;
}

/* 确保搜索结果中的所有文字都可见 */
#searchResults * {
    color: inherit !important;
    visibility: visible !important;
}

#searchResults .result-code {
    color: #d32f2f !important;
    background-color: #f8f9fa !important;
    font-weight: bold !important;
    font-size: 1.2rem !important;
    padding: 0.5rem !important;
    margin-bottom: 0.5rem !important;
    border-radius: 4px !important;
}

#searchResults .result-name {
    color: #1a237e !important;
    font-weight: bold !important;
    font-size: 1.1rem !important;
    margin-bottom: 0.5rem !important;
}

#searchResults .result-description {
    color: #333333 !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
    margin-bottom: 1rem !important;
}

#searchResults .result-details {
    color: #333333 !important;
    margin-bottom: 1rem !important;
}

#searchResults .result-solution {
    color: #333333 !important;
    margin-top: 1rem !important;
    padding: 1rem !important;
    background-color: #e8f5e9 !important;
    border-left: 4px solid #4caf50 !important;
    border-radius: 4px !important;
}

#searchResults .result-solution strong {
    color: #2e7d32 !important;
    font-size: 1rem !important;
}

@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.result-item {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
}

.result-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(to bottom, #3498db, #2ecc71);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.result-item:hover::before {
    transform: scaleY(1);
}

.result-item:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.result-item:last-child {
    border-bottom: none;
}

.result-code {
    font-weight: bold;
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    background: #f0f8ff;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    display: inline-block;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.result-code:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.result-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #34495e;
    margin-bottom: 0.5rem;
    transition: color 0.2s ease;
}

.result-item:hover .result-name {
    color: #3498db;
}

.result-description {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.7;
    animation: fadeInText 0.8s ease-out 0.2s both;
}

@keyframes fadeInText {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.result-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 1rem 0;
    font-size: 0.9rem;
    color: #666;
    background: #f8f9fa;
    padding: 0.8rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    animation: slideUp 0.6s ease-out 0.4s both;
}

@keyframes slideUp {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

.result-item:hover .result-details {
    background: #f0f4f8;
}

.result-detail-item {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    transition: all 0.2s ease;
}

.result-detail-item:hover {
    transform: scale(1.05);
    color: #3498db;
}

.result-detail-item span:first-child {
    font-weight: bold;
    color: #2c3e50;
}

.result-solution {
    margin-top: 1rem;
    padding: 1rem;
    background: #e8f5e9;
    border-radius: 4px;
    border-left: 4px solid #4caf50;
    transition: all 0.3s ease;
    animation: slideRight 0.6s ease-out 0.6s both;
    position: relative;
}

@keyframes slideRight {
    0% { opacity: 0; transform: translateX(-10px); }
    100% { opacity: 1; transform: translateX(0); }
}

.result-solution:hover {
    box-shadow: 0 3px 10px rgba(76, 175, 80, 0.2);
    transform: translateX(5px);
}

.result-solution strong {
    color: #2e7d32;
}

/* 管理员登录区域 */
.admin-section {
    background-color: white;
    padding: 2rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.admin-section h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.admin-login {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

#adminPassword {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    width: 250px;
}

#adminLoginBtn {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}

#adminLoginBtn:hover {
    background: #2980b9;
}

#logoutBtn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s ease;
    margin-top: 1rem;
}

#logoutBtn:hover {
    background: #c0392b;
}

/* 数据统计区域 */
.data-info {
    background: white;
    padding: 2rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.data-info h3 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
    text-align: center;
}

.data-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.stat-item {
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
}

.stat-item h4 {
    margin-bottom: 0.5rem;
    color: #3498db;
}

.stat-item p {
    margin: 0.3rem 0;
}

.update-info {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

/* 网站统计区域 */
.site-stats {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #f0f8ff;
    border-radius: 5px;
    border-left: 4px solid #3498db;
}

.site-stats h4 {
    margin-bottom: 1rem;
    color: #2c3e50;
    text-align: center;
}

/* 页脚 */
footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 1.5rem 0;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: "";
    position: absolute;
    top: -5px;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #3498db, #2ecc71, #9b59b6);
    background-size: 300% 100%;
    animation: gradientMove 8s linear infinite;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

.footer-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.footer-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.admin-link {
    color: #3498db;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
}

.admin-link::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #3498db;
    transition: width 0.3s ease;
}

.admin-link:hover {
    color: #2980b9;
}

.admin-link:hover::after {
    width: 100%;
}

/* 响应式设计 */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    header p {
        font-size: 1rem;
    }
    
    .site-running-days {
        position: static;
        margin: 1rem auto;
        display: inline-block;
        width: auto;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .search-options {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .data-stats {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .result-details {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* 添加滚动条美化 */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #3498db;
    border-radius: 5px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: #2980b9;
}

/* 添加平滑过渡动画 */
* {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* 添加页面加载动画 */
body {
    animation: pageLoad 0.8s ease-out;
}

@keyframes pageLoad {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* 添加页面切换动画 */
section {
    animation: fadeInSection 0.6s ease-out;
}

@keyframes fadeInSection {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* 输入框容器样式 */
.input-container {
    position: relative;
    display: block;
    width: 100%;
}

.input-container::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #3498db;
    transition: width 0.3s ease;
}

.input-container.focused::after {
    width: 100%;
}

/* 页面加载状态样式 */
body.loading {
    overflow: hidden;
}

body.loading > * {
    animation: none !important;
    opacity: 0;
}

/* 但是结果区域不应该被loading状态隐藏 */
body.loading #resultsSection,
body.loading #searchResults {
    opacity: 1 !important;
    animation: none !important;
}

body.loaded > * {
    animation-fill-mode: both;
}

/* 添加涟漪效果样式 */
button {
    position: relative;
    overflow: hidden;
}

/* 添加悬停放大效果 */
.container {
    transition: all 0.3s ease;
}

.container:hover {
    transform: scale(1.01);
}

/* 动画效果 */
.result-item {
    transition: background-color 0.2s ease;
}

.result-item:hover {
    background-color: #f8f9fa;
}

/* 无结果页面样式 */
.no-results {
    text-align: center;
    padding: 3rem 0;
}

.no-results-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #95a5a6;
}

.no-results-text {
    font-size: 1.2rem;
    color: #7f8c8d;
}

/* 加载动画 */
.loading-spinner {
    border: 5px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top: 5px solid #3498db;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
    position: relative;
}

.loading-spinner::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    border: 3px solid rgba(52, 152, 219, 0.3);
    border-top-color: transparent;
    animation: spin 0.8s linear reverse infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 更多结果提示信息 */
.more-results-info {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    color: #856404;
    font-size: 0.9rem;
    border-radius: 4px;
    display: block !important;
    visibility: visible !important;
}

/* 评论区域样式 */
.comments-section {
    margin-top: 2rem;
    background-color: white;
    padding: 1.5rem;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.6s ease-out 0.2s both;
    position: relative;
    overflow: hidden;
}

.comments-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    background-size: 200% 100%;
    animation: gradientMove 5s linear infinite;
}

/* 确保评论表单在移动设备上正确显示 */
.comment-form {
    max-width: 100%;
    overflow: hidden;
}

.comment-form input, 
.comment-form textarea {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.comment-form button {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.comments-section h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

.comment-form {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 5px;
    margin-bottom: 2rem;
    position: relative;
    transition: all 0.3s ease;
}

.comment-form:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #2c3e50;
    transition: color 0.2s ease;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    transform: translateY(-2px);
}

.form-group input:hover, .form-group textarea:hover {
    border-color: #3498db;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.submit-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 5px rgba(52, 152, 219, 0.3);
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.submit-btn:hover::before {
    width: 300px;
    height: 300px;
}

.submit-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(41, 128, 185, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(41, 128, 185, 0.4);
}

.comment-note {
    font-size: 0.8rem;
    color: #666;
    margin-left: 1rem;
}

.comments-list h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.comment-count {
    background: #3498db;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

.comment-item {
    border-bottom: 1px solid #eee;
    padding: 1rem 0;
    transition: all 0.3s ease;
    position: relative;
    animation: slideInLeft 0.5s ease-out;
}

@keyframes slideInLeft {
    0% { opacity: 0; transform: translateX(-20px); }
    100% { opacity: 1; transform: translateX(0); }
}

.comment-item:hover {
    background: #f8f9fa;
    padding-left: 1rem;
    box-shadow: -3px 0 5px rgba(52, 152, 219, 0.1);
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    align-items: center;
}

.comment-author {
    font-weight: bold;
    color: #2c3e50;
    transition: color 0.2s ease;
}

.comment-item:hover .comment-author {
    color: #3498db;
}

.comment-time {
    font-size: 0.8rem;
    color: #666;
    transition: color 0.2s ease;
}

.comment-item:hover .comment-time {
    color: #3498db;
}

.comment-location {
    background: #e3f2fd;
    color: #0d47a1;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    transition: all 0.2s ease;
}

.comment-location:hover {
    background: #bbdefb;
    transform: scale(1.05);
}

.comment-content {
    line-height: 1.6;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}

.comment-item:hover .comment-content {
    color: #2c3e50;
}

.comment-actions {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.comment-reply, .comment-like {
    background: none;
    border: 1px solid #ddd;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.comment-reply:hover, .comment-like:hover {
    background: #f0f0f0;
    border-color: #3498db;
    color: #3498db;
    transform: translateY(-2px);
}

.comment-reply.active {
    background: #e3f2fd;
    border-color: #2196f3;
}

.no-comments {
    text-align: center;
    padding: 2rem 0;
    color: #666;
    font-style: italic;
    animation: fadeIn 0.8s ease-out;
}

/* 公共网站统计区域 */
.site-stats-public {
    text-align: center;
    margin-bottom: 1rem;
    font-weight: bold;
    color: #3498db;
}

.site-stats-public p {
    margin: 0.5rem 0;
}

/* 脏话识别警告 */
.comment-warning {
    background-color: #ffebee;
    border-left: 4px solid #f44336;
    padding: 0.8rem;
    margin-top: 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #c62828;
}

/* 数据同步通知 */
.sync-notification {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(33, 150, 243, 0.95);
    color: white;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    backdrop-filter: blur(5px);
    transform: translateY(-100%);
    animation: slideDown 0.3s ease-out forwards;
}

@keyframes slideDown {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(0); }
}

.sync-notification p {
    margin: 0;
    font-size: 0.9rem;
    animation: fadeIn 0.5s ease-out;
}

.close-notification {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    align-self: flex-end;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.close-notification::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.close-notification:hover::before {
    width: 100px;
    height: 100px;
}

.close-notification:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* 同步中加载动画 */
.sync-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 2px solid white;
    animation: spin 1s linear infinite;
    margin: 8px auto 0;
    position: relative;
}

.sync-spinner::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-top-color: transparent;
    animation: spin 0.8s linear reverse infinite;
}