/* Common CSS styles for MiCount website */
/* Compact Business Styling */

.compact-business body {
    font-size: 11px;
    line-height: 1.4;
}

.compact-business h1 { font-size: 1.3rem; }
.compact-business h2 { font-size: 1.15rem; }
.compact-business h3 { font-size: 1.05rem; }
.compact-business h4 { font-size: 0.95rem; }
.compact-business h5 { font-size: 0.9rem; }
.compact-business h6 { font-size: 0.85rem; }

.compact-business p {
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
}

.compact-business .container {
    padding: 0 12px;
}

.compact-business .section {
    padding: 20px 0;
}

.compact-business .card {
    padding: 16px;
    margin-bottom: 16px;
}

.compact-business .btn {
    padding: 6px 12px;
    font-size: 0.85rem;
}

.compact-business table th,
.compact-business table td {
    padding: 8px;
    font-size: 0.85rem;
}

.compact-business ul, .compact-business ol {
    margin: 0.8rem 0;
    padding-left: 1.2rem;
}

.compact-business li {
    margin-bottom: 0.3rem;
}

/* Business styling enhancements */
.business-style {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.business-style .header,
.business-style .footer {
    background-color: #2c3e50;
    color: white;
}

.business-style .accent-color {
    color: #10B981;
}

.business-style .subtle-border {
    border: 1px solid #e0e0e0;
}

.business-style .clean-shadow {
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

/* Enhanced compact business styling */
.compact-business {
    font-size: 0.8em;
    line-height: 1.4;
}

.compact-business .container {
    max-width: 1100px;
    padding: 0 15px;
}

.compact-business h1 { font-size: 1.3rem; margin: 0.8rem 0 0.6rem; }
.compact-business h2 { font-size: 1.15rem; margin: 0.7rem 0 0.5rem; }
.compact-business h3 { font-size: 1.05rem; margin: 0.6rem 0 0.4rem; }
.compact-business h4 { font-size: 0.95rem; margin: 0.5rem 0 0.3rem; }
.compact-business h5 { font-size: 0.9rem; margin: 0.4rem 0 0.2rem; }
.compact-business h6 { font-size: 0.85rem; margin: 0.3rem 0 0.1rem; }

.compact-business p {
    font-size: 0.8rem;
    margin-bottom: 0.7rem;
    line-height: 1.5;
}

.compact-business .section {
    padding: 25px 0;
}

.compact-business .card,
.compact-business .panel {
    padding: 15px;
    margin-bottom: 15px;
}

.compact-business .btn,
.compact-business .button {
    padding: 7px 14px;
    font-size: 0.85rem;
    border-radius: 4px;
}

.compact-business table {
    font-size: 0.85rem;
}

.compact-business table th,
.compact-business table td {
    padding: 6px 10px;
}

.compact-business ul, .compact-business ol {
    margin: 0.7rem 0;
    padding-left: 1.1rem;
}

.compact-business li {
    margin-bottom: 0.25rem;
}

.compact-business .form-group {
    margin-bottom: 0.8rem;
}

.compact-business .input,
.compact-business .textarea {
    padding: 6px 10px;
    font-size: 0.85rem;
}

.compact-business .nav-item {
    padding: 8px 12px;
    font-size: 0.9rem;
}

.compact-business .dropdown-content a {
    padding: 6px 18px;
    font-size: 0.85rem;
}

/* Compact Hero Styles */
.compact-hero {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

.compact-hero .hero-content {
    margin-bottom: 1rem;
}

.compact-hero .hero-title {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.compact-hero .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.compact-hero .hero-description {
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.compact-hero .hero-buttons {
    gap: 0.5rem;
}

.compact-hero .hero-buttons a {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
}

.compact-hero .stats-grid {
    gap: 0.75rem;
}

.compact-hero .stat-card {
    padding: 0.8rem;
}

.compact-hero .advantages-grid {
    gap: 0.75rem;
}

.compact-hero .advantage-card {
    padding: 1rem;
}

/* Specific adjustments for index.html hero section */
.compact-hero .inline-flex.items-center.gap-2 {
    margin-bottom: 0.75rem;
    padding: 0.5rem 1rem;
}

.compact-hero .text-4xl.md\:text-5xl.lg\:text-6xl {
    font-size: 1.8rem;
}

.compact-hero .text-2xl.md\:text-3xl {
    font-size: 1.1rem;
}

.compact-hero .text-base {
    font-size: 0.85rem;
}

.compact-hero .px-8.py-3\.5 {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
}

.compact-hero .grid.lg\:grid-cols-3 {
    gap: 0.75rem;
}

.compact-hero .p-6 {
    padding: 0.8rem;
}

.compact-hero .grid.md\:grid-cols-2 {
    gap: 0.5rem;
}

.compact-hero .mb-6 {
    margin-bottom: 1rem;
}

.compact-hero .gap-4 {
    gap: 0.75rem;
}

.compact-hero .p-5 {
    padding: 1rem;
}

.compact-hero .text-lg {
    font-size: 1.1rem;
}

.compact-hero .text-xs {
    font-size: 0.75rem;
}

.compact-hero .text-sm {
    font-size: 0.8rem;
}

/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', "PingFang SC", "Microsoft YaHei", sans-serif;
}

body {
    color: #333;
    background-color: #f8f9fa;
    line-height: 1.6;
    padding-top: 80px;
}

a {
    text-decoration: none;
    color: #10B981;
}

.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Dropdown menu styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: block;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    background-color: white;
    min-width: 380px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-radius: 8px;
    overflow: visible;
    border: 1px solid #e8e8e8;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    transition-delay: 0s;
    transform: translateY(-10px);
    padding: 16px 0;
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-content a {
    color: #333;
    padding: 8px 24px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    transition: all 0.15s ease;
    line-height: 20px;
    white-space: nowrap;
}

.dropdown-content a i {
    margin-right: 8px;
    color: #999;
    font-size: 12px;
    width: 16px;
    text-align: center;
    transition: color 0.15s ease;
}

.dropdown-content > div, .dropdown-header {
    padding: 8px 24px 8px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-top: 8px;
    white-space: nowrap;
}

.dropdown-header:first-child {
    margin-top: 0;
}

.dropdown-content > div i, .dropdown-header i {
    margin-right: 8px;
    color: #10B981;
    font-size: 14px;
}

.dropdown-content a:hover {
    background-color: #f5f5f5;
    color: #10B981;
}

.dropdown-content a:hover i {
    color: #10B981;
}

/* Mobile nav dropdown icons */
.mobile-nav .dropdown-content a i {
    margin-right: 8px;
    color: #999;
    font-size: 12px;
    width: 16px;
    text-align: center;
}

.mobile-nav .dropdown-content > div i {
    margin-right: 8px;
    color: #10B981;
    font-size: 14px;
}

/* Dropdown hover with delay - keep menu open when hovering button or content */
.dropdown:hover .dropdown-content,
.dropdown-content:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0s;
}

/* Add delay when closing dropdown */
.dropdown-content {
    transition-delay: 0.4s;
}

.dropdown:hover .dropdown-content {
    transition-delay: 0s;
}

.dropdown:hover .dropbtn {
    color: #10B981;
}

/* Language switcher specific styles */
.language-switcher .dropdown-content {
    min-width: 180px;
    padding: 8px 0;
}

/* Add padding area to prevent gap between button and menu */
.dropdown-content::before {
    content: '';
    position: absolute;
    top: -16px;
    left: 0;
    right: 0;
    height: 16px;
    background: transparent;
}

/* Navbar scroll effect */
#navbar {
    transition: all 0.3s ease;
}

#navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    background-color: rgba(255, 255, 255, 0.98);
}

/* Tech button effects */
.tech-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.tech-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.25);
}

.tech-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: all 0.5s ease;
}

.tech-btn:hover::before {
    left: 100%;
}

/* Pulse animation */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

/* Color variables */
:root {
    --primary: #10B981;
    --secondary: #059669;
    --accent: #10B981;
    --dark: #1D2129;
    --light: #F2F3F5;
    --suanShu: #10B981;  /* SuanShu cloud specific green */
    --nocode: #10B981;   /* No-code identifier color */
    --lowcode: #059669;  /* Low-code identifier color */
    --fullcode: #10B981; /* Full-code identifier color */
}

.bg-primary {
    background-color: var(--primary);
}

.text-primary {
    color: var(--primary);
}

.border-primary {
    border-color: var(--primary);
}

.bg-accent {
    background-color: var(--accent);
}

.text-accent {
    color: var(--accent);
}

.text-dark {
    color: var(--dark);
}

/* Header styles */
.header {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 999;
}

.header-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo i {
    font-size: 24px;
    color: #10B981;
}

.logo span {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: #10B981;
}

.contact-btn {
    background-color: #10B981;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.contact-btn:hover {
    background-color: #059669;
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    padding: 60px 0;
    text-align: center;
    margin-bottom: 60px;
}

.hero h1 {
    font-size: 36px;
    color: #10B981;
    margin-bottom: 16px;
    font-weight: 700;
}

.hero p {
    font-size: 18px;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

/* Section title */
.section-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #10B981;
    display: inline-block;
}

/* Footer styles */
footer {
    background: linear-gradient(to right, #2c3e50, #1a2530);
    color: white;
    padding: 60px 0 20px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: #10B981;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column a {
    color: #b0b0b0;
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

.footer-column a:hover {
    color: white;
}

.footer-column a i {
    margin-right: 8px;
    width: 16px;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: #999;
    font-size: 14px;
}

/* QR float styles - mobile bottom fixed, desktop right float */
.qr-float {
    position: fixed;
    z-index: 50;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

/* Mobile - bottom center fixed */
@media (max-width: 767px) {
    .qr-float {
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: auto;
        max-width: 90vw;
    }
}

/* Desktop - right float */
@media (min-width: 768px) {
    .qr-float {
        right: 20px;
        top: 33.33%;
    }
    .qr-float:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    }
}

/* Hover lift effect */
.hover-lift {
    transform: translateY(0);
    transition: transform 0.3s ease;
}
.hover-lift:hover {
    transform: translateY(-3px);
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    width: 50px;
    height: 50px;
    background: #10B981;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.back-to-top:hover {
    background: #059669;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.back-to-top i {
    font-size: 20px;
}

/* Tab navigation */
.tab-nav {
    display: flex;
    border-bottom: 1px solid #f0f2f5;
    margin-bottom: 30px;
    overflow-x: auto;
}

.tab-item {
    padding: 16px 24px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: #666;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
    white-space: nowrap;
}

.tab-item i {
    margin-right: 8px;
}

.tab-item.active {
    border-bottom: 2px solid #10B981;
    color: #10B981;
    background: rgba(16, 185, 129, 0.03);
}

.tab-item:hover {
    color: #10B981;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Development mode tags */
.dev-mode {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    margin-left: 8px;
}

.dev-mode.nocode {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10B981;
    border: 1px solid #10B981;
}

.dev-mode.lowcode {
    background-color: rgba(5, 150, 105, 0.1);
    color: #059669;
    border: 1px solid #059669;
    min-width: 55px;
}

.dev-mode.fullcode {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10B981;
    border: 1px solid #10B981;
}

/* Development mode explainer block */
.dev-mode-explainer {
    background: #f7f9fc;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0 40px;
    border-left: 4px solid #10B981;
}

.dev-mode-explainer h3 {
    font-size: 18px;
    color: #1D2129;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dev-mode-explainer h3 i {
    color: #10B981;
}

.mode-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

.mode-type {
    background: white;
    border-radius: 6px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.mode-type h4 {
    font-size: 16px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mode-type p {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.mode-type ul {
    font-size: 13px;
    color: #666;
    padding-left: 20px;
}

.mode-type ul li {
    margin-bottom: 4px;
}

/* Table styles */
.compare-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    margin-bottom: 30px;
}

.compare-table th {
    background: #f7f9fc;
    padding: 14px 16px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: #1D2129;
    border-bottom: 1px solid #f0f2f5;
}

.compare-table td {
    padding: 14px 16px;
    font-size: 13px;
    color: #333;
    border-bottom: 1px solid #f0f2f5;
}

.compare-table tr:last-child td {
    border-bottom: none;
}

.compare-table tr:hover {
    background: #fafbff;
}

.platform-name {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.platform-name i {
    font-size: 16px;
}

.platform-name-minWidth {
    min-width: 70px;
}

.value-platform-header {
    text-align: center !important;
}

/* SuanShu highlight styles */
.suanShu-row {
    background: rgba(0, 180, 42, 0.08) !important;
    border-left: 4px solid #10B981;
}

.suanShu-row:hover {
    background: rgba(0, 180, 42, 0.12) !important;
}

.suanShu-name {
    color: #10B981;
    font-weight: 700;
}

.suanShu-badge {
    display: inline-block;
    background: #10B981;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-left: 8px;
}

/* Card styles */
.scene-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    padding: 24px;
    margin-bottom: 24px;
    transition: transform 0.3s;
}

.scene-card:hover {
    transform: translateY(-4px);
}

.scene-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1D2129;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.scene-card h3 i {
    font-size: 20px;
}

.scene-item {
    margin-bottom: 12px;
    font-size: 14px;
    color: #333;
}

.scene-item strong {
    color: #1D2129;
}

/* SuanShu advantage card */
.suanShu-advantage {
    background: linear-gradient(135deg, #f0fff4 0%, #e6fffa 100%);
    border: 1px solid #10B981;
}

.suanShu-advantage h3 {
    color: #10B981;
}

.suanShu-advantage h3 i {
    color: #10B981;
}

.advantage-list {
    margin-top: 16px;
}

.advantage-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
}

.advantage-item i {
    color: #10B981;
    font-size: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Agent card */
.agent-card {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-radius: 8px;
    padding: 30px;
    margin: 40px 0;
}

.agent-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #10B981;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.agent-card h3 i {
    font-size: 24px;
}

.agent-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.agent-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.agent-item i {
    color: #10B981;
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.agent-item p {
    font-size: 14px;
    color: #333;
}

.contact-info {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(16, 185, 129, 0.1);
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.contact-info .phone {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #10B981;
}

.contact-info .btn {
    background: #10B981;
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.contact-info .btn:hover {
    background: #059669;
    color: #fff;
}

.suanShu-btn {
    background: #10B981 !important;
}

.suanShu-btn:hover {
    background: #059669 !important;
}

/* Timeline styles */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 48px auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background-color: #10B981;
    opacity: 0.2;
}

.timeline-item {
    margin-bottom: 48px;
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-content {
    width: 45%;
    padding: 24px;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.timeline-item:nth-child(odd) .timeline-content {
    float: left;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    float: right;
    text-align: left;
}

.timeline-date {
    font-size: 20px;
    font-weight: 700;
}