/* Common CSS styles for MiCount website */
/* 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: #00B42A;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Dropdown menu styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    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: hidden;
    border: 1px solid #e8e8e8;
    transition: all 0.2s ease;
    animation: dropdownSlide 0.2s ease-out;
    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;
}

.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;
}

.dropdown-header:first-child {
    margin-top: 0;
}

.dropdown-content > div i, .dropdown-header i {
    margin-right: 8px;
    color: #00B42A;
    font-size: 14px;
}

.dropdown-content a:hover {
    background-color: #f5f5f5;
    color: #00B42A;
}

.dropdown-content a:hover i {
    color: #00B42A;
}

/* 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: #00B42A;
    font-size: 14px;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown:hover .dropbtn {
    color: #00B42A;
}

/* 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(22, 93, 255, 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: #00B42A;
    --secondary: #36CFC9;
    --accent: #FF7D00;
    --dark: #1D2129;
    --light: #F2F3F5;
    --suanShu: #00B42A;  /* SuanShu cloud specific green */
    --nocode: #4285F4;   /* No-code identifier color */
    --lowcode: #34A853;  /* Low-code identifier color */
    --fullcode: #FBBC05; /* 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: #00B42A;
}

.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: #00B42A;
}

.contact-btn {
    background-color: #00B42A;
    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: #0f4bdb;
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, #f0f5ff 0%, #e6f0ff 100%);
    padding: 60px 0;
    text-align: center;
    margin-bottom: 60px;
}

.hero h1 {
    font-size: 36px;
    color: #00B42A;
    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 #00B42A;
    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: 1200px;
    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: #00B42A;
}

.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: #00B42A;
    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: #009A23;
    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 #00B42A;
    color: #00B42A;
    background: rgba(22, 93, 255, 0.03);
}

.tab-item:hover {
    color: #00B42A;
}

.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(66, 133, 244, 0.1);
    color: #4285F4;
    border: 1px solid #4285F4;
}

.dev-mode.lowcode {
    background-color: rgba(52, 168, 83, 0.1);
    color: #34A853;
    border: 1px solid #34A853;
    min-width: 55px;
}

.dev-mode.fullcode {
    background-color: rgba(251, 188, 5, 0.1);
    color: #FBBC05;
    border: 1px solid #FBBC05;
}

/* Development mode explainer block */
.dev-mode-explainer {
    background: #f7f9fc;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0 40px;
    border-left: 4px solid #00B42A;
}

.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: #00B42A;
}

.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 #00B42A;
}

.suanShu-row:hover {
    background: rgba(0, 180, 42, 0.12) !important;
}

.suanShu-name {
    color: #00B42A;
    font-weight: 700;
}

.suanShu-badge {
    display: inline-block;
    background: #00B42A;
    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 #00B42A;
}

.suanShu-advantage h3 {
    color: #00B42A;
}

.suanShu-advantage h3 i {
    color: #00B42A;
}

.advantage-list {
    margin-top: 16px;
}

.advantage-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
}

.advantage-item i {
    color: #00B42A;
    font-size: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Agent card */
.agent-card {
    background: linear-gradient(135deg, #e8f0fe 0%, #f0f5ff 100%);
    border-radius: 8px;
    padding: 30px;
    margin: 40px 0;
}

.agent-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #00B42A;
    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: #00B42A;
    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(22, 93, 255, 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: #00B42A;
}

.contact-info .btn {
    background: #00B42A;
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.contact-info .btn:hover {
    background: #0E42D2;
    color: #fff;
}

.suanShu-btn {
    background: #00B42A !important;
}

.suanShu-btn:hover {
    background: #009A23 !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: #00B42A;
    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;
}