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

:root {
    --primary-color: #0D47A1;
    --secondary-color: #1976D2;
    --accent-color: #FF6F00;
    --text-primary: #1a1a1a;
    --text-secondary: #666;
    --bg-light: #ffffff;
    --bg-gray: #f5f5f5;
    --border-color: #e0e0e0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-light);
}

.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);
    box-shadow: var(--shadow);
    z-index: 1000;
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-image {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.logo-text {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
}

.tagline {
    font-size: 14px;
    color: var(--text-secondary);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-cta {
    display: flex;
    gap: 1rem;
}

.download-dropdown {
    position: relative;
}

.download-btn {
    padding: 10px 32px;
}

.download-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    min-width: 280px;
    display: none;
    flex-direction: column;
    z-index: 1001;
    overflow: hidden;
    padding-top: 10px;
}

.download-dropdown:hover .download-menu,
.download-menu:hover {
    display: flex;
}

.download-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    text-decoration: none;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    transition: background 0.3s;
}

.download-item:last-child {
    border-bottom: none;
}

.download-item:hover:not(.disabled) {
    background: var(--bg-gray);
}

.download-item.disabled {
    color: var(--text-secondary);
    cursor: not-allowed;
}

.download-icon {
    font-size: 24px;
}

.download-text {
    flex: 1;
    font-weight: 500;
}

.download-version,
.download-status {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    background: var(--bg-gray);
    color: var(--text-secondary);
}

.download-status {
    background: #fff3cd;
    color: #856404;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.bar {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s;
}

.menu-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.btn-large {
    padding: 14px 32px;
    font-size: 16px;
}

.hero {
    padding: 160px 0 100px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::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"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="2"/></svg>');
    background-size: 100px 100px;
    opacity: 0.5;
}

.hero .container {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

.hero-title .highlight {
    color: #FFD700;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 2rem;
}

.badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    backdrop-filter: blur(5px);
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.hero-note {
    font-size: 14px;
    opacity: 0.9;
    font-style: italic;
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.hero-video {
    width: 100%;
    margin-left: auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    height: 500px;
}

.hero-video-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
}

.hero-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.card-icon {
    font-size: 40px;
}

.card-header h3 {
    font-size: 20px;
    margin: 0;
}

.card-body {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 12px;
    opacity: 0.9;
}

section {
    padding: 80px 0;
}

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

.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
}

.features {
    background: var(--bg-gray);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.feature-desc {
    color: var(--text-secondary);
    line-height: 1.7;
}

.integration {
    background: white;
}

.integration-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.integration-card {
    background: var(--bg-gray);
    padding: 30px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s;
}

.integration-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.integration-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.integration-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.integration-list {
    list-style: none;
    margin-bottom: 20px;
}

.integration-list li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: var(--text-secondary);
}

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

.integration-example {
    background: white;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.example-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 600;
}

.example-content {
    color: var(--primary-color);
    font-style: italic;
}

.architecture {
    background: var(--bg-gray);
}

.architecture-diagram {
    max-width: 800px;
    margin: 0 auto;
}

.arch-layer {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.arch-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--primary-color);
    text-align: center;
}

.arch-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    align-items: center;
}

.arch-item {
    background: var(--bg-gray);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    border: 2px solid var(--border-color);
}

.arch-connector {
    background: var(--accent-color);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
}

.arch-arrow {
    text-align: center;
    font-size: 24px;
    color: var(--primary-color);
    margin: 10px 0;
}

.scenarios {
    background: white;
}

.scenarios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 20px;
    margin-top: 40px;
}

.scenario-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    border-radius: 12px;
    color: white;
    transition: all 0.3s;
}

.scenario-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* 写小软件 - 第一个large卡片 */
.scenario-card:nth-child(2).large {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
}

/* 生成文件 - 第二个large卡片 */
.scenario-card:nth-child(4).large {
    grid-column: 2 / 4;
    grid-row: 2 / 3;
}

.scenario-card.small {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
}

.scenario-card.medium {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
}

.scenario-card.tall {
    grid-column: 2 / 4;
    grid-row: 2 / 3;
}

.scenario-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.scenario-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.scenario-desc {
    margin-bottom: 20px;
    opacity: 0.95;
    line-height: 1.7;
}

.scenario-video {
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
}

.scenario-video-player {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border: none;
}

.scenario-card.large .scenario-video-player {
    height: 600px;
}

.scenario-card.tall .scenario-video-player {
    height: 280px;
}

.scenario-video.portrait {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
}

.scenario-video.portrait .scenario-video-player {
    width: 340px;
    height: 600px;
    object-fit: cover;
    border: none;
}

.scenario-card.small .scenario-video:not(.portrait) .scenario-video-player,
.scenario-card.medium .scenario-video:not(.portrait) .scenario-video-player {
    height: 180px;
}

.scenario-example {
    background: rgba(255, 255, 255, 0.2);
    padding: 16px;
    border-radius: 8px;
    backdrop-filter: blur(5px);
}

.scenario-example .example-label {
    color: rgba(255, 255, 255, 0.9);
}

.scenario-example .example-content {
    color: white;
}

.comparison {
    background: var(--bg-gray);
}

.comparison-table {
    overflow-x: auto;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.comparison-table th,
.comparison-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

.comparison-table th.highlight {
    background: var(--accent-color);
}

.comparison-table td.highlight {
    background: rgba(255, 111, 0, 0.1);
    font-weight: 600;
    color: var(--accent-color);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

/* 下载部分样式 */
.download {
    padding: 80px 0;
    background: var(--bg-gray);
}

.download .section-title {
    text-align: center;
    margin-bottom: 16px;
}

.download .section-subtitle {
    text-align: center;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.download-card {
    background: white;
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.download-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.download-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.download-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.download-description {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.download-card .btn {
    margin-bottom: 20px;
}

.download-card .btn:disabled {
    background: var(--bg-gray);
    color: var(--text-secondary);
    cursor: not-allowed;
    transform: none;
}

.download-card .btn:disabled:hover {
    background: var(--bg-gray);
    transform: none;
}

.download-note {
    font-size: 14px;
    color: var(--text-secondary);
}

.download-info {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--shadow);
}

.download-info h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.system-requirements {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.system-requirements li {
    font-size: 16px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.system-requirements li::before {
    content: "✓";
    color: #4CAF50;
    font-weight: bold;
}

.contact {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.contact-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 1rem;
}

.contact-subtitle {
    font-size: 18px;
    margin-bottom: 3rem;
    opacity: 0.95;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-icon {
    font-size: 32px;
}

.contact-text {
    text-align: left;
}

.contact-label {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 4px;
}

.contact-value {
    font-size: 18px;
    font-weight: 600;
}

.contact-cta {
    margin-top: 2rem;
}

.contact-cta .btn {
    background: white;
    color: var(--primary-color);
}

.contact-cta .btn:hover {
    background: var(--bg-gray);
    transform: translateY(-2px);
}

.footer {
    background: #1a1a1a;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
    align-items: start;
}

@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }
    
    .footer-link-group h4 {
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .footer-link-group li {
        margin-bottom: 8px;
    }
    
    .footer-link-group a {
        font-size: 12px;
    }
}

.footer-brand .logo-text {
    color: white;
    margin-bottom: 12px;
}

.footer-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    margin-bottom: 8px;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.footer-link-group h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-link-group ul {
    list-style: none;
}

.footer-link-group li {
    margin-bottom: 12px;
}

.footer-link-group a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-link-group a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

html {
    scroll-behavior: smooth;
}
