/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

/* 使用 main.css 中的主题变量 */
body.theme-light {
    color: var(--text-primary);
    background-color: var(--background-gray-main);
}

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    background-color: var(--background-nav);
    border-bottom: 1px solid var(--border-primary);
    z-index: 1000;
    padding: 0 24px;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-left {
    display: flex;
    align-items: center;
}

.logo {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    color: currentColor;
}

.nav-center {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* 导航菜单链接（功能和价格） */
.nav-menu-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: color 0.2s;
    font-family: -apple-system, BlinkMacSystemFont, 'Microsoft YaHei', '微软雅黑', 'PingFang SC', 'Hiragino Sans GB', 'Source Han Sans CN', 'Noto Sans CJK SC', 'WenQuanYi Micro Hei', sans-serif;
}

.nav-menu-link:hover {
    color: var(--color-primary);
}

/* 登录按钮 */
.nav-login-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.2s;
    font-family: -apple-system, BlinkMacSystemFont, 'Microsoft YaHei', '微软雅黑', 'PingFang SC', 'Hiragino Sans GB', 'Source Han Sans CN', 'Noto Sans CJK SC', 'WenQuanYi Micro Hei', sans-serif;
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid #999999;
    position: relative;
    overflow: hidden;
}

.nav-login-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: transparent;
    transition: background-color 0.2s;
    z-index: 0;
}

.nav-login-link:hover::before {
    background-color: var(--background-hover);
}

.nav-login-link:hover {
    color: var(--text-primary);
    border-color: #999999;
}

.nav-login-link > * {
    position: relative;
    z-index: 1;
}

/* 注册按钮 */
.nav-register-button {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid #999999;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.nav-register-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: transparent;
    transition: background-color 0.2s;
    z-index: 0;
}

.nav-register-button:hover::before {
    background-color: var(--background-hover);
}

.nav-register-button:hover {
    border-color: #999999;
}

.nav-register-button > * {
    position: relative;
    z-index: 1;
}

/* Main Content - Override for portal page (no sidebar, vertical layout) */
.main-content {
    flex: 1; /* 占据剩余空间 */
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: 64px;
}

.hero-container {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 32px;
    color: #1a1a1a;
    line-height: 1.2;
}

.search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    padding: 16px 56px 16px 20px;
    font-size: 16px;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    outline: none;
    transition: border-color 0.2s;
    background-color: #ffffff;
}

.search-input:focus {
    border-color: #0066cc;
}

.search-button {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.search-button:hover {
    color: #0066cc;
}

/* Quick Actions */
.quick-actions {
    margin-bottom: 64px;
}

.actions-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background-color: #f5f5f5;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    cursor: pointer;
    transition: all 0.2s;
}

.action-btn:hover {
    background-color: #e5e5e5;
    border-color: #d0d0d0;
}

.action-icon {
    font-size: 18px;
}

/* Features Section */
.features-section {
    margin-bottom: 96px;
}

.features-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.feature-card {
    padding: 24px;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    background-color: #ffffff;
    transition: all 0.2s;
    cursor: pointer;
}

.feature-card:hover {
    border-color: #0066cc;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.1);
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 32px;
    margin-bottom: 12px;
    display: block;
}

.feature-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.feature-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.load-more-btn {
    display: block;
    margin: 32px auto 0;
    padding: 12px 24px;
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    cursor: pointer;
    transition: all 0.2s;
}

.load-more-btn:hover {
    background-color: #f5f5f5;
    border-color: #d0d0d0;
}

/* Tagline Section */
.tagline-section {
    text-align: center;
    margin-bottom: 96px;
}

.tagline-container {
    max-width: 800px;
    margin: 0 auto;
}

.tagline-title {
    font-size: 64px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.1;
}

/* Footer */
.footer {
    background-color: #f9f9f9;
    border-top: 1px solid #e5e5e5;
    padding: 64px 24px 24px;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 48px;
    margin-bottom: 48px;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1a1a1a;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #0066cc;
}

.footer-bottom {
    border-top: 1px solid #e5e5e5;
    padding-top: 24px;
}

.footer-bottom-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    font-size: 14px;
    color: #666;
}

.footer-lang {
    display: flex;
    align-items: center;
}

.lang-select {
    padding: 8px 12px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    font-size: 14px;
    background-color: #ffffff;
    color: #1a1a1a;
    cursor: pointer;
    outline: none;
}

.lang-select:hover {
    border-color: #d0d0d0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-wrap: wrap;
        height: auto;
        padding: 16px 0;
    }

    .nav-center {
        display: none;
    }

    .hero-title {
        font-size: 32px;
    }

    .tagline-title {
        font-size: 40px;
    }

    .features-container {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .footer-bottom-container {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 24px 16px;
    }

    .hero-title {
        font-size: 28px;
    }

    .search-input {
        padding: 12px 48px 12px 16px;
        font-size: 14px;
    }

    .actions-container {
        gap: 8px;
    }

    .action-btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }
}
