/* 年度报告样式 - 完全参考TOHAME */
:root {
    --primary-color: #1AC66C;
    --primary-dark: #219653;
    --primary-gradient: linear-gradient(135deg, #1AC66C, #069E4F);
    --secondary-color: #FF6B6B;
    --text-dark: #333;
    --text-muted: #999;
    --bg-light: #f7f8fa;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    background-color: var(--bg-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    color: var(--text-dark);
}

.page-container {
    width: 100%;
    max-width: 450px;
    background-color: #fff;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
}

/* --- 初始页样式 --- */
.initial-page {
    display: none; /* 默认隐藏，通过inline style控制显示 */
    flex-direction: column;
    align-items: center;
    gap: 25px;
    width: 100%;
}

.chart-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(26, 198, 108, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.initial-page h1 {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-dark);
}

.initial-page p {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.6;
}

.generate-btn {
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    padding: 14px 40px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 4px 15px rgba(26, 198, 108, 0.3);
}

.generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 198, 108, 0.4);
}

/* --- 加载页样式 --- */
.loading-page {
    display: none; /* 默认隐藏 */
    flex-direction: column;
    align-items: center;
    gap: 30px;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    width: 100%;
}

.progress-circle {
    position: relative;
    width: 180px;
    height: 180px;
}

.circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(var(--primary-color) 0deg, var(--primary-color) 0deg, #eee 0deg, #eee 360deg);
    transition: background 0.2s ease;
}

.mask {
    position: absolute;
    top: 10px;
    left: 10px;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    background-color: #fff;
    border-radius: 50%;
    z-index: 1;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 42px;
    font-weight: bold;
    color: var(--primary-color);
    z-index: 2;
}

.drum-container {
    height: 32px;
    overflow: hidden;
    width: 100%;
    margin-bottom: 10px;
}

#drumContent {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.drum-item {
    font-size: 20px;
    font-weight: 600;
    height: 32px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

/* 初始项默认显示 */
.drum-item:first-child { 
    opacity: 1; 
}

.loading-page p {
    font-size: 16px;
    color: var(--text-muted);
}

/* --- 完成页样式 --- */
.success-page {
    display: none; /* 默认隐藏 */
    flex-direction: column;
    align-items: center;
    gap: 15px;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    width: 100%;
}

.success-icon {
    width: 100px;
    height: 100px;
    background-color: rgba(26, 198, 108, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-icon svg {
    width: 60px;
    height: 60px;
}

.success-page h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
}

/* 新增：报告亮点展示 */
.report-highlights {
    width: 100%;
    text-align: center;
    margin-top: 10px;
}

.report-highlights p {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.highlights-list {
    list-style: none;
    display: inline-block;
    text-align: left;
}

.highlights-list li {
    font-size: 14px;
    color: #666;
    padding-left: 20px;
    position: relative;
    margin-bottom: 8px;
    line-height: 1.5;
}

.highlights-list li::before {
    content: '✓';
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.agreement-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 10px;
    margin-bottom: 20px;
}

.agreement-container input[type="checkbox"] {
    width: 14px;
    height: 14px;
    margin-right: 8px;
    margin-top: 2px;
    cursor: pointer;
}

.agreement-container a {
    color: var(--primary-color);
    text-decoration: none;
}

.agreement-container a:hover {
    text-decoration: underline;
}

/* 协议提醒动画 */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.button-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin-top: 0;
}

.pay-main-btn {
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    padding: 16px 30px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 4px 15px rgba(26, 198, 108, 0.3);
}

.pay-main-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 198, 108, 0.4);
}

/* 优化：兼职按钮作为"免费"选项 */
.part-time-btn {
    background: #fff;
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.part-time-btn:hover {
    background: var(--secondary-color);
    color: #fff;
}

/* 协议弹窗 */
#agreementModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.modal-body {
    padding: 20px;
    color: #666;
}

.modal-body h3 {
    margin-bottom: 15px;
    color: #333;
}

.modal-body p {
    line-height: 1.6;
    margin-bottom: 10px;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    text-align: center;
    position: sticky;
    bottom: 0;
    background-color: #fff;
    z-index: 1;
}

.btn-confirm {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-confirm:hover {
    background-color: var(--primary-dark);
}

/* 兼职弹窗 */
#partTimeModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

#partTimeImage {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 10px;
    cursor: pointer;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .page-container {
        padding: 30px 20px;
    }
    
    .initial-page h1,
    .success-page h2 {
        font-size: 22px;
    }
    
    .generate-btn,
    .back-btn {
        font-size: 16px;
        padding: 14px 30px;
    }
    
    .progress-circle {
        width: 150px;
        height: 150px;
    }
    
    .progress-text {
        font-size: 36px;
    }
}
