/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header styles */
header {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-direction: row;
    color: var(--theme-main-color);
}

.logo img {
    width: 1.5rem;
    height: 1.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: #4b5563;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    line-height: 36px;
}

.nav-links a:hover {
    color: #128c7e;
}

/* Main content */
main {
    min-height: calc(100vh - 140px); /* Accounting for header and footer */
    padding: 2rem 0;
}

/* Hero section */
.hero {
    text-align: center;
    padding: 4rem 1rem;
    background: linear-gradient(to bottom, #ffffff, #f8fafc);
}

.hero h1 {
    font-size: 3rem;
    color: #1e293b;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    color: #64748b;
    margin-bottom: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: #128c7e;
    color: white;
}

.btn-primary:hover {
    background-color: #0a7c6e;
}

/* Features section */
.features {
    padding: 4rem 0;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card h3 {
    color: #1e293b;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #64748b;
}

/* Forms */
.form-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #4b5563;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    font-size: 1rem;
}

.form-input:focus {
    outline: none;
    border-color: #128c7e;
    ring: 2px solid rgba(18, 140, 126, 0.2);
}

/* Google Sign-in Button */
.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.75rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    font-weight: 500;
    color: #4b5563;
    transition: background-color 0.2s ease;
}

.google-btn:hover {
    background-color: #f8fafc;
}

.google-btn img {
    margin-right: 0.75rem;
    width: 1.5rem;
    height: 1.5rem;
}

/* Dashboard */
.dashboard {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    padding: 2rem;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.usage-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.usage-card {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 0.375rem;
    text-align: center;
}

/* Footer */
footer {
    background-color: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 2rem 0;
    text-align: center;
    color: #6b7280;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        padding: 1rem;
    }

    .nav-links {
        margin-top: 1rem;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .features {
        grid-template-columns: 1fr;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.hidden { display: none; }

/* Alert Messages */
.alert {
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #e8f5f3;
    color: #128c7e;
    border: 1px solid #128c7e;
}

.alert-error {
    background-color: #fff3e6;
    color: #fc8c14;
    border: 1px solid #fc8c14;
}

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.loading::after {
    content: "";
    position: absolute;
    top: calc(50% - 0.5rem);
    left: calc(50% - 0.5rem);
    width: 1rem;
    height: 1rem;
    border: 2px solid #e5e7eb;
    border-top-color: #128c7e;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Tooltips */
[data-tooltip] {
    position: relative;
}

[data-tooltip]:before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem;
    background: #1e293b;
    color: white;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

[data-tooltip]:hover:before {
    opacity: 1;
    visibility: visible;
}

/* Flexbox utilities */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }

/* Width utilities */
.w-full { width: 100%; }
.w-6 { width: 1.5rem; }
.max-w-md { max-width: 28rem; }

/* Height utilities */
.h-6 { height: 1.5rem; }

/* Margin utilities */
.mx-auto { margin-left: auto; margin-right: auto; }
.mr-2 { margin-right: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

/* Padding utilities */
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }

/* Text utilities */
.text-center { text-align: center; }
.text-4xl { font-size: 2.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-xl { font-size: 1.25rem; }
.font-bold { font-weight: 700; }
.text-gray-700 { color: #374151; }

/* Background utilities */
.bg-white { background-color: #ffffff; }
.bg-blue-500 { background-color: #2563eb; }
.bg-gray-50 { background-color: #f9fafb; }

/* Border utilities */
.border { border-width: 1px; }
.border-gray-300 { border-color: #d1d5db; }
.rounded-lg { border-radius: 0.5rem; }

/* Shadow utilities */
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }

/* Hover utilities */
.hover\:bg-blue-600:hover { background-color: #2563eb; }
.hover\:bg-gray-50:hover { background-color: #f9fafb; }

/* Grid utilities */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.gap-8 { gap: 2rem; }

@media (min-width: 768px) {
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Text colors */
.text-white { color: #ffffff; }

/* Pricing specific styles */
.scale-105 {
    transform: scale(1.05);
}

.space-y-4 > * + * {
    margin-top: 1rem;
}

.text-green-500 {
    color: #10b981;
}

.border-blue-500 {
    border-color: #2563eb;
}

.text-gray-600 {
    color: #4b5563;
}

.w-5 {
    width: 1.25rem;
}

.h-5 {
    height: 1.25rem;
}

.max-w-6xl {
    max-width: 72rem;
}

.transition-colors {
    transition-property: background-color, border-color, color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.absolute {
    position: absolute;
}

.top-0 {
    top: 0;
}

.right-0 {
    right: 0;
}

.rounded-bl-lg {
    border-bottom-left-radius: 0.5rem;
}

.transform {
    transform: translateX(0) translateY(0) rotate(0) skewX(0) skewY(0) scaleX(1) scaleY(1);
}

/* Login Page Styles */
.login-container {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f6f9fc 0%, #ffffff 100%);
}

.login-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease;
    max-width: 400px;
    width: 90%;
    padding: 2rem;
}

.google-signin-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.875rem 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    background-color: white;
    color: #128c7e;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.google-signin-button:hover {
    background-color: #e8f5f3;
    border-color: #128c7e;
}

.google-signin-button img {
    width: 1.5rem;
    height: 1.5rem;
    margin-right: 0.75rem;
}

/* Pricing Page Styles */
.pricing-header {
    text-align: center;
    padding: 3rem 1rem;
    background: linear-gradient(135deg, #f6f9fc 0%, #ffffff 100%);
}

.pricing-title {
    font-size: 2.5rem;
    color: #1a202c;
    margin-bottom: 1rem;
    font-weight: 700;
}

.pricing-description {
    color: #4a5568;
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.pricing-card.popular {
    border: 2px solid #128c7e;
    transform: scale(1.05);
}

.popular-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #128c7e;
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 0 0 0 0.5rem;
    font-size: 0.875rem;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1rem;
}

.plan-price {
    font-size: 3rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1.5rem;
}

.plan-price span {
    font-size: 1.25rem;
    font-weight: 400;
    color: #718096;
}

.feature-list {
    margin: 1.5rem 0;
    flex-grow: 1;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: #4a5568;
}

.feature-icon {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    color: #128c7e;
}

.plan-button {
    display: block;
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: #fc8c14;
    color: white;
    text-align: center;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.plan-button:hover {
    background: #e67d0e;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .pricing-card.popular {
        transform: none;
    }

    .pricing-title {
        font-size: 2rem;
    }

    .plan-price {
        font-size: 2.5rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pricing-card {
    animation: fadeIn 0.5s ease-out;
}

/* Hover Effects */
.pricing-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-5px);
}

/* 导航栏用户菜单样式 */
.nav-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-menu {
    position: relative;
}

.user-menu-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border: none;
    background: none;
    cursor: pointer;
    color: #4b5563;
    font-size: 0.875rem;
    border-radius: 0.375rem;
    transition: all 0.2s;
}

.user-menu-trigger:hover {
    background-color: #e8f5f3;
    color: #128c7e;
}

.user-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    object-fit: cover;
}

.user-dropdown {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 0.5rem;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
}

.user-menu.active .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    color: #4b5563;
    text-decoration: none;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background-color: #e8f5f3;
    color: #128c7e;
}

.dropdown-divider {
    margin: 0.5rem 0;
    border: none;
    border-top: 1px solid #e5e7eb;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .nav-user {
        width: 100%;
        justify-content: center;
    }

    .user-dropdown {
        width: 100%;
        position: static;
        box-shadow: none;
        border: 1px solid #e5e7eb;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-dropdown {
    animation: fadeIn 0.2s ease-out;
}

/* 链接颜色 */
a {
    color: #128c7e;
}

a:hover {
    color: #0a7c6e;
}

/* 文字强调色 */
.text-primary {
    color: #128c7e;
}

.text-secondary {
    color: #fc8c14;
}

.g_id_signin{
    display: flex;
    justify-content: center;
}