* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 700;
}

.update-date {
    font-size: 0.9em;
    opacity: 0.9;
}

main {
    padding: 40px 30px;
}

.policy-section {
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.policy-section:last-child {
    border-bottom: none;
}

.policy-section h2 {
    color: #667eea;
    font-size: 1.8em;
    margin-bottom: 15px;
    font-weight: 600;
}

.policy-section p {
    margin-bottom: 12px;
    color: #555;
}

.policy-section ul {
    margin-left: 25px;
    margin-top: 10px;
}

.policy-section li {
    margin-bottom: 8px;
    color: #666;
}

footer {
    background: #f8f9fa;
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 0.9em;
}

/* 加载动画样式 */
.loading-container {
    text-align: center;
    padding: 60px 20px;
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-container p {
    color: #666;
    font-size: 1em;
}

/* 错误提示样式 */
.error-container {
    text-align: center;
    padding: 60px 20px;
    color: #721c24;
}

.error-container p {
    font-size: 1.1em;
    margin-bottom: 20px;
}

.error-container button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 30px;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    cursor: pointer;
    transition: transform 0.2s;
}

.error-container button:hover {
    transform: translateY(-2px);
}

/* API 动态内容样式 */
#policy-content h2 {
    color: #667eea;
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

#policy-content h3 {
    color: #764ba2;
    font-size: 1.4em;
    margin-top: 20px;
    margin-bottom: 12px;
    font-weight: 600;
}

#policy-content p {
    margin-bottom: 12px;
    color: #555;
    line-height: 1.8;
}

#policy-content ul, #policy-content ol {
    margin-left: 25px;
    margin-bottom: 15px;
}

#policy-content li {
    margin-bottom: 8px;
    color: #666;
    line-height: 1.6;
}

#policy-content strong {
    color: #333;
    font-weight: 600;
}

#policy-content a {
    color: #667eea;
    text-decoration: none;
}

#policy-content a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    header h1 {
        font-size: 2em;
    }

    .policy-section h2 {
        font-size: 1.4em;
    }

    main {
        padding: 25px 20px;
    }

    .contact-form {
        padding: 15px;
    }
}
