/* Sogou Official Clean Style */
:root {
    --so-orange: #FF5C00;
    --so-orange-hover: #FF7A33;
    --so-dark: #333333;
    --so-gray: #666666;
    --so-light-gray: #F7F8FA;
    --so-border: #E5E5E5;
}

body {
    margin: 0;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--so-dark);
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: color 0.2s; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; position: relative; }

/* Navbar */
.so-nav {
    height: 70px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-inner {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.so-logo {
    font-size: 26px;
    color: var(--so-orange);
    font-weight: bold;
    display: flex; align-items: center; gap: 5px;
}

.nav-menu { display: flex; gap: 40px; }
.nav-item { font-size: 16px; color: var(--so-dark); padding: 22px 0; border-bottom: 2px solid transparent; }
.nav-item:hover, .nav-item.active { color: var(--so-orange); border-bottom-color: var(--so-orange); }

.nav-search {
    width: 20px; height: 20px;
    border: 2px solid var(--so-gray);
    border-radius: 50%;
    position: relative;
    cursor: pointer;
}
.nav-search::after {
    content: ''; position: absolute;
    top: 14px; left: 14px;
    width: 8px; height: 2px;
    background: var(--so-gray);
    transform: rotate(45deg);
}

/* Hero Section */
.so-hero {
    padding: 80px 0 60px;
    background: #fff;
    overflow: hidden;
}

.hero-wrapper { display: flex; align-items: center; justify-content: space-between; }

.hero-txt h1 {
    font-size: 56px;
    line-height: 1.1;
    margin-bottom: 24px;
    color: #222;
}

.hero-txt p {
    font-size: 20px;
    color: var(--so-gray);
    margin-bottom: 40px;
    font-weight: 300;
}

.dl-btn-group { display: flex; gap: 16px; }

.btn-so-primary {
    background: var(--so-orange);
    color: #fff;
    padding: 12px 36px;
    border-radius: 4px;
    font-size: 18px;
    display: flex; align-items: center; gap: 8px;
}
.btn-so-primary:hover { background: var(--so-orange-hover); }

.btn-qr {
    width: 48px; height: 48px;
    border: 1px solid var(--so-border);
    border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    position: relative;
}
.btn-qr:hover .qr-popup { display: block; }

.qr-popup {
    display: none;
    position: absolute;
    bottom: 60px; left: 50%; transform: translateX(-50%);
    width: 150px; height: 150px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 10px;
    text-align: center;
}
.qr-popup::after {
    content: ''; position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%) rotate(45deg);
    width: 12px; height: 12px; background: #fff; box-shadow: 2px 2px 2px rgba(0,0,0,0.05);
}

/* CSS Phone Mockup */
.phone-mockup {
    width: 320px; height: 640px;
    background: #fff;
    border: 12px solid #333;
    border-radius: 40px;
    position: relative;
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
    overflow: hidden;
}
.phone-notch {
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 120px; height: 24px;
    background: #333;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    z-index: 10;
}

.chat-screen {
    padding: 40px 15px 15px;
    background: #F2F2F2;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.msg-bubble {
    padding: 10px 15px;
    border-radius: 12px;
    font-size: 14px;
    margin-bottom: 15px;
    max-width: 80%;
    position: relative;
}
.msg-left { background: #fff; align-self: flex-start; border-top-left-radius: 2px; }
.msg-right { background: #95EC69; align-self: flex-end; border-top-right-radius: 2px; }

.so-keyboard {
    position: absolute; bottom: 0; left: 0; width: 100%;
    background: #f0f0f0;
    padding: 10px 5px 20px;
}
.kb-row { display: flex; justify-content: center; gap: 4px; margin-bottom: 6px; }
.kb-key {
    width: 28px; height: 40px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    font-weight: 500;
}
.kb-key.special { background: #dcdcdc; font-size: 12px; }
.kb-key.space { width: 150px; }
.kb-key.enter { background: var(--so-orange); color: #fff; width: 50px; }

/* Features Section */
.so-features { background: var(--so-light-gray); padding: 80px 0; }
.sec-title { text-align: center; font-size: 32px; margin-bottom: 60px; font-weight: 600; }

.feat-tabs { display: flex; justify-content: center; gap: 50px; margin-bottom: 50px; }
.feat-tab { font-size: 18px; color: var(--so-gray); cursor: pointer; padding-bottom: 10px; border-bottom: 3px solid transparent; }
.feat-tab.active { color: var(--so-orange); border-bottom-color: var(--so-orange); font-weight: bold; }

.feat-content { display: flex; align-items: center; justify-content: center; gap: 60px; }
.fc-text { max-width: 400px; }
.fc-text h3 { font-size: 28px; margin-bottom: 20px; color: #333; }
.fc-text p { font-size: 16px; color: #666; line-height: 1.8; }
.fc-link { color: var(--so-orange); font-weight: bold; display: inline-flex; align-items: center; margin-top: 20px; }
.fc-link::after { content: '→'; margin-left: 5px; transition: margin 0.2s; }
.fc-link:hover::after { margin-left: 10px; }

.fc-img-placeholder {
    width: 400px; height: 300px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
    display: flex; align-items: center; justify-content: center;
    font-size: 60px; color: #eee;
}

/* Download Grid */
.so-dl-sec { padding: 80px 0; }
.dl-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.dl-card {
    flex: 1;
    text-align: center;
    padding: 40px 20px;
    border: 1px solid var(--so-border);
    border-radius: 8px;
    transition: all 0.3s;
}
.dl-card:hover { border-color: var(--so-orange); box-shadow: 0 10px 30px rgba(255, 92, 0, 0.1); }

.dl-icon-circle {
    width: 80px; height: 80px;
    background: var(--so-light-gray);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: 36px;
    color: #555;
    transition: all 0.3s;
}
.dl-card:hover .dl-icon-circle { background: var(--so-orange); color: #fff; }

.dl-title { font-size: 18px; font-weight: bold; margin-bottom: 10px; }
.dl-desc { font-size: 14px; color: #999; margin-bottom: 20px; }
.btn-dl-outline {
    border: 1px solid var(--so-orange);
    color: var(--so-orange);
    padding: 8px 24px;
    border-radius: 20px;
    font-size: 14px;
    display: inline-block;
}
.btn-dl-outline:hover { background: var(--so-orange); color: #fff; }

/* Footer */
.so-footer { background: #f8f8f8; padding: 60px 0; font-size: 14px; color: #666; }
.ft-flex { display: flex; justify-content: space-between; padding-bottom: 40px; border-bottom: 1px solid #e5e5e5; }
.ft-links h4 { color: #333; margin-bottom: 20px; }
.ft-links a { display: block; margin-bottom: 10px; color: #888; }
.ft-links a:hover { color: var(--so-orange); }
.ft-btm { padding-top: 20px; text-align: center; color: #999; }
