/* Peanut Office 官网样式 */

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #4f46e5;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-brand i {
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a:hover::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
}

/* 主横幅 */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    z-index: -2;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>') repeat;
    z-index: -1;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.8;
    line-height: 1.8;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 4rem;
    animation: fadeInUp 1s ease 0.6s both;
}

.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    animation: fadeInUp 1s ease 0.8s both;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 功能演示 */
.features-demo {
    padding: 6rem 0;
    background: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* 功能演示标签页 */
.demo-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.demo-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 2rem;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    min-width: 150px;
}

.demo-tab:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.demo-tab.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.demo-tab i {
    font-size: 1.5rem;
}

.demo-tab span {
    font-weight: 600;
    font-size: 0.9rem;
}

/* 演示内容 */
.demo-content {
    display: none;
    margin-bottom: 4rem;
}

.demo-content.active {
    display: block;
}

.demo-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.demo-description h3 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.demo-description h3 i {
    color: var(--primary-color);
}

.demo-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.feature-highlights {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.highlight-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s ease;
}

.highlight-item:hover {
    transform: translateX(5px);
}

.highlight-icon {
    font-size: 1.8rem;
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.highlight-item h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.highlight-item p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* 应用窗口样式 */
.app-window {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-8deg) rotateX(3deg);
    transition: transform 0.3s ease;
}

.app-window:hover {
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
}

.window-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.window-controls {
    display: flex;
    gap: 0.4rem;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control.red { background: #ef4444; }
.control.yellow { background: #f59e0b; }
.control.green { background: #10b981; }

.window-title {
    font-weight: 600;
    color: var(--text-primary);
}

.window-content {
    padding: 1.5rem;
    background: #fafbfc;
}

/* 项目管理演示样式 */
.demo-toolbar {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: center;
}

.demo-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    font-size: 0.8rem;
    cursor: pointer;
}

.demo-btn.primary {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.search-box {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 0.5rem;
    margin-left: auto;
}

.search-box input {
    border: none;
    outline: none;
    margin-left: 0.5rem;
    font-size: 0.8rem;
    width: 200px;
}

.demo-filters {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.demo-filters select, .filter-btn {
    padding: 0.4rem 0.8rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 0.75rem;
}

.filter-btn {
    background: #fef3c7;
    border-color: #f59e0b;
    color: #92400e;
}

.demo-project-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    max-height: 200px;
    overflow-y: auto;
}

.demo-project-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.demo-project-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(102,126,234,0.15);
}

.demo-project-item.featured {
    border-color: var(--accent-color);
    background: #fef7ff;
}

.project-status {
    font-size: 1rem;
}

.project-icon {
    font-size: 1.5rem;
    width: 40px;
    text-align: center;
}

.project-details {
    flex: 1;
}

.project-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.project-meta {
    color: var(--text-secondary);
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
}

.project-tags {
    display: flex;
    gap: 0.4rem;
}

.tag {
    background: #e0e7ff;
    color: #3730a3;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 500;
}

.project-actions {
    display: flex;
    gap: 0.3rem;
}

.project-actions button {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 4px;
    background: #f3f4f6;
    cursor: pointer;
    transition: background 0.2s;
}

.project-actions button:hover {
    background: #e5e7eb;
}

/* 计算器演示样式 */
.calculator-window .window-content {
    padding: 2rem;
}

.calc-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.form-section {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

.form-section h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 0.8rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.calc-result {
    background: #f0fdf4;
    border: 2px solid #22c55e;
    padding: 1.5rem;
    border-radius: 10px;
}

.calc-result h4 {
    color: #15803d;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.result-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.result-total {
    display: flex;
    justify-content: space-between;
    padding-top: 0.8rem;
    border-top: 2px solid #22c55e;
    font-size: 1rem;
    color: #15803d;
    font-weight: bold;
}

/* 投标管理演示样式 */
.bidding-window .window-content {
    padding: 1.5rem;
}

.bidding-dashboard {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.bidding-stats {
    display: flex;
    gap: 1rem;
}

.stat-card {
    flex: 1;
    background: white;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    border: 2px solid #e5e7eb;
}

.stat-card.success {
    border-color: #22c55e;
    background: #f0fdf4;
}

.stat-card .stat-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.stat-card .stat-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-top: 0.3rem;
}

.bidding-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bidding-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #e5e7eb;
}

.bidding-item.urgent {
    border-left-color: #ef4444;
    background: #fef2f2;
}

.bid-status {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    background: #f3f4f6;
    white-space: nowrap;
    height: fit-content;
}

.bid-info {
    flex: 1;
}

.bid-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.bid-meta {
    color: var(--text-secondary);
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
}

.bid-progress {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.progress-bar {
    height: 6px;
    background: var(--primary-color);
    border-radius: 3px;
    min-width: 80px;
    position: relative;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #e5e7eb;
    border-radius: 3px;
    z-index: -1;
}

.bid-progress span {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

/* 云服务演示样式 */
.cloud-window .window-content {
    padding: 2rem;
}

.cloud-dashboard {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    border: 2px solid #22c55e;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
}

.user-details {
    flex: 1;
}

.user-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.user-status {
    font-size: 0.75rem;
    color: #16a34a;
}

.sync-btn {
    padding: 0.5rem 1rem;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
}

.cloud-modules {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.cloud-module {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.module-status {
    font-size: 1rem;
}

.module-info {
    flex: 1;
}

.module-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.85rem;
}

.module-expire {
    color: #16a34a;
    font-size: 0.7rem;
}

.purchase-btn {
    padding: 0.4rem 0.8rem;
    background: #f59e0b;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
}

.sync-status {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.sync-item {
    text-align: center;
    font-size: 0.75rem;
}

.sync-item span {
    color: var(--text-secondary);
}

.sync-item strong {
    color: var(--primary-color);
    display: block;
    margin-top: 0.2rem;
}

/* 快捷操作演示 */
.demo-shortcuts {
    background: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    margin-top: 4rem;
}

.demo-shortcuts h3 {
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.shortcuts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.shortcut-item {
    padding: 1.5rem 1rem;
    background: var(--bg-light);
    border-radius: 12px;
    transition: transform 0.2s ease;
}

.shortcut-item:hover {
    transform: translateY(-3px);
}

.shortcut-key {
    display: inline-block;
    background: var(--text-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
}

.shortcut-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* 功能模块 */
.modules {
    padding: 6rem 0;
    background: white;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.module-card {
    border: 2px solid #e5e7eb;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
}

.module-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-xl);
    transform: translateY(-5px);
}

.module-card.featured {
    border-color: var(--accent-color);
    position: relative;
}

.module-card.featured::before {
    content: '推荐';
    position: absolute;
    top: 20px;
    right: -10px;
    background: var(--accent-color);
    color: white;
    padding: 5px 20px;
    font-size: 0.8rem;
    font-weight: bold;
    transform: rotate(15deg);
}

.module-header {
    padding: 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.module-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.module-title h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.module-price {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.1rem;
}

.module-content {
    padding: 2rem;
}

.module-features {
    list-style: none;
    space-y: 0.5rem;
}

.module-features li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
}

.module-features i {
    color: #10b981;
    font-size: 0.9rem;
}

/* 技术特色 */
.tech-features {
    padding: 6rem 0;
    background: var(--bg-light);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.tech-item {
    text-align: center;
    padding: 2rem 1rem;
}

.tech-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: block;
}

.tech-item h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.tech-item p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* 下载中心 */
.download {
    padding: 6rem 0;
    background: white;
}

.download-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.version-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.download-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.download-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.file-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-secondary);
}

.file-info i {
    color: var(--primary-color);
    width: 20px;
}

.download-actions {
    display: flex;
    gap: 1rem;
}

.download-btn-main, .download-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid;
}

.download-btn-main {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.download-btn-main:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
    color: white;
}

.download-btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.download-btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* 应用预览 */
.download-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-preview {
    width: 400px;
    height: 300px;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    transform: perspective(800px) rotateY(-5deg) rotateX(5deg);
}

.preview-header {
    background: #f3f4f6;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.preview-controls {
    display: flex;
    gap: 0.5rem;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control.red { background: #ef4444; }
.control.yellow { background: #f59e0b; }
.control.green { background: #10b981; }

.preview-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.preview-content {
    display: flex;
    height: 240px;
}

.preview-sidebar {
    width: 120px;
    background: #f8fafc;
    padding: 1rem 0.5rem;
    border-right: 1px solid #e5e7eb;
}

.sidebar-item {
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    font-size: 0.75rem;
    transition: background 0.2s;
}

.sidebar-item.active {
    background: var(--primary-color);
    color: white;
}

.preview-main {
    flex: 1;
    padding: 1rem;
}

.preview-projects {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.project-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    background: #f8fafc;
    border-radius: 8px;
}

.project-icon {
    font-size: 1.2rem;
}

.project-info {
    flex: 1;
}

.project-name {
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--text-primary);
}

.project-meta {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

/* 更新日志 */
.updates {
    padding: 6rem 0;
    background: var(--bg-light);
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 5rem;
}

.timeline-marker {
    position: absolute;
    left: 18px;
    top: 0;
    width: 24px;
    height: 24px;
    background: white;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 0.8rem;
}

.timeline-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.timeline-header h4 {
    color: var(--text-primary);
    font-size: 1.3rem;
}

.timeline-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
    background: var(--bg-light);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
}

.timeline-features {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.5rem;
}

.timeline-features li {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* 系统要求 */
.requirements {
    padding: 6rem 0;
    background: white;
}

.req-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.req-section {
    background: var(--bg-light);
    padding: 2.5rem 2rem;
    border-radius: 15px;
}

.req-section h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.2rem;
}

.req-section h3 i {
    color: var(--primary-color);
}

.req-section ul, .req-section ol {
    color: var(--text-secondary);
    line-height: 1.8;
}

.req-section li {
    margin-bottom: 0.8rem;
}

/* 联系我们 */
.contact {
    padding: 6rem 0;
    background: var(--bg-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-item {
    background: white;
    padding: 3rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
}

.contact-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.contact-item h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.contact-item p {
    color: var(--text-secondary);
    font-weight: 500;
}

/* 页脚 */
.footer {
    background: #1f2937;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.3rem;
    font-weight: bold;
}

.footer-brand i {
    color: var(--primary-color);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    color: #9ca3af;
    font-size: 0.9rem;
}

/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loaded .feature-card,
.loaded .module-card,
.loaded .tech-item {
    animation: fadeInUp 0.6s ease forwards;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .download-card {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .app-preview {
        width: 300px;
        height: 225px;
    }
    
    .nav-links {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .features-grid,
    .modules-grid,
    .tech-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
}
