:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary-color: #64748b;
    --background: #f8fafc;
    --surface: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

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

.header {
    background: var(--surface);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.logo:hover {
    opacity: 0.8;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
}

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

.nav {
    display: flex;
    gap: 32px;
}

.nav a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
}

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

.main {
    min-height: calc(100vh - 72px - 200px);
}

.hero {
    text-align: center;
    padding: 60px 0;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    padding: 24px 0;
}

.product-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 32px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    display: block;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.product-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.product-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 16px;
    line-height: 1.5;
}

.platform-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--background);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-primary);
    transition: var(--transition);
    margin-bottom: 32px;
    text-decoration: none;
}

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

.app-header {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    padding: 32px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    margin-bottom: 32px;
    box-shadow: var(--shadow-md);
}

.app-detail-icon {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-lg);
    object-fit: cover;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
}

.app-header-info h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.app-header-info p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.app-meta {
    display: flex;
    gap: 16px;
    align-items: center;
}

.platform-tag {
    padding: 6px 14px;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.tabs-container {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.tabs {
    display: flex;
    flex-direction: row;
    border-bottom: 1px solid var(--border-color);
    background: var(--background);
    width: 100%;
}

.tab-btn,
.tab-link {
    flex: 1;
    padding: 18px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
    text-decoration: none;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tab-btn:hover,
.tab-link:hover {
    color: var(--primary-color);
    background: var(--surface);
}

.tab-btn.active,
.tab-link.active {
    color: var(--primary-color);
    background: var(--surface);
}

.tab-btn.active::after,
.tab-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color);
}

.tab-content {
    padding: 32px;
    width: 100%;
    box-sizing: border-box;
}

.tab-panel {
    display: none;
    width: 100%;
    max-width: 100%;
}

.tab-panel.active {
    display: block;
    width: 100%;
    max-width: 100%;
}

.description-content,
.support-content,
.policy-content,
.guide-content {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.description-content p,
.support-content p,
.policy-content p,
.guide-content p {
    width: 100%;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.description-content ul,
.support-content ul,
.policy-content ul,
.guide-content ul {
    width: 100%;
    max-width: 100%;
}

.description-content h2,
.support-content h2,
.policy-content h2,
.guide-content h2 {
    font-size: 1.5rem;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.description-content h3 {
    font-size: 1.25rem;
    margin: 24px 0 16px;
    color: var(--text-primary);
}

.description-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--background);
    border-radius: var(--radius-md);
    width: 100%;
}

.feature-list li::before {
    content: '✓';
    color: var(--primary-color);
    font-weight: bold;
}

.screenshots {
    margin-top: 32px;
}

.screenshots h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.screenshots-grid img {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.screenshots-grid img:hover {
    transform: scale(1.02);
}

.support-info {
    display: grid;
    gap: 32px;
}

.support-item h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 16px;
    background: var(--background);
    border: none;
    text-align: left;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--surface);
}

.faq-answer {
    padding: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    display: none;
}

.faq-item.open .faq-answer {
    display: block;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--background);
    border-radius: var(--radius-md);
}

.contact-method svg {
    color: var(--primary-color);
}

.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 500px;
}

.feedback-form input,
.feedback-form select,
.feedback-form textarea {
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.feedback-form input:focus,
.feedback-form select:focus,
.feedback-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.btn-primary {
    padding: 14px 28px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

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

.language-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.lang-btn,
.lang-link {
    padding: 8px 14px;
    background: var(--background);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-secondary);
    display: inline-block;
    text-align: center;
    white-space: nowrap;
}

.lang-btn:hover,
.lang-link:hover,
.lang-btn.active,
.lang-link.active {
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.policy-text,
.guide-text {
    color: var(--text-secondary);
    line-height: 1.8;
    width: 100%;
    max-width: 100%;
}

.policy-text h3,
.guide-text h3 {
    color: var(--text-primary);
    margin: 24px 0 12px;
    font-size: 1.1rem;
}

.policy-text p,
.guide-text p {
    margin-bottom: 12px;
    width: 100%;
    max-width: 100%;
}

.policy-text ul,
.guide-text ul {
    margin: 12px 0 12px 24px;
    width: 100%;
    max-width: 100%;
}

.policy-text li,
.guide-text li {
    margin-bottom: 8px;
}

.footer {
    background: var(--text-primary);
    color: white;
    padding: 48px 0 24px;
    margin-top: 64px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 48px;
    margin-bottom: 32px;
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: white;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-section a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 8px;
    transition: var(--transition);
}

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

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

@media (max-width: 768px) {
    .header .container {
        height: 60px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .app-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .app-meta {
        justify-content: center;
    }

    .tabs {
        flex-wrap: wrap;
    }

    .tab-btn {
        flex: 1 1 50%;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .nav {
        gap: 16px;
    }

    .nav a {
        font-size: 0.9rem;
    }

    .product-card {
        padding: 24px;
    }

    .tab-content {
        padding: 20px;
    }

    .language-selector {
        flex-wrap: wrap;
    }
}

/* Guide Playground Display */
.guide-playground-display {
    margin-top: 24px;
}

.guide-step-display {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: var(--background);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.guide-step-img {
    width: 120px;
    flex-shrink: 0;
}

.guide-step-img img {
    width: 100%;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.guide-step-arrow {
    font-size: 24px;
    color: var(--primary-color);
    line-height: 1;
    padding-top: 20px;
    flex-shrink: 0;
}

.guide-step-desc {
    flex: 1;
    min-width: 0;
}

.guide-step-desc .step-number {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.guide-step-desc .step-text {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    word-wrap: break-word;
}

@media (max-width: 768px) {
    .guide-step-display {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .guide-step-img {
        width: 150px;
    }
    
    .guide-step-arrow {
        transform: rotate(90deg);
        padding: 10px 0;
    }
}

/* Override BoldGrid section width */
.boldgrid-section {
    width: 100% !important;
    max-width: 100% !important;
}

.boldgrid-section .container {
    width: 100% !important;
    max-width: 100% !important;
}
