body {
    font-family: 'Segoe UI', Roboto, -apple-system, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #2c3e50;
    line-height: 1.6;
}

header {
    background: linear-gradient(135deg, rgba(75, 108, 183, 0.5) 0%, rgba(24, 40, 72, 0.5) 100%);
    color: white;
    padding: 12px 0;
    box-shadow: 0 1px 6px rgba(0,0,0,0.05);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-links {
    margin-left: auto;
    display: flex;
    align-items: center;
}

header h1 {
    font-size: 1.8em;
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.5px;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.about-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 1em;
    padding: 8px 20px;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 20px;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.15);
    font-weight: 500;
}

.about-link:hover {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.6);
    transform: translateY(-2px);
}

.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: flex-start;
}

#text-section {
    padding-right: 20px;
}

#text-section h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #2c3e50;
}

#text-section p {
    font-size: 1em;
    line-height: 1.6;
    color: #34495e;
    margin-bottom: 20px;
}

#text-section ul {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

#text-section li {
    padding: 12px 0;
    font-size: 0.95em;
    line-height: 1.5;
    color: #34495e;
    margin-bottom: 8px;
}

#text-section li strong {
    color: #2c3e50;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 5px;
}

#text-section li:before {
    content: "•";
    color: #4b6cb7;
    font-weight: bold;
    margin-right: 15px;
    font-size: 1.2em;
    line-height: 1;
}

#image-section {
    position: sticky;
    top: 20px;
}

#image-section img {
    width: 100%;
    max-width: 450px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    margin: 0 auto;
    display: block;
}

.download-icons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.download-icons img {
    height: 40px;
}

.privacy-link {
    color: #e74c3c;
    font-weight: bold;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.privacy-link:hover {
    color: #c0392b;
}

.privacy-section {
    background-color: #f8f9fa;
    border-left: 4px solid #e74c3c;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
}

.privacy-heading {
    color: #e74c3c;
    font-weight: bold;
    margin-bottom: 15px;
}

footer {
    background: linear-gradient(135deg, rgba(24, 40, 72, 0.7) 0%, rgba(75, 108, 183, 0.7) 100%);
    color: white;
    padding: 15px 0;
    margin-top: 40px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
    color: #ffffff;
    font-weight: 500;
    font-size: 0.9em;
}

.footer-links {
    display: flex;
    gap: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 4px;
}

.footer-links .privacy-link {
    padding: 3px 8px;
    border-radius: 4px;
}

.footer-links .privacy-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.footer-link {
    color: #e74c3c;
    text-decoration: underline;
    font-size: 0.9em;
    transition: color 0.3s ease;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 4px;
}

.footer-link:hover {
    color: #c0392b;
    background-color: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    #text-section {
        padding-right: 0;
    }
    
    #image-section {
        position: static;
    }
    
    #image-section img {
        max-width: 100%;
    }
    
    header h1 {
        font-size: 1.8em;
    }
    
    #text-section h2 {
        font-size: 2em;
    }
    
    .header-container {
        padding: 0 15px;
    }
    
    .header-logo {
        height: 35px;
    }
    
    .about-link {
        padding: 8px 20px;
        font-size: 1em;
    }
}

.policy-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 40px;
}

.policy-container section {
    margin-bottom: 30px;
}

.policy-container ul {
    padding-left: 20px;
    margin: 15px 0;
}

.policy-container li {
    margin: 10px 0;
}

.logo-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-logo {
    height: 38px;
    width: auto;
    transition: transform 0.3s ease;
}

.header-logo:hover {
    transform: scale(1.05);
}

/* About页面特 */
.about-container {
    display: block;  /* 覆盖grid布局 */
    max-width: 900px;  /* 限制内容宽度 */
}

.about-content {
    padding: 20px 0;
}

.about-section {
    margin-bottom: 40px;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo-description {
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 20px 0;
}

.about-logo {
    width: 100px;
    height: auto;
}

.about-section h2 {
    color: #2c3e50;
    font-size: 1.8em;
    margin-bottom: 15px;
}

.about-section p {
    color: #34495e;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Legal pages (Terms of Service & Privacy Policy) */
.legal-container {
    max-width: 1200px;  /* 设置最大宽度 */
    margin: 0 auto;     /* 水平居中 */
    padding: 40px 20px;
    width: 100%;
}

.legal-content {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 40px;
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;     /* 水平居中 */
    max-width: 900px;   /* 设置内容区域最大宽度 */
}

.legal-content h1 {
    color: #333;
    font-size: 2.5em;
    margin-bottom: 30px;
    text-align: center;
}

.legal-intro {
    background: #f8f9fa;
    border-left: 4px solid #6c63ff;
    padding: 20px;
    margin-bottom: 40px;
    border-radius: 4px;
}

.legal-intro p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.legal-sections section {
    margin-bottom: 40px;
}

.legal-sections h2 {
    color: #2c3e50;
    font-size: 1.5em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.legal-sections h3 {
    color: #34495e;
    font-size: 1.2em;
    margin: 25px 0 15px;
}

.legal-sections h4 {
    color: #455a64;
    font-size: 1.1em;
    margin: 20px 0 10px;
}

.legal-sections p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
}

.legal-sections ul, 
.legal-sections ol {
    margin: 15px 0;
    padding-left: 25px;
}

.legal-sections li {
    color: #555;
    line-height: 1.6;
    margin-bottom: 10px;
}

/* Responsive design */
@media (max-width: 768px) {
    .legal-container {
        padding: 20px 15px;
    }

    .legal-content {
        padding: 25px;
    }

    .legal-content h1 {
        font-size: 2em;
    }

    .legal-sections h2 {
        font-size: 1.3em;
    }
}

/* 覆盖 container 的网格布局，当在法律页面时使用块级布局 */
.legal-container .container {
    display: block;
    width: 100%;
    grid-template-columns: none;
    gap: 0;
}

/* 添加新的样式 */
.container.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.container.full-width {
    width: 100%;
    padding: 0;
    margin: 0;
}