/* 
 * AnyDesk Template Styles
 * Optimized for SEO and GEO
 */

:root {
    --primary-color: #FF5630;
    --primary-dark: #DE350B;
    --secondary-color: #0747A6;
    --text-color: #172B4D;
    --text-light: #5E6C84;
    --bg-color: #FFFFFF;
    --bg-light: #F4F5F7;
    --border-color: #DFE1E6;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

body {
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-color);
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* Header */
header {
    background-color: var(--bg-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.logo span {
    color: var(--text-color);
}

nav ul {
    display: flex;
    gap: 30px;
}

nav a {
    color: var(--text-color);
    font-weight: 500;
}

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

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

.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

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

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

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

/* Hero Section */
.hero {
    padding: 80px 0;
    background-image: url('../images/hero-banner.png');
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.85);
}

.hero-inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 50px;
}

.hero-content {
    flex: 1;
}

.hero h1 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-color);
}

.hero p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 30px;
}

.hero-image {
    flex: 1;
}

/* Features Section */
.features {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
}

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

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

/* Use Cases Section */
.use-cases {
    padding: 80px 0;
}

.use-case-row {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 80px;
}

.use-case-row:nth-child(even) {
    flex-direction: row-reverse;
}

.use-case-content {
    flex: 1;
}

.use-case-content h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.use-case-image {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Footer */
footer {
    background-color: var(--text-color);
    color: white;
    padding: 60px 0 20px;
}

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

.footer-col h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: white;
}

.footer-col p {
    color: #A0AABF;
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #A0AABF;
}

.footer-col a:hover {
    color: white;
}

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

/* Breadcrumbs */
.breadcrumbs {
    padding: 20px 0;
    background-color: var(--bg-light);
    font-size: 14px;
}

.breadcrumbs a {
    color: var(--text-light);
}

.breadcrumbs span {
    margin: 0 10px;
    color: var(--text-light);
}

.breadcrumbs .current {
    color: var(--text-color);
    font-weight: bold;
}

/* Page Header */
.page-header {
    padding: 60px 0;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
}

.page-header h1 {
    font-size: 40px;
    margin-bottom: 15px;
}

/* Content Area */
.content-area {
    padding: 60px 0;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
}

.article-content h2 {
    font-size: 28px;
    margin: 30px 0 15px;
}

.article-content p {
    margin-bottom: 20px;
}

/* List Page */
.article-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.article-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.article-item-img {
    height: 200px;
    background-color: var(--bg-light);
    overflow: hidden;
}

.article-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-item-content {
    padding: 20px;
}

.article-item-title {
    font-size: 20px;
    margin-bottom: 10px;
}

.article-item-title a {
    color: var(--text-color);
}

.article-item-title a:hover {
    color: var(--primary-color);
}

.article-item-meta {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
}

/* Download Page */
.download-section {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.download-box {
    background: white;
    padding: 50px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.download-box h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.download-btn-large {
    display: inline-block;
    padding: 15px 40px;
    font-size: 20px;
    border-radius: 50px;
    margin: 20px 0;
}

.version-info {
    color: var(--text-light);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        height: auto;
        padding: 20px 0;
        gap: 20px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-inner, .use-case-row, .use-case-row:nth-child(even) {
        flex-direction: column;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
