/* 导入中文字体 */
@font-face {
    font-family: 'SDK_SC_Web';
    src: url('SDK_SC_Web.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'SDK_SC_Web', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* 头部样式 */
.header {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.title {
    font-size: 2rem;
    color: #333;
    background: linear-gradient(45deg, #ff6b6b, #ee5a6f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.status-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: bold;
}

.status i {
    font-size: 0.8rem;
}

.status.offline i {
    color: #ff6b6b;
}

.status.online i {
    color: #4ecdc4;
}

.status.normal {
    color: #4ecdc4;
}

.status.warning {
    color: #ffbe0b;
}

.status.alert {
    color: #ff6b6b;
}

.update-time {
    color: #666;
    font-size: 0.9rem;
}

/* 信息卡片样式 */
.earthquake-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.info-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.card-header h2 {
    font-size: 1.3rem;
    color: #444;
}

.card-body {
    padding: 10px 0;
}

.no-data {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 20px;
}

/* 摇晃按钮样式 */
.report-section {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.report-container {
    text-align: center;
}

.shake-button {
    background: linear-gradient(45deg, #ff6b6b, #ee5a6f);
    color: white;
    border: none;
    padding: 25px 50px;
    font-size: 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.4);
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'SDK_SC_Web', 'Microsoft YaHei', sans-serif;
}

.shake-button:hover:not(.disabled) {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(255, 107, 107, 0.5);
}

.shake-button:active:not(.disabled) {
    transform: translateY(-2px);
}

.shake-button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #cccccc;
    box-shadow: none;
}

.button-status {
    margin-top: 15px;
    color: #666;
    font-size: 1rem;
}

/* 历史记录样式 */
.history-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.history-section h2 {
    font-size: 1.3rem;
    color: #444;
    margin-bottom: 15px;
}

.history-list {
    max-height: 300px;
    overflow-y: auto;
}

.history-item {
    padding: 10px 15px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

/* 统计列表样式 */
.stats-list {
    margin-top: 15px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-location {
    font-weight: 500;
}

.stat-count {
    color: #ee5a6f;
    font-weight: bold;
}

/* 底部样式 */
.footer {
    text-align: center;
    color: white;
    padding: 20px;
    border-radius: 15px;
    background: rgba(0, 0, 0, 0.7);
    margin-top: 20px;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-logo {
    max-width: 300px;
    border-radius: 8px;
}

.footer-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.privacy-policy-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'SDK_SC_Web', 'Microsoft YaHei', sans-serif;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.privacy-policy-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.special-thanks-btn {
    background: rgba(236, 64, 122, 0.7);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'SDK_SC_Web', 'Microsoft YaHei', sans-serif;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.special-thanks-btn:hover {
    background: rgba(236, 64, 122, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(236, 64, 122, 0.3);
}

/* 动画效果 */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.pulse-animation {
    animation: pulse 1.5s infinite;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .earthquake-info {
        grid-template-columns: 1fr;
    }
    
    .shake-button {
        padding: 20px 40px;
        font-size: 1.3rem;
    }
    
    .title {
        font-size: 1.5rem;
    }
}