html,
body {
    height: 100%;
    width: 100%;
}

* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: "Roboto", "SF Pro SC", "SF Pro Display", "SF Pro Icons", "PingFang SC", BlinkMacSystemFont, -apple-system, "Segoe UI", "Microsoft Yahei", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
    font-weight: 400;
    margin: 0;
    color: #333;
    line-height: 1.6;
}

a {
    -webkit-transition: all 0.35s;
    -moz-transition: all 0.35s;
    transition: all 0.35s;
    color: #474157;
}

a:hover,
a:focus {
    color: #474157;
}

hr {
    max-width: 100px;
    margin: 25px auto 0;
    border-width: 1px;
    border-color: rgba(34, 34, 34, 0.1);
}

hr.light {
    border-color: white;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 200;
    letter-spacing: 1px;
}

p {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* ===== 亮色醒目主题 ===== */
/* 主色：活力橙红 搭配 阳光黄 */
:root {
    --primary: #ff5f6d;
    --primary-dark: #ff9966;
    --accent: #ffc371;
    --gradient: linear-gradient(135deg, #ff5f6d 0%, #ffc371 100%);
    --link: #ff5f6d;
}

/* 首页样式 */
.hero {
    background: linear-gradient(135deg, #ff5f6d 0%, #ffc371 100%);
    color: #fff;
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
}

/* 背景装饰圆点 */
.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    z-index: 0;
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero::before {
    width: 300px;
    height: 300px;
    top: -80px;
    left: -80px;
}

.hero::after {
    width: 200px;
    height: 200px;
    bottom: -60px;
    right: 0;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.hero .subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.97;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.hero .highlight {
    background: rgba(255, 255, 255, 0.25);
    padding: 2px 8px;
    border-radius: 4px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
    position: relative;
    z-index: 2;
}

.hero-btn {
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    border: 2px solid transparent;
    cursor: pointer;
    display: inline-block;
}

.hero-btn-primary {
    background: #fff;
    color: #ff5f6d;
    border-color: #fff;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.hero-btn-primary:hover {
    background: #ffe8e8;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.hero-btn-secondary {
    background: 0 0;
    color: #fff;
    border-color: #fff;
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.dropdown {
    position: relative;
    z-index: 20;
}

.dropdown-menu {
    min-width: 200px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    border: none;
    margin-top: 10px;
    background: #fff;
    position: absolute;
    z-index: 1000;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    /* 亮色主题下文字为深色 */
    color: #333;
}

.open .dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    display: block;
    transition: all 0.3s;
}

.dropdown-menu li a:hover {
    background: #fff5f5;
    color: #ff5f6d;
}

.hero-btn .caret {
    margin-left: 5px;
}

.modal-content {
    border-radius: 12px;
    border: none;
}

.modal-header {
    border-bottom: 1px solid #f0f0f0;
    padding: 20px 30px;
}

.modal-body {
    padding: 30px;
    text-align: center;
    font-size: 18px;
}

.modal-body .phone {
    font-size: 24px;
    color: #ff5f6d;
    font-weight: 600;
    margin: 20px 0;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 60px;
    color: #2c3e50;
    position: relative;
}

.section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: var(--gradient);
    border-radius: 4px;
    margin: 15px auto 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 技术栈 */
.tech-stack {
    background: #fff9f4;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.tech-item {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(255, 95, 109, 0.08);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 4px solid #ff5f6d;
}

.tech-item:nth-child(2) {
    border-top-color: #ff9966;
}

.tech-item:nth-child(3) {
    border-top-color: #ffc371;
}

.tech-item:nth-child(4) {
    border-top-color: #ffb347;
}

.tech-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 95, 109, 0.15);
}

.tech-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #ff5f6d;
    font-weight: 600;
}

.tech-item p {
    color: #666;
    font-size: 14px;
}

/* 功能特性 */
.features {
    background: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(255, 95, 109, 0.08);
    padding: 30px;
    transition: all 0.3s ease;
    border: 1px solid #ffe8e0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.feature-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    width: 100%;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(255, 95, 109, 0.18);
}

.feature-icon {
    font-size: 28px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    color: #fff;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(255, 95, 109, 0.3);
}

.feature-content {
    flex: 1;
}

.feature-content h4 {
    font-size: 20px;
    margin: 0;
    color: #2c3e50;
    font-weight: 600;
}

.feature-content .feature-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: #ff5f6d;
    background: #ffe8e0;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
    vertical-align: middle;
}

.feature-content ul {
    list-style: none;
    padding-left: 0;
    margin-top: 10px;
    width: 100%;
}

.feature-content ul li {
    padding: 8px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    position: relative;
    padding-left: 25px;
}

.feature-content ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 8px;
    color: #ff5f6d;
    font-weight: 700;
    background: #ffe8e0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

/* 截图展示 */
.screenshots {
    background: #fff9f4;
}

.screenshot-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.screenshot-tab {
    padding: 10px 25px;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    background: #f0f0f0;
    color: #666;
    transition: all 0.3s;
    border: none;
}

.screenshot-tab:hover {
    background: #ffe0da;
}

.screenshot-tab.active {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 4px 12px rgba(255, 95, 109, 0.3);
}

.screenshot-content {
    display: none;
}

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

.screenshot-scroll-wrapper {
    position: relative;
    overflow: hidden;
    padding: 0 50px;
}

.screenshot-scroll-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.screenshot-scroll-container::-webkit-scrollbar {
    display: none;
}

.screenshot-scroll-container .screenshot-item {
    flex-shrink: 0;
    width: auto;
    height: 420px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(255, 95, 109, 0.15);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    background: #fff;
}

.screenshot-scroll-container .screenshot-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(255, 95, 109, 0.25);
}

.screenshot-scroll-container .screenshot-item img {
    width: auto;
    height: 100%;
    display: block;
}

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 3px 15px rgba(255, 95, 109, 0.4);
    transition: all 0.3s;
    z-index: 10;
    opacity: 0.9;
}

.scroll-btn:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.scroll-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: translateY(-50%);
}

.scroll-left {
    left: 10px;
}

.scroll-right {
    right: 10px;
}

/* 图片查看器 */
.image-viewer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.image-viewer.active {
    display: flex;
}

.image-viewer-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    text-align: center;
}

.image-viewer img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
}

.image-viewer-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
}

.image-viewer-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    transition: background 0.3s;
}

.image-viewer-nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

.image-viewer-prev {
    left: -70px;
}

.image-viewer-next {
    right: -70px;
}

.image-viewer-info {
    color: #fff;
    margin-top: 20px;
    font-size: 16px;
}

/* 更新日志 */
.changelog {
    background: #fff;
}

.changelog-item {
    background: #fff9f4;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border-left: 4px solid #ff5f6d;
}

.changelog-item h4 {
    color: #ff5f6d;
    margin-bottom: 10px;
}

.changelog-item .version-date {
    color: #999;
    font-size: 14px;
    font-weight: 400;
    margin-left: 10px;
}

.changelog-item ol {
    padding-left: 15px;
}

.changelog-item ol li {
    padding: 5px 0;
    color: #666;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #ff5f6d 0%, #ff9966 100%);
    color: rgba(255, 255, 255, 0.95);
    padding: 40px 0;
    text-align: center;
}

.footer p {
    margin: 10px 0;
    font-size: 14px;
}

/* 响应式 */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }

    .hero .subtitle {
        font-size: 16px;
    }

    .section-title {
        font-size: 28px;
    }

    .features-grid,
    .tech-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        gap: 20px;
    }

    .feature-card {
        padding: 25px;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-btn {
        width: 220px;
    }

    .image-viewer-nav {
        display: none;
    }

    .image-viewer-close {
        top: 10px;
        right: 10px;
    }

    .screenshot-scroll-container .screenshot-item {
        height: 300px;
    }

    .scroll-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .screenshot-scroll-wrapper {
        padding: 0 40px;
    }
}

@media (max-height: 500px) {
    #mainbody {
        height: inherit;
    }
}

@media (min-width: 768px) {
    .navbar-default {
        background-color: transparent;
        border-color: transparent;
    }

    #mainbody .index-text {
        text-align: left;
    }
}

@media (max-width: 767px) {
    #mainbody > .container > .text-center {
        padding: 130px 0 0 0;
        height: calc(100vh - 261px);
    }

    #mainbody > .container > .text-center > h1 {
        font-size: 50px;
        margin-bottom: 20px;
    }
}
