/* style.css 完整文件 */
:root {
    --bg-color: #ffffff;
    --text-color: #212529;
    --card-bg: #ffffff;
    --link-color: #0d6efd;
    --border-color: #dee2e6;
    --footer-bg: #f8f9fa;
    --footer-text: #6c757d;
    --btn-bg: #f8f9fa;
    --btn-border: #f8f9fa;
    --btn-text: #212529;
}

[data-theme="dark"] {
    --bg-color: #1a1a1a;
    --text-color: #e0e0e0;
    --card-bg: #2d2d2d;
    --link-color: #79b8ff;
    --border-color: #404040;
    --footer-bg: #2d2d2d;
    --footer-text: #b0b0b0;
    --btn-bg: #3a3a3a;
    --btn-border: #4d4d4d;
    --btn-text: #e0e0e0;
}

/* 基础样式 */
body {
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
}

a {
    color: var(--link-color);
}

/* 导航栏 */
.navbar-nav .nav-link {
    padding: 0.5rem 1rem !important;
}

/* Logo 容器 */
.logo-container {
    width: min(580px, 90%);
    margin: 0 auto 30px;
    position: relative;
}

.logo-container img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* 响应式图片 */
.responsive-img {
    width: 100%;
    height: auto;
    max-width: 600px;
    display: block;
    margin: 0 auto;
}

/* 搜索框样式 */
.google-style-search {
    width: min(584px, 90%);
    position: relative;
}

.search-container {
    height: 44px;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    transition: all 0.3s;
}

.search-container:hover {
    box-shadow: 0 1px 6px rgba(32,33,36,.28);
}

.search-icon {
    width: 20px;
    height: 20px;
    fill: #9aa0a6;
    margin-right: 12px;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    background: transparent;
    padding: 8px 0;
    color: var(--text-color);
}

/* 按钮样式 */
.google-btn {
    background-color: var(--btn-bg);
    border: 1px solid var(--btn-border);
    border-radius: 4px;
    color: var(--btn-text);
    font-size: 14px;
    padding: 0 16px;
    height: 36px;
    min-width: 120px;
    transition: all 0.3s;
}

.google-btn:hover {
    filter: brightness(1.15);
}

/* 页脚样式 */
footer {
    background-color: var(--footer-bg) !important;
    color: var(--footer-text);
    transition: background-color 0.3s, color 0.3s;
}

footer a {
    color: var(--footer-text);
    opacity: 0.8;
}

footer a:hover {
    opacity: 1;
    text-decoration: none;
}

/* 主题切换按钮 */
.theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .logo-container {
        width: 80%;
        max-width: 400px;
    }
    
    .responsive-img {
        max-width: 80%;
    }

    .goolugoolu-logo text {
        font-size: 60px;
    }
}

@media (max-width: 480px) {
    .logo-container {
        width: 95%;
        margin-bottom: 15px;
    }

    .responsive-img {
        max-width: 95%;
    }
}

/* 卡片样式 */
.card {
    background-color: var(--card-bg);
    border-color: var(--border-color);
    transition: all 0.3s;
}

.feature-item {
    padding: 1.5rem;
    border-radius: 1rem;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    background-color: rgba(248, 249, 250, 0.1);
}