/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

:root {
    --primary-gradient: linear-gradient(135deg, #0396FF 0%, #0D47A1 100%);
    --secondary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --primary-color: #0396FF;
    --text-color: #333;
    --light-gray: #f5f5f7;
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

body {
    background-color: var(--light-gray);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Header and Navigation */
header {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.main-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Main Content */
main {
    margin-top: 80px;
    padding: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 2rem 0;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    margin-bottom: 2rem;
}

/* Tool Container */
.tool-container {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

/* Tab按钮基础样式 */
.tab-btn {
    position: relative;  /* 添加相对定位 */
    padding: 10px 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1rem;
    color: #666;
    opacity: 0.7;
    transition: all 0.3s ease;
    border-radius: 5px;
    z-index: 1;  /* 确保文字在上层 */
}

/* Tab按钮选中状态 */
.tab-btn.active {
    background-color: #007bff;
    color: #ffffff !important;  /* 强制使用白色，并确保优先级 */
    opacity: 1;
    border-radius: 5px;
    z-index: 2;  /* 确保选中状态在最上层 */
}

/* Tab按钮悬停状态 */
.tab-btn:hover {
    opacity: 1;
}

/* Input Groups */
.input-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: stretch;
}

.main-input {
    flex: 1;
    padding: 1rem 1.2rem;
    font-size: 1rem;
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    height: 3.5rem;
}

.main-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(3, 150, 255, 0.1);
}

.main-input::placeholder {
    color: #999;
}

/* iFrame Options */
.iframe-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.option-input {
    padding: 0.5rem;
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
}

/* Buttons */
.action-btn {
    background: var(--primary-gradient);
    color: white;
    padding: 0 2rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(3, 150, 255, 0.2);
}

.action-btn:active {
    transform: translateY(0);
}

.secondary-btn {
    background: white;
    color: var(--text-color);
    border: 2px solid var(--light-gray);
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.secondary-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Results Container */
.results-container {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--light-gray);
}

.results-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.results-list {
    background: var(--light-gray);
    border-radius: var(--border-radius);
    padding: 1rem;
    min-height: 200px;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.feature-card i {
    font-size: 2rem;
    margin-bottom: 1rem;
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* How It Works Section */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.step {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: var(--border-radius);
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin: 0 auto 1rem;
}

/* Footer */
footer {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding: 2rem calc(50vw - 50%);
    background: #fff;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--light-gray);
    text-align: center;
    color: #666;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-color);
    transition: var(--transition);
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .hero {
        padding: 1rem 0;
    }

    .hero h1 {
        margin: 0.5rem 0;
        font-size: 1.5rem;
    }

    .results-actions {
        flex-wrap: wrap;
    }

    .secondary-btn {
        width: 100%;
    }

    .hero .subtitle {
        display: none;
    }
}

/* Tab Content */
.tab-content {
    display: none;
    padding: 2rem;
}

.tab-content.active {
    display: block;
}

.tab-content h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--light-gray);
}

.helper-text {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.8rem;
    padding-left: 0.2rem;
    line-height: 1.4;
}

/* Results 标题样式 */
.results-title {
    color: #007bff;
    font-size: 1.75rem;  /* H3 大小 */
    margin-bottom: 1rem;
}

/* Found x-x iFrames 文本样式 */
.results-count {  /* 修改为正确的类名 */
    font-size: 1.25rem !important;  /* H5 大小，添加 !important 确保生效 */
    color: #007bff;  /* 保持蓝色 */
    margin: 1rem 0;
    display: block;
} 