/* 王先生天气网公共样式 */
:root{
            --bg:#f5f8ff;
            --text:#182230;
            --muted:#6b7280;
            --line:#e8eef7;
            --primary:#2f6df6;
            --primary-dark:#265fe0;
            --card:#ffffff;
            --shadow:0 18px 42px rgba(34,68,160,.08);
            --radius:24px;
        }
        *{box-sizing:border-box}
        html,body{margin:0;padding:0}
        body{
            font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"PingFang SC","Microsoft YaHei",Arial,sans-serif;
            color:var(--text);
            background:
                radial-gradient(circle at top left, #dcebff 0, transparent 28%),
                radial-gradient(circle at top right, #edf4ff 0, transparent 30%),
                linear-gradient(180deg,#eff5ff,#f9fbff);
            min-height:100vh;
        }
        a{text-decoration:none;color:inherit}
        .container{max-width:1200px;margin:0 auto;padding:18px 16px 34px}
        .hero{
            border-radius:30px;
            background:linear-gradient(135deg,#2f6df6,#6ea8ff);
            color:#fff;
            padding:30px 24px;
            box-shadow:var(--shadow);
            position:relative;
            overflow:hidden;
        }
        .hero:before,.hero:after{
            content:"";
            position:absolute;
            border-radius:50%;
            background:rgba(255,255,255,.10);
        }
        .hero:before{width:220px;height:220px;right:-70px;top:-70px}
        .hero:after{width:130px;height:130px;left:-30px;bottom:-30px}
        .hero h1{position:relative;margin:0;font-size:34px;line-height:1.2;font-weight:800}
        .search-card,.section{
            background:rgba(255,255,255,.92);
            backdrop-filter:blur(10px);
            border:1px solid rgba(255,255,255,.6);
            border-radius:var(--radius);
            box-shadow:var(--shadow);
        }
        .search-card{
            position:relative;
            margin-top:18px;
            padding:18px;
            z-index:2;
        }
        .search-row{display:flex;gap:12px;flex-wrap:wrap}
        .search-row input{
            flex:1;
            min-width:260px;
            height:54px;
            border:1px solid var(--line);
            border-radius:16px;
            padding:0 16px;
            font-size:15px;
            outline:none;
            background:#fff;
            transition:.2s;
        }
        .search-row input:focus{
            border-color:#b6ccff;
            box-shadow:0 0 0 4px rgba(47,109,246,.10);
        }
        .search-row button{
            height:54px;
            border:0;
            border-radius:16px;
            padding:0 22px;
            font-size:15px;
            font-weight:700;
            color:#fff;
            background:linear-gradient(135deg,var(--primary),var(--primary-dark));
            cursor:pointer;
            box-shadow:0 10px 24px rgba(47,109,246,.20);
        }
        .suggestions{
            display:none;
            position:absolute;
            left:18px;
            right:18px;
            top:86px;
            background:#fff;
            border:1px solid var(--line);
            border-radius:16px;
            overflow:hidden;
            z-index:30;
            max-height:360px;
            overflow-y:auto;
            box-shadow:0 18px 40px rgba(15,23,42,.10);
        }
        .suggestion-item{
            padding:13px 15px;
            border-bottom:1px solid #f1f5fb;
            cursor:pointer;
        }
        .suggestion-item:last-child{border-bottom:0}
        .suggestion-item:hover{background:#f7faff}
        .suggestion-title{font-weight:700;font-size:15px;margin-bottom:5px}
        .suggestion-meta{font-size:12px;color:var(--muted)}
        .section{padding:20px;margin-top:20px}
        .section h2{margin:0 0 16px;font-size:22px}
        .grid{
            display:grid;
            grid-template-columns:repeat(4,minmax(0,1fr));
            gap:16px;
        }
        .city-card{
            display:block;
            padding:18px;
            border-radius:20px;
            background:linear-gradient(180deg,#ffffff,#f8fbff);
            border:1px solid #edf3fb;
            transition:.22s;
        }
        .city-card:hover{
            transform:translateY(-3px);
            border-color:#d6e6ff;
            box-shadow:0 16px 28px rgba(47,109,246,.10);
        }
        .city-card .name{font-size:18px;font-weight:800;margin-bottom:8px}
        .city-card .meta{font-size:13px;color:var(--muted);line-height:1.7}
        footer{
            text-align:center;
            color:var(--muted);
            font-size:14px;
            padding:28px 0 12px;
        }
        footer a{color:var(--primary)}
        @media (max-width:980px){.grid{grid-template-columns:repeat(3,minmax(0,1fr));}}
        @media (max-width:720px){
            .hero h1{font-size:28px}
            .grid{grid-template-columns:repeat(2,minmax(0,1fr));}
        }
        @media (max-width:520px){
            .grid{grid-template-columns:1fr}
            .search-row button{width:100%}
        }

/* 天气详情页样式 */
:root{
            --bg:#f4f7fc;
            --bg-soft:#f8fbff;
            --card:#ffffff;
            --text:#1b2430;
            --muted:#6b7280;
            --line:#e7edf5;
            --primary:#2f6df6;
            --primary-dark:#255fe0;
            --shadow:0 14px 36px rgba(43,72,135,.08);
            --radius-xl:28px;
            --radius-lg:22px;
            --radius-md:18px;
        }
        *{box-sizing:border-box}
        html,body{margin:0;padding:0}
        body{
            font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"PingFang SC","Microsoft YaHei",Arial,sans-serif;
            color:var(--text);
            background:
                radial-gradient(circle at top left, #deebff 0, transparent 24%),
                radial-gradient(circle at top right, #eef5ff 0, transparent 28%),
                linear-gradient(180deg,#eef4ff,#f8fbff);
            min-height:100vh;
        }
        a{text-decoration:none;color:inherit}
        .container{
            max-width:1240px;
            margin:0 auto;
            padding:18px 16px 34px;
        }
        .crumb{
            display:flex;
            gap:8px;
            align-items:center;
            flex-wrap:wrap;
            color:var(--muted);
            font-size:14px;
            margin:2px 0 14px;
            background:rgba(255,255,255,.85);
            border:1px solid rgba(255,255,255,.70);
            border-radius:16px;
            padding:12px 14px;
            box-shadow:0 8px 22px rgba(34,68,160,.05);
        }
        .crumb a{
            color:var(--primary);
            font-weight:600;
        }
        .crumb-sep{color:#9ba7b6}

        .detail-search{
            position:relative;
            margin:0 0 18px;
            padding:16px;
            background:rgba(255,255,255,.92);
            border:1px solid rgba(255,255,255,.65);
            border-radius:var(--radius-lg);
            box-shadow:var(--shadow);
            z-index:20;
        }
        .detail-search-row{display:flex;gap:12px;flex-wrap:wrap}
        .detail-search-row input{
            flex:1;
            min-width:260px;
            height:50px;
            border:1px solid var(--line);
            border-radius:16px;
            padding:0 16px;
            font-size:15px;
            outline:none;
            background:#fff;
            transition:.2s;
        }
        .detail-search-row input:focus{
            border-color:#b6ccff;
            box-shadow:0 0 0 4px rgba(47,109,246,.10);
        }
        .detail-search-row button{
            height:50px;
            border:0;
            border-radius:16px;
            padding:0 22px;
            font-size:15px;
            font-weight:800;
            color:#fff;
            background:linear-gradient(135deg,var(--primary),var(--primary-dark));
            cursor:pointer;
            box-shadow:0 10px 24px rgba(47,109,246,.18);
        }
        .detail-suggestions{
            display:none;
            position:absolute;
            left:16px;
            right:16px;
            top:78px;
            background:#fff;
            border:1px solid var(--line);
            border-radius:16px;
            overflow:hidden;
            z-index:40;
            max-height:320px;
            overflow-y:auto;
            box-shadow:0 18px 40px rgba(15,23,42,.10);
        }
        .detail-suggestion-item{
            padding:13px 15px;
            border-bottom:1px solid #f1f5fb;
            cursor:pointer;
        }
        .detail-suggestion-item:last-child{border-bottom:0}
        .detail-suggestion-item:hover{background:#f7faff}
        .detail-suggestion-title{font-weight:800;font-size:15px;margin-bottom:5px}
        .detail-suggestion-meta{font-size:12px;color:var(--muted)}

        .hero{
            position:relative;
            overflow:hidden;
            border-radius:var(--radius-xl);
            padding:30px 24px;
            color:#fff;
            background:linear-gradient(135deg,#2f6df6 0%, #4f8cff 45%, #79b0ff 100%);
            box-shadow:var(--shadow);
            margin-bottom:18px;
        }
        .hero:before,.hero:after{
            content:"";
            position:absolute;
            border-radius:50%;
            background:rgba(255,255,255,.10);
        }
        .hero:before{width:220px;height:220px;right:-70px;top:-80px}
        .hero:after{width:130px;height:130px;left:-35px;bottom:-35px}
        .hero-top{
            position:relative;
            display:flex;
            justify-content:space-between;
            align-items:center;
            gap:18px;
            flex-wrap:wrap;
        }
        .hero h1{
            margin:0 0 10px;
            font-size:38px;
            line-height:1.15;
            font-weight:800;
            letter-spacing:.2px;
        }
        .hero-sub{
            font-size:14px;
            opacity:.95;
        }
        .temp-box{
            text-align:right;
        }
        .temp{
            font-size:58px;
            font-weight:900;
            line-height:1;
            letter-spacing:-1px;
        }
        .weather-type{
            margin-top:8px;
            font-size:18px;
            opacity:.98;
        }

        .cards{
            display:grid;
            grid-template-columns:repeat(6,minmax(0,1fr));
            gap:14px;
            margin-top:22px;
            position:relative;
        }
        .metric{
            background:rgba(255,255,255,.16);
            border:1px solid rgba(255,255,255,.18);
            border-radius:18px;
            padding:15px;
            backdrop-filter:blur(8px);
        }
        .metric .label{
            font-size:12px;
            opacity:.86;
            margin-bottom:8px;
        }
        .metric .value{
            font-size:21px;
            font-weight:800;
            line-height:1.25;
        }

        .section{
            background:rgba(255,255,255,.94);
            border:1px solid rgba(255,255,255,.65);
            border-radius:var(--radius-lg);
            box-shadow:var(--shadow);
            padding:22px;
            margin-bottom:18px;
        }
        .section h2{
            margin:0 0 16px;
            font-size:22px;
            font-weight:800;
            letter-spacing:.2px;
        }

        .summary{
            color:#445166;
            line-height:1.95;
            font-size:15px;
        }

        .air-note{
            display:flex;
            gap:12px;
            align-items:flex-start;
            flex-wrap:wrap;
            background:#fff8eb;
            border:1px solid #fde7b2;
            color:#8a5b00;
            padding:14px 16px;
            border-radius:18px;
            line-height:1.9;
        }

        .forecast-grid{
            display:grid;
            grid-template-columns:repeat(5,minmax(0,1fr));
            gap:14px;
        }
        .forecast-item{
            background:linear-gradient(180deg,#ffffff,#f8fbff);
            border:1px solid #edf3fb;
            border-radius:20px;
            padding:16px;
            transition:.18s;
        }
        .forecast-item:hover{
            transform:translateY(-2px);
            box-shadow:0 10px 24px rgba(47,109,246,.08);
        }
        .forecast-item .date{
            font-weight:800;
            font-size:15px;
            margin-bottom:8px;
        }
        .forecast-item .wx{
            font-size:24px;
            margin-bottom:8px;
        }
        .forecast-item .meta{
            font-size:13px;
            color:#4b5b70;
            line-height:1.8;
        }

        .hour-grid{
            display:grid;
            grid-template-columns:repeat(6,minmax(0,1fr));
            gap:12px;
        }
        .hour-item{
            background:linear-gradient(180deg,#ffffff,#f9fbff);
            border:1px solid #edf3fb;
            border-radius:18px;
            padding:14px;
            text-align:center;
            transition:.18s;
        }
        .hour-item:hover{
            transform:translateY(-2px);
            box-shadow:0 10px 24px rgba(47,109,246,.08);
        }
        .hour-time{
            font-weight:800;
            font-size:14px;
            margin-bottom:8px;
        }
        .hour-temp{
            font-size:22px;
            font-weight:900;
            color:var(--primary);
        }
        .hour-weather{
            font-size:13px;
            color:var(--muted);
            margin-top:6px;
            line-height:1.5;
        }

        .yesterday-card{
            display:grid;
            grid-template-columns:1.2fr .9fr .9fr;
            gap:16px;
            align-items:stretch;
        }
        .y-box{
            background:linear-gradient(180deg,#ffffff,#f8fbff);
            border:1px solid #edf3fb;
            border-radius:20px;
            padding:18px;
        }
        .y-title{
            font-size:18px;
            font-weight:800;
            margin-bottom:12px;
        }
        .y-date{
            color:var(--muted);
            font-size:14px;
            margin-bottom:12px;
        }
        .y-main{
            display:flex;
            align-items:center;
            justify-content:space-between;
            gap:16px;
            flex-wrap:wrap;
        }
        .y-temps{
            display:flex;
            gap:20px;
            flex-wrap:wrap;
            align-items:flex-start;
        }
        .y-temp-block{
            min-width:88px;
        }
        .y-temp-label{
            font-size:12px;
            color:var(--muted);
            margin-bottom:6px;
        }
        .y-temp-value{
            font-size:22px;
            font-weight:900;
            color:var(--primary);
            line-height:1.3;
        }
        .y-weather{
            font-size:14px;
            color:#475467;
            line-height:1.9;
        }
        .y-icon{
            font-size:40px;
            line-height:1;
        }

        .indexes-grid{
            display:grid;
            grid-template-columns:repeat(3,minmax(0,1fr));
            gap:14px;
        }
        .index-item{
            background:linear-gradient(180deg,#ffffff,#f9fbff);
            border:1px solid #edf3fb;
            border-radius:18px;
            padding:16px;
        }
        .index-item h3{
            margin:0 0 8px;
            font-size:17px;
        }
        .badge{
            display:inline-flex;
            align-items:center;
            gap:6px;
            font-size:12px;
            font-weight:700;
            color:#1d4ed8;
            background:#eaf2ff;
            border:1px solid #d7e6ff;
            padding:6px 10px;
            border-radius:999px;
            margin-bottom:10px;
        }

        .faq-list{
            display:grid;
            grid-template-columns:1fr 1fr;
            gap:14px;
        }
        .faq-item{
            background:linear-gradient(180deg,#ffffff,#fafcff);
            border:1px solid #edf3fb;
            border-radius:18px;
            padding:16px;
        }
        .faq-item h3{
            margin:0 0 10px;
            font-size:17px;
            line-height:1.6;
        }
        .faq-item p{
            margin:0;
            color:#566172;
            line-height:1.9;
        }

        .links{
            display:flex;
            flex-wrap:wrap;
            gap:10px 18px;
        }
        .chip{
            display:inline-flex;
            align-items:center;
            color:#2a5fda;
            font-weight:700;
            font-size:14px;
            line-height:1.7;
            transition:.18s;
        }
        .chip:hover{
            color:#1849ba;
            transform:translateY(-1px);
        }

        .error{
            color:#a61b1b;
            background:#fff5f5;
            border:1px solid #ffd5d5;
            border-radius:18px;
            padding:14px 16px;
            font-weight:700;
        }

        footer{
            text-align:center;
            color:var(--muted);
            font-size:14px;
            padding:28px 0 8px;
        }
        footer a{color:var(--primary)}

        @media (max-width:1080px){
            .cards{grid-template-columns:repeat(3,minmax(0,1fr))}
            .forecast-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
            .hour-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
            .yesterday-card,.faq-list{grid-template-columns:1fr}
        }

        @media (max-width:760px){
            .hero h1{font-size:30px}
            .temp-box{text-align:left}
            .temp{font-size:46px}

            .cards{grid-template-columns:repeat(2,minmax(0,1fr))}
            .forecast-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
            .hour-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
            .indexes-grid{grid-template-columns:1fr}
        }

        @media (max-width:480px){
            .detail-search-row button{width:100%}
            .cards{grid-template-columns:repeat(2,minmax(0,1fr))}
            .forecast-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
            .hour-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
            .y-temps{gap:14px}
            .section{padding:18px}
        }

.tip-icon{font-size:20px;}
