/* ========== Reset & Base Styles ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4f46e5;
    --primary-dark: #3730a3;
    --secondary-color: #06b6d4;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --text-muted: #9ca3af;
    --bg-light: #f8fafc;
    --bg-dark: #0f172a;
    --white: #ffffff;
    --border-light: #e5e7eb;
    --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-large: 0 10px 25px rgba(0, 0, 0, 0.15);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* ========== Modern Navigation ========== */
.navbar {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1e293b 100%);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-brand {
    text-decoration: none;
    transition: var(--transition);
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    transition: var(--transition);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
}

.brand-tagline {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

.navbar-brand:hover .brand-icon {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.4);
}

/* Modern Hamburger Menu */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
    width: 45px;
    height: 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: var(--transition);
}

.navbar-toggler span {
    width: 20px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: var(--transition);
}

.navbar-toggler:hover {
    background: rgba(255, 255, 255, 0.2);
}

.navbar-toggler[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggler[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.navbar-toggler[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Navigation Links */
.navbar-nav {
    gap: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    padding: 0.75rem 1rem !important;
    border-radius: 10px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transition: var(--transition);
    z-index: -1;
}

.nav-link:hover {
    color: white !important;
    transform: translateY(-2px);
}

.nav-link:hover::before {
    left: 0;
}

.nav-link.active {
    color: white !important;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.nav-link .material-icons {
    font-size: 1.1rem;
}

/* ========== App loo Section ========== */
.app-loo-section {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
}

.app-loo-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%234f46e5' fill-opacity='0.05'%3E%3Ccircle cx='20' cy='20' r='2'/%3E%3C/g%3E%3C/svg%3E");
    z-index: 0;
}

.app-loo-content {
    position: relative;
    z-index: 1;
}

.app-icon-large {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    width: 120px;
    height: 120px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-large);
    font-size: 3rem;
}

.app-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.app-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.app-meta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.app-meta > div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rating .stars {
    display: flex;
    gap: 0.125rem;
}

.rating .stars .material-icons {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.rating-text {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

.downloads, .category {
    color: var(--text-light);
    font-size: 0.9rem;
}

.downloads .material-icons,
.category .material-icons {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.download-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.app-mockup {
    text-align: center;
    position: relative;
}

.app-mockup img {
    max-width: 350px;
    border-radius: 20px;
    box-shadow: var(--shadow-large);
    transition: var(--transition);
}

.app-mockup:hover img {
    transform: scale(1.05);
}

/* ========== Features Section ========== */
.features-section {
    background: white;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.feature-item {
    text-align: center;
    padding: 2rem 1rem;
    transition: var(--transition);
    border-radius: 12px;
}

.feature-item:hover {
    background: var(--bg-light);
    transform: translateY(-5px);
}

.feature-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    transition: var(--transition);
}

.feature-item:hover .feature-icon {
    transform: scale(1.1);
}

.feature-item h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feature-item p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ========== Screenshots Section ========== */
.screenshots-section {
    background: var(--bg-light);
}

.screenshots-carousel {
    display: flex;
    gap: 2rem;
    padding: 2rem 0;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 3rem;
}

.screenshots-carousel::-webkit-scrollbar {
    height: 8px;
}

.screenshots-carousel::-webkit-scrollbar-track {
    background: #e2e8f0;
    border-radius: 4px;
}

.screenshots-carousel::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.screenshot-item {
    flex: 0 0 auto;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
}

.screenshot-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-large);
}

.screenshot-item img {
    width: 250px;
    height: 500px;
    object-fit: cover;
    border-radius: 12px;
}

.screenshot-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem 1rem 1rem;
    text-align: center;
    transform: translateY(100%);
    transition: var(--transition);
}

.screenshot-item:hover .screenshot-overlay {
    transform: translateY(0);
}

.screenshot-overlay h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.screenshot-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

/* ========== Reviews Section ========== */
.reviews-section {
    background: white;
}

.review-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-medium);
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
    height: 100%;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-large);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.user-avatar {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-info h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.user-info .stars {
    display: flex;
    gap: 0.125rem;
}

.user-info .stars .material-icons {
    color: var(--accent-color);
    font-size: 1rem;
}

.review-text {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-style: italic;
}

.review-date {
    color: var(--text-light);
    font-size: 0.85rem;
    opacity: 0.8;
}

/* ========== Download CTA Section ========== */
.download-cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)) !important;
}

.download-cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.download-cta-section .lead {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 0;
}



/* ========== Buttons ========== */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: var(--transition);
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    color: white;
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-light {
    background: white;
    color: var(--primary-color);
}

.btn-light:hover {
    background: var(--bg-light);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* ========== Share Button Functionality ========== */
.share-btn {
    position: relative;
}

.share-btn.copied::after {
    content: '已复制链接！';
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-dark);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 1000;
    animation: fadeInOut 2s ease;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0; }
    20%, 80% { opacity: 1; }
}

/* ========== Responsive Design ========== */
@media (max-width: 768px) {
    .app-title {
        font-size: 2.5rem;
    }
    
    .app-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .download-buttons {
        justify-content: center;
    }
    
    .app-meta {
        align-items: center;
        text-align: center;
    }
    

    
    .screenshots-carousel {
        justify-content: center;
    }
    
    .app-mockup img {
        max-width: 280px;
    }
    
    .download-cta-section h2 {
        font-size: 2rem;
        text-align: center;
    }
    
    .download-cta-section .lead {
        text-align: center;
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .app-title {
        font-size: 2rem;
    }
    
    .download-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        text-align: center;
        justify-content: center;
        width: 100%;
    }
    
    .app-icon-large {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }
    
    .feature-item {
        margin-bottom: 2rem;
    }
    
    .screenshots-carousel {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* ========== Loading States ========== */
.loading {
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* ========== Smooth Scrolling ========== */
html {
    scroll-behavior: smooth;
}

/* ========== Additional Animations ========== */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.app-icon-large {
    animation: bounceIn 0.8s ease-out;
}

.feature-item:nth-child(odd) {
    animation: slideInFromLeft 0.6s ease-out;
}

.feature-item:nth-child(even) {
    animation: slideInFromRight 0.6s ease-out;
}

/* ========== Modern Footer ========== */
.modern-footer {
    background: transparent;
    position: relative;
    overflow: hidden;
}

.footer-background {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1e293b 50%, var(--bg-dark) 100%);
    position: relative;
}

.footer-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 0;
}

.footer-main {
    position: relative;
    z-index: 1;
}

.footer-brand .brand-wrapper {
    margin-bottom: 1rem;
}

.footer-brand .brand-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    border-radius: 15px;
}

.footer-brand .brand-name {
    font-size: 1.6rem;
    color: white;
}

.footer-brand .brand-tagline {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 10px;
    text-decoration: none;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.footer-title {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
}

.footer-links a:hover {
    color: white;
    padding-left: 0.5rem;
}

.footer-links a::before {
    content: '';
    position: absolute;
    left: -0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transition: var(--transition);
}

.footer-links a:hover::before {
    width: 4px;
}

.contact-info .contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: transparent;
    padding: 0.5rem 0;
    border: none;
    margin-bottom: 0.75rem;
}

.contact-info .contact-item .material-icons {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    width: 30px;
    height: 30px;
    font-size: 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info .contact-item span:not(.material-icons) {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    flex: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
    position: relative;
    z-index: 1;
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    font-size: 0.9rem;
}

.footer-badges {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.footer-badges .badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.footer-badges .badge:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.footer-badges .badge .material-icons {
    font-size: 1rem;
}

/* Footer Responsive Adjustments */
@media (max-width: 768px) {
    .footer-badges {
        justify-content: center;
        margin-top: 1rem;
    }
    
    .brand-wrapper {
        gap: 0.5rem;
    }
    
    .brand-name {
        font-size: 1.2rem !important;
    }
    
    .nav-link span:last-child {
        display: none;
    }
}

@media (max-width: 576px) {
    .footer-badges {
        flex-direction: column;
        align-items: center;
    }
} 