:root {
    --primary-color: #007bff;
    --primary-dark: #0056b3;
    --secondary-color: #6c757d;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --border-color: #e9ecef;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --radius: 8px;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-bg);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 40px;
}

.nav-menu {
    display: flex;
    gap: 20px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-color);
}

.nav-link:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

/* Sections */
section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: #222;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* App Grid */
.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.app-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.app-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.app-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background-color: #eee;
    /* Placeholder */
    object-fit: cover;
}

.app-title {
    font-weight: 700;
    font-size: 1.1rem;
}

.app-meta {
    font-size: 0.85rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.app-desc {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 20px;
    flex-grow: 1;
    display: -webkit-box; /* 必须 */
    -webkit-box-orient: vertical; /* 必须 */
    -webkit-line-clamp: 3; /* 显示行数 */
    overflow: hidden; /* 必须 */
    text-overflow: ellipsis; /* 可选 */
}

.app-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: var(--radius);
    text-align: center;
    font-weight: 600;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--primary-dark);
}

/* Business Scope */
.scope-content {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}

/* Product Detail Page */
.product-header {
    padding: 60px 0;
    background: var(--light-bg);
}

.product-hero {
    display: flex;
    gap: 40px;
    align-items: center;
}

.product-logo-lg {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow);
}

.product-hero-info h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.product-badges {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.badge {
    padding: 5px 10px;
    background: #e9ecef;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #495057;
}

/* Product Layout */
.product-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.screenshot {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    background: #ddd;
    aspect-ratio: 9/16;
}

/* Footer */
footer {
    background-color: #212529;
    color: #adb5bd;
    padding: 60px 0 30px;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.contact-list li {
    margin-bottom: 10px;
    display: flex;
    gap: 10px;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #343a40;
    font-size: 0.9rem;
}

/* Index.html - Review Dashboard */
.dashboard-body {
    background: #edf2f7;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.dashboard-header {
    padding: 15px 25px;
    background: var(--white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.preview-container {
    flex-grow: 1;
    display: flex;
    padding: 20px;
    gap: 20px;
    overflow: hidden;
}

.device-frame {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.frame-header {
    padding: 10px;
    background: #f1f3f5;
    border-bottom: 1px solid #dee2e6;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    color: #495057;
}

.iframe-wrapper {
    flex-grow: 1;
    background: white;
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Responsive */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        height: auto;
        padding: 15px 0;
        gap: 15px;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .product-hero {
        flex-direction: column;
        text-align: center;
    }

    .product-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
}