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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    background-color: #f5f5f5;
    color: #333;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
}

.section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.hidden {
    display: none;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    text-align: center;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

h3 {
    font-size: 1.4rem;
    margin: 1.5rem 0;
    color: #34495e;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

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

button:hover {
    background-color: #2980b9;
}

.button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.button-group button {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    background-color: #4CAF50;
    color: white;
    border: none;
    transition: background-color 0.3s;
}

.button-group button:hover {
    background-color: #45a049;
}

#progress {
    width: 100%;
    height: 6px;
    background-color: #eee;
    border-radius: 3px;
    margin-bottom: 2rem;
}

#progress-bar {
    height: 100%;
    background-color: #3498db;
    border-radius: 3px;
    transition: width 0.3s;
}

textarea {
    width: 100%;
    min-height: 150px;
    padding: 1rem;
    margin: 1rem 0;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    resize: vertical;
}

#summary-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    margin: 2rem 0;
}

.formatted-content {
    text-align: left;
    line-height: 1.6;
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.formatted-content h1,
.formatted-content h2,
.formatted-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.formatted-content p {
    margin-bottom: 1rem;
    text-indent: 2em;
}

.formatted-content ul,
.formatted-content ol {
    margin-bottom: 1rem;
    padding-left: 2em;
}

.formatted-content li {
    margin-bottom: 0.5rem;
}

.formatted-content br {
    display: block;
    margin: 0.5em 0;
    content: "";
}

.formatted-content strong {
    color: #2c3e50;
    font-weight: 600;
}

#year-review,
#future-outlook {
    margin-bottom: 2rem;
}

#review-content,
#outlook-content {
    margin: 1.5rem 0;
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

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

#save-btn {
    margin-right: 1rem;
    background-color: #27ae60;
}

#save-btn:hover {
    background-color: #219a52;
}

#restart-btn {
    background-color: #e74c3c;
}

#restart-btn:hover {
    background-color: #c0392b;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    overflow: auto;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border-radius: 10px;
    max-width: 900px;
    position: relative;
}

.close {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 28px;
    cursor: pointer;
}

.close:hover {
    color: #999;
}

#poster-preview {
    margin: 20px 0;
    text-align: center;
}

#poster-preview img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

#download-poster-btn {
    background-color: #0071e3;
    margin-top: 20px;
}

#download-poster-btn:hover {
    background-color: #0077ed;
}

#share-btn {
    background-color: #0071e3;
}

#share-btn:hover {
    background-color: #0077ed;
}
