﻿@import url('./theme.css');

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
main { display: block; margin: 0; padding: 0; }
body { font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", Arial, sans-serif; background: var(--bg-main); color: #fff; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.shell { width: 100%; margin: 0 auto; padding: 0 clamp(10px, 1.2vw, 22px); }
.hero-top.shell { max-width: 1880px; }
.section.shell,
.main-footer.shell { max-width: 1320px; }

.page-main { background: var(--bg-main); }
.page-main > main { margin: 0; padding: 0; }
.page-main .hero-block { margin-top: 0; }
.top-logo { width: clamp(180px, 10vw, 290px); }
.top-nav { display: flex; justify-content: center; gap: clamp(30px, 2.2vw, 54px); font-size: clamp(14px, .95vw, 18px); color: rgba(255,255,255,.78); }
.top-nav .active, .top-nav a:hover { color: #fff; }
.cta { display: inline-flex; align-items: center; justify-content: center; min-width: 106px; height: 32px; border-radius: 999px; border: 1px solid rgba(var(--accent-rgb),.75); background: rgba(var(--accent-rgb),.2); color: #fff; font-size: 12px; }
.hero-top > .cta,
.hero-input-bar .cta {
    min-width: clamp(166px, 10.1vw, 220px);
    height: clamp(46px, 2.7vw, 58px);
    border: 1px solid rgba(255, 255, 255, .14);
    background: linear-gradient(180deg, var(--primary-btn-grad-start) 0%, var(--primary-btn-grad-end) 100%);
    color: #fff;
    font-size: clamp(16px, .95vw, 21px);
    font-weight: 600;
    letter-spacing: .2px;
    padding: 0 24px;
    box-shadow: 0 8px 18px rgba(var(--primary-btn-shadow-rgb), .34);
}

.hero-block { position: relative; min-height: 58vw; max-height: 1100px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.hero-bg { position: absolute; left: 0; right: 0; top: -2px; width: 100%; height: calc(100% + 2px); object-fit: cover; object-position: center top; }
.hero-mask { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.14), rgba(0,0,0,.34)); }
.hero-top { position: absolute; z-index: 3; top: 16px; left: 50%; transform: translateX(-50%); height: 66px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; }

.hero-copy { position: absolute; z-index: 3; top: 62%; left: 50%; transform: translate(-50%, -50%); text-align: center; width: min(92vw, 1160px); }
.hero-copy p { margin: 8px 0 0; letter-spacing: 4px; font-size: clamp(12px, .9vw, 17px); color: rgba(255,255,255,.62); }
.hero-copy h1 { margin: 0; font-size: clamp(46px, 4.2vw, 84px); line-height: 1.1; font-weight: 700; font-style: italic; }
.hero-copy span { color: #fff; }
.hero-input-bar { margin: 16px auto 0; width: min(94vw, 760px); min-height: 56px; border-radius: 16px; background: var(--hero-input-bg); border: 1px solid rgba(255,255,255,.12); display: flex; align-items: center; justify-content: space-between; padding: 8px 10px 8px 20px; gap: 12px; }
.hero-input-bar span { color: rgba(255,255,255,.72); font-size: clamp(16px, 1.05vw, 24px); }
.hero-submenu { position: absolute; z-index: 3; left: 50%; transform: translateX(-50%); bottom: 56px; width: min(96vw, 1460px); display: grid; grid-template-columns: 1.25fr repeat(8, minmax(0,1fr)); gap: 12px; }
.hero-submenu a { border: 1px solid rgba(255,255,255,.08); background: linear-gradient(180deg, rgba(15,10,18,.86), rgba(8,5,13,.96)); border-radius: 18px; min-height: 132px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 0 10px; position: relative; overflow: hidden; }
.hero-submenu a:not(.intro)::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(var(--accent-rgb), .22), rgba(255,255,255,0) 58%);
    pointer-events: none;
}
.hero-submenu a.intro {
    align-items: flex-start;
    justify-content: center;
    padding-left: 20px;
    border: none;
    background: transparent;
    border-radius: 0;
    overflow: visible;
}
.hero-submenu a.intro strong {
    display: block;
    margin: 0;
    font-size: clamp(16px, .86vw, 21px);
    line-height: 1.25;
    font-weight: 600;
    color: rgba(255,255,255,.84);
    white-space: nowrap;
}
.hero-submenu a.intro em {
    display: block;
    margin-top: 2px;
    font-style: normal;
    font-size: clamp(13px, .68vw, 16px);
    line-height: 1.3;
    color: rgba(255,255,255,.5);
    white-space: nowrap;
}
.hero-submenu .dot {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}
.hero-submenu a .dot::before {
    content: "";
    display: block;
    width: 30px;
    height: 30px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    filter: drop-shadow(0 0 6px rgba(var(--accent-rgb), .45));
}
/* 2 视频时间轴 */
.hero-submenu a:nth-child(2) .dot::before {
    background-image: url("../images/home_menu_timeline.svg");
}
/* 3 文字内容脚本 */
.hero-submenu a:nth-child(3) .dot::before {
    background-image: url("../images/home_menu_script.svg");
}
/* 4 图片编辑 */
.hero-submenu a:nth-child(4) .dot::before {
    background-image: url("../images/home_menu_image_edit.svg");
}
/* 5 图片反推提示词 */
.hero-submenu a:nth-child(5) .dot::before {
    background-image: url("../images/home_menu_prompt.svg");
}
/* 6 图片转SVG */
.hero-submenu a:nth-child(6) .dot::before {
    background-image: url("../images/home_menu_svg.svg");
}
/* 7 图片格式转换 */
.hero-submenu a:nth-child(7) .dot::before {
    background-image: url("../images/home_menu_convert.svg");
}
/* 8 视频拼接 */
.hero-submenu a:nth-child(8) .dot::before {
    background-image: url("../images/home_menu_merge.svg");
}
/* 9 角色分身 */
.hero-submenu a:nth-child(9) .dot::before {
    background-image: url("../images/home_menu_avatar.svg");
}
.hero-submenu em { font-style: normal; color: rgba(255,255,255,.9); font-size: clamp(14px, .88vw, 19px); font-weight: 600; line-height: 1.2; text-align: center; white-space: nowrap; position: relative; z-index: 1; }

.hero-submenu a:nth-child(3)::before { background: linear-gradient(135deg, rgba(var(--accent-rgb), .24), rgba(255,255,255,0) 62%); }
.hero-submenu a:nth-child(4)::before { background: linear-gradient(135deg, rgba(26, 130, 190, .2), rgba(255,255,255,0) 62%); }
.hero-submenu a:nth-child(5)::before { background: linear-gradient(135deg, rgba(var(--accent-rgb), .2), rgba(255,255,255,0) 60%); }
.hero-submenu a:nth-child(6)::before { background: linear-gradient(135deg, rgba(27, 118, 174, .22), rgba(255,255,255,0) 62%); }
.hero-submenu a:nth-child(7)::before { background: linear-gradient(135deg, rgba(var(--accent-rgb), .22), rgba(255,255,255,0) 60%); }
.hero-submenu a:nth-child(8)::before { background: linear-gradient(135deg, rgba(var(--accent-rgb), .2), rgba(255,255,255,0) 62%); }
.hero-submenu a:nth-child(9)::before { background: linear-gradient(135deg, rgba(31, 96, 162, .22), rgba(255,255,255,0) 60%); }


.section { padding: 46px 0 34px; }
.section-head { text-align: center; margin-bottom: 18px; }
.section-head h2 { margin: 0; font-size: clamp(26px, 2.4vw, 44px); }
.section-head p { margin: 8px auto 0; max-width: 760px; color: rgba(255,255,255,.62); font-size: 14px; line-height: 1.75; }
.section-head > a { display: inline-flex; margin-top: 12px; border: 1px solid rgba(var(--accent-rgb),.75); border-radius: 999px; padding: 6px 14px; color: var(--accent-weak); font-size: 12px; }

.feature-row { display: grid; grid-template-columns: 1fr 44%; gap: 28px; align-items: center; margin-bottom: 20px; }
.feature-text b { font-size: clamp(30px, 3.3vw, 56px); color: rgba(var(--accent-rgb),.55); display: block; line-height: 1; }
.feature-text h3 { margin: 4px 0 8px; font-size: clamp(20px, 1.7vw, 30px); }
.feature-text p { margin: 0; color: rgba(255,255,255,.62); font-size: 14px; line-height: 1.7; max-width: 520px; }
.feature-text a { margin-top: 10px; display: inline-flex; border: 1px solid rgba(var(--accent-rgb),.74); color: var(--accent-weak); border-radius: 999px; padding: 6px 12px; font-size: 12px; }
.feature-row img { border-radius: 12px; width: 100%; }

.two-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.two-grid img, .big-card { width: 100%; border-radius: 12px; }

.gallery-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 12px; }
.gallery-grid img { border-radius: 8px; width: 100%; }

/* 综合基础版默认不做色偏滤镜，保证文字底图分离与真实内容一致 */
.feature-row img,
.two-grid img,
.big-card,
.gallery-grid img {
    filter: none;
}

.main-footer { padding: 24px 0 18px; }
.footer-hero { border-radius: 999px; background: radial-gradient(120% 180% at 50% 0, var(--footer-hero-bg-start), var(--footer-hero-bg-end)); display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 34px 16px; }
.footer-hero img { width: clamp(180px, 14vw, 280px); }
.footer-hero h2 { margin: 0; font-weight: 500; font-size: clamp(24px,2.1vw,38px); }
.footer-hero .cta {
    min-width: clamp(166px, 11vw, 238px);
    height: clamp(48px, 3vw, 64px);
    border: 1px solid rgba(255,255,255,.12);
    background: linear-gradient(180deg, var(--primary-btn-grad-start) 0%, var(--primary-btn-grad-end) 100%);
    color: #fff;
    font-size: clamp(18px, 1.05vw, 24px);
    font-weight: 600;
    padding: 0 22px;
    box-shadow: 0 8px 20px rgba(var(--primary-btn-shadow-rgb), .28);
}
.footer-bottom { margin-top: 14px; display: flex; justify-content: space-between; align-items: center; color: rgba(255,255,255,.65); font-size: 13px; }
.footer-bottom nav { display: flex; gap: 22px; }

.page-tools { background: var(--bg-main); }
.tools-page { position: relative; display: grid; grid-template-columns: 82px 1fr; gap: 20px; min-height: 100vh; padding-top: 16px; padding-bottom: 18px; }
.tools-page::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 84px;
    background: linear-gradient(180deg, var(--side-strip-start), var(--side-strip-end));
    border-right: 1px solid rgba(255,255,255,.06);
    pointer-events: none;
}
.tool-left-icons { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 12px; padding-top: 2px; }
.mini-logo {
    width: 44px;
    height: 44px;
    margin-bottom: 10px;
    border-radius: 10px;
    object-fit: contain;
    object-position: center;
}
.tool-left-icons > a:first-child {
    width: 62px;
    min-height: 62px;
    border: 0;
    background: transparent;
    padding: 0;
}
.tool-left-icons a { width: 58px; min-height: 62px; border-radius: 12px; border: 1px solid transparent; background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 12px; color: rgba(255,255,255,.58); }
.tool-left-icons a:nth-child(2)::before { content: "◔"; font-size: 22px; line-height: 1; }
.tool-left-icons a:nth-child(3)::before { content: "✎"; font-size: 22px; line-height: 1; }
.tool-left-icons a:nth-child(4)::before { content: "◧"; font-size: 22px; line-height: 1; }
.tool-left-icons a:nth-child(5)::before { content: "▣"; font-size: 22px; line-height: 1; }
.tool-left-icons a:nth-child(7)::before { content: "◈"; font-size: 22px; line-height: 1; }
.tool-left-icons a:nth-child(8)::before { content: "◉"; font-size: 22px; line-height: 1; }
.tool-left-icons a.active { border-color: transparent; background: rgba(255,255,255,.02); color: #fff; }
.tool-left-icons .spacer { flex: 1; }

.tool-head h1 {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}
.tool-head p { margin: 14px 0 14px; color: #f4f1f1; font-size: clamp(46px, 2.85vw, 62px); font-weight: 700; text-align: center; letter-spacing: -.3px; line-height: 1.06; }
.tool-head p .ai {
    background: linear-gradient(180deg, var(--tool-head-accent-start) 0%, var(--tool-head-accent-end) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 0 .03em;
}

.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.tool-card { position: relative; display: block; border-radius: 16px; overflow: hidden; border: 1px solid rgba(var(--accent-rgb),.35); background: var(--tool-card-bg); min-height: 238px; }
.tool-card img { width: 100%; height: 100%; min-height: 238px; object-fit: cover; }
.tool-card > div { position: absolute; left: 0; right: 0; bottom: 0; padding: 56px 14px 14px; min-height: 108px; background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(8,4,7,.92) 70%); }
.tool-card h3 { margin: 0; font-size: clamp(22px, 1.25vw, 32px); line-height: 1.2; }
.tool-card h3 em { font-style: normal; border: 1px solid rgba(var(--accent-rgb),.75); color: var(--accent-weak); border-radius: 999px; font-size: 11px; padding: 1px 7px; margin-left: 4px; }
.tool-card p { margin: 4px 0 0; color: rgba(255,255,255,.64); font-size: 13px; line-height: 1.4; }
.tool-card::after {
    content: "→";
    position: absolute;
    right: 14px;
    bottom: 16px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.2);
    background: rgba(6,8,12,.6);
    color: rgba(255,255,255,.9);
    font-size: 34px;
    line-height: 46px;
    text-align: center;
}
.tool-card.empty { display: flex; align-items: center; justify-content: center; min-height: 250px; border-color: rgba(255,255,255,.1); }
.tool-card.empty::after { display: none; }
.tool-card.empty h3 { color: rgba(255,255,255,.42); font-size: 26px; }

@media (max-width: 1200px) {
    .feature-row { grid-template-columns: 1fr; }
    .tool-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 860px) {
    .hero-top { top: 8px; grid-template-columns: 1fr; gap: 8px; height: auto; }
    .top-nav { flex-wrap: wrap; gap: 14px; }
    .top-logo { width: clamp(128px, 38vw, 188px); }
    .hero-top > .cta,
    .hero-input-bar .cta { min-width: 122px; height: 36px; font-size: 15px; padding: 0 16px; }
    .hero-copy { top: 52%; }
    .hero-copy h1 { font-size: clamp(26px, 8vw, 48px); }
    .hero-input-bar { width: min(94vw, 640px); min-height: 46px; border-radius: 12px; }
    .hero-submenu { grid-template-columns: repeat(3, minmax(0,1fr)); bottom: 36px; gap: 8px; }
    .hero-submenu a { min-height: 74px; border-radius: 12px; }
    .hero-submenu a.intro { grid-column: span 3; min-height: 64px; }
    .hero-submenu a.intro strong { font-size: 16px; }
    .hero-submenu a.intro em { font-size: 13px; }
    .hero-submenu em { font-size: 12px; }
    .hero-submenu .dot { width: 22px; height: 22px; }
    .hero-submenu a .dot::before { width: 17px; height: 17px; }
    .hero-submenu a.intro { border-radius: 12px; background: linear-gradient(180deg, rgba(15,10,18,.86), rgba(8,5,13,.96)); border: 1px solid rgba(255,255,255,.08); }
    .hero-submenu em { white-space: normal; }
    .gallery-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .tools-page { grid-template-columns: 1fr; }
    .tools-page::before { display: none; }
    .tool-left-icons { flex-direction: row; flex-wrap: wrap; justify-content: center; }
    .tool-left-icons .spacer { display: none; }
    .tool-head h1 { margin-top: 14px; }
    .tool-head p { font-size: clamp(20px, 5.2vw, 30px); }
    .tool-grid { grid-template-columns: 1fr; }
    .footer-hero .cta { min-width: 140px; height: 40px; font-size: 15px; padding: 0 14px; }
    .footer-bottom { flex-direction: column; gap: 10px; }
}

