/* 基础样式和布局 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
    color: #333;
    min-height: 100vh;
    transition: background-color 0.3s, color 0.3s;
}

body.dark {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #f0f0f0;
}

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

/* 头部样式 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.dark .header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.windows-icon {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 2px;
    width: 36px;
    height: 36px;
}

.window-pane {
    background-color: #0067b8;
    border-radius: 2px;
}

.dark .window-pane {
    background-color: #00a4ef;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s;
    background: transparent;
    border: none;
    font-size: 1rem;
    cursor: pointer;
}

.nav-link:hover {
    background-color: rgba(0, 103, 184, 0.1);
}

.dark .nav-link:hover {
    background-color: rgba(0, 164, 239, 0.2);
}

.stats {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: #666;
}

.dark .stats {
    color: #aaa;
}

.stats i {
    margin-right: 5px;
}

/* 主内容区 */
.main-content {
    padding: 40px 0;
}

.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 60px;
}

@media (max-width: 900px) {
    .hero-section {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.hero-text .title {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #0067b8 0%, #00a4ef 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dark .hero-text .title {
    background: linear-gradient(90deg, #00a4ef 0%, #7fba00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 20px;
}

.dark .subtitle {
    color: #aaa;
}

.description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #555;
}

.dark .description {
    color: #ccc;
}

.features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background-color: rgba(0, 103, 184, 0.05);
    border-radius: 8px;
    font-weight: 500;
}

.dark .feature {
    background-color: rgba(0, 164, 239, 0.1);
}

.feature i {
    color: #0067b8;
}

.dark .feature i {
    color: #00a4ef;
}

/* 启动按钮 */
.launch-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.launch-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 32px;
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(90deg, #0067b8 0%, #00a4ef 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 6px 20px rgba(0, 103, 184, 0.3);
}

.launch-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 103, 184, 0.4);
}

.launch-btn i {
    transition: transform 0.3s;
}

.launch-btn:hover i {
    transform: translateX(5px);
}

.manual-launch-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    color: #0067b8;
    background: rgba(0, 103, 184, 0.1);
    border: 2px solid rgba(0, 103, 184, 0.3);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.dark .manual-launch-btn {
    color: #00a4ef;
    background: rgba(0, 164, 239, 0.1);
    border-color: rgba(0, 164, 239, 0.3);
}

.manual-launch-btn:hover {
    background: rgba(0, 103, 184, 0.2);
    transform: translateY(-2px);
}

.note {
    font-size: 0.9rem;
    color: #777;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dark .note {
    color: #aaa;
}

/* 预览窗口 */
.window-preview {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.dark .window-preview {
    background-color: #2d3748;
}

.window-preview:hover {
    transform: translateY(-5px);
}

.preview-header {
    background-color: #f0f0f0;
    padding: 12px 15px;
    display: flex;
    align-items: center;
}

.dark .preview-header {
    background-color: #1a202c;
}

.preview-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background-color: #ff5f57; }
.dot.yellow { background-color: #ffbd2e; }
.dot.green { background-color: #28ca42; }

.preview-content {
    padding: 40px 30px;
    text-align: center;
}

.preview-icon {
    font-size: 4rem;
    color: #0067b8;
    margin-bottom: 20px;
}

.dark .preview-icon {
    color: #00a4ef;
}

.preview-content h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.preview-content p {
    color: #666;
    margin-bottom: 15px;
}

.dark .preview-content p {
    color: #aaa;
}

.preview-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 15px;
    background: rgba(0, 103, 184, 0.1);
    border-radius: 8px;
    font-weight: 500;
}

.dark .preview-timer {
    background: rgba(0, 164, 239, 0.1);
}

.preview-timer i {
    color: #0067b8;
}

.dark .preview-timer i {
    color: #00a4ef;
}

/* 评论区域 */
.comments-section {
    margin-top: 60px;
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.section-header p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.dark .section-header p {
    color: #aaa;
}

.waline-container {
    background-color: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.dark .waline-container {
    background-color: #2d3748;
}

.waline-wrapper {
    min-height: 200px;
    position: relative;
}

/* 页脚 */
.footer {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.dark .footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

.dark .footer-links a {
    color: #aaa;
}

.footer-links a:hover {
    color: #0067b8;
}

.dark .footer-links a:hover {
    color: #00a4ef;
}

.footer-copyright {
    text-align: center;
    color: #888;
    font-size: 0.9rem;
    line-height: 1.5;
}

.dark .footer-copyright {
    color: #777;
}

/* 公告模态框 */
.announcement-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.announcement-modal.active {
    opacity: 1;
    visibility: visible;
}

.announcement-content {
    background-color: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: transform 0.3s;
}

.dark .announcement-content {
    background-color: #2d3748;
}

.announcement-modal.active .announcement-content {
    transform: translateY(0);
}

.announcement-header {
    display: flex;
    align-items: center;
    padding: 20px;
    background-color: #0067b8;
    color: white;
}

.dark .announcement-header {
    background-color: #1a365d;
}

.announcement-header i {
    font-size: 1.5rem;
    margin-right: 10px;
}

.announcement-header h3 {
    flex-grow: 1;
    font-size: 1.3rem;
}

.close-announcement {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.announcement-body {
    padding: 25px 20px;
    max-height: 300px;
    overflow-y: auto;
}

.announcement-body p {
    line-height: 1.6;
    font-size: 1.05rem;
}

.dark .announcement-body {
    color: #f0f0f0;
}

.announcement-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.dark .announcement-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.announcement-footer label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #666;
}

.dark .announcement-footer label {
    color: #aaa;
}

.btn-primary {
    padding: 8px 20px;
    background-color: #0067b8;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: #005aa7;
}